├── Android.bp ├── configs ├── samsung-sec_e-pen.idc ├── public.libraries.txt ├── privapp-permissions-hotword.xml ├── external_camera_config.xml └── audio │ └── audio_policy_configuration.xml ├── system.prop ├── sepolicy └── file_contexts ├── keylayout └── gpio_keys.kl ├── seccomp ├── mediacodec-seccomp.policy └── mediaextractor-seccomp.policy ├── overlay ├── frameworks │ └── base │ │ ├── core │ │ └── res │ │ │ └── res │ │ │ ├── drawable-xxhdpi │ │ │ └── pointer_arrow.png │ │ │ └── values │ │ │ ├── lineage_config.xml │ │ │ └── config.xml │ │ └── packages │ │ └── SystemUI │ │ ├── res │ │ ├── values-sw372dp │ │ │ └── dimens.xml │ │ └── values │ │ │ └── config.xml │ │ └── res-keyguard │ │ └── values │ │ └── config.xml ├── packages │ ├── SystemUI │ │ └── res │ │ │ └── values │ │ │ └── lineage_config.xml │ ├── apps │ │ ├── Settings │ │ │ └── res │ │ │ │ └── values │ │ │ │ ├── dimens.xml │ │ │ │ └── config.xml │ │ ├── Snap │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── config.xml │ │ └── Messaging │ │ │ └── res │ │ │ └── xml │ │ │ └── mms_config.xml │ └── services │ │ └── Telephony │ │ └── res │ │ └── values │ │ └── config.xml └── lineage-sdk │ └── lineage │ └── res │ └── res │ └── values │ └── config.xml ├── bluetooth ├── libbt_vndcfg.txt └── bdroid_buildcfg.h ├── hidl ├── livedisplay │ ├── vendor.lineage.livedisplay@2.0-service.universal8895.rc │ ├── .clang-format │ ├── Android.bp │ ├── AdaptiveBacklight.cpp │ ├── AdaptiveBacklight.h │ ├── ReadingEnhancement.h │ ├── ReadingEnhancement.cpp │ ├── SunlightEnhancement.h │ ├── SunlightEnhancement.cpp │ ├── DisplayColorCalibration.h │ ├── DisplayColorCalibration.cpp │ └── service.cpp └── Android.mk ├── lineage.dependencies ├── shims ├── Android.mk └── libexynoscamera │ ├── Android.mk │ ├── CameraParameters.h │ └── CameraParameters.cpp ├── Android.mk ├── ramdisk ├── etc │ ├── mobicore.rc │ ├── init.baseband.rc │ ├── fstab.samsungexynos8895 │ ├── ueventd.samsungexynos8895.rc │ ├── init.samsungexynos8895.usb.rc │ └── init.samsungexynos8895.rc └── Android.mk ├── include └── samsung_dtbh.h ├── extract-files.sh ├── system_prop.mk ├── setup-makefiles.sh ├── BoardConfigCommon.mk ├── manifest.xml ├── device-common.mk └── proprietary-files.txt /Android.bp: -------------------------------------------------------------------------------- 1 | soong_namespace { 2 | } 3 | -------------------------------------------------------------------------------- /configs/samsung-sec_e-pen.idc: -------------------------------------------------------------------------------- 1 | touch.orientationAware = 1 2 | -------------------------------------------------------------------------------- /system.prop: -------------------------------------------------------------------------------- 1 | # read DS/SS property 2 | import /efs/factory.prop 3 | -------------------------------------------------------------------------------- /sepolicy/file_contexts: -------------------------------------------------------------------------------- 1 | /cpefs(/.*)? u:object_r:efs_file:s0 2 | -------------------------------------------------------------------------------- /configs/public.libraries.txt: -------------------------------------------------------------------------------- 1 | libGLES_mali.so 2 | libOpenCL.so 3 | libOpenCL.so.1 4 | libOpenCL.so.1.1 5 | vulkan.exynos5.so 6 | -------------------------------------------------------------------------------- /keylayout/gpio_keys.kl: -------------------------------------------------------------------------------- 1 | key 114 VOLUME_DOWN 2 | key 115 VOLUME_UP 3 | key 116 POWER 4 | key 172 HOME 5 | key 703 APP_SWITCH 6 | -------------------------------------------------------------------------------- /seccomp/mediacodec-seccomp.policy: -------------------------------------------------------------------------------- 1 | # device specific syscalls 2 | getdents64: 1 3 | gettid: 1 4 | geteuid32: 1 5 | getgid32: 1 6 | getegid32: 1 7 | getpid: 1 8 | uname: 1 9 | -------------------------------------------------------------------------------- /seccomp/mediaextractor-seccomp.policy: -------------------------------------------------------------------------------- 1 | # device specific syscalls 2 | getdents64: 1 3 | gettid: 1 4 | geteuid32: 1 5 | getgid32: 1 6 | getegid32: 1 7 | getpid: 1 8 | uname: 1 9 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/drawable-xxhdpi/pointer_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SuperiorOS-Devices/device_samsung_greatlte-common/ten/overlay/frameworks/base/core/res/res/drawable-xxhdpi/pointer_arrow.png -------------------------------------------------------------------------------- /bluetooth/libbt_vndcfg.txt: -------------------------------------------------------------------------------- 1 | BLUETOOTH_UART_DEVICE_PORT = "/dev/ttySAC1" 2 | FW_PATCHFILE_LOCATION = "/vendor/firmware" 3 | FW_PATCH_SETTLEMENT_DELAY_MS = 100 4 | UART_TARGET_BAUD_RATE = 921600 5 | LPM_IDLE_TIMEOUT_MULTIPLE = 5 6 | SCO_USE_I2S_INTERFACE = TRUE 7 | SCO_I2SPCM_IF_ROLE = 0 8 | -------------------------------------------------------------------------------- /hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.universal8895.rc: -------------------------------------------------------------------------------- 1 | on post-fs-data 2 | mkdir /data/vendor/display 0770 system system 3 | 4 | service vendor.livedisplay-hal-2-0-universal8895 /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.universal8895 5 | class hal 6 | user system 7 | group system -------------------------------------------------------------------------------- /hidl/livedisplay/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AccessModifierOffset: -2 3 | AllowShortFunctionsOnASingleLine: Inline 4 | ColumnLimit: 100 5 | CommentPragmas: NOLINT:.* 6 | DerivePointerAlignment: false 7 | IndentWidth: 4 8 | PointerAlignment: Left 9 | TabWidth: 4 10 | UseTab: Never 11 | PenaltyExcessCharacter: 32 12 | -------------------------------------------------------------------------------- /overlay/packages/SystemUI/res/values/lineage_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | false 8 | -------------------------------------------------------------------------------- /lineage.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "android_hardware_samsung", 4 | "target_path": "hardware/samsung" 5 | }, 6 | { 7 | "repository": "android_kernel_samsung_universal8895", 8 | "target_path": "kernel/samsung/universal8895" 9 | }, 10 | { 11 | "repository": "android_packages_resources_devicesettings", 12 | "target_path": "packages/resources/devicesettings" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /configs/privapp-permissions-hotword.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /hidl/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2019 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | include $(call all-subdir-makefiles) 18 | -------------------------------------------------------------------------------- /shims/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | LOCAL_PATH := $(call my-dir) 17 | 18 | include $(call all-subdir-makefiles,$(LOCAL_PATH)) 19 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := device/samsung/universal8895-common 18 | 19 | ifneq ($(filter dreamlte dream2lte greatlte, $(TARGET_DEVICE)),) 20 | 21 | include $(call all-makefiles-under,$(LOCAL_PATH)) 22 | 23 | endif 24 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 4dp 20 | 16dp 21 | 22 | -------------------------------------------------------------------------------- /overlay/packages/apps/Settings/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 5dp 16 | 68.5% 17 | 18 | -------------------------------------------------------------------------------- /ramdisk/etc/mobicore.rc: -------------------------------------------------------------------------------- 1 | on post-fs 2 | setprop vendor.sys.mobicoredaemon.enable stopped 3 | 4 | on nonencrypted 5 | mkdir /data/vendor/mcRegistry 0775 system system 6 | mkdir /data/misc/mcRegistry 0775 system system 7 | 8 | on property:vold.decrypt=trigger_restart_framework 9 | mkdir /data/vendor/mcRegistry 0775 system system 10 | mkdir /data/misc/mcRegistry 0775 system system 11 | 12 | on post-fs 13 | export MC_AUTH_TOKEN_PATH /efs 14 | mkdir /efs/TEE 0770 radio system 15 | chmod 0660 /dev/t-base-tui 16 | chown system system /dev/t-base-tui 17 | start mobicore 18 | 19 | service mobicore /vendor/bin/mcDriverDaemon -r /vendor/app/mcRegistry/FFFFFFFF000000000000000000000001.drbin -r /vendor/app/mcRegistry/ffffffffd0000000000000000000000a.tlbin -r /vendor/app/mcRegistry/ffffffffd00000000000000000000016.tlbin -r /vendor/app/mcRegistry/ffffffffd0000000000000000000001c.tlbin 20 | class core 21 | user system 22 | group system 23 | disabled 24 | -------------------------------------------------------------------------------- /shims/libexynoscamera/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | LOCAL_PATH := $(call my-dir) 17 | 18 | include $(CLEAR_VARS) 19 | LOCAL_SRC_FILES := CameraParameters.cpp 20 | 21 | LOCAL_MODULE := libexynoscamera_shim 22 | LOCAL_MODULE_TAGS := optional 23 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 24 | LOCAL_PROPRIETARY_MODULE := true 25 | 26 | include $(BUILD_SHARED_LIBRARY) 27 | -------------------------------------------------------------------------------- /overlay/packages/services/Telephony/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | true 22 | 23 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/lineage_config.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | false 21 | 0 22 | 23 | -------------------------------------------------------------------------------- /bluetooth/bdroid_buildcfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * Copyright (C) 2014 The CyanogenMod Project 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef _BDROID_BUILDCFG_H 19 | #define _BDROID_BUILDCFG_H 20 | 21 | #define BTM_DEF_LOCAL_NAME "Samsung Galaxy" 22 | 23 | #define BTM_WBS_INCLUDED TRUE /* Enable WBS */ 24 | #define BTIF_HF_WBS_PREFERRED FALSE /* Don't prefer WBS */ 25 | 26 | #define BLE_VND_INCLUDED TRUE 27 | 28 | #define BTM_SCO_ENHANCED_SYNC_ENABLED FALSE 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res-keyguard/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 0 25 | 26 | 10800000 27 | 28 | -------------------------------------------------------------------------------- /include/samsung_dtbh.h: -------------------------------------------------------------------------------- 1 | /* tools/mkbootimg/samsung_dtbh.h 2 | ** 3 | ** Copyright 2017, The LineageOS Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | #ifndef _SAMSUNG_DTBH_H_ 19 | #define _SAMSUNG_DTBH_H_ 20 | 21 | #define DTBH_MAGIC "DTBH" 22 | #define DTBH_VERSION 2 23 | #define DTBH_PLATFORM "android" 24 | #define DTBH_SUBTYPE "samsung" 25 | 26 | /* Hardcoded entry */ 27 | #define DTBH_PLATFORM_CODE 0x50a6 28 | #define DTBH_SUBTYPE_CODE 0x217584da 29 | 30 | /* DTBH_MAGIC + DTBH_VERSION + DTB counts */ 31 | #define DT_HEADER_PHYS_SIZE 12 32 | 33 | /* 34 | * keep the eight uint32_t entries first in this struct so we can memcpy them to the file 35 | */ 36 | #define DT_ENTRY_PHYS_SIZE (sizeof(uint32_t) * 8) 37 | 38 | #endif // _SAMSUNG_DTBH_H_ 39 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | true 27 | 28 | 29 | false 30 | 31 | -------------------------------------------------------------------------------- /overlay/packages/apps/Settings/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /hidl/livedisplay/Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2019 The LineageOS Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | cc_binary { 16 | name: "vendor.lineage.livedisplay@2.0-service.universal8895", 17 | init_rc: ["vendor.lineage.livedisplay@2.0-service.universal8895.rc"], 18 | defaults: ["hidl_defaults"], 19 | relative_install_path: "hw", 20 | vendor: true, 21 | srcs: [ 22 | "AdaptiveBacklight.cpp", 23 | "DisplayColorCalibration.cpp", 24 | "ReadingEnhancement.cpp", 25 | "SunlightEnhancement.cpp", 26 | "service.cpp", 27 | ], 28 | shared_libs: [ 29 | "libbase", 30 | "libbinder", 31 | "libdl", 32 | "libhidlbase", 33 | "libhidltransport", 34 | "libutils", 35 | "vendor.lineage.livedisplay@2.0", 36 | ], 37 | } 38 | -------------------------------------------------------------------------------- /configs/external_camera_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 6 | 7 7 | 8 8 | 9 9 | 12 10 | 50 11 | 101 12 | 102 13 | 103 14 | 104 15 | 109 16 | 110 17 | 111 18 | 112 19 | 120 20 | 121 21 | 122 22 | 130 23 | 131 24 | 132 25 | 140 26 | 141 27 | 142 28 | 160 29 | 161 30 | 170 31 | 171 32 | 172 33 | 173 34 | 174 35 | 180 36 | 190 37 | 191 38 | 192 39 | 193 40 | 210 41 | 211 42 | 212 43 | 213 44 | 214 45 | 215 46 | 216 47 | 217 48 | 218 49 | 219 50 | 220 51 | 221 52 | 222 53 | 223 54 | 224 55 | 225 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ramdisk/etc/init.baseband.rc: -------------------------------------------------------------------------------- 1 | on init 2 | symlink /dev/block/platform/11120000.ufs/by-name/RADIO /dev/mbin0 3 | restorecon /dev/mbin0 4 | 5 | write /proc/sys/net/core/netdev_max_backlog 5000 6 | 7 | on fs 8 | chown radio system /efs 9 | chmod 0771 /efs 10 | restorecon_recursive /efs 11 | chown radio radio sys/devices/virtual/misc/multipdp/waketime 12 | chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state 13 | chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state 14 | 15 | # /efs/factory.prop for Dual / Single SIM settings 16 | chown radio radio /efs/factory.prop 17 | chmod 0600 /efs/factory.prop 18 | 19 | #For cpdebug partition 20 | wait /dev/block/platform/11120000.ufs/by-name/EFS 21 | mkdir /efs/cpdebug 22 | chown radio system /efs/cpdebug 23 | chmod 0771 /efs/cpdebug 24 | symlink /dev/block/platform/11120000.ufs/by-name/CP_DEBUG /efs/cpdebug/node 25 | chown radio system /efs/cpdebug/node 26 | chmod 0771 /efs/cpdebug/node 27 | 28 | on post-fs-data 29 | # For Samsung members 30 | chmod 0775 /data/log/err 31 | chown radio radio /data/log/err 32 | 33 | service cpboot-daemon /vendor/bin/cbd -d -tss310 -bm -mm -P platform/11120000.ufs/by-name/RADIO -n /efs 34 | class main 35 | user root 36 | group radio cache inet misc audio sdcard_rw log sdcard_r shell system 37 | 38 | # SS/DS configuration 39 | on property:ro.multisim.simslotcount=* 40 | write /sys/module/modem_ctrl_ss310ap/parameters/ds_detect ${ro.multisim.simslotcount} 41 | 42 | on property:ro.multisim.simslotcount=1 43 | setprop persist.radio.multisim.config ss 44 | 45 | on property:ro.multisim.simslotcount=2 46 | setprop persist.radio.multisim.config dsds 47 | -------------------------------------------------------------------------------- /hidl/livedisplay/AdaptiveBacklight.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include "AdaptiveBacklight.h" 23 | 24 | using android::base::ReadFileToString; 25 | using android::base::Trim; 26 | using android::base::WriteStringToFile; 27 | 28 | namespace vendor { 29 | namespace lineage { 30 | namespace livedisplay { 31 | namespace V2_0 { 32 | namespace implementation { 33 | 34 | static constexpr const char* kBacklightPath = "/sys/class/lcd/panel/power_reduce"; 35 | 36 | Return AdaptiveBacklight::isEnabled() { 37 | std::string tmp; 38 | int32_t contents = 0; 39 | 40 | if (ReadFileToString(kBacklightPath, &tmp)) { 41 | contents = std::stoi(Trim(tmp)); 42 | } 43 | 44 | return contents > 0; 45 | } 46 | 47 | Return AdaptiveBacklight::setEnabled(bool enabled) { 48 | return WriteStringToFile(enabled ? "1" : "0", kBacklightPath, true); 49 | } 50 | 51 | } // namespace implementation 52 | } // namespace V2_0 53 | } // namespace livedisplay 54 | } // namespace lineage 55 | } // namespace vendor 56 | -------------------------------------------------------------------------------- /hidl/livedisplay/AdaptiveBacklight.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H 18 | #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | namespace vendor { 25 | namespace lineage { 26 | namespace livedisplay { 27 | namespace V2_0 { 28 | namespace implementation { 29 | 30 | using ::android::hardware::hidl_array; 31 | using ::android::hardware::hidl_memory; 32 | using ::android::hardware::hidl_string; 33 | using ::android::hardware::hidl_vec; 34 | using ::android::hardware::Return; 35 | using ::android::hardware::Void; 36 | using ::android::sp; 37 | 38 | class AdaptiveBacklight : public IAdaptiveBacklight { 39 | public: 40 | Return isEnabled() override; 41 | Return setEnabled(bool enabled) override; 42 | }; 43 | 44 | } // namespace implementation 45 | } // namespace V2_0 46 | } // namespace livedisplay 47 | } // namespace lineage 48 | } // namespace vendor 49 | 50 | #endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H 51 | -------------------------------------------------------------------------------- /hidl/livedisplay/ReadingEnhancement.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H 18 | #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | namespace vendor { 25 | namespace lineage { 26 | namespace livedisplay { 27 | namespace V2_0 { 28 | namespace implementation { 29 | 30 | using ::android::hardware::hidl_array; 31 | using ::android::hardware::hidl_memory; 32 | using ::android::hardware::hidl_string; 33 | using ::android::hardware::hidl_vec; 34 | using ::android::hardware::Return; 35 | using ::android::hardware::Void; 36 | using ::android::sp; 37 | 38 | class ReadingEnhancement : public IReadingEnhancement { 39 | public: 40 | Return isEnabled() override; 41 | Return setEnabled(bool) override; 42 | }; 43 | 44 | } // namespace implementation 45 | } // namespace V2_0 46 | } // namespace livedisplay 47 | } // namespace lineage 48 | } // namespace vendor 49 | 50 | #endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H 51 | -------------------------------------------------------------------------------- /hidl/livedisplay/ReadingEnhancement.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include "ReadingEnhancement.h" 23 | 24 | using android::base::ReadFileToString; 25 | using android::base::Trim; 26 | using android::base::WriteStringToFile; 27 | 28 | namespace vendor { 29 | namespace lineage { 30 | namespace livedisplay { 31 | namespace V2_0 { 32 | namespace implementation { 33 | 34 | static constexpr const char* kREPath = "/sys/class/mdnie/mdnie/accessibility"; 35 | 36 | Return ReadingEnhancement::isEnabled() { 37 | std::string contents; 38 | 39 | if (ReadFileToString(kREPath, &contents)) { 40 | contents = Trim(contents); 41 | } 42 | 43 | return !contents.compare("Current accessibility : DSI0 : GRAYSCALE") || !contents.compare("4"); 44 | } 45 | 46 | Return ReadingEnhancement::setEnabled(bool enabled) { 47 | return WriteStringToFile(enabled ? "4" : "0", kREPath, true); 48 | } 49 | 50 | } // namespace implementation 51 | } // namespace V2_0 52 | } // namespace livedisplay 53 | } // namespace lineage 54 | } // namespace vendor 55 | -------------------------------------------------------------------------------- /hidl/livedisplay/SunlightEnhancement.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H 18 | #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | namespace vendor { 25 | namespace lineage { 26 | namespace livedisplay { 27 | namespace V2_0 { 28 | namespace implementation { 29 | 30 | using ::android::hardware::hidl_array; 31 | using ::android::hardware::hidl_memory; 32 | using ::android::hardware::hidl_string; 33 | using ::android::hardware::hidl_vec; 34 | using ::android::hardware::Return; 35 | using ::android::hardware::Void; 36 | using ::android::sp; 37 | 38 | class SunlightEnhancement : public ISunlightEnhancement { 39 | public: 40 | Return isEnabled() override; 41 | Return setEnabled(bool enabled) override; 42 | }; 43 | 44 | } // namespace implementation 45 | } // namespace V2_0 46 | } // namespace livedisplay 47 | } // namespace lineage 48 | } // namespace vendor 49 | 50 | #endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H 51 | -------------------------------------------------------------------------------- /hidl/livedisplay/SunlightEnhancement.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include "SunlightEnhancement.h" 23 | 24 | using android::base::ReadFileToString; 25 | using android::base::Trim; 26 | using android::base::WriteStringToFile; 27 | 28 | namespace vendor { 29 | namespace lineage { 30 | namespace livedisplay { 31 | namespace V2_0 { 32 | namespace implementation { 33 | 34 | static constexpr const char* kLUXPath = "/sys/class/mdnie/mdnie/lux"; 35 | 36 | Return SunlightEnhancement::isEnabled() { 37 | std::string tmp; 38 | int32_t contents = 0; 39 | 40 | if (ReadFileToString(kLUXPath, &tmp)) { 41 | contents = std::stoi(Trim(tmp)); 42 | } 43 | 44 | return contents > 0; 45 | } 46 | 47 | Return SunlightEnhancement::setEnabled(bool enabled) { 48 | /* see drivers/video/fbdev/exynos/decon_7880/panels/mdnie_lite_table*, get_hbm_index */ 49 | return WriteStringToFile(enabled ? "40000" : "0", kLUXPath, true); 50 | } 51 | 52 | } // namespace implementation 53 | } // namespace V2_0 54 | } // namespace livedisplay 55 | } // namespace lineage 56 | } // namespace vendor 57 | -------------------------------------------------------------------------------- /overlay/packages/apps/Snap/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | true 22 | 23 | 24 | false 25 | 26 | 27 | false 28 | 29 | 30 | false 31 | 32 | 33 | false 34 | 35 | 37 | video-size-values=3840x2160,2560x1440,1920x1080,1440x1080,1088x1088,1280x720,960x720,800x450,720x480,640x480,480x320,352x288,320x240,256x144,176x14 38 | 39 | -------------------------------------------------------------------------------- /ramdisk/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := fstab.samsungexynos8895 5 | LOCAL_MODULE_TAGS := optional 6 | LOCAL_MODULE_CLASS := ETC 7 | LOCAL_SRC_FILES := etc/fstab.samsungexynos8895 8 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 9 | include $(BUILD_PREBUILT) 10 | 11 | # Init scripts 12 | 13 | include $(CLEAR_VARS) 14 | LOCAL_MODULE := init.baseband.rc 15 | LOCAL_MODULE_TAGS := optional 16 | LOCAL_MODULE_CLASS := ETC 17 | LOCAL_SRC_FILES := etc/init.baseband.rc 18 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 19 | include $(BUILD_PREBUILT) 20 | 21 | include $(CLEAR_VARS) 22 | LOCAL_MODULE := init.samsungexynos8895.usb.rc 23 | LOCAL_MODULE_TAGS := optional 24 | LOCAL_MODULE_CLASS := ETC 25 | LOCAL_SRC_FILES := etc/init.samsungexynos8895.usb.rc 26 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 27 | include $(BUILD_PREBUILT) 28 | 29 | include $(CLEAR_VARS) 30 | LOCAL_MODULE := init.samsungexynos8895.rc 31 | LOCAL_MODULE_TAGS := optional 32 | LOCAL_MODULE_CLASS := ETC 33 | LOCAL_SRC_FILES := etc/init.samsungexynos8895.rc 34 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 35 | include $(BUILD_PREBUILT) 36 | 37 | include $(CLEAR_VARS) 38 | LOCAL_MODULE := init.samsung.rc 39 | LOCAL_MODULE_TAGS := optional 40 | LOCAL_MODULE_CLASS := ETC 41 | LOCAL_SRC_FILES := etc/init.samsung.rc 42 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 43 | include $(BUILD_PREBUILT) 44 | 45 | include $(CLEAR_VARS) 46 | LOCAL_MODULE := mobicore.rc 47 | LOCAL_MODULE_TAGS := optional 48 | LOCAL_MODULE_CLASS := ETC 49 | LOCAL_SRC_FILES := etc/mobicore.rc 50 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init 51 | include $(BUILD_PREBUILT) 52 | 53 | include $(CLEAR_VARS) 54 | LOCAL_MODULE := ueventd.samsungexynos8895.rc 55 | LOCAL_MODULE_TAGS := optional 56 | LOCAL_MODULE_CLASS := ETC 57 | LOCAL_SRC_FILES := etc/ueventd.samsungexynos8895.rc 58 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 59 | include $(BUILD_PREBUILT) 60 | -------------------------------------------------------------------------------- /hidl/livedisplay/DisplayColorCalibration.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H 18 | #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | namespace vendor { 25 | namespace lineage { 26 | namespace livedisplay { 27 | namespace V2_0 { 28 | namespace implementation { 29 | 30 | using ::android::hardware::hidl_array; 31 | using ::android::hardware::hidl_memory; 32 | using ::android::hardware::hidl_string; 33 | using ::android::hardware::hidl_vec; 34 | using ::android::hardware::Return; 35 | using ::android::hardware::Void; 36 | using ::android::sp; 37 | 38 | class DisplayColorCalibration : public IDisplayColorCalibration { 39 | public: 40 | Return getMaxValue() override; 41 | Return getMinValue() override; 42 | Return getCalibration(getCalibration_cb resultCb) override; 43 | Return setCalibration(const hidl_vec& rgb) override; 44 | }; 45 | 46 | } // namespace implementation 47 | } // namespace V2_0 48 | } // namespace livedisplay 49 | } // namespace lineage 50 | } // namespace vendor 51 | 52 | #endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H 53 | -------------------------------------------------------------------------------- /shims/libexynoscamera/CameraParameters.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace android { 18 | 19 | class CameraParameters 20 | { 21 | public: 22 | static const char PIXEL_FORMAT_YUV420SP_NV21[]; 23 | static const char EFFECT_CARTOONIZE[]; 24 | static const char EFFECT_POINT_RED_YELLOW[]; 25 | static const char EFFECT_POINT_GREEN[]; 26 | static const char EFFECT_POINT_BLUE[]; 27 | static const char EFFECT_VINTAGE_COLD[]; 28 | static const char EFFECT_VINTAGE_WARM[]; 29 | static const char EFFECT_WASHED[]; 30 | static const char ISO_AUTO[]; 31 | static const char ISO_NIGHT[]; 32 | static const char ISO_SPORTS[]; 33 | static const char ISO_6400[]; 34 | static const char ISO_3200[]; 35 | static const char ISO_1600[]; 36 | static const char ISO_800[]; 37 | static const char ISO_400[]; 38 | static const char ISO_200[]; 39 | static const char ISO_100[]; 40 | static const char ISO_80[]; 41 | static const char ISO_50[]; 42 | static const char KEY_SUPPORTED_METERING_MODE[]; 43 | static const char METERING_CENTER[]; 44 | static const char METERING_MATRIX[]; 45 | static const char METERING_SPOT[]; 46 | static const char METERING_OFF[]; 47 | static const char KEY_DYNAMIC_RANGE_CONTROL[]; 48 | static const char KEY_SUPPORTED_PHASE_AF[]; 49 | static const char KEY_PHASE_AF[]; 50 | static const char KEY_SUPPORTED_RT_HDR[]; 51 | static const char KEY_RT_HDR[]; 52 | }; 53 | 54 | }; // namespace android 55 | -------------------------------------------------------------------------------- /overlay/packages/apps/Messaging/res/xml/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | 23 | 24 | 25 | 26 | 1045876 27 | 28 | 29 | 2592 30 | 31 | 32 | 2592 33 | 34 | 37 | true 38 | 39 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /hidl/livedisplay/DisplayColorCalibration.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include "DisplayColorCalibration.h" 23 | 24 | using android::base::ReadFileToString; 25 | using android::base::Split; 26 | using android::base::Trim; 27 | using android::base::WriteStringToFile; 28 | 29 | namespace vendor { 30 | namespace lineage { 31 | namespace livedisplay { 32 | namespace V2_0 { 33 | namespace implementation { 34 | 35 | static constexpr const char* kColorPath = "/sys/class/mdnie/mdnie/sensorRGB"; 36 | 37 | Return DisplayColorCalibration::getMaxValue() { 38 | return 255; 39 | } 40 | 41 | Return DisplayColorCalibration::getMinValue() { 42 | return 1; 43 | } 44 | 45 | Return DisplayColorCalibration::getCalibration(getCalibration_cb resultCb) { 46 | std::vector rgb; 47 | std::string tmp; 48 | 49 | if (ReadFileToString(kColorPath, &tmp)) { 50 | std::vector colors = Split(Trim(tmp), " "); 51 | for (const std::string& color : colors) { 52 | rgb.push_back(std::stoi(color)); 53 | } 54 | } 55 | 56 | resultCb(rgb); 57 | return Void(); 58 | } 59 | 60 | Return DisplayColorCalibration::setCalibration(const hidl_vec& rgb) { 61 | std::string contents; 62 | for (const int32_t& color : rgb) { 63 | contents += std::to_string(color) + " "; 64 | } 65 | return WriteStringToFile(Trim(contents), kColorPath, true); 66 | } 67 | 68 | } // namespace implementation 69 | } // namespace V2_0 70 | } // namespace livedisplay 71 | } // namespace lineage 72 | } // namespace vendor 73 | -------------------------------------------------------------------------------- /ramdisk/etc/fstab.samsungexynos8895: -------------------------------------------------------------------------------- 1 | # Android fstab file. 2 | # The filesystem that contains the filesystem checker binary (typically /system) cannot 3 | # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK 4 | 5 | # 6 | /dev/block/platform/11120000.ufs/by-name/BOOT /boot emmc defaults defaults 7 | /dev/block/platform/11120000.ufs/by-name/RECOVERY /recovery emmc defaults defaults 8 | /dev/block/platform/11120000.ufs/by-name/SYSTEM /system ext4 ro,errors=panic,noload wait,recoveryonly 9 | /dev/block/platform/11120000.ufs/by-name/CACHE /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check 10 | /dev/block/platform/11120000.ufs/by-name/USERDATA /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,encryptable=/dev/block/platform/11120000.ufs/by-name/TOMBSTONES 11 | /dev/block/platform/11120000.ufs/by-name/EFS /efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,recoveryonly 12 | /dev/block/platform/11120000.ufs/by-name/CPEFS /cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,nofail 13 | 14 | # ADD FOR GOTA 15 | /dev/block/platform/11120000.ufs/by-name/MISC /misc emmc defaults defaults 16 | 17 | # VOLD 18 | /dev/block/platform/11120000.ufs/by-name/HIDDEN /preload ext4 defaults voldmanaged=preload:auto 19 | /devices/platform/11500000.dwmmc2/mmc_host* auto vfat defaults voldmanaged=sdcard:auto 20 | /devices/platform/10c00000.usb/10c00000.dwc3* auto auto defaults voldmanaged=usb:auto 21 | 22 | # ZRAM 23 | /dev/block/zram0 none swap defaults zramsize=1073741824 24 | -------------------------------------------------------------------------------- /shims/libexynoscamera/CameraParameters.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "CameraParameters.h" 18 | 19 | namespace android { 20 | 21 | const char CameraParameters::PIXEL_FORMAT_YUV420SP_NV21[] = "nv21"; 22 | const char CameraParameters::EFFECT_CARTOONIZE[] = "cartoonize"; 23 | const char CameraParameters::EFFECT_POINT_RED_YELLOW[] = "point-red-yellow"; 24 | const char CameraParameters::EFFECT_POINT_GREEN[] = "point-green"; 25 | const char CameraParameters::EFFECT_POINT_BLUE[] = "point-blue"; 26 | const char CameraParameters::EFFECT_VINTAGE_COLD[] = "vintage-cold"; 27 | const char CameraParameters::EFFECT_VINTAGE_WARM[] = "vintage-warm"; 28 | const char CameraParameters::EFFECT_WASHED[] = "washed"; 29 | const char CameraParameters::ISO_AUTO[] = "auto"; 30 | const char CameraParameters::ISO_NIGHT[] = "night"; 31 | const char CameraParameters::ISO_SPORTS[] = "sports"; 32 | const char CameraParameters::ISO_6400[] = "6400"; 33 | const char CameraParameters::ISO_3200[] = "3200"; 34 | const char CameraParameters::ISO_1600[] = "1600"; 35 | const char CameraParameters::ISO_800[] = "800"; 36 | const char CameraParameters::ISO_400[] = "400"; 37 | const char CameraParameters::ISO_200[] = "200"; 38 | const char CameraParameters::ISO_100[] = "100"; 39 | const char CameraParameters::ISO_80[] = "80"; 40 | const char CameraParameters::ISO_50[] = "50"; 41 | const char CameraParameters::KEY_SUPPORTED_METERING_MODE[] = "metering-values"; 42 | const char CameraParameters::METERING_CENTER[] = "center"; 43 | const char CameraParameters::METERING_MATRIX[] = "matrix"; 44 | const char CameraParameters::METERING_SPOT[] = "spot"; 45 | const char CameraParameters::METERING_OFF[] = "off"; 46 | const char CameraParameters::KEY_DYNAMIC_RANGE_CONTROL[] = "dynamic-range-control"; 47 | const char CameraParameters::KEY_SUPPORTED_PHASE_AF[] = "phase-af-values"; 48 | const char CameraParameters::KEY_PHASE_AF[] = "phase-af"; 49 | const char CameraParameters::KEY_SUPPORTED_RT_HDR[] = "rt-hdr-values"; 50 | const char CameraParameters::KEY_RT_HDR[] = "rt-hdr"; 51 | 52 | }; // namespace android -------------------------------------------------------------------------------- /extract-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2017-2019 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | set -e 19 | 20 | VENDOR=samsung 21 | DEVICE_COMMON=universal8895-common 22 | 23 | # Load extract_utils and do some sanity checks 24 | MY_DIR="${BASH_SOURCE%/*}" 25 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi 26 | 27 | LINEAGE_ROOT="${MY_DIR}"/../../.. 28 | 29 | HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" 30 | if [ ! -f "${HELPER}" ]; then 31 | echo "Unable to find helper script at ${HELPER}" 32 | exit 1 33 | fi 34 | source "${HELPER}" 35 | 36 | SECTION= 37 | KANG= 38 | 39 | while [ "${#}" -gt 0 ]; do 40 | case "${1}" in 41 | -n | --no-cleanup ) 42 | CLEAN_VENDOR=false 43 | ;; 44 | -k | --kang ) 45 | KANG="--kang" 46 | ;; 47 | -s | --section ) 48 | SECTION="${2}"; shift 49 | CLEAN_VENDOR=false 50 | ;; 51 | * ) 52 | SRC="${1}" 53 | ;; 54 | esac 55 | shift 56 | done 57 | 58 | if [ -z "${SRC}" ]; then 59 | SRC="adb" 60 | fi 61 | 62 | # Initialize the helper 63 | setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}" 64 | 65 | extract "$MY_DIR"/proprietary-files.txt "$SRC" 66 | 67 | # Fix proprietary blobs 68 | BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary 69 | 70 | sed -i "s/xliff=\"urn:oasis:names:tc:xliff:document:1.2\"/android=\"http:\/\/schemas.android.com\/apk\/res\/android\"/" $BLOB_ROOT/etc/nfcee_access.xml 71 | sed -i -z "s/ seclabel u:r:gpsd:s0\n//" $BLOB_ROOT/vendor/etc/init/init.gps.rc 72 | sed -i -z "s/-g@android:wpa_wlan0\n class main\n/-g@android:wpa_wlan0\n interface android.hardware.wifi.supplicant@1.0::ISupplicant default\n interface android.hardware.wifi.supplicant@1.1::ISupplicant default\n interface android.hardware.wifi.supplicant@1.2::ISupplicant default\n class main\n/" $BLOB_ROOT/vendor/etc/init/wifi.rc 73 | sed -i -z "s/ setprop wifi.interface wlan0\n\n/ setprop wifi.interface wlan0\n setprop wifi.concurrent.interface swlan0\n\n/" $BLOB_ROOT/vendor/etc/init/wifi.rc 74 | 75 | # replace SSLv3_client_method with SSLv23_method 76 | sed -i "s/SSLv3_client_method/SSLv23_method\x00\x00\x00\x00\x00\x00/" $BLOB_ROOT/vendor/bin/hw/gpsd 77 | 78 | "${MY_DIR}/setup-makefiles.sh" 79 | -------------------------------------------------------------------------------- /overlay/lineage-sdk/lineage/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | true 20 | 21 | 35 | 75 36 | 37 | 49 | 72 50 | 51 | 63 | 73 64 | 65 | 66 | true 67 | 68 | 69 | -------------------------------------------------------------------------------- /system_prop.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | PRODUCT_PROPERTY_OVERRIDES += \ 18 | ro.arch=exynos8895 \ 19 | persist.demo.hdmirotationlock=false \ 20 | dev.usbsetting.embedded=on \ 21 | ro.opengles.version=196610 \ 22 | debug.slsi_platform=1 \ 23 | debug.hwc.winupdate=1 \ 24 | debug.sf.disable_backpressure=1 \ 25 | ro.hdcp2.rx=tz \ 26 | keyguard.no_require_sim=true \ 27 | ro.carrier=unknown \ 28 | vendor.sec.rild.libpath=/vendor/lib64/libsec-ril.so \ 29 | vendor.sec.rild.libpath2=/vendor/lib64/libsec-ril-dsds.so \ 30 | ro.dalvik.vm.native.bridge=0 \ 31 | security.ASKS.policy_version=000000 \ 32 | security.mdf.result=None \ 33 | security.mdf=None \ 34 | ro.security.mdf.ux=Enabled \ 35 | ro.security.mdf.ver=3.1 \ 36 | ro.security.wlan.ver=1.0 \ 37 | ro.security.wlan.release=2 \ 38 | ro.security.mdf.release=4 \ 39 | ro.security.fips.ux=Enabled \ 40 | ro.security.fips_bssl.ver=1.3 \ 41 | ro.security.fips_skc.ver=1.8 \ 42 | ro.security.fips_scrypto.ver=2.0 \ 43 | ro.security.fips_fmp.ver=1.2 \ 44 | ro.sf.lcd_density=480 \ 45 | ro.sf.init.lcd_density=640 \ 46 | ro.build.scafe.version=2019A \ 47 | ro.error.receiver.default=com.samsung.receiver.error \ 48 | ro.config.ringtone=Over_the_Horizon.ogg \ 49 | ro.config.notification_sound=Skyline.ogg \ 50 | ro.config.alarm_alert=Morning_Glory.ogg \ 51 | ro.config.media_sound=Media_preview_Touch_the_light.ogg \ 52 | ro.config.ringtone_2=Basic_Bell.ogg \ 53 | ro.config.notification_sound_2=S_Charming_Bell.ogg \ 54 | ro.hardware.keystore=mdfpp \ 55 | ro.security.vpnpp.ver=2.1 \ 56 | ro.security.vpnpp.release=2.0 \ 57 | sys.config.activelaunch_enable=true \ 58 | ro.frp.pst=/dev/block/persistent \ 59 | persist.sys.tcpOptimizer.on=1 \ 60 | ro.config.dha_cached_min=6 \ 61 | ro.config.dha_cached_max=16 \ 62 | ro.cfg.dha_cached_max=24 \ 63 | ro.config.dha_empty_min=8 \ 64 | ro.config.dha_empty_init=24 \ 65 | ro.config.dha_empty_max=24 \ 66 | ro.cfg.dha_empty_max=30 \ 67 | ro.cfg.dha_empty_init=30 \ 68 | ro.config.fha_enable=true \ 69 | ro.cfg.enable_userspace_lmk=true \ 70 | ro.cfg.kill_heaviest_task=true \ 71 | ro.cfg.custom_tm_limit=1000 \ 72 | ro.cfg.custom_sw_limit=275 \ 73 | ro.cfg.enable_reentry_lmk=true \ 74 | sys.use_fifo_ui=0 \ 75 | ro.config.systemaudiodebug=abox&codecdsp \ 76 | ro.gfx.driver.0=com.samsung.gpudriver.S8MaliG71_90 \ 77 | ro.hardware.egl=mali \ 78 | ro.zygote.disable_gl_preload=true \ 79 | ro.config.vc_call_vol_steps=5 \ 80 | debug.sf.latch_unsignaled=1 \ 81 | debug.stagefright.ccodec=0 82 | 83 | # Wifi 84 | PRODUCT_PROPERTY_OVERRIDES += \ 85 | wifi.direct.interface=p2p-dev-wlan0 \ 86 | persist.debug.wfd.enable=1 87 | 88 | # Configstore 89 | PRODUCT_PROPERTY_OVERRIDES += \ 90 | ro.surface_flinger.max_frame_buffer_acquired_buffers=3 91 | -------------------------------------------------------------------------------- /setup-makefiles.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2017-2019 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | 19 | VENDOR=samsung 20 | DEVICE_COMMON=universal8895-common 21 | 22 | export INITIAL_COPYRIGHT_YEAR=2017 23 | 24 | # Load extract_utils and do some sanity checks 25 | MY_DIR="${BASH_SOURCE%/*}" 26 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi 27 | 28 | LINEAGE_ROOT="${MY_DIR}/../../.." 29 | 30 | HELPER="${LINEAGE_ROOT}/vendor/lineage/build/tools/extract_utils.sh" 31 | if [ ! -f "${HELPER}" ]; then 32 | echo "Unable to find helper script at ${HELPER}" 33 | exit 1 34 | fi 35 | source "${HELPER}" 36 | 37 | # Initialize the helper 38 | setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true 39 | 40 | # Copyright headers and guards 41 | write_headers "dreamlte dream2lte greatlte" 42 | 43 | # The standard blobs 44 | write_makefiles "${MY_DIR}/proprietary-files.txt" true 45 | 46 | ################################################################################################### 47 | # CUSTOM PART START # 48 | ################################################################################################### 49 | OUTDIR=vendor/$VENDOR/$DEVICE_COMMON 50 | (cat << EOF) >> $LINEAGE_ROOT/$OUTDIR/Android.mk 51 | include \$(CLEAR_VARS) 52 | LOCAL_MODULE := libGLES_mali 53 | LOCAL_MODULE_OWNER := samsung 54 | LOCAL_SRC_FILES_64 := proprietary/vendor/lib64/egl/libGLES_mali.so 55 | LOCAL_SRC_FILES_32 := proprietary/vendor/lib/egl/libGLES_mali.so 56 | LOCAL_MULTILIB := both 57 | LOCAL_MODULE_TAGS := optional 58 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 59 | LOCAL_MODULE_SUFFIX := .so 60 | LOCAL_MODULE_PATH_32 := \$(\$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES)/egl 61 | LOCAL_MODULE_PATH_64 := \$(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/egl 62 | 63 | SYMLINKS := \$(TARGET_OUT)/vendor 64 | \$(SYMLINKS): 65 | @mkdir -p \$@/lib/hw 66 | @mkdir -p \$@/lib64/hw 67 | @echo "Symlink: libOpenCL.so" 68 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so 69 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib64/libOpenCL.so 70 | @echo "Symlink: libOpenCL.so.1" 71 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so.1 72 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib64/libOpenCL.so.1 73 | @echo "Symlink: libOpenCL.so.1.1" 74 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib/libOpenCL.so.1.1 75 | \$(hide) ln -sf egl/libGLES_mali.so \$@/lib64/libOpenCL.so.1.1 76 | 77 | ALL_MODULES.\$(LOCAL_MODULE).INSTALLED := \\ 78 | \$(ALL_MODULES.\$(LOCAL_MODULE).INSTALLED) \$(SYMLINKS) 79 | 80 | include \$(BUILD_PREBUILT) 81 | 82 | EOF 83 | 84 | (cat << EOF) >> $LINEAGE_ROOT/$OUTDIR/$DEVICE_COMMON-vendor.mk 85 | 86 | # Create Mali links for Vulkan and OpenCL 87 | PRODUCT_PACKAGES += libGLES_mali 88 | EOF 89 | ################################################################################################### 90 | # CUSTOM PART END # 91 | ################################################################################################### 92 | 93 | # Finish 94 | write_footers 95 | -------------------------------------------------------------------------------- /hidl/livedisplay/service.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 The LineageOS Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #define LOG_TAG "vendor.lineage.livedisplay@2.0-service.universal8895" 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | #include "AdaptiveBacklight.h" 24 | #include "DisplayColorCalibration.h" 25 | #include "ReadingEnhancement.h" 26 | #include "SunlightEnhancement.h" 27 | 28 | using android::hardware::configureRpcThreadpool; 29 | using android::hardware::joinRpcThreadpool; 30 | using android::OK; 31 | using android::sp; 32 | using android::status_t; 33 | 34 | using vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight; 35 | using vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration; 36 | using vendor::lineage::livedisplay::V2_0::implementation::AdaptiveBacklight; 37 | using vendor::lineage::livedisplay::V2_0::implementation::DisplayColorCalibration; 38 | using vendor::lineage::livedisplay::V2_0::implementation::ReadingEnhancement; 39 | using vendor::lineage::livedisplay::V2_0::implementation::SunlightEnhancement; 40 | using vendor::lineage::livedisplay::V2_0::IReadingEnhancement; 41 | using vendor::lineage::livedisplay::V2_0::ISunlightEnhancement; 42 | 43 | int main() { 44 | sp adaptiveBacklight; 45 | sp displayColorCalibration; 46 | sp readingEnhancement; 47 | sp sunlightEnhancement; 48 | status_t status; 49 | 50 | LOG(INFO) << "LiveDisplay HAL service is starting."; 51 | 52 | adaptiveBacklight = new AdaptiveBacklight(); 53 | if (adaptiveBacklight == nullptr) { 54 | LOG(ERROR) 55 | << "Can not create an instance of LiveDisplay HAL AdaptiveBacklight Iface, exiting."; 56 | goto shutdown; 57 | } 58 | 59 | displayColorCalibration = new DisplayColorCalibration(); 60 | if (displayColorCalibration == nullptr) { 61 | LOG(ERROR) << "Can not create an instance of LiveDisplay HAL DisplayColorCalibration " 62 | "Iface, exiting."; 63 | goto shutdown; 64 | } 65 | 66 | readingEnhancement = new ReadingEnhancement(); 67 | if (readingEnhancement == nullptr) { 68 | LOG(ERROR) 69 | << "Can not create an instance of LiveDisplay HAL ReadingEnhancement Iface, exiting."; 70 | goto shutdown; 71 | } 72 | 73 | sunlightEnhancement = new SunlightEnhancement(); 74 | if (sunlightEnhancement == nullptr) { 75 | LOG(ERROR) 76 | << "Can not create an instance of LiveDisplay HAL SunlightEnhancement Iface, exiting."; 77 | goto shutdown; 78 | } 79 | 80 | configureRpcThreadpool(1, true /*callerWillJoin*/); 81 | 82 | status = adaptiveBacklight->registerAsService(); 83 | if (status != OK) { 84 | LOG(ERROR) << "Could not register service for LiveDisplay HAL AdaptiveBacklight Iface (" 85 | << status << ")"; 86 | goto shutdown; 87 | } 88 | 89 | status = displayColorCalibration->registerAsService(); 90 | if (status != OK) { 91 | LOG(ERROR) 92 | << "Could not register service for LiveDisplay HAL DisplayColorCalibration Iface (" 93 | << status << ")"; 94 | goto shutdown; 95 | } 96 | 97 | status = readingEnhancement->registerAsService(); 98 | if (status != OK) { 99 | LOG(ERROR) << "Could not register service for LiveDisplay HAL ReadingEnhancement Iface (" 100 | << status << ")"; 101 | goto shutdown; 102 | } 103 | 104 | status = sunlightEnhancement->registerAsService(); 105 | if (status != OK) { 106 | LOG(ERROR) << "Could not register service for LiveDisplay HAL SunlightEnhancement Iface (" 107 | << status << ")"; 108 | goto shutdown; 109 | } 110 | 111 | LOG(INFO) << "LiveDisplay HAL service is ready."; 112 | joinRpcThreadpool(); 113 | // Should not pass this line 114 | 115 | shutdown: 116 | // In normal operation, we don't expect the thread pool to shutdown 117 | LOG(ERROR) << "LiveDisplay HAL service is shutting down."; 118 | return 1; 119 | } 120 | -------------------------------------------------------------------------------- /BoardConfigCommon.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := device/samsung/universal8895-common 18 | 19 | BUILD_BROKEN_DUP_RULES := true 20 | 21 | # Include path 22 | TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include 23 | 24 | # Audio 25 | USE_XML_AUDIO_POLICY_CONF := 1 26 | 27 | # Bluetooth 28 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth 29 | 30 | # Firmware 31 | TARGET_NO_BOOTLOADER := true 32 | TARGET_NO_RADIOIMAGE := true 33 | 34 | # Platform 35 | TARGET_BOARD_PLATFORM := exynos5 36 | TARGET_SOC := exynos8895 37 | TARGET_BOOTLOADER_BOARD_NAME := universal8895 38 | BOARD_VENDOR := samsung 39 | 40 | # Architecture 41 | TARGET_ARCH := arm64 42 | TARGET_ARCH_VARIANT := armv8-a 43 | TARGET_CPU_ABI := arm64-v8a 44 | TARGET_CPU_ABI2 := 45 | TARGET_CPU_VARIANT := exynos-m1 46 | 47 | # Secondary Architecture 48 | TARGET_2ND_ARCH := arm 49 | TARGET_2ND_ARCH_VARIANT := armv8-a 50 | TARGET_2ND_CPU_ABI := armeabi-v7a 51 | TARGET_2ND_CPU_ABI2 := armeabi 52 | TARGET_2ND_CPU_VARIANT := cortex-a53.a57 53 | 54 | # Binder 55 | TARGET_USES_64_BIT_BINDER := true 56 | 57 | # Apex 58 | DEXPREOPT_GENERATE_APEX_IMAGE := true 59 | 60 | # Extracted with libbootimg 61 | BOARD_CUSTOM_BOOTIMG := true 62 | BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk 63 | BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 64 | BOARD_KERNEL_BASE := 0x10000000 65 | BOARD_KERNEL_PAGESIZE := 2048 66 | BOARD_KERNEL_IMAGE_NAME := Image 67 | #BOARD_KERNEL_CMDLINE := The bootloader ignores the cmdline from the boot.img 68 | BOARD_KERNEL_SEPARATED_DT := true 69 | TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos 70 | BOARD_ROOT_EXTRA_FOLDERS += efs cpefs 71 | TARGET_KERNEL_CLANG_COMPILE := true 72 | 73 | # Kernel 74 | TARGET_KERNEL_ARCH := arm64 75 | TARGET_KERNEL_HEADER_ARCH := arm64 76 | 77 | # Kernel config 78 | TARGET_KERNEL_SOURCE := kernel/samsung/universal8895 79 | 80 | # Use these flags if the board has a ext4 partition larger than 2gb 81 | BOARD_HAS_LARGE_FILESYSTEM := true 82 | TARGET_USERIMAGES_USE_EXT4 := true 83 | TARGET_USERIMAGES_USE_F2FS := true 84 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 85 | 86 | # Partitions 87 | BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040 #(40960 sda7) 88 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 48234496 #(47104 sda8) 89 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4508876800 #(4454400 sda17) 90 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 58556678144 #(57184256 sda24) 91 | BOARD_CACHEIMAGE_PARTITION_SIZE := 524288000 #(512000 sda18) 92 | BOARD_FLASH_BLOCK_SIZE := 4096 93 | 94 | # Exclude AudioFX 95 | TARGET_EXCLUDES_AUDIOFX := true 96 | 97 | # Vendor separation 98 | TARGET_COPY_OUT_VENDOR := system/vendor 99 | 100 | # Properties 101 | TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop 102 | 103 | # Device Tree 104 | BOARD_USES_DT := true 105 | 106 | # Renderscript 107 | OVERRIDE_RS_DRIVER := libRSDriverArm.so 108 | 109 | # Samsung HALs 110 | TARGET_POWERHAL_VARIANT := samsung 111 | 112 | # Bluetooth 113 | BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/libbt_vndcfg.txt 114 | BOARD_HAVE_BLUETOOTH := true 115 | 116 | # Backlight 117 | BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness" 118 | 119 | # Recovery 120 | TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/ramdisk/etc/fstab.samsungexynos8895 121 | 122 | # Wifi 123 | TARGET_USES_64_BIT_BCMDHD := true 124 | BOARD_WLAN_DEVICE := bcmdhd 125 | WPA_SUPPLICANT_VERSION := VER_0_8_X 126 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 127 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 128 | WPA_SUPPLICANT_USE_HIDL := true 129 | BOARD_HOSTAPD_DRIVER := NL80211 130 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 131 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" 132 | WIFI_DRIVER_NVRAM_PATH_PARAM := "/sys/module/dhd/parameters/nvram_path" 133 | WIFI_DRIVER_NVRAM_PATH := "/vendor/etc/wifi/nvram_net.txt" 134 | WIFI_DRIVER_FW_PATH_STA := "/vendor/etc/wifi/bcmdhd_sta.bin" 135 | WIFI_DRIVER_FW_PATH_AP := "/vendor/etc/wifi/bcmdhd_apsta.bin" 136 | WIFI_BAND := 802_11_ABG 137 | WIFI_HIDL_FEATURE_DUAL_INTERFACE := true 138 | WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION := true 139 | 140 | # MACLOADER 141 | BOARD_HAVE_SAMSUNG_WIFI := true 142 | 143 | BOARD_SEPOLICY_DIRS += device/samsung/universal8895-common/sepolicy 144 | BOARD_SEPOLICY_VERS := $(PLATFORM_SDK_VERSION).0 145 | 146 | # Shims 147 | TARGET_LD_SHIM_LIBS += \ 148 | /system/lib/libexynoscamera.so|/vendor/lib/libexynoscamera_shim.so \ 149 | /system/lib64/libexynoscamera.so|/vendor/lib64/libexynoscamera_shim.so 150 | 151 | # Soong namespaces 152 | PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) 153 | -------------------------------------------------------------------------------- /configs/audio/audio_policy_configuration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Earpiece 12 | Speaker 13 | Built-In Mic 14 | Built-In Back Mic 15 | Voice Call Mic 16 | 17 | 18 | Speaker 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 47 | 48 | 50 | 51 | 52 | 54 | 55 | 56 | 58 | 59 | 60 | 62 | 63 | 64 | 66 | 67 | 68 | 70 | 71 | 72 | 74 | 75 | 76 | 77 | 78 | 81 | 82 | 83 | 86 | 87 | 88 | 91 | 92 | 93 | 96 | 97 | 98 | 101 | 102 | 103 | 106 | 107 | 108 | 109 | 110 | 111 | 113 | 115 | 117 | 119 | 121 | 123 | 125 | 127 | 128 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /ramdisk/etc/ueventd.samsungexynos8895.rc: -------------------------------------------------------------------------------- 1 | /dev/mali0 0666 system system 2 | /dev/ion 0666 system system 3 | /dev/ump 0666 system graphics 4 | /dev/exynos-mem 0660 system graphics 5 | /dev/video0 0660 system camera 6 | /dev/video1 0660 system camera 7 | /dev/video2 0660 system camera 8 | /dev/video3 0660 system camera 9 | /dev/video20 0660 system system 10 | # media0 is used for GSC, DECON, etc 11 | /dev/media0 0660 system camera 12 | # media1 is used for DECON Ext WB 13 | /dev/media1 0660 system graphics 14 | # Various devices use the v4l-subdev interface 15 | # We declare all such nodes simultaneously here 16 | /dev/v4l-subdev0 0660 system camera 17 | /dev/v4l-subdev1 0660 system camera 18 | /dev/v4l-subdev2 0660 system camera 19 | /dev/v4l-subdev3 0660 system camera 20 | /dev/v4l-subdev4 0660 system camera 21 | /dev/v4l-subdev5 0660 system camera 22 | /dev/v4l-subdev6 0660 system camera 23 | /dev/v4l-subdev7 0660 system camera 24 | /dev/v4l-subdev8 0660 system camera 25 | /dev/v4l-subdev9 0660 system camera 26 | /dev/v4l-subdev10 0660 system camera 27 | /dev/v4l-subdev11 0660 system camera 28 | /dev/v4l-subdev12 0660 system camera 29 | /dev/v4l-subdev13 0660 system camera 30 | /dev/v4l-subdev14 0660 system camera 31 | /dev/v4l-subdev15 0660 system camera 32 | /dev/v4l-subdev16 0660 system camera 33 | /dev/v4l-subdev17 0660 system camera 34 | /dev/v4l-subdev18 0660 system camera 35 | /dev/v4l-subdev19 0660 system camera 36 | # v4l-subdev20 is used for DECON Ext WB 37 | /dev/v4l-subdev20 0660 system graphics 38 | /dev/v4l-subdev21 0660 system graphics 39 | /dev/v4l-subdev32 0660 system graphics 40 | 41 | # gscalers 42 | /dev/video23 0660 media graphics 43 | /dev/video26 0660 media graphics 44 | /dev/video24 0660 media graphics 45 | /dev/video27 0660 media graphics 46 | /dev/video29 0660 media graphics 47 | /dev/video30 0660 media graphics 48 | # video31 is used for DECON Ext WB 49 | /dev/video31 0660 media graphics 50 | 51 | # mscalers 52 | /dev/video50 0666 media graphics 53 | /dev/m2m1shot_scaler0 0666 cameraserver graphics 54 | 55 | /dev/video55 0666 system graphics 56 | /dev/fimg2d 0666 system graphics 57 | /dev/i2c-2 0660 system system 58 | /dev/HPD 0660 system system 59 | 60 | # mfc 61 | /dev/video6 0660 mediacodec mediadrm 62 | /dev/video7 0660 media mediadrm 63 | /dev/video8 0660 media mediadrm 64 | /dev/video9 0660 media mediadrm 65 | 66 | # camera 67 | /dev/video101 0660 cameraserver camera 68 | /dev/video102 0660 cameraserver camera 69 | /dev/video103 0660 cameraserver camera 70 | /dev/video104 0660 cameraserver camera 71 | /dev/video107 0660 cameraserver camera 72 | /dev/video109 0660 cameraserver camera 73 | /dev/video110 0660 cameraserver camera 74 | /dev/video111 0660 cameraserver camera 75 | /dev/video112 0660 cameraserver camera 76 | /dev/video120 0660 cameraserver camera 77 | /dev/video121 0660 cameraserver camera 78 | /dev/video122 0660 cameraserver camera 79 | /dev/video130 0660 cameraserver camera 80 | /dev/video131 0660 cameraserver camera 81 | /dev/video132 0660 cameraserver camera 82 | /dev/video140 0660 cameraserver camera 83 | /dev/video141 0660 cameraserver camera 84 | /dev/video142 0660 cameraserver camera 85 | /dev/video151 0660 cameraserver camera 86 | /dev/video152 0660 cameraserver camera 87 | /dev/video160 0660 cameraserver camera 88 | /dev/video161 0660 cameraserver camera 89 | /dev/video170 0660 cameraserver camera 90 | /dev/video171 0660 cameraserver camera 91 | /dev/video172 0660 cameraserver camera 92 | /dev/video173 0660 cameraserver camera 93 | /dev/video174 0660 cameraserver camera 94 | /dev/video180 0660 cameraserver camera 95 | /dev/video190 0660 cameraserver camera 96 | /dev/video191 0660 cameraserver camera 97 | /dev/video192 0660 cameraserver camera 98 | /dev/video193 0660 cameraserver camera 99 | /dev/video210 0660 cameraserver camera 100 | /dev/video211 0660 cameraserver camera 101 | /dev/video212 0660 cameraserver camera 102 | /dev/video213 0660 cameraserver camera 103 | /dev/video214 0660 cameraserver camera 104 | /dev/video215 0660 cameraserver camera 105 | /dev/video216 0660 cameraserver camera 106 | /dev/video217 0660 cameraserver camera 107 | /dev/video218 0660 cameraserver camera 108 | /dev/video219 0660 cameraserver camera 109 | /dev/video220 0660 cameraserver camera 110 | /dev/video221 0660 cameraserver camera 111 | /dev/video222 0660 cameraserver camera 112 | /dev/video223 0660 cameraserver camera 113 | /dev/video224 0660 cameraserver camera 114 | /dev/video225 0660 cameraserver camera 115 | /dev/media2 0660 media media 116 | /dev/hdcp2 0660 media media 117 | 118 | # jpeg 119 | /dev/m2m1shot_jpeg 0660 media media 120 | /dev/video12 0660 cameraserver media 121 | 122 | # audio 123 | /dev/seiren 0660 system audio 124 | 125 | # MobiCore 126 | #/dev/mobicore 0600 drmrpc drmrpc 127 | #/dev/mobicore-user 0660 drm drmrpc 128 | 129 | # DM tools 130 | /dev/umts_dm0 0660 radio radio 131 | /dev/umts_router 0660 radio radio 132 | 133 | # SIPC RIL 134 | /dev/umts_boot0 0660 radio radio 135 | /dev/umts_ipc0 0660 radio radio 136 | /dev/umts_ipc1 0660 radio radio 137 | /dev/umts_rfs0 0660 radio radio 138 | 139 | 140 | 141 | # Secure MEM driver 142 | #/dev/s5p-smem 0660 drm drmrpc 143 | 144 | #temporary 145 | /data/modem.bin 0400 radio system 146 | 147 | # Modem Interface 148 | /dev/block/platform/11120000.ufs/by-name/RADIO 0660 system radio 149 | /dev/block/platform/11120000.ufs/by-name/CP_DEBUG 0660 radio system 150 | /dev/umts* 0660 system radio 151 | /dev/umts_csd 0660 system loop_radio 152 | /dev/smd4 0660 system radio 153 | /dev/ramdump_memshare 0660 system radio 154 | 155 | # interactive governor parameters 156 | /sys/devices/system/cpu/cpu* cpufreq/interactive/timer_rate 0660 system system 157 | /sys/devices/system/cpu/cpu* cpufreq/interactive/timer_slack 0660 system system 158 | /sys/devices/system/cpu/cpu* cpufreq/interactive/min_sample_time 0660 system system 159 | /sys/devices/system/cpu/cpu* cpufreq/interactive/hispeed_freq 0660 system system 160 | /sys/devices/system/cpu/cpu* cpufreq/interactive/target_loads 0660 system system 161 | /sys/devices/system/cpu/cpu* cpufreq/interactive/go_hispeed_load 0660 system system 162 | /sys/devices/system/cpu/cpu* cpufreq/interactive/above_hispeed_delay 0660 system system 163 | /sys/devices/system/cpu/cpu* cpufreq/interactive/boost 0660 system system 164 | /sys/devices/system/cpu/cpu* cpufreq/interactive/boostpulse 0200 system system 165 | /sys/devices/system/cpu/cpu* cpufreq/interactive/input_boost 0660 system system 166 | /sys/devices/system/cpu/cpu* cpufreq/interactive/boostpulse_duration 0660 system system 167 | /sys/devices/system/cpu/cpu* cpufreq/interactive/io_is_busy 0660 system system 168 | /sys/devices/system/cpu/cpu* cpufreq/interactive/param_index 0660 system system 169 | /sys/devices/system/cpu/cpu* cpufreq/interactive/mode 0660 system system 170 | 171 | # Vision (VPU, SCORE) 172 | /dev/vertex0 0660 media media 173 | /dev/vertex1 0660 media media 174 | /dev/iva_ctl 0660 media media 175 | 176 | # sensor sysfs properties 177 | /sys/devices/virtual/input/input* poll_delay 0660 system radio 178 | /sys/devices/virtual/input/input* enable 0660 system radio 179 | /dev/input/event* 0660 system input 180 | 181 | # Sensorhub IIO 182 | /dev/ssp_sensorhub 0660 system system 183 | /dev/batch_io 0600 system system 184 | /dev/iio:device* 0660 system system 185 | /sys/devices/platform/108c0000.spi/spi_master/spi10/spi10.0/iio:device* buffer/enable 0660 system system 186 | /sys/devices/platform/108c0000.spi/spi_master/spi10/spi10.0/iio:device* buffer/length 0660 system system 187 | /sys/bus/iio/devices/iio:device* 0664 system radio 188 | /sys/bus/iio/devices/iio:device* poll_delay 0660 system system 189 | 190 | # Broadcom Sensorhub Bridge Driver 191 | /dev/bbd_sensor 0660 system system 192 | /dev/bbd_control 0660 system system 193 | /dev/bbd_packet 0660 system system 194 | /dev/bbd_reliable 0660 system system 195 | /dev/bbd_sio 0660 system system 196 | /dev/bbd_patch 0660 system system 197 | /dev/ttyBCM* 0660 system system 198 | 199 | # Google FRP solution 200 | /dev/block/platform/11120000.ufs/by-name/PERSISTENT 0660 system system 201 | 202 | /dev/block/platform/11120000.ufs/by-name/STEADY 0660 system system 203 | 204 | # CDMA radio interface MUX 205 | /dev/ts0710mux* 0640 radio radio 206 | /dev/ppp 0660 radio vpn 207 | 208 | # sysfs properties 209 | /sys/devices/platform/trusty.* trusty_version 0440 root log 210 | /sys/devices/virtual/input/input* enable 0660 root input 211 | /sys/devices/virtual/input/input* poll_delay 0660 root input 212 | /sys/devices/virtual/usb_composite/* enable 0664 root system 213 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 214 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 215 | 216 | # DVB API device nodes 217 | /dev/dvb* 0660 root system 218 | 219 | # MobiCore 220 | /dev/mobicore 0700 system system 221 | /dev/mobicore-user 0666 radio system 222 | 223 | # Secure MEM driver 224 | /dev/s5p-smem 0660 system system 225 | 226 | # sensorhub 227 | /dev/ssp_sensorhub 0660 system system 228 | /dev/ssp_data_injection 0660 system system 229 | 230 | # Fingerprint Sensor 231 | /dev/vfsspi 0660 system system 232 | /dev/esfp0 0660 system system 233 | 234 | # Reactivation lock 235 | /dev/block/platform/11120000.ufs/by-name/STEADY 0660 system system 236 | -------------------------------------------------------------------------------- /manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android.hardware.audio 4 | hwbinder 5 | 2.0 6 | 7 | IDevicesFactory 8 | default 9 | 10 | 11 | 12 | android.hardware.audio.effect 13 | hwbinder 14 | 2.0 15 | 16 | IEffectsFactory 17 | default 18 | 19 | 20 | 21 | android.hardware.biometrics.fingerprint 22 | hwbinder 23 | 2.1 24 | 25 | IBiometricsFingerprint 26 | default 27 | 28 | 29 | 30 | android.hardware.bluetooth 31 | hwbinder 32 | 1.0 33 | 34 | IBluetoothHci 35 | default 36 | 37 | 38 | 39 | android.hardware.camera.provider 40 | hwbinder 41 | 2.4 42 | 43 | ICameraProvider 44 | legacy/0 45 | 46 | 47 | 48 | android.hardware.cas 49 | hwbinder 50 | 1.0 51 | 52 | IMediaCasService 53 | default 54 | 55 | 56 | 57 | android.hardware.configstore 58 | hwbinder 59 | 1.1 60 | 61 | ISurfaceFlingerConfigs 62 | default 63 | 64 | 65 | 66 | android.hardware.drm 67 | hwbinder 68 | 1.0 69 | 70 | ICryptoFactory 71 | default 72 | 73 | 74 | IDrmFactory 75 | default 76 | 77 | @1.0::ICryptoFactory/default 78 | @1.0::IDrmFactory/default 79 | @1.2::ICryptoFactory/clearkey 80 | @1.1::ICryptoFactory/widevine 81 | @1.2::IDrmFactory/clearkey 82 | @1.1::IDrmFactory/widevine 83 | 84 | 85 | android.hardware.gatekeeper 86 | hwbinder 87 | 1.0 88 | 89 | IGatekeeper 90 | default 91 | 92 | 93 | 94 | android.hardware.gnss 95 | hwbinder 96 | 1.1 97 | 98 | IGnss 99 | default 100 | 101 | 102 | 103 | android.hardware.graphics.allocator 104 | hwbinder 105 | 2.0 106 | 107 | IAllocator 108 | default 109 | 110 | 111 | 112 | android.hardware.graphics.composer 113 | hwbinder 114 | 2.2 115 | 116 | IComposer 117 | default 118 | 119 | 120 | 121 | android.hardware.graphics.mapper 122 | passthrough 123 | 2.0 124 | 125 | IMapper 126 | default 127 | 128 | 129 | 130 | android.hardware.health 131 | hwbinder 132 | 2.0 133 | 134 | IHealth 135 | default 136 | 137 | 138 | 139 | android.hardware.keymaster 140 | hwbinder 141 | 3.0 142 | 143 | IKeymasterDevice 144 | default 145 | 146 | 147 | 148 | android.hardware.light 149 | hwbinder 150 | 2.0 151 | 152 | ILight 153 | default 154 | 155 | 156 | 157 | android.hardware.media.omx 158 | hwbinder 159 | 1.0 160 | 161 | IOmx 162 | default 163 | 164 | 165 | IOmxStore 166 | default 167 | 168 | 169 | 170 | android.hardware.memtrack 171 | passthrough 172 | 1.0 173 | 174 | IMemtrack 175 | default 176 | 177 | 178 | 179 | android.hardware.nfc 180 | hwbinder 181 | 1.1 182 | 183 | INfc 184 | default 185 | 186 | 187 | 188 | android.hardware.power 189 | hwbinder 190 | 1.0 191 | 192 | IPower 193 | default 194 | 195 | 196 | 197 | android.hardware.radio 198 | hwbinder 199 | @1.2::ISap/slot1 200 | @1.4::IRadio/slot1 201 | 202 | 203 | android.hardware.radio.config 204 | hwbinder 205 | @1.1::IRadioConfig/default 206 | 207 | 208 | android.hardware.renderscript 209 | passthrough 210 | 1.0 211 | 212 | 213 | android.hardware.sensors 214 | hwbinder 215 | 1.0 216 | 217 | ISensors 218 | default 219 | 220 | 221 | 222 | android.hardware.soundtrigger 223 | hwbinder 224 | 2.0 225 | 226 | ISoundTriggerHw 227 | default 228 | 229 | 230 | 231 | android.hardware.usb 232 | hwbinder 233 | 1.0 234 | 235 | IUsb 236 | default 237 | 238 | 239 | 240 | android.hardware.vibrator 241 | hwbinder 242 | 1.0 243 | 244 | IVibrator 245 | default 246 | 247 | 248 | 249 | android.hardware.wifi 250 | hwbinder 251 | 1.3 252 | 253 | IWifi 254 | default 255 | 256 | 257 | 258 | android.hardware.wifi.hostapd 259 | hwbinder 260 | 1.1 261 | 262 | IHostapd 263 | default 264 | 265 | 266 | 267 | android.hardware.wifi.supplicant 268 | hwbinder 269 | 1.2 270 | 271 | ISupplicant 272 | default 273 | 274 | 275 | 276 | vendor.lineage.livedisplay 277 | hwbinder 278 | 2.0 279 | 280 | IAdaptiveBacklight 281 | default 282 | 283 | 284 | IDisplayColorCalibration 285 | default 286 | 287 | 288 | IReadingEnhancement 289 | default 290 | 291 | 292 | ISunlightEnhancement 293 | default 294 | 295 | 296 | 297 | vendor.lineage.power 298 | hwbinder 299 | 1.0 300 | 301 | ILineagePower 302 | default 303 | 304 | 305 | 306 | vendor.lineage.trust 307 | hwbinder 308 | 1.0 309 | 310 | IUsbRestrict 311 | default 312 | 313 | 314 | 315 | vendor.samsung.hardware.gnss 316 | hwbinder 317 | 1.0 318 | 319 | ISecGnss 320 | default 321 | 322 | 323 | 324 | vendor.samsung.hardware.nfc 325 | hwbinder 326 | 1.1 327 | 328 | ISecNfc 329 | default 330 | 331 | 332 | 333 | vendor.samsung.hardware.radio 334 | hwbinder 335 | @2.0::ISehRadio/slot1 336 | 337 | 338 | vendor.samsung.hardware.radio.bridge 339 | hwbinder 340 | @2.0::ISehBridge/slot1 341 | 342 | 343 | vendor.samsung.hardware.radio.channel 344 | hwbinder 345 | @2.0::ISehChannel/epdgd 346 | @2.0::ISehChannel/imsd 347 | 348 | 349 | vendor.samsung_slsi.hardware.ExynosHWCServiceTW 350 | hwbinder 351 | 1.0 352 | 353 | IExynosHWCServiceTW 354 | default 355 | 356 | 357 | 358 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 24 | 26 | 29 | 30 | 31 | "wifi,1,1,1,-1,true" 32 | "mobile,0,0,0,-1,true" 33 | "mobile_mms,2,0,2,60000,true" 34 | "mobile_supl,3,0,2,60000,true" 35 | "mobile_dun,4,0,2,60000,true" 36 | "mobile_hipri,5,0,3,60000,true" 37 | "mobile_fota,10,0,2,60000,true" 38 | "mobile_ims,11,0,2,60000,true" 39 | "mobile_cbs,12,0,2,60000,true" 40 | "mobile_ia,14,0,2,-1,true" 41 | "bluetooth,7,7,2,-1,true" 42 | "ethernet,9,9,9,-1,true" 43 | "mobile_emergency,15,0,2,-1,true" 44 | 45 | 46 | 49 | 51 | 52 | 53 | "1,1" 54 | 55 | "0,1" 56 | 57 | "7,1" 58 | 59 | 60 | 63 | 64 | rndis\\d 65 | 66 | 67 | 69 | true 70 | 71 | 74 | 75 | "wlan0" 76 | "swlan0" 77 | "softap.*" 78 | 79 | 80 | 83 | 84 | bt-pan 85 | 86 | 87 | 88 | 90 | 91 | 0 92 | 1 93 | 5 94 | 7 95 | 96 | 97 | 98 | rmnet4 99 | 100 | 110 | 3 111 | 112 | 122 | 2 123 | 124 | 125 | 126 | 127 | 128 | 129 | false 130 | 131 | 132 | true 133 | 134 | 136 | true 137 | 138 | 148 | 149 | 9 150 | 30 151 | 100 152 | 325 153 | 1250 154 | 3500 155 | 10000 156 | 20000 157 | 158 | 159 | 163 | 164 | 18 165 | 30 166 | 59 167 | 74 168 | 92 169 | 118 170 | 155 171 | 222 172 | 255 173 | 174 | 175 | 177 | 10 178 | 179 | 181 | 134 182 | 183 | 186 | 10 187 | 188 | 189 | true 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 211 | false 212 | 213 | 214 | false 215 | 216 | 217 | true 218 | 219 | 220 | true 221 | 222 | true 223 | 224 | 225 | GSM|WCDMA|LTE 226 | 227 | 228 | true 229 | 230 | 236 | 237 | 238 | 239 | 1 240 | 241 | 242 | 90 243 | 244 | 245 | 80 246 | 247 | 248 | 3600 249 | 250 | 251 | true 252 | 253 | 254 | true 255 | 256 | 259 | 25 260 | 261 | 262 | com.android.systemui/com.android.systemui.doze.DozeService 263 | 264 | 266 | true 267 | 268 | 269 | 270 | 271 | XTRA_SERVER_1=https://glltos1.glpals.com/4day/v5/latest/lto2.dat 272 | XTRA_SERVER_2=https://glltos2.glpals.com/4day/v5/latest/lto2.dat 273 | 274 | 275 | -------------------------------------------------------------------------------- /device-common.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := device/samsung/universal8895-common 18 | 19 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay 20 | 21 | # Audio 22 | PRODUCT_PACKAGES += \ 23 | android.hardware.audio.common-util \ 24 | android.hardware.audio.common@2.0-util \ 25 | android.hardware.audio.common@2.0 \ 26 | android.hardware.audio.common@4.0-util \ 27 | android.hardware.audio.common@4.0 \ 28 | android.hardware.audio.effect@2.0 \ 29 | android.hardware.audio.effect@4.0 \ 30 | android.hardware.audio@2.0 \ 31 | android.hardware.audio@4.0 \ 32 | android.hardware.soundtrigger@2.0-core \ 33 | android.hardware.soundtrigger@2.0 \ 34 | android.hardware.soundtrigger@2.1 \ 35 | android.hardware.audio@2.0-service \ 36 | android.hardware.audio.effect@2.0-impl \ 37 | android.hardware.audio@2.0-impl \ 38 | android.hardware.soundtrigger@2.0-impl \ 39 | libalsautils \ 40 | libeffects \ 41 | libspeexresampler \ 42 | libaudioutils \ 43 | audio.a2dp.default \ 44 | libtinycompress 45 | 46 | PRODUCT_COPY_FILES += \ 47 | $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ 48 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ 49 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ 50 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml 51 | 52 | # Additional native libraries 53 | PRODUCT_COPY_FILES += \ 54 | $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt 55 | 56 | # Boot animation 57 | TARGET_BOOTANIMATION_PRELOAD := true 58 | TARGET_BOOTANIMATION_TEXTURE_CACHE := true 59 | TARGET_SCREEN_HEIGHT := 2560 60 | TARGET_SCREEN_WIDTH := 1440 61 | 62 | # Graphics 63 | # Device uses high-density artwork where available 64 | PRODUCT_AAPT_CONFIG := xlarge 65 | PRODUCT_AAPT_PREF_CONFIG := xxxhdpi 66 | # A list of dpis to select prebuilt apk, in precedence order. 67 | PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi 68 | 69 | # Camera 70 | PRODUCT_PACKAGES += \ 71 | android.hardware.camera.provider@2.4-impl \ 72 | android.hardware.camera.provider@2.4-service \ 73 | android.hardware.camera.common@1.0 \ 74 | android.hardware.camera.device@1.0 \ 75 | android.hardware.camera.device@3.2 \ 76 | android.hardware.camera.device@3.3 \ 77 | android.hardware.camera.device@3.4 \ 78 | android.hardware.camera.provider@2.4 \ 79 | Snap 80 | 81 | # Camera configurations 82 | PRODUCT_COPY_FILES += \ 83 | $(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml 84 | 85 | # Configstore 86 | PRODUCT_PACKAGES += \ 87 | android.hardware.configstore@1.0-impl \ 88 | android.hardware.configstore@1.0-service 89 | 90 | # DRM 91 | PRODUCT_PACKAGES += \ 92 | android.hardware.drm@1.0 \ 93 | android.hardware.drm@1.1 \ 94 | libfwdlockengine \ 95 | libdrmclearkeyplugin \ 96 | android.hardware.drm@1.0-service \ 97 | android.hardware.drm@1.2-service.clearkey \ 98 | android.hardware.drm@1.0-impl 99 | 100 | # Fingerprint 101 | PRODUCT_PACKAGES += \ 102 | android.hardware.biometrics.fingerprint@2.1-service.samsung 103 | 104 | # Flat device tree for boot image 105 | PRODUCT_HOST_PACKAGES += \ 106 | dtbhtoolExynos 107 | 108 | # Gatekeeper 109 | PRODUCT_PACKAGES += \ 110 | android.hardware.gatekeeper@1.0-service \ 111 | android.hardware.gatekeeper@1.0-impl 112 | 113 | # Graphics 114 | PRODUCT_PACKAGES += \ 115 | android.hardware.graphics.allocator@2.0-impl \ 116 | android.hardware.graphics.allocator@2.0-service \ 117 | android.hardware.graphics.composer@2.2-service \ 118 | android.hardware.graphics.mapper@2.0-impl 119 | 120 | # Health 121 | PRODUCT_PACKAGES += \ 122 | android.hardware.health@2.0-impl \ 123 | android.hardware.health@2.0-service 124 | 125 | # HIDL Manifest 126 | PRODUCT_COPY_FILES += \ 127 | $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml 128 | 129 | # HotwordEnrollement app permissions 130 | PRODUCT_COPY_FILES += \ 131 | $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml 132 | 133 | # Keylayout 134 | PRODUCT_COPY_FILES += \ 135 | $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl 136 | 137 | # keymaster 138 | PRODUCT_PACKAGES += \ 139 | android.hardware.keymaster@3.0 \ 140 | android.hardware.keymaster@3.0-service \ 141 | android.hardware.keymaster@3.0-impl \ 142 | libkeymaster3device 143 | 144 | # Lights 145 | PRODUCT_PACKAGES += \ 146 | android.hardware.light@2.0-service.samsung 147 | 148 | # Livedisplay 149 | PRODUCT_PACKAGES += \ 150 | vendor.lineage.livedisplay@2.0-service.universal8895 151 | 152 | # LPM 153 | PRODUCT_PACKAGES += \ 154 | libsuspend 155 | 156 | # Media 157 | PRODUCT_COPY_FILES += \ 158 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ 159 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ 160 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml 161 | 162 | # Memory 163 | PRODUCT_PACKAGES += \ 164 | android.hardware.memtrack@1.0-impl 165 | 166 | # NFC 167 | PRODUCT_PACKAGES += \ 168 | libnfc-nci \ 169 | libnfc_nci_jni \ 170 | NfcNci \ 171 | Tag \ 172 | com.android.nfc_extras \ 173 | libclang_rt.ubsan_standalone-aarch64-android 174 | 175 | # Power 176 | PRODUCT_PACKAGES += \ 177 | android.hardware.power@1.0-service.exynos 178 | 179 | # Permissions 180 | PRODUCT_COPY_FILES += \ 181 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ 182 | frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ 183 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ 184 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ 185 | frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \ 186 | frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \ 187 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ 188 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ 189 | frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ 190 | frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ 191 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \ 192 | frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \ 193 | frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \ 194 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 195 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 196 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 197 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ 198 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ 199 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \ 200 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ 201 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ 202 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \ 203 | frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ 204 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ 205 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ 206 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ 207 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ 208 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ 209 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ 210 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ 211 | frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \ 212 | frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \ 213 | frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \ 214 | frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \ 215 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ 216 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ 217 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ 218 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ 219 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 220 | 221 | # ramdisk 222 | PRODUCT_PACKAGES += \ 223 | fstab.samsungexynos8895 \ 224 | init.baseband.rc \ 225 | init.samsung.rc \ 226 | init.samsungexynos8895.rc \ 227 | init.samsungexynos8895.usb.rc \ 228 | mobicore.rc \ 229 | ueventd.samsungexynos8895.rc 230 | 231 | # RenderScript 232 | PRODUCT_PACKAGES += \ 233 | android.hardware.renderscript@1.0-impl 234 | 235 | # RIL 236 | PRODUCT_PACKAGES += \ 237 | android.hardware.radio.config@1.0 \ 238 | android.hardware.radio.config@1.1 \ 239 | android.hardware.radio.config@1.2 \ 240 | android.hardware.radio@1.2 \ 241 | android.hardware.radio@1.3 \ 242 | android.hardware.radio@1.4 \ 243 | libxml2 244 | 245 | # SamsungDoze 246 | PRODUCT_PACKAGES += \ 247 | SamsungDoze 248 | 249 | # Seccomp filters 250 | PRODUCT_COPY_FILES += \ 251 | $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \ 252 | $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy 253 | 254 | # Sensors 255 | PRODUCT_PACKAGES += \ 256 | android.hardware.sensors@1.0 \ 257 | android.hardware.sensors@1.0-impl \ 258 | android.hardware.sensors@1.0-service 259 | 260 | # Setup dalvik vm configs 261 | $(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk) 262 | 263 | # Shims 264 | PRODUCT_PACKAGES += \ 265 | libexynoscamera_shim 266 | 267 | # stagefright 268 | PRODUCT_PACKAGES += \ 269 | libgui_vendor 270 | 271 | # s-pen 272 | PRODUCT_COPY_FILES += \ 273 | $(LOCAL_PATH)/configs/samsung-sec_e-pen.idc:system/usr/idc/sec_e-pen.idc 274 | 275 | # TextClassifier 276 | PRODUCT_PACKAGES += \ 277 | textclassifier.bundle1 278 | 279 | # Trust HAL 280 | PRODUCT_PACKAGES += \ 281 | vendor.lineage.trust@1.0-service 282 | 283 | # USB 284 | PRODUCT_PACKAGES += \ 285 | android.hardware.usb@1.0-service.basic 286 | 287 | # Vendor security patch level 288 | PRODUCT_PROPERTY_OVERRIDES += \ 289 | ro.lineage.build.vendor_security_patch=2020-04-01 290 | 291 | # Vibrator 292 | PRODUCT_PACKAGES += \ 293 | android.hardware.vibrator@1.0-service.samsung-haptic 294 | 295 | # Wifi 296 | PRODUCT_PACKAGES += \ 297 | macloader \ 298 | wifiloader \ 299 | hostapd \ 300 | wificond \ 301 | wifilogd \ 302 | wlutil \ 303 | libwpa_client \ 304 | wpa_supplicant \ 305 | wpa_supplicant.conf \ 306 | android.hardware.wifi@1.0-service \ 307 | android.hardware.wifi@1.0 \ 308 | android.hardware.wifi@1.0-impl 309 | 310 | # Properties 311 | -include $(LOCAL_PATH)/system_prop.mk 312 | 313 | # Apex 314 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) 315 | 316 | # call the proprietary setup 317 | $(call inherit-product, vendor/samsung/universal8895-common/universal8895-common-vendor.mk) 318 | -------------------------------------------------------------------------------- /proprietary-files.txt: -------------------------------------------------------------------------------- 1 | # APNS 2 | etc/apns-conf.xml 3 | 4 | # Audio 5 | lib/hw/audio.playback_record.default.so 6 | lib/hw/audio.primary.universal8895.so 7 | lib/hw/audio.tms.default.so 8 | lib/libSamsungPostProcessConvertor.so 9 | lib/lib_SamsungRec_06006.so 10 | lib/lib_SoundAlive_SRC384_ver320.so 11 | lib/lib_soundaliveresampler.so 12 | lib/libaudio-ril.so 13 | lib/libaudioroute.so 14 | lib/librecordalive.so 15 | lib/libsamsungDiamondVoice.so 16 | lib/libsecaudiocoreutils.so 17 | lib/libsecaudioinfo.so 18 | lib/libtinyalsa.so 19 | lib64/libsecaudioinfo.so 20 | lib64/libtinyalsa.so 21 | vendor/lib/hw/sound_trigger.primary.universal8895.so 22 | vendor/lib/lib_SoundAlive_3DPosition_ver202.so 23 | vendor/lib/libaboxpcmdump.so 24 | vendor/lib/libaudio_soundtrigger.so 25 | vendor/lib/libdatamod.so 26 | 27 | # Audio - Effects 28 | vendor/lib/soundfx/libaudioeffectoffload.so 29 | vendor/lib/soundfx/libaudiosaplus_sec.so 30 | vendor/lib/soundfx/libgearvr.so 31 | vendor/lib/soundfx/libmysound.so 32 | vendor/lib/soundfx/libmyspace.so 33 | vendor/lib/soundfx/libplaybackrecorder.so 34 | vendor/lib/soundfx/libsamsungSoundbooster_plus.so 35 | vendor/lib/soundfx/libswdap.so 36 | vendor/lib64/soundfx/libaudioeffectoffload.so 37 | vendor/lib64/soundfx/libswdap.so 38 | 39 | # Audio/Media configs 40 | etc/audio_effects.conf 41 | etc/media_codecs.xml 42 | etc/media_codecs_ac4.xml 43 | etc/media_codecs_ddp.xml 44 | etc/media_codecs_google_audio.xml 45 | etc/media_codecs_google_telephony.xml 46 | etc/media_codecs_google_video.xml 47 | etc/media_codecs_performance.xml 48 | etc/media_codecs_sec_ape.xml 49 | etc/media_codecs_sec_primary.xml 50 | etc/media_codecs_sec_qcp.xml 51 | etc/media_codecs_sec_secondary.xml 52 | etc/media_codecs_sec_video_primary.xml 53 | etc/media_profiles.xml 54 | etc/mixer_gains.xml 55 | etc/mixer_paths.xml 56 | vendor/etc/SoundBoosterParam.txt 57 | vendor/etc/abox_debug.xml 58 | vendor/etc/audio_effects.conf 59 | vendor/etc/audio_effects.xml 60 | vendor/etc/audio_effects_common.conf 61 | vendor/etc/audio_effects_sec.xml 62 | vendor/etc/audio_policy.conf 63 | vendor/etc/audio_policy_volumes.xml 64 | vendor/etc/default_volume_tables.xml 65 | 66 | # Bluetooth 67 | lib/android.hardware.bluetooth.a2dp@1.0.so 68 | lib64/android.hardware.bluetooth.a2dp@1.0.so 69 | lib64/android.hardware.bluetooth@1.0.so 70 | lib64/vendor.samsung.hardware.bluetooth@1.0.so 71 | vendor/bin/hw/android.hardware.bluetooth@1.0-service 72 | vendor/etc/init/android.hardware.bluetooth@1.0-service.rc 73 | vendor/lib64/hw/android.hardware.bluetooth@1.0-impl.so 74 | vendor/lib64/libbt-vendor.so 75 | 76 | # Bluetooth (aptX) - from crosshatch - QP1A.190711.020 77 | product/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc 78 | 79 | # Camera 80 | vendor/lib/camera.device@1.0-impl.so|25304a23d422d833af6aacaf735d64bc9e6966a2 81 | vendor/lib/camera.device@3.2-impl.so|5a5ebe580e1dff617355632869846f9d89aa597f 82 | vendor/lib/camera.device@3.3-impl.so|5649ba327570d70eb4164d35c900130a01c04bfe 83 | vendor/lib/camera.device@3.4-external-impl.so|c4bbc9d663277f056a772b9d5da2b20ee2a77248 84 | vendor/lib/camera.device@3.4-impl.so|06edcd7840554d3ed8dff643bb4503511f12766e 85 | vendor/lib/camera.device@3.5-external-impl.so|369284501b9a6918c5538c430e96d5a9b9cea0e6 86 | vendor/lib/camera.device@3.5-impl.so|0bbdf41f7733750c4f54175888af3778f7930986 87 | vendor/lib64/camera.device@1.0-impl.so|1b0781a282a91f144b2ae9295854cbbe199f949a 88 | vendor/lib64/camera.device@3.2-impl.so|aa357f2eb0f19de07127a450e605c8e39a477b48 89 | vendor/lib64/camera.device@3.3-impl.so|4f1ad80b125981493d7c7127a38ada7cdc3e4a27 90 | vendor/lib64/camera.device@3.4-external-impl.so|dfbb8be3c1f63e1231edc421acf8078bdda13a6f 91 | vendor/lib64/camera.device@3.4-impl.so|53dc11d354cdadd67da0f19bc688fbc2ee77d09d 92 | vendor/lib64/camera.device@3.5-external-impl.so|d40e3aae3ec706be6548bc101e5dfe89e8c2c848 93 | vendor/lib64/camera.device@3.5-impl.so|ff6cc5d110534ef316786bbab4a4bc6970627f98 94 | 95 | # DRM 96 | vendor/lib/liboemcrypto.so 97 | vendor/lib/mediadrm/libwvdrmengine.so 98 | 99 | # DRM - Widevine 100 | vendor/bin/hw/android.hardware.drm@1.1-service.widevine 101 | vendor/etc/init/android.hardware.drm@1.1-service.widevine.rc 102 | vendor/lib/libwvhidl.so 103 | 104 | # Fingerprint 105 | vendor/lib/libbauthserver.so 106 | vendor/lib/libbauthtzcommon.so 107 | vendor/lib/libegis_fp_normal_sensor_test.so 108 | vendor/lib/libgf_in_system_lib.so 109 | vendor/lib/libqfp_sensortest.so 110 | vendor/lib/libsynaFpSensorTestNwd.so 111 | vendor/lib64/libbauthserver.so 112 | vendor/lib64/libbauthtzcommon.so 113 | vendor/lib64/libegis_fp_normal_sensor_test.so 114 | vendor/lib64/libgf_in_system_lib.so 115 | vendor/lib64/libqfp_sensortest.so 116 | vendor/lib64/libsynaFpSensorTestNwd.so 117 | 118 | # GPS 119 | etc/gps_debug.conf 120 | etc/init/init.gpscommon.rc 121 | lib/android.hardware.gnss@1.0.so 122 | lib/android.hardware.gnss@1.1.so 123 | lib/libfloatingfeature.so 124 | lib/vendor.samsung.hardware.gnss@1.0.so 125 | lib64/android.hardware.gnss@1.0.so 126 | lib64/android.hardware.gnss@1.1.so 127 | lib64/libfloatingfeature.so 128 | lib64/vendor.samsung.hardware.gnss@1.0.so 129 | vendor/bin/hw/gpsd 130 | vendor/bin/hw/vendor.samsung.hardware.gnss@1.0-service 131 | vendor/etc/gnss/gps.cer 132 | vendor/etc/gnss/gps.xml 133 | vendor/etc/init/init.gps.rc 134 | vendor/etc/init/vendor.samsung.hardware.gnss@1.0-service.rc 135 | vendor/lib/libwrappergps.so 136 | vendor/lib64/hw/android.hardware.gnss@1.1-impl.so 137 | vendor/lib64/hw/vendor.samsung.hardware.gnss@1.0-impl.so 138 | vendor/lib64/hw/gps.default.so 139 | vendor/lib64/libwrappergps.so 140 | 141 | # Gatekeeper - from G950FXXS4CRLB 142 | vendor/etc/init/android.hardware.gatekeeper@1.0-service.rc 143 | vendor/lib/hw/gatekeeper.exynos8895.so 144 | vendor/lib64/hw/gatekeeper.exynos8895.so 145 | 146 | # Graphics 147 | lib/hw/gralloc.exynos5.so 148 | lib/libGrallocWrapper.so 149 | lib/libacryl.so 150 | lib/libexynosgscaler.so 151 | lib/libexynosscaler.so 152 | lib/vendor.samsung_slsi.hardware.ExynosHWCServiceTW@1.0.so 153 | lib64/hw/gralloc.exynos5.so 154 | lib64/libGrallocWrapper.so 155 | lib64/libacryl.so 156 | lib64/libexynosgscaler.so 157 | lib64/libexynosscaler.so 158 | lib64/vendor.samsung_slsi.hardware.ExynosHWCServiceTW@1.0.so 159 | vendor/bin/hw/vendor.samsung_slsi.hardware.ExynosHWCServiceTW@1.0-service 160 | vendor/etc/init/vendor.samsung_slsi.hardware.ExynosHWCServiceTW@1.0-service.rc 161 | vendor/lib/egl/libGLES_mali.so 162 | vendor/lib/hw/hwcomposer.exynos5.so 163 | vendor/lib/libExynosHWCService.so 164 | vendor/lib/libRSDriverArm.so 165 | vendor/lib/libcsc.so 166 | vendor/lib/libexynosdisplay.so 167 | vendor/lib/libexynosutils.so 168 | vendor/lib/libexynosv4l2.so 169 | vendor/lib/libhwc2on1adapter.so 170 | vendor/lib/libhwc2onfbadapter.so 171 | vendor/lib/libion_exynos.so 172 | vendor/lib/libmpp.so 173 | vendor/lib64/egl/libGLES_mali.so 174 | vendor/lib64/hw/hwcomposer.exynos5.so 175 | vendor/lib64/libExynosHWCService.so 176 | vendor/lib64/libRSDriverArm.so 177 | vendor/lib64/libcsc.so 178 | vendor/lib64/libexynosdisplay.so 179 | vendor/lib64/libexynosutils.so 180 | vendor/lib64/libexynosv4l2.so 181 | vendor/lib64/libhwc2on1adapter.so 182 | vendor/lib64/libhwc2onfbadapter.so 183 | vendor/lib64/libion_exynos.so 184 | vendor/lib64/libmpp.so 185 | 186 | # vulkan 187 | vendor/lib/hw/vulkan.exynos5.so|17c8c848aa0bd14d384a4bf22050992eb299ea41 188 | vendor/lib64/hw/vulkan.exynos5.so|424508942221ea28fab376e7730dd5b35dd5f1c4 189 | 190 | # Hotword Enrollment 191 | -priv-app/HotwordEnrollmentOKGoogleExCORTEXM4/HotwordEnrollmentOKGoogleExCORTEXM4.apk;PRESIGNED 192 | -priv-app/HotwordEnrollmentXGoogleExCORTEXM4/HotwordEnrollmentXGoogleExCORTEXM4.apk;PRESIGNED 193 | 194 | # Keymaster 195 | lib/libskeymaster.so 196 | lib64/libskeymaster.so 197 | vendor/lib/libskeymaster3device.so 198 | vendor/lib64/hw/keystore.mdfpp.so 199 | vendor/lib64/libkeymaster_helper.so 200 | vendor/lib64/libkeymaster_mdfpp.so 201 | vendor/lib64/libskeymaster3device.so 202 | 203 | # LPM 204 | bin/lpm 205 | lib64/libmaet.so 206 | lib64/libsxqk_skia.so 207 | media/battery_error.spi 208 | media/battery_low.spi 209 | media/battery_temperature_error.spi 210 | media/battery_temperature_limit.spi 211 | media/battery_water_usb.spi 212 | media/charging_New_Fast.spi 213 | media/charging_New_Normal.spi 214 | media/dock_error_usb.spi 215 | media/incomplete_connect.spi 216 | media/lcd_density.txt 217 | media/percentage.spi 218 | media/safety_timer_usb.spi 219 | media/slow_charging_usb.spi 220 | media/temperature_limit_usb.spi 221 | media/water_protection_usb.spi 222 | 223 | # Memtrack 224 | vendor/lib/hw/memtrack.universal8895.so 225 | vendor/lib64/hw/memtrack.universal8895.so 226 | 227 | # MobiCore 228 | app/mcRegistry/00060308060501020000000000000000.tlbin 229 | app/mcRegistry/ffffffff000000000000000000000004.tlbin 230 | app/mcRegistry/ffffffff000000000000000000000005.tlbin 231 | app/mcRegistry/ffffffff00000000000000000000000a.tlbin 232 | app/mcRegistry/ffffffff00000000000000000000000c.tlbin 233 | app/mcRegistry/ffffffff00000000000000000000000d.tlbin 234 | app/mcRegistry/ffffffff000000000000000000000016.tlbin 235 | app/mcRegistry/ffffffff000000000000000000000017.tlbin 236 | app/mcRegistry/ffffffff000000000000000000000038.tlbin 237 | app/mcRegistry/ffffffff00000000000000000000003e.tlbin 238 | app/mcRegistry/ffffffff000000000000000000000041.tlbin 239 | app/mcRegistry/ffffffff000000000000000000000045.tlbin 240 | app/mcRegistry/ffffffff000000000000000000000047.tlbin 241 | app/mcRegistry/ffffffff000000000000000000000059.tlbin 242 | app/mcRegistry/ffffffff000000000000000000000060.tlbin 243 | app/mcRegistry/ffffffffd00000000000000000000004.tlbin 244 | app/mcRegistry/ffffffffd00000000000000000000017.tlbin 245 | app/mcRegistry/ffffffffd0000000000000000000001a.tlbin 246 | app/mcRegistry/fffffffff0000000000000000000001b.tlbin 247 | vendor/app/mcRegistry/07010000000000000000000000000000.tlbin 248 | vendor/app/mcRegistry/08130000000000000000000000000000.tlbin 249 | vendor/app/mcRegistry/FFFFFFFF000000000000000000000001.drbin 250 | vendor/app/mcRegistry/ffffffff00000000000000000000000e.tlbin 251 | vendor/app/mcRegistry/ffffffff00000000000000000000000f.tlbin 252 | vendor/app/mcRegistry/ffffffff000000000000000000000012.tlbin 253 | vendor/app/mcRegistry/ffffffff000000000000000000000013.tlbin 254 | vendor/app/mcRegistry/ffffffff00000000000000000000002f.tlbin 255 | vendor/app/mcRegistry/ffffffff000000000000000000000030.tlbin 256 | vendor/app/mcRegistry/ffffffffd0000000000000000000000a.tlbin 257 | vendor/app/mcRegistry/ffffffffd0000000000000000000000e.tlbin 258 | vendor/app/mcRegistry/ffffffffd00000000000000000000014.tlbin 259 | vendor/app/mcRegistry/ffffffffd00000000000000000000016.tlbin 260 | vendor/bin/mcDriverDaemon 261 | vendor/lib/libMcClient.so 262 | vendor/lib64/libMcClient.so 263 | 264 | # NFC 265 | etc/libnfc-nci.conf 266 | etc/nfc_key 267 | etc/nfcee_access.xml 268 | lib64/android.hardware.nfc@1.0.so 269 | lib64/android.hardware.nfc@1.1.so 270 | lib64/vendor.samsung.hardware.nfc@1.1.so 271 | vendor/bin/hw/sec.android.hardware.nfc@1.1-service 272 | vendor/etc/init/sec.android.hardware.nfc@1.1-service.rc 273 | vendor/etc/libnfc-sec-vendor.conf 274 | vendor/etc/nfc/SGP/sec_s3nrn82_rfreg.bin 275 | vendor/etc/nfc/sec_s3nrn82_rfreg.bin 276 | vendor/firmware/nfc/sec_s3nrn82_firmware.bin 277 | vendor/lib64/nfc_nci_sec.so 278 | 279 | # OMX 280 | lib/libExynosOMX_Core.so 281 | lib/libExynosOMX_Resourcemanager.so 282 | lib/libstagefrighthw.so 283 | lib/omx/libOMX.Exynos.AVC.Decoder.so 284 | lib/omx/libOMX.Exynos.AVC.Encoder.so 285 | lib/omx/libOMX.Exynos.HEVC.Decoder.so 286 | lib/omx/libOMX.Exynos.HEVC.Encoder.so 287 | lib/omx/libOMX.Exynos.MPEG4.Decoder.so 288 | lib/omx/libOMX.Exynos.MPEG4.Encoder.so 289 | lib/omx/libOMX.Exynos.VP8.Decoder.so 290 | lib/omx/libOMX.Exynos.VP8.Encoder.so 291 | lib/omx/libOMX.Exynos.VP9.Decoder.so 292 | lib/omx/libOMX.Exynos.VP9.Encoder.so 293 | lib/omx/libOMX.Exynos.WMV.Decoder.so 294 | lib64/libExynosOMX_Core.so 295 | lib64/libExynosOMX_Resourcemanager.so 296 | lib64/libstagefrighthw.so 297 | lib64/omx/libOMX.Exynos.AVC.Decoder.so 298 | lib64/omx/libOMX.Exynos.AVC.Encoder.so 299 | lib64/omx/libOMX.Exynos.HEVC.Decoder.so 300 | lib64/omx/libOMX.Exynos.HEVC.Encoder.so 301 | lib64/omx/libOMX.Exynos.MPEG4.Decoder.so 302 | lib64/omx/libOMX.Exynos.MPEG4.Encoder.so 303 | lib64/omx/libOMX.Exynos.VP8.Decoder.so 304 | lib64/omx/libOMX.Exynos.VP8.Encoder.so 305 | lib64/omx/libOMX.Exynos.VP9.Decoder.so 306 | lib64/omx/libOMX.Exynos.VP9.Encoder.so 307 | lib64/omx/libOMX.Exynos.WMV.Decoder.so 308 | 309 | # RIL 310 | lib/libsecnativefeature.so 311 | lib64/libsecnativefeature.so 312 | vendor/etc/init/init.vendor.rilchip.rc 313 | vendor/etc/init/init.vendor.rilcommon.rc 314 | 315 | # RIL - from starlte - G960FXXU8DTC5 316 | vendor/bin/cbd|c2e2aeb6a6e43246b70b61099015e9c591b36e83 317 | vendor/bin/hw/rild|245f25500160c84e82b6a2bd4f683c6de3855c62 318 | vendor/lib/libreference-ril.so|4f257006cfc4ae3a092caa64e58c5bf00c000f5a 319 | vendor/lib/libril.so|2ec5cf60095fc75fe5f62476582ccffdf656d78b 320 | vendor/lib/librilutils.so|e65673f0a88d3e02d1b25a0213779f7d89fd1519 321 | vendor/lib/libsec-ril-dsds.so|1015100fd3d3fb4643c8f379c9c44a4eeddae18d 322 | vendor/lib/libsec-ril.so|30d08dac8a9c0940539c74d1b6f60b68cd6db8a5 323 | vendor/lib/libsec_semRil.so|586561e7ea50c9fbe9beebc05f4001fc06843981 324 | vendor/lib/libvkmanager_vendor.so|a107fcc6f93707f3dcc3c4922069a28399e4f0a8 325 | vendor/lib/libvndsecril-client.so|4f9c59b0a5e40af38402a3f2cb79f12eb023c207 326 | vendor/lib/vendor.samsung.hardware.radio.bridge@2.0.so|0773244743a3d0a69ea5f24daf98d2e77a4a23df 327 | vendor/lib/vendor.samsung.hardware.radio.channel@2.0.so|8c0670df1103803723e176ffc74d301ea90cd6a1 328 | vendor/lib/vendor.samsung.hardware.radio@2.0.so|b1e8788b5925405e29e8d0515f1f061e46202bf6 329 | vendor/lib64/libreference-ril.so|f8a789594f5e1b8e2635ce66f7b8ffdb494fcf54 330 | vendor/lib64/libril.so|fbb6239e903e1d85ca25b0a1995ce4c35d07f86a 331 | vendor/lib64/librilutils.so|9d226310feec99e51fd4c39577f84a59a6443d8e 332 | vendor/lib64/libsec-ril-dsds.so|6c6c898b536b4d93b6adffe8ad3d5d0ce4dde46e 333 | vendor/lib64/libsec-ril.so|9edeb13c1688b7f86669bb968f4fd8f6eeaefd02 334 | vendor/lib64/libsec_semRil.so|06829a5d3b30049f535b481a448e07585d455702 335 | vendor/lib64/libvkmanager_vendor.so|f874a844e9c0dea59104bd00bbb1f663abba02fa 336 | vendor/lib64/libvndsecril-client.so|d2a5ac7bd37748659aa36dc9880dca4a8ea80353 337 | vendor/lib64/vendor.samsung.hardware.radio.bridge@2.0.so|9a252e8f68669a51a477e5d5c58e87471faff260 338 | vendor/lib64/vendor.samsung.hardware.radio.channel@2.0.so|79295a294408976c751aaf0c05b120ecdcdbe095 339 | vendor/lib64/vendor.samsung.hardware.radio@2.0.so|ab8fc2a827261521e4d5899972d4773cc1314561 340 | 341 | # Sensors 342 | vendor/bin/hw/lhd 343 | vendor/etc/sensor/lhd.conf 344 | vendor/etc/sensors/hals.conf 345 | vendor/lib/sensors.bio.so 346 | vendor/lib/sensors.grip.so 347 | vendor/lib/sensors.sensorhub.so 348 | vendor/lib64/libflicker.so 349 | vendor/lib64/sensors.bio.so 350 | vendor/lib64/sensors.grip.so 351 | vendor/lib64/sensors.sensorhub.so 352 | 353 | # Stagefright 354 | vendor/lib/libstagefright_bufferqueue_helper_vendor.so 355 | vendor/lib/libstagefright_foundation.so 356 | vendor/lib/libstagefright_omx_utils.so 357 | vendor/lib/libstagefright_omx_vendor.so 358 | vendor/lib/libstagefright_soft_ac4dec.so 359 | vendor/lib/libstagefright_soft_ddpdec.so 360 | vendor/lib/libstagefright_soft_g711dec.so 361 | 362 | # WiFi 363 | vendor/bin/hw/macloader 364 | vendor/bin/hw/mfgloader 365 | vendor/etc/init/wifi.rc 366 | vendor/etc/init/wifi_brcm.rc 367 | vendor/etc/wifi/bcmdhd_clm.blob 368 | vendor/etc/wifi/bcmdhd_mfg.bin_b0 369 | vendor/etc/wifi/bcmdhd_mfg.bin_b2 370 | vendor/etc/wifi/bcmdhd_mon.bin_b2 371 | vendor/etc/wifi/bcmdhd_sta.bin_b0 372 | vendor/etc/wifi/bcmdhd_sta.bin_b2 373 | vendor/etc/wifi/indoorchannel.info 374 | vendor/etc/wifi/nvram.txt 375 | vendor/etc/wifi/nvram.txt_a0 376 | vendor/etc/wifi/nvram.txt_a0_ePA 377 | vendor/etc/wifi/nvram.txt_murata_r012_a1 378 | vendor/etc/wifi/nvram.txt_murata_r013_b0 379 | vendor/etc/wifi/nvram.txt_murata_r014_b0 380 | vendor/etc/wifi/nvram.txt_murata_r020_b0 381 | vendor/etc/wifi/nvram.txt_murata_r033_b0 382 | vendor/etc/wifi/nvram.txt_r01a_a1 383 | vendor/etc/wifi/nvram.txt_r01d_b0 384 | vendor/etc/wifi/nvram.txt_r01f_b0 385 | vendor/etc/wifi/nvram.txt_r01i_b0 386 | vendor/etc/wifi/nvram.txt_r02a_a1 387 | vendor/etc/wifi/nvram.txt_r02c_a1 388 | vendor/etc/wifi/nvram.txt_r02g_b0 389 | vendor/etc/wifi/nvram.txt_r02j_b0 390 | vendor/etc/wifi/p2p_supplicant_overlay.conf 391 | vendor/etc/wifi/wpa_supplicant_overlay.conf 392 | vendor/lib/libwifi-hal.so 393 | vendor/lib64/libwifi-hal.so 394 | -------------------------------------------------------------------------------- /ramdisk/etc/init.samsungexynos8895.usb.rc: -------------------------------------------------------------------------------- 1 | on init 2 | mount configfs none /sys/kernel/config 3 | mkdir /sys/kernel/config/usb_gadget/g1 4 | mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409 5 | mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1 6 | mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409 7 | mkdir /sys/kernel/config/usb_gadget/g1/functions/mtp.0 8 | mkdir /sys/kernel/config/usb_gadget/g1/functions/ptp.0 9 | mkdir /sys/kernel/config/usb_gadget/g1/functions/acm.0 10 | mkdir /sys/kernel/config/usb_gadget/g1/functions/dm.0 11 | mkdir /sys/kernel/config/usb_gadget/g1/functions/rndis.0 12 | mkdir /sys/kernel/config/usb_gadget/g1/functions/conn_gadget.0 13 | mkdir /sys/kernel/config/usb_gadget/g1/functions/midi.0 14 | mkdir /sys/kernel/config/usb_gadget/g1/functions/accessory.0 15 | mkdir /sys/kernel/config/usb_gadget/g1/functions/audio_source.0 16 | mkdir /sys/kernel/config/usb_gadget/g1/functions/ncm.0 17 | mkdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb 0770 shell shell 18 | mkdir /dev/usb-ffs 0770 shell shell 19 | mkdir /dev/usb-ffs/adb 0770 shell shell 20 | mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 21 | 22 | on boot 23 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno} 24 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer "SAMSUNG" 25 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/product "SAMSUNG_Android" 26 | write /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409/configuration "Conf 1" 27 | write /sys/kernel/config/usb_gadget/g1/configs/c.1/MaxPower 0x3f 28 | symlink /sys/kernel/config/usb_gadget/g1/functions/mtp.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/mtp.0 29 | symlink /sys/kernel/config/usb_gadget/g1/functions/ptp.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/ptp.0 30 | symlink /sys/kernel/config/usb_gadget/g1/functions/ffs.adb /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb 31 | symlink /sys/kernel/config/usb_gadget/g1/functions/acm.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/acm.0 32 | symlink /sys/kernel/config/usb_gadget/g1/functions/rndis.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/rndis.0 33 | symlink /sys/kernel/config/usb_gadget/g1/functions/dm.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/dm.0 34 | symlink /sys/kernel/config/usb_gadget/g1/functions/conn_gadget.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/conn_gadget.0 35 | symlink /sys/kernel/config/usb_gadget/g1/functions/midi.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/midi.0 36 | symlink /sys/kernel/config/usb_gadget/g1/functions/accessory.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/accessory.0 37 | symlink /sys/kernel/config/usb_gadget/g1/functions/audio_source.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/audio_source.0 38 | symlink /sys/kernel/config/usb_gadget/g1/functions/ncm.0 /sys/kernel/config/usb_gadget/g1/configs/c.1/ncm.0 39 | setprop sys.usb.configfs 1 40 | 41 | on charger && property:ro.debuggable=1 42 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno} 43 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer "SAMSUNG" 44 | write /sys/kernel/config/usb_gadget/g1/strings/0x409/product "SAMSUNG_Android_lpm" 45 | write /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409/configuration "Conf 1" 46 | symlink /sys/kernel/config/usb_gadget/g1/functions/ffs.adb /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb 47 | setprop sys.usb.configfs 1 48 | setprop sys.usb.config adb 49 | 50 | on property:sys.usb.config=mtp 51 | write /sys/class/android_usb/android0/enable 0 52 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 53 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 54 | write /sys/class/android_usb/android0/functions mtp,acm 55 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 56 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 57 | write /sys/class/android_usb/android0/enable 1 58 | setprop sys.usb.state ${sys.usb.config} 59 | 60 | on property:sys.usb.config=mtp,adb 61 | start adbd 62 | 63 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb 64 | write /sys/class/android_usb/android0/enable 0 65 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 66 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 67 | write /sys/class/android_usb/android0/functions mtp,acm,adb 68 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 69 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 70 | write /sys/class/android_usb/android0/enable 1 71 | setprop sys.usb.state ${sys.usb.config} 72 | 73 | on property:sys.usb.config=mtp,acm,adb 74 | start adbd 75 | 76 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,acm,adb 77 | write /sys/class/android_usb/android0/enable 0 78 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 79 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 80 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 81 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 82 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 83 | write /sys/class/android_usb/android0/enable 1 84 | setprop sys.usb.state ${sys.usb.config} 85 | 86 | on property:sys.usb.config=rndis 87 | write /sys/class/android_usb/android0/enable 0 88 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6863 89 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 90 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 91 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 92 | write /sys/class/android_usb/android0/enable 1 93 | setprop sys.usb.state ${sys.usb.config} 94 | 95 | on property:sys.usb.config=rndis,adb 96 | start adbd 97 | 98 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,adb 99 | write /sys/class/android_usb/android0/enable 0 100 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6864 101 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 102 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 103 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 104 | write /sys/class/android_usb/android0/enable 1 105 | setprop sys.usb.state ${sys.usb.config} 106 | 107 | on property:sys.usb.config=ptp 108 | write /sys/class/android_usb/android0/enable 0 109 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6865 110 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 111 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 112 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 113 | write /sys/class/android_usb/android0/enable 1 114 | setprop sys.usb.state ${sys.usb.config} 115 | 116 | on property:sys.usb.config=ptp,adb 117 | start adbd 118 | 119 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ptp,adb 120 | write /sys/class/android_usb/android0/enable 0 121 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6866 122 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 123 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 124 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 125 | write /sys/class/android_usb/android0/enable 1 126 | setprop sys.usb.state ${sys.usb.config} 127 | 128 | on property:sys.usb.config=rndis,dm 129 | write /sys/class/android_usb/android0/enable 0 130 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6862 131 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 132 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 133 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 134 | write /sys/class/android_usb/android0/enable 1 135 | setprop sys.usb.state ${sys.usb.config} 136 | 137 | on property:sys.usb.config=rndis,acm,dm 138 | write /sys/class/android_usb/android0/enable 0 139 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6862 140 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 141 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 142 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 143 | write /sys/class/android_usb/android0/enable 1 144 | setprop sys.usb.state ${sys.usb.config} 145 | 146 | on property:sys.usb.config=rndis,acm,dm,adb 147 | start adbd 148 | 149 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,acm,dm,adb 150 | write /sys/class/android_usb/android0/enable 0 151 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6862 152 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 153 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 154 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 155 | write /sys/class/android_usb/android0/enable 1 156 | setprop sys.usb.state ${sys.usb.config} 157 | 158 | on property:sys.usb.config=acm,dm 159 | write /sys/class/android_usb/android0/enable 0 160 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685D 161 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 162 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 163 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 164 | write /sys/class/android_usb/android0/enable 1 165 | setprop sys.usb.state ${sys.usb.config} 166 | 167 | on property:sys.usb.config=acm,dm,adb 168 | start adbd 169 | 170 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=acm,dm,adb 171 | write /sys/class/android_usb/android0/enable 0 172 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685D 173 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 174 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 175 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 176 | write /sys/class/android_usb/android0/enable 1 177 | setprop sys.usb.state ${sys.usb.config} 178 | 179 | on property:sys.usb.config=dm,acm 180 | write /sys/class/android_usb/android0/enable 0 181 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685D 182 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 183 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 184 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 185 | write /sys/class/android_usb/android0/enable 1 186 | setprop sys.usb.state ${sys.usb.config} 187 | 188 | on property:sys.usb.config=dm,acm,adb 189 | start adbd 190 | 191 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=dm,acm,adb 192 | write /sys/class/android_usb/android0/enable 0 193 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685D 194 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 195 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 196 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 197 | write /sys/class/android_usb/android0/enable 1 198 | setprop sys.usb.state ${sys.usb.config} 199 | 200 | on property:sys.usb.config=mass_storage 201 | write /sys/class/android_usb/android0/enable 0 202 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 203 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685B 204 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 205 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 206 | write /sys/class/android_usb/android0/enable 1 207 | setprop sys.usb.state ${sys.usb.config} 208 | 209 | on property:sys.usb.config=mass_storage,adb 210 | start adbd 211 | 212 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mass_storage,adb 213 | write /sys/class/android_usb/android0/enable 0 214 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 215 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685e 216 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 217 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 218 | write /sys/class/android_usb/android0/enable 1 219 | setprop sys.usb.state ${sys.usb.config} 220 | 221 | on property:sys.usb.config=mass_storage,acm 222 | write /sys/class/android_usb/android0/enable 0 223 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 224 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685e 225 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 226 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 227 | write /sys/class/android_usb/android0/enable 1 228 | setprop sys.usb.state ${sys.usb.config} 229 | 230 | # rndis,acm,diag and diag,acm,adb used for Hidden Menu 231 | 232 | on property:sys.usb.config=rndis,diag 233 | write /sys/class/android_usb/android0/enable 0 234 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 235 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6862 236 | write /sys/class/android_usb/android0/f_diag/clients diag_mdm 237 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 238 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 239 | write /sys/class/android_usb/android0/enable 1 240 | setprop sys.usb.state ${sys.usb.config} 241 | 242 | on property:sys.usb.config=diag,acm 243 | write /sys/class/android_usb/android0/enable 0 244 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 245 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685d 246 | write /sys/class/android_usb/android0/f_diag/clients diag_mdm 247 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 248 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 249 | write /sys/class/android_usb/android0/enable 1 250 | setprop sys.usb.state ${sys.usb.config} 251 | 252 | 253 | on property:sys.usb.config=rndis,acm,diag 254 | write /sys/class/android_usb/android0/enable 0 255 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 256 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6864 257 | write /sys/class/android_usb/android0/f_diag/clients diag_mdm 258 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 259 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 260 | write /sys/class/android_usb/android0/enable 1 261 | setprop sys.usb.state ${sys.usb.config} 262 | 263 | on property:sys.usb.config=sec_charging 264 | write /sys/class/android_usb/android0/enable 0 265 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 266 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 267 | write /sys/class/android_usb/android0/functions mtp 268 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 269 | write /sys/class/android_usb/android0/enable 1 270 | setprop sys.usb.state ${sys.usb.config} 271 | 272 | on property:sys.usb.config=sec_charging,adb 273 | start adbd 274 | 275 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=sec_charging,adb 276 | write /sys/class/android_usb/android0/enable 0 277 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 278 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 279 | write /sys/class/android_usb/android0/functions mtp,adb 280 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 281 | write /sys/class/android_usb/android0/enable 1 282 | setprop sys.usb.state ${sys.usb.config} 283 | 284 | on property:sys.usb.config=vzw_charging 285 | write /sys/class/android_usb/android0/enable 0 286 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 287 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 288 | write /sys/class/android_usb/android0/functions mtp 289 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 290 | write /sys/class/android_usb/android0/enable 1 291 | setprop sys.usb.state ${sys.usb.config} 292 | 293 | on property:sys.usb.config=vzw_charging,adb 294 | start adbd 295 | 296 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=vzw_charging,adb 297 | write /sys/class/android_usb/android0/enable 0 298 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04E8 299 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 300 | write /sys/class/android_usb/android0/functions mtp,adb 301 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 302 | write /sys/class/android_usb/android0/enable 1 303 | setprop sys.usb.state ${sys.usb.config} 304 | 305 | on property:sys.usb.config=mtp,conn_gadget 306 | write /sys/class/android_usb/android0/enable 0 307 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 308 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 309 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 310 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 311 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 312 | write /sys/class/android_usb/android0/enable 1 313 | setprop sys.usb.state ${sys.usb.config} 314 | 315 | on property:sys.usb.config=mtp,conn_gadget,adb 316 | start adbd 317 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,conn_gadget,adb 318 | write /sys/class/android_usb/android0/enable 0 319 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 320 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x6860 321 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 322 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 323 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 324 | write /sys/class/android_usb/android0/enable 1 325 | setprop sys.usb.state ${sys.usb.config} 326 | 327 | on property:sys.usb.config=adb 328 | start adbd 329 | 330 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb 331 | write /sys/class/android_usb/android0/enable 0 332 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18D1 333 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x4EE7 334 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 335 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 0 336 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 337 | write /sys/class/android_usb/android0/enable 1 338 | setprop sys.usb.state ${sys.usb.config} 339 | 340 | # USB accessory configuration 341 | on property:sys.usb.config=accessory && property:sys.usb.configfs=1 342 | write /sys/class/android_usb/android0/enable 0 343 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d00 344 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 345 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 346 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 347 | write /sys/class/android_usb/android0/enable 1 348 | setprop sys.usb.state ${sys.usb.config} 349 | 350 | # USB accessory configuration, with adb 351 | on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=1 352 | start adbd 353 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=accessory,adb && property:sys.usb.configfs=1 354 | write /sys/class/android_usb/android0/enable 0 355 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d01 356 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 357 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 358 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 359 | write /sys/class/android_usb/android0/enable 1 360 | setprop sys.usb.state ${sys.usb.config} 361 | 362 | # audio accessory configuration 363 | on property:sys.usb.config=audio_source && property:sys.usb.configfs=1 364 | write /sys/class/android_usb/android0/enable 0 365 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d02 366 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 367 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 368 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 369 | write /sys/class/android_usb/android0/enable 1 370 | setprop sys.usb.state ${sys.usb.config} 371 | 372 | # audio accessory configuration, with adb 373 | on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=1 374 | start adbd 375 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=1 376 | write /sys/class/android_usb/android0/enable 0 377 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d03 378 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 379 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 380 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 381 | write /sys/class/android_usb/android0/enable 1 382 | setprop sys.usb.state ${sys.usb.config} 383 | 384 | # USB and audio accessory configuration 385 | on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=1 386 | write /sys/class/android_usb/android0/enable 0 387 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d04 388 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 389 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 390 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 391 | write /sys/class/android_usb/android0/enable 1 392 | setprop sys.usb.state ${sys.usb.config} 393 | 394 | # USB and audio accessory configuration, with adb 395 | on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=1 396 | start adbd 397 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=1 398 | write /sys/class/android_usb/android0/enable 0 399 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x2d05 400 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x18d1 401 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 402 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 403 | write /sys/class/android_usb/android0/enable 1 404 | setprop sys.usb.state ${sys.usb.config} 405 | 406 | on property:sys.usb.config=midi && property:sys.usb.configfs=1 407 | write /sys/class/android_usb/android0/enable 0 408 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x686C 409 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 410 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 411 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 412 | write /sys/class/android_usb/android0/enable 1 413 | setprop sys.usb.state ${sys.usb.config} 414 | 415 | on property:sys.usb.config=midi,adb && property:sys.usb.configfs=1 416 | start adbd 417 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=midi,adb && property:sys.usb.configfs=1 418 | write /sys/class/android_usb/android0/enable 0 419 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x686C 420 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 421 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 422 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 423 | write /sys/class/android_usb/android0/enable 1 424 | setprop sys.usb.state ${sys.usb.config} 425 | 426 | on property:sys.usb.config=ncm && property:sys.usb.configfs=1 427 | write /sys/class/android_usb/android0/enable 0 428 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685d 429 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 430 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 431 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 2 432 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 433 | write /sys/class/android_usb/android0/enable 1 434 | setprop sys.usb.state ${sys.usb.config} 435 | 436 | on property:sys.usb.config=ncm,adb && property:sys.usb.configfs=1 437 | start adbd 438 | on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ncm,adb && property:sys.usb.configfs=1 439 | write /sys/class/android_usb/android0/enable 0 440 | write /sys/kernel/config/usb_gadget/g1/idProduct 0x685d 441 | write /sys/kernel/config/usb_gadget/g1/idVendor 0x04e8 442 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 443 | write /sys/kernel/config/usb_gadget/g1/bDeviceClass 2 444 | write /sys/kernel/config/usb_gadget/g1/UDC "10c00000.dwc3" 445 | write /sys/class/android_usb/android0/enable 1 446 | setprop sys.usb.state ${sys.usb.config} -------------------------------------------------------------------------------- /ramdisk/etc/init.samsungexynos8895.rc: -------------------------------------------------------------------------------- 1 | import init.samsungexynos8895.usb.rc 2 | import init.baseband.rc 3 | import /init.wifi.rc 4 | import init.carrier.rc 5 | import init.gps.rc 6 | import atrace.rc 7 | import init.samsung.rc 8 | 9 | on early-init 10 | mount debugfs /sys/kernel/debug /sys/kernel/debug 11 | 12 | on init 13 | start watchdogd 14 | 15 | # See storage config details at http://source.android.com/tech/storage/ 16 | mkdir /mnt/shell/emulated 0700 shell shell 17 | mkdir /storage/emulated 0555 root root 18 | 19 | # Support legacy paths 20 | symlink /sdcard /mnt/sdcard 21 | 22 | export EXTERNAL_STORAGE /sdcard 23 | 24 | #export SECONDARY_STORAGE /storage/extSdCard 25 | 26 | symlink /data/app /factory 27 | 28 | #Reactivation Lock 29 | symlink /dev/block/platform/11120000.ufs/by-name/STEADY /dev/block/steady 30 | 31 | #Google FRP solution 32 | symlink /dev/block/platform/11120000.ufs/by-name/PERSISTENT /dev/block/persistent 33 | 34 | on post-fs 35 | # set RLIMIT_MEMLOCK to 64MB 36 | setrlimit 8 67108864 67108864 37 | 38 | on post-fs-data 39 | # setup cgroup freezer for freecess 40 | mkdir /dev/freezer 41 | mount cgroup none /dev/freezer freezer 42 | mkdir /dev/freezer/frozen 43 | mkdir /dev/freezer/thaw 44 | write /dev/freezer/frozen/freezer.state FROZEN 45 | write /dev/freezer/thaw/freezer.state THAWED 46 | 47 | # MARs for freecess 48 | chown system system /dev/freezer 49 | chown system system /dev/freezer/frozen 50 | chown system system /dev/freezer/frozen/tasks 51 | chown system system /dev/freezer/frozen/cgroup.procs 52 | chown system system /dev/freezer/thaw 53 | chown system system /dev/freezer/thaw/tasks 54 | chown system system /dev/freezer/thaw/cgroup.procs 55 | 56 | # MARs for freecess 57 | chmod 0644 /dev/freezer/frozen/tasks 58 | chmod 0644 /dev/freezer/frozen/cgroup.procs 59 | chmod 0644 /dev/freezer/thaw/tasks 60 | chmod 0644 /dev/freezer/thaw/cgroup.procs 61 | 62 | # Log data folder 63 | mkdir /data/log 0771 radio system 64 | 65 | mkdir /data/vendor 0771 radio system 66 | mkdir /data/vendor/log 0771 radio system 67 | 68 | # Directories for audio 69 | mkdir /data/log/abox 0771 audioserver system 70 | mkdir /data/vendor/log/abox 0771 audioserver system 71 | mkdir /data/firmware 0770 audioserver system 72 | mkdir /efs/maxim 0770 audioserver audio 73 | 74 | # NFC: create data/nfc for nv storage 75 | mkdir /data/nfc 0770 nfc nfc 76 | mkdir /data/nfc/param 0770 nfc nfc 77 | 78 | setprop vold.post_fs_data_done 1 79 | 80 | # Permissions Camera 81 | mkdir /data/camera 0770 cameraserver system 82 | chown cameraserver cameraserver /sys/kernel/mm/vmscan/mem_boost_mode 83 | chown system radio /sys/class/camera/rear/rear_camfw 84 | chown system radio /sys/class/camera/rear/rear_camfw_full 85 | chown system radio /sys/class/camera/rear/rear_checkfw_user 86 | chown system radio /sys/class/camera/rear/rear_checkfw_factory 87 | chown system radio /sys/class/camera/rear/rear_sensor_standby 88 | chown system radio /sys/class/camera/rear/rear_camtype 89 | chown system radio /sys/class/camera/rear/rear_companionfw 90 | chown system radio /sys/class/camera/rear/rear_companionfw_full 91 | chown system radio /sys/class/camera/rear/rear_calcheck 92 | chown system radio /sys/class/camera/rear/rear_afcal 93 | chown system system /sys/class/camera/rear/rear_hwparam 94 | chown cameraserver cameraserver /sys/class/camera/rear/rear_awb_master 95 | chown cameraserver cameraserver /sys/class/camera/rear/rear_awb_module 96 | chown cameraserver cameraserver /sys/class/camera/rear/rear_sensorid_exif 97 | chown cameraserver cameraserver /sys/class/camera/rear/rear_sensorid 98 | chown cameraserver cameraserver /sys/class/camera/rear/ssrm_camera_info 99 | chown system radio /sys/class/camera/rear/rear2_afcal 100 | chown system radio /sys/class/camera/rear/isp_core 101 | chown system radio /sys/class/camera/rear/fw_update 102 | chown system radio /sys/class/camera/rear/companion_ic_check 103 | chown system radio /sys/class/camera/rear/rear_moduleid 104 | chown system radio /sys/class/camera/flash/rear_flash 105 | chown cameraserver system /sys/class/camera/flash/rear_torch_flash 106 | chown system radio /sys/class/camera/front/front_camfw 107 | chown system radio /sys/class/camera/front/front_camfw_full 108 | chown system radio /sys/class/camera/front/front_checkfw_factory 109 | chown system radio /sys/class/camera/front/front_camtype 110 | chown system radio /sys/class/camera/front/front_moduleid 111 | chown system radio /sys/class/camera/front/front_afcal 112 | chown system system /sys/class/camera/front/front_hwparam 113 | chown cameraserver cameraserver /sys/class/camera/front/front_sensorid_exif 114 | chown cameraserver cameraserver /sys/class/camera/front/front_sensorid 115 | chown system radio /sys/class/camera/ois/selftest 116 | chown system radio /sys/class/camera/ois/ois_power 117 | chown system radio /sys/class/camera/ois/ois_rawdata 118 | chown system radio /sys/class/camera/ois/oisfw 119 | chown system radio /sys/class/camera/ois/ois_diff 120 | chown system radio /sys/class/camera/ois/autotest 121 | chown system radio /sys/class/camera/ois/autotest_2nd 122 | chown cameraserver cameraserver /sys/class/camera/ois/ois_exif 123 | chown system radio /sys/class/camera/secure/iris_camfw 124 | chown system radio /sys/class/camera/secure/iris_camfw_full 125 | chown system radio /sys/class/camera/secure/iris_checkfw_factory 126 | chown system radio /sys/class/camera/secure/iris_checkfw_user 127 | chown system system /sys/class/camera/secure/iris_hwparam 128 | 129 | # Iris 130 | mkdir /data/bio 0770 system system 131 | mkdir /data/bio/ir 0770 system system 132 | 133 | # Permissions for PCIe 134 | chown system system /sys/devices/platform/116a0000.pcie0/pcie_sysfs 135 | 136 | chmod 0755 /sys/kernel/debug/tracing 137 | restorecon /sys/kernel/debug/tracing/trace_marker 138 | 139 | # Samsung Pay 140 | mkdir /efs/pfw_data 0760 spay spay 141 | 142 | # MST/NFC Switch 143 | chown spay system /dev/mst_ctrl 144 | chmod 0660 /dev/mst_ctrl 145 | 146 | # for WIFI MAC address 147 | mkdir /efs/wifi 0775 wifi root 148 | chown wifi root /efs/wifi/.mac.info 149 | chmod 0664 /efs/wifi/.mac.info 150 | chown wifi root /efs/wifi/.mac.cob 151 | chmod 0664 /efs/wifi/.mac.cob 152 | 153 | on boot 154 | # SSWAP 155 | write /proc/sys/vm/swappiness 160 156 | 157 | # Allow to access debugfs for system:system 158 | chmod 0755 /sys/kernel/debug 159 | chown system system /sys/kernel/debug 160 | 161 | setprop ro.radio.noril no 162 | 163 | # Set up kernel tracing, but disable it by default 164 | chmod 0222 /sys/kernel/debug/tracing/trace_marker 165 | write /sys/kernel/debug/tracing/tracing_on 0 166 | 167 | #migrate_os 168 | chown system radio /sys/devices/system/sec_os_ctrl/migrate_os 169 | chmod 0664 /sys/devices/system/sec_os_ctrl/migrate_os 170 | 171 | # Change permission for interactive governor 172 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 173 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 174 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack 175 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack 176 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 177 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 178 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 179 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 180 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads 181 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads 182 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 183 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 184 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 185 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 186 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost 187 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost 188 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse 189 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/input_boost 190 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/input_boost 191 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration 192 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration 193 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 194 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 195 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/param_index 196 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/param_index 197 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/mode 198 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/mode 199 | 200 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 201 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 202 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_slack 203 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_slack 204 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 205 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 206 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 207 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 208 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads 209 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads 210 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 211 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 212 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay 213 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay 214 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/boost 215 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/boost 216 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/boostpulse 217 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/input_boost 218 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/input_boost 219 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/boostpulse_duration 220 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/boostpulse_duration 221 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy 222 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy 223 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/param_index 224 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/param_index 225 | chown system system /sys/devices/system/cpu/cpu4/cpufreq/interactive/mode 226 | chmod 0660 /sys/devices/system/cpu/cpu4/cpufreq/interactive/mode 227 | 228 | #HMP 229 | chown system system /sys/kernel/hmp/up_threshold 230 | chown system system /sys/kernel/hmp/family_boost 231 | chown system system /sys/module/cpuidle/parameters/priv_disable 232 | 233 | chmod 0664 /sys/kernel/hmp/up_threshold 234 | chmod 0664 /sys/kernel/hmp/family_boost 235 | chmod 0664 /sys/module/cpuidle/parameters/priv_disable 236 | 237 | #CPUFREQ 238 | chown system system /sys/power/cpufreq_min_limit 239 | chown system system /sys/power/cpufreq_max_limit 240 | chown system system /sys/power/cpufreq_table 241 | 242 | chmod 0664 /sys/power/cpufreq_min_limit 243 | chmod 0664 /sys/power/cpufreq_max_limit 244 | 245 | # MSP Core Status 246 | chown system system /sys/devices/system/cpu/cpu1/online 247 | chown system system /sys/devices/system/cpu/cpu2/online 248 | chown system system /sys/devices/system/cpu/cpu3/online 249 | chown system system /sys/devices/system/cpu/cpu4/online 250 | chown system system /sys/devices/system/cpu/cpu5/online 251 | chown system system /sys/devices/system/cpu/cpu6/online 252 | chown system system /sys/devices/system/cpu/cpu7/online 253 | 254 | # CPUFreq limit without hmp boost 255 | chown radio system /sys/power/cpufreq_min_limit_wo_boost 256 | chmod 0664 /sys/power/cpufreq_min_limit_wo_boost 257 | 258 | # CPU Idle 259 | chown system system /sys/module/cpuidle_exynos64/parameters/enable_mask 260 | 261 | # Permissions for wakeup_to_idle_cpu 262 | chown system system /sys/kernel/hmp/wakeup_to_idle_cpu 263 | chmod 0664 /sys/kernel/hmp/wakeup_to_idle_cpu 264 | 265 | # SEC_PM sysfs 266 | # DVFS & Hotplug 267 | chown system system /sys/devices/system/cpu/kernel_max 268 | chown system system /sys/power/cpuhotplug/enabled 269 | chown system system /sys/power/cpuhotplug/min_online_cpu 270 | chown system system /sys/power/cpuhotplug/max_online_cpu 271 | chmod 0664 /sys/power/cpuhotplug/enabled 272 | chmod 0664 /sys/power/cpuhotplug/min_online_cpu 273 | chmod 0664 /sys/power/cpuhotplug/max_online_cpu 274 | 275 | # cpu dvfs node 276 | chown system system /sys/power/cpuhotplug/cpufreq_table 277 | chmod 0664 /sys/power/cpuhotplug/cpufreq_table 278 | 279 | # mif dvfs node 280 | chown radio system /sys/class/devfreq/17000010.devfreq_mif/available_frequencies 281 | chmod 0664 /sys/class/devfreq/17000010.devfreq_mif/available_frequencies 282 | chown radio system /sys/class/devfreq/17000010.devfreq_mif/scaling_devfreq_min 283 | chmod 0664 /sys/class/devfreq/17000010.devfreq_mif/scaling_devfreq_min 284 | 285 | # int dvfs node 286 | chown radio system /sys/class/devfreq/17000020.devfreq_int/available_frequencies 287 | chmod 0664 /sys/class/devfreq/17000020.devfreq_int/available_frequencies 288 | chown radio system /sys/class/devfreq/17000020.devfreq_int/min_freq 289 | chmod 0664 /sys/class/devfreq/17000020.devfreq_int/min_freq 290 | chown radio system /sys/class/devfreq/17000020.devfreq_int/max_freq 291 | chmod 0664 /sys/class/devfreq/17000020.devfreq_int/max_freq 292 | 293 | # disp dvfs node 294 | chown radio system /sys/class/devfreq/17000040.devfreq_disp/available_frequencies 295 | chmod 0664 /sys/class/devfreq/17000040.devfreq_disp/available_frequencies 296 | chown radio system /sys/class/devfreq/17000040.devfreq_disp/min_freq 297 | chmod 0664 /sys/class/devfreq/17000040.devfreq_disp/min_freq 298 | chown radio system /sys/class/devfreq/17000040.devfreq_disp/max_freq 299 | chmod 0664 /sys/class/devfreq/17000040.devfreq_disp/max_freq 300 | 301 | # cam dvfs node 302 | chown radio system /sys/class/devfreq/17000050.devfreq_cam/available_frequencies 303 | chmod 0664 /sys/class/devfreq/17000050.devfreq_cam/available_frequencies 304 | chown radio system /sys/class/devfreq/17000050.devfreq_cam/min_freq 305 | chmod 0664 /sys/class/devfreq/17000050.devfreq_cam/min_freq 306 | chown radio system /sys/class/devfreq/17000050.devfreq_cam/max_freq 307 | chmod 0664 /sys/class/devfreq/17000050.devfreq_cam/max_freq 308 | 309 | # mali dvfs node 310 | chown radio system /sys/devices/platform/13900000.mali/dvfs_table 311 | chmod 0664 /sys/devices/platform/13900000.mali/dvfs_table 312 | chown radio system /sys/devices/platform/13900000.mali/dvfs_min_lock 313 | chmod 0664 /sys/devices/platform/13900000.mali/dvfs_min_lock 314 | chown radio system /sys/devices/platform/13900000.mali/dvfs_max_lock 315 | chmod 0664 /sys/devices/platform/13900000.mali/dvfs_max_lock 316 | 317 | # Cstate node 318 | chown radio system /sys/module/cpuidle/parameters/off 319 | chmod 0664 /sys/module/cpuidle/parameters/off 320 | 321 | # Permissions for input_booster 322 | chown system radio /sys/class/input_booster/level 323 | chown system radio /sys/class/input_booster/head 324 | chown system radio /sys/class/input_booster/tail 325 | chown system radio /sys/class/input_booster/touchkey/level 326 | chown system radio /sys/class/input_booster/touchkey/freq 327 | chown system radio /sys/class/input_booster/touchkey/time 328 | chmod 0664 /sys/class/input_booster/level 329 | chmod 0664 /sys/class/input_booster/head 330 | chmod 0664 /sys/class/input_booster/tail 331 | chmod 0664 /sys/class/input_booster/touchkey/level 332 | chmod 0664 /sys/class/input_booster/touchkey/freq 333 | chmod 0664 /sys/class/input_booster/touchkey/time 334 | 335 | # RTC reset status 336 | chown system system /sys/power/rtc_status 337 | chmod 0444 /sys/power/rtc_status 338 | chown system system /efs/FactoryApp/rtc_status 339 | chmod 0664 /efs/FactoryApp/rtc_status 340 | 341 | chown system system /d/asv_summary 342 | chmod 0660 /d/asv_summary 343 | 344 | # Support DM logging 345 | # chmod 0770 /system/bin/dmd 346 | 347 | # Support Virtual Com 348 | chmod 0770 /system/bin/vcd 349 | 350 | # Support AP/CP log dump 351 | # chmod 0770 /system/bin/sced 352 | 353 | # Permission for UART SWITCH 354 | chmod 0660 /sys/class/sec/switch/uart_sel 355 | chown system system /sys/class/sec/switch/uart_sel 356 | 357 | # Permission for CCIC 358 | chown system radio /sys/class/sec/ccic/lpm_mode 359 | chown system radio /sys/class/sec/ccic/ccic_control_option 360 | 361 | # Power Meter 362 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_ctrl1 363 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_en 364 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_mode 365 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_all 366 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_0 367 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_1 368 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_2 369 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_3 370 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_4 371 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_5 372 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_6 373 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_val_7 374 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_0 375 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_1 376 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_2 377 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_3 378 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_4 379 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_5 380 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_6 381 | chown system system /sys/class/adc_meter/s2mps17_adc/adc_reg_7 382 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_ctrl1 383 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_en 384 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_mode 385 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_all 386 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_0 387 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_1 388 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_2 389 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_3 390 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_4 391 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_5 392 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_6 393 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_val_7 394 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_0 395 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_1 396 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_2 397 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_3 398 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_4 399 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_5 400 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_6 401 | chmod 0660 /sys/class/adc_meter/s2mps17_adc/adc_reg_7 402 | 403 | chown system system /sys/module/s2mps17_core/parameters/smpl_warn_count 404 | chmod 0660 /sys/module/s2mps17_core/parameters/smpl_warn_count 405 | 406 | #for datarouter 407 | chown system system /dev/dun 408 | chown system system /dev/ttyGS0 409 | chown system system /dev/ttyGS1 410 | chown system system /dev/ttyGS2 411 | chown system system /dev/ttyGS3 412 | 413 | # vibrator 414 | chown system system /sys/class/timed_output/vibrator/enable 415 | chown system system /sys/class/timed_output/vibrator/intensity 416 | chown system system /sys/class/timed_output/vibrator/multi_freq 417 | chown system system /sys/class/timed_output/vibrator/haptic_engine 418 | chown system system /sys/class/timed_output/vibrator/force_touch_intensity 419 | 420 | # SVC LED 421 | chown system system /sys/class/sec/led/led_r 422 | chown system system /sys/class/sec/led/led_g 423 | chown system system /sys/class/sec/led/led_b 424 | 425 | chown system system /sys/class/leds/led_r/brightness 426 | chown system system /sys/class/leds/led_g/brightness 427 | chown system system /sys/class/leds/led_b/brightness 428 | chown system system /sys/class/leds/led_r/delay_on 429 | chown system system /sys/class/leds/led_g/delay_on 430 | chown system system /sys/class/leds/led_b/delay_on 431 | chown system system /sys/class/leds/led_r/delay_off 432 | chown system system /sys/class/leds/led_g/delay_off 433 | chown system system /sys/class/leds/led_b/delay_off 434 | chown system system /sys/class/leds/led_r/blink 435 | chown system system /sys/class/leds/led_g/blink 436 | chown system system /sys/class/leds/led_b/blink 437 | 438 | chown system system /sys/class/sec/led/led_pattern 439 | chown system system /sys/class/sec/led/led_blink 440 | chown system system /sys/class/sec/led/led_br_lev 441 | chown system system /sys/class/sec/led/led_lowpower 442 | 443 | # Bluetooth 444 | chown bluetooth bluetooth /dev/ttySAC1 445 | chmod 0660 /dev/ttySAC1 446 | # permissions for bluetooth. 447 | setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" 448 | chown bluetooth bluetooth ro.bt.bdaddr_path 449 | chmod 0660 /sys/class/rfkill/rfkill0/state 450 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state 451 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type 452 | 453 | # for BT MAC address 454 | mkdir /efs/bluetooth 0770 system bluetooth 455 | # if already exist 456 | chown system bluetooth /efs/bluetooth 457 | chown system bluetooth /efs/bluetooth/bt_addr 458 | chmod 0770 /efs/bluetooth 459 | chmod 0640 /efs/bluetooth/bt_addr 460 | 461 | # Permissions for audio 462 | chown system radio /sys/class/audio/earjack/select_jack 463 | chown system radio /sys/class/audio/earjack/key_state 464 | chown system radio /sys/class/audio/earjack/state 465 | chown system radio /sys/class/audio/earjack/mic_adc 466 | chown system audio /sys/class/dsm/max98506/dsm_log 467 | chown system audio /sys/class/dsm/max98506/spk_excu_max 468 | chmod 0440 /sys/class/dsm/max98506/spk_excu_max 469 | chown system audio /sys/class/dsm/max98506/spk_excu_maxtime 470 | chmod 0440 /sys/class/dsm/max98506/spk_excu_maxtime 471 | chown system audio /sys/class/dsm/max98506/spk_excu_overcnt 472 | chmod 0440 /sys/class/dsm/max98506/spk_excu_overcnt 473 | chown system audio /sys/class/dsm/max98506/spk_temp_max 474 | chmod 0440 /sys/class/dsm/max98506/spk_temp_max 475 | chown system audio /sys/class/dsm/max98506/spk_temp_maxtime 476 | chmod 0440 /sys/class/dsm/max98506/spk_temp_maxtime 477 | chown system audio /sys/class/dsm/max98506/spk_temp_overcnt 478 | chmod 0440 /sys/class/dsm/max98506/spk_temp_overcnt 479 | chown system audio /sys/class/dsm/max98506/spk_amp_reg_wrong_cnt 480 | chmod 0440 /sys/class/dsm/max98506/spk_amp_reg_wrong_cnt 481 | chown system audio /sys/class/dsm/max98506/spk_amp_reg_diff_dump 482 | chmod 0440 /sys/class/dsm/max98506/spk_amp_reg_diff_dump 483 | chown system audio /sys/class/dsm/maxdsm_cal/max 484 | chown system audio /sys/class/dsm/maxdsm_cal/min 485 | chown system audio /sys/class/dsm/maxdsm_cal/status 486 | chown system audio /sys/class/dsm/maxdsm_cal/duration 487 | chown system audio /sys/class/dsm/maxdsm_cal/temp 488 | chown system audio /sys/class/dsm/maxdsm_cal/rdc 489 | chown system audio /sys/class/dsm/maxdsm_cal/v_status 490 | chown system audio /sys/class/dsm/maxdsm_cal/v_duration 491 | chown system audio /sys/class/dsm/maxdsm_cal/v_validation 492 | chown system audio /sys/class/dsm/maxdsm_power/duration 493 | chown system audio /sys/class/dsm/maxdsm_power/interval 494 | chown system audio /sys/class/dsm/maxdsm_power/status 495 | chown audioserver audio /efs/maxim/temp_cal 496 | chown audioserver audio /efs/maxim/rdc_cal 497 | chmod 0660 /efs/maxim/temp_cal 498 | chmod 0660 /efs/maxim/rdc_cal 499 | 500 | # VTS sysfs file permission 501 | chown audioserver system /sys/devices/platform/14020000.vts/vts_svoice_model 502 | chown audioserver system /sys/devices/platform/14020000.vts/vts_google_model 503 | chmod 0660 /sys/devices/platform/14020000.vts/vts_svoice_model 504 | chmod 0660 /sys/devices/platform/14020000.vts/vts_google_model 505 | 506 | # BarTender 507 | mkdir /dev/cpuctl/bg_cached 508 | chown system system /dev/cpuctl/bg_cached/tasks 509 | chown system system /dev/cpuctl/bg_cached/cpu.cfs_period_us 510 | chown system system /dev/cpuctl/bg_cached/cpu.cfs_quota_us 511 | chmod 0666 /dev/cpuctl/bg_cached/tasks 512 | chmod 0664 /dev/cpuctl/bg_cached/cpu.cfs_period_us 513 | chmod 0664 /dev/cpuctl/bg_cached/cpu.cfs_quota_us 514 | write /dev/cpuctl/bg_cached/cpu.rt_runtime_us 10000 515 | write /dev/cpuctl/bg_cached/cpu.rt_period_us 1000000 516 | write /dev/cpuctl/bg_cached/cpu.cfs_period_us 20000 517 | write /dev/cpuctl/bg_cached/cpu.cfs_quota_us 10000 518 | 519 | mkdir /dev/cpuctl/bg_abnormal 520 | chown system system /dev/cpuctl/bg_abnormal/tasks 521 | chown system system /dev/cpuctl/bg_abnormal/cpu.cfs_period_us 522 | chown system system /dev/cpuctl/bg_abnormal/cpu.cfs_quota_us 523 | chmod 0666 /dev/cpuctl/bg_abnormal/tasks 524 | chmod 0664 /dev/cpuctl/bg_abnormal/cpu.cfs_period_us 525 | chmod 0664 /dev/cpuctl/bg_abnormal/cpu.cfs_quota_us 526 | write /dev/cpuctl/bg_abnormal/cpu.rt_runtime_us 10000 527 | write /dev/cpuctl/bg_abnormal/cpu.rt_period_us 1000000 528 | write /dev/cpuctl/bg_abnormal/cpu.cfs_period_us 20000 529 | write /dev/cpuctl/bg_abnormal/cpu.cfs_quota_us 10000 530 | 531 | mkdir /dev/cpuset/cached 532 | write /dev/cpuset/cached/cpus 0-2 533 | copy /dev/cpuset/mems /dev/cpuset/cached/mems 534 | mkdir /dev/cpuset/abnormal 535 | write /dev/cpuset/abnormal/cpus 0-2 536 | copy /dev/cpuset/mems /dev/cpuset/abnormal/mems 537 | 538 | # change permissions for BarTender's cpusets we'll touch at runtime 539 | chown system system /dev/cpuset/cached 540 | chown system system /dev/cpuset/abnormal 541 | chown system system /dev/cpuset/cached/tasks 542 | chown system system /dev/cpuset/abnormal/tasks 543 | chown system system /dev/cpuset/cached/cpus 544 | chown system system /dev/cpuset/abnormal/cpus 545 | chmod 0664 /dev/cpuset/cached/tasks 546 | chmod 0664 /dev/cpuset/abnormal/tasks 547 | chmod 0664 /dev/cpuset/cached/cpus 548 | chmod 0664 /dev/cpuset/abnormal/cpus 549 | 550 | # CPUSET(8895) 551 | chown system system /dev/cpuset/top-app/cpus 552 | chown system system /dev/cpuset/foreground/cpus 553 | chown system system /dev/cpuset/background/cpus 554 | chown system system /dev/cpuset/system-background/cpus 555 | chown system system /dev/cpuset/surfaceflinger/cpus 556 | chmod 664 /dev/cpuset/top-app/cpus 557 | chmod 664 /dev/cpuset/foreground/cpus 558 | chmod 664 /dev/cpuset/background/cpus 559 | chmod 664 /dev/cpuset/system-background/cpus 560 | chmod 664 /dev/cpuset/surfaceflinger/cpus 561 | write /dev/cpuset/top-app/cpus 0-7 562 | write /dev/cpuset/top-app/mems 0 563 | write /dev/cpuset/top-app/family_boost 1 564 | write /dev/cpuset/foreground/cpus 0-2,4-7 565 | write /dev/cpuset/foreground/mems 0 566 | write /dev/cpuset/background/cpus 0-1 567 | write /dev/cpuset/background/mems 0 568 | write /dev/cpuset/system-background/cpus 0-2 569 | write /dev/cpuset/system-background/mems 0 570 | write /dev/cpuset/surfaceflinger/cpus 0-2 571 | write /dev/cpuset/surfaceflinger/mems 0 572 | 573 | # ZRAM setup 574 | write /sys/block/zram0/comp_algorithm lz4 575 | write /proc/sys/vm/page-cluster 0 576 | 577 | on fs 578 | mount_all /fstab.samsungexynos8895 579 | setprop ro.crypto.fuse_sdcard true 580 | chown radio system /efs 581 | restorecon_recursive /efs 582 | 583 | # Permissions for ION 584 | chmod 0660 /sys/class/ion_cma/ion_video_ext/isolated 585 | chown system system /sys/class/ion_cma/ion_video_ext/isolated 586 | 587 | # Permissions for backlight 588 | chown system system /sys/class/backlight/panel/brightness 589 | chown system system /sys/class/backlight/panel/weakness_ccb 590 | 591 | # Permissions for LCD HMT 592 | chown system system /sys/class/lcd/panel/hmt_on 593 | chown system system /sys/class/lcd/panel/hmt_bright 594 | chown system system /sys/class/mdnie/mdnie/hmt_color_temperature 595 | 596 | # Permissions for LCD ALPM 597 | chown system system /sys/class/lcd/panel/alpm 598 | 599 | # Permissions for LCD 600 | chown system radio /sys/class/lcd/panel/manufacture_code 601 | chown system radio /sys/class/lcd/panel/lcd_type 602 | chown system system /sys/class/lcd/panel/siop_enable 603 | chown system system /sys/class/lcd/panel/temperature 604 | chown system radio /sys/class/lcd/panel/mcd_mode 605 | chown system system /sys/class/lcd/panel/lux 606 | chown system media_rw /sys/class/lcd/panel/adaptive_control 607 | chown system system /sys/class/lcd/panel/SVC_OCTA 608 | chown system system /sys/class/lcd/panel/xtalk_mode 609 | chown system system /sys/class/lcd/panel/poc 610 | chown system system /sys/class/lcd/panel/poc_onoff 611 | 612 | # Permissions for LCD COPR 613 | chown system system /sys/class/lcd/panel/copr 614 | 615 | # Permissions for LCD DPUI 616 | chown system system /sys/class/lcd/panel/dpui 617 | chown system system /sys/class/lcd/panel/dpui_dbg 618 | chown system system /sys/class/lcd/panel/dpci 619 | chown system system /sys/class/lcd/panel/dpci_dbg 620 | 621 | # permissions for BCDS systrace 622 | chmod 0666 /sys/class/lcd/panel/fingerprint 623 | chown system media_rw /sys/class/lcd/panel/fingerprint 624 | 625 | # Permissions for MDNIE 626 | chown system media_rw /sys/class/mdnie/mdnie/bypass 627 | chown system media_rw /sys/class/mdnie/mdnie/mode 628 | chown system media_rw /sys/class/mdnie/mdnie/scenario 629 | chown system system /sys/class/mdnie/mdnie/accessibility 630 | chown system system /sys/class/mdnie/mdnie/sensorRGB 631 | chown system system /sys/class/mdnie/mdnie/mdnie_ldu 632 | chown system media_rw /sys/class/mdnie/mdnie/hdr 633 | chown system system /sys/class/mdnie/mdnie/night_mode 634 | chown system system /sys/class/mdnie/mdnie/color_lens 635 | chown system system /sys/class/mdnie/mdnie/whiteRGB 636 | chown system system /sys/class/mdnie/mdnie/light_notification 637 | chmod 0660 /sys/class/mdnie/mdnie/lux 638 | chown system system /sys/class/mdnie/mdnie/lux 639 | 640 | mkdir /efs/etc 0700 system system 641 | chmod 700 /efs/etc 642 | mkdir /efs/etc/poc 0700 system system 643 | chmod 700 /efs/etc/poc 644 | mkdir /cache/poc 0700 system system 645 | chmod 700 /cache/poc 646 | 647 | # Copy DRM Key 648 | copy /system/app/wv.keys /factory/wv.keys 649 | 650 | # Permission for Active clock 651 | chmod 0660 /dev/act_clk 652 | chown system system /dev/act_clk 653 | # Permission for PANEL POC 654 | chmod 0660 /dev/poc 655 | chown system system /dev/poc 656 | 657 | # Permission for DRM Key 658 | chmod 0644 /factory/wv.keys 659 | 660 | # Permissions for System LSI NFC 661 | # NFC : Permissions for NFC 662 | chmod 0660 /dev/sec-nfc 663 | chown nfc nfc /dev/sec-nfc 664 | # Permissions for S.LSI ESE 665 | chmod 0660 /dev/p3 666 | chown system system /dev/p3 667 | 668 | # Permissions for Displayport 669 | # DP AUX switch control for factory test 670 | chmod 0660 /sys/class/dp_sec/dp_sbu_sw_sel 671 | chown system system /sys/class/dp_sec/dp_sbu_sw_sel 672 | # DP DEX control 673 | chmod 0660 /sys/class/dp_sec/dex 674 | chown system system /sys/class/dp_sec/dex 675 | # DP AUX dev control 676 | chmod 0660 /dev/secdp_aux 677 | chown system system /dev/secdp_aux 678 | # DP error info 679 | chmod 0660 /sys/class/dp_sec/dp_error_info 680 | chown system system /sys/class/dp_sec/dp_error_info 681 | 682 | # Permission for flashlight control for HAL3.3 683 | # The Istor espresso board does not have the flash led h/w, So the below permission line are blocked. 684 | # If you want to test the flashlight in universal board which have the flash led h/w, Enable the below blocked lines. 685 | chmod 0660 /sys/class/camera/flash/rear_flash 686 | chown system camera /sys/class/camera/flash/rear_flash 687 | chmod 0660 /sys/class/camera/flash/rear_torch_flash 688 | chown system camera /sys/class/camera/flash/rear_torch_flash 689 | 690 | # Sensors 691 | # Fingerprint_sensor 692 | chmod 0660 /dev/vfsspi 693 | chown system system /dev/vfsspi 694 | 695 | mkdir /dev/validity 0770 system system 696 | chown system radio /sys/class/fingerprint/fingerprint/type_check 697 | chown system radio /sys/class/fingerprint/fingerprint/name 698 | chown system radio /sys/class/fingerprint/fingerprint/vendor 699 | chown system radio /sys/class/fingerprint/fingerprint/adm 700 | chown system radio /sys/class/fingerprint/fingerprint/hbm 701 | 702 | # Accelerometer_sensor 703 | chown system radio /sys/class/sensors/accelerometer_sensor/raw_data 704 | chown system radio /sys/class/sensors/accelerometer_sensor/calibration 705 | chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert 706 | chown system radio /sys/class/sensors/accelerometer_sensor/vendor 707 | chown system radio /sys/class/sensors/accelerometer_sensor/name 708 | chown system radio /sys/class/sensors/accelerometer_sensor/selftest 709 | chown system radio /sys/class/sensors/accelerometer_sensor/lowpassfilter 710 | chown system radio /sys/class/sensors/accelerometer_sensor/dhr_sensor_info 711 | 712 | # Proximity_sensor 713 | chown system radio /sys/class/sensors/proximity_sensor/raw_data 714 | chown system radio /sys/class/sensors/proximity_sensor/prox_avg 715 | chown system radio /sys/class/sensors/proximity_sensor/vendor 716 | chown system radio /sys/class/sensors/proximity_sensor/name 717 | chown system radio /sys/class/sensors/proximity_sensor/thresh_high 718 | chown system radio /sys/class/sensors/proximity_sensor/thresh_low 719 | chown system radio /sys/class/sensors/proximity_sensor/thresh_detect_high 720 | chown system radio /sys/class/sensors/proximity_sensor/thresh_detect_low 721 | chown system radio /sys/class/sensors/proximity_sensor/barcode_emul_en 722 | chown system radio /sys/class/sensors/proximity_sensor/prox_offset_pass 723 | chown system radio /sys/class/sensors/proximity_sensor/prox_trim 724 | chown system radio /sys/class/sensors/proximity_sensor/prox_probe 725 | chown system radio /sys/class/sensors/proximity_sensor/prox_alert_thresh 726 | chown system radio /sys/class/sensors/proximity_sensor/dhr_sensor_info 727 | 728 | # Light_sensor 729 | chown system radio /sys/class/sensors/light_sensor/lux 730 | chown system radio /sys/class/sensors/light_sensor/raw_data 731 | chown system radio /sys/class/sensors/light_sensor/vendor 732 | chown system radio /sys/class/sensors/light_sensor/name 733 | chown system radio /sys/class/sensors/light_sensor/coef 734 | 735 | # Hidden_hole 736 | chown system radio /sys/class/sensors/hidden_hole/hh_is_exist_efs 737 | chown system radio /sys/class/sensors/hidden_hole/hh_ver 738 | chown system radio /sys/class/sensors/hidden_hole/hh_write_all_data 739 | chown system radio /sys/class/sensors/hidden_hole/hh_check_coef 740 | chown system radio /sys/class/sensors/hidden_hole/hh_ext_prox_th 741 | chown system radio /efs/FactoryApp/version 742 | chown system radio /efs/FactoryApp/predefine0 743 | chown system radio /efs/FactoryApp/predefine1 744 | chown system radio /efs/FactoryApp/predefine2 745 | chown system radio /efs/FactoryApp/predefine3 746 | chown system radio /efs/FactoryApp/predefine4 747 | chown system radio /efs/FactoryApp/predefine5 748 | chown system radio /efs/FactoryApp/predefine6 749 | chown system radio /efs/FactoryApp/predefine7 750 | chown system radio /efs/FactoryApp/predefine8 751 | chown system radio /efs/FactoryApp/predefine9 752 | chown system radio /efs/FactoryApp/predefine10 753 | chown system radio /efs/FactoryApp/predefine11 754 | chown system radio /efs/FactoryApp/predefine12 755 | chown system radio /efs/FactoryApp/predefine13 756 | chown system radio /efs/FactoryApp/predefine14 757 | chown system radio /efs/FactoryApp/predefine15 758 | 759 | # Gyro_sensor 760 | chown system radio /sys/class/sensors/gyro_sensor/power_on 761 | chown system radio /sys/class/sensors/gyro_sensor/power_off 762 | chown system media /sys/class/sensors/gyro_sensor/temperature 763 | chown system radio /sys/class/sensors/gyro_sensor/selftest 764 | chown system radio /sys/class/sensors/gyro_sensor/selftest_dps 765 | chown system radio /sys/class/sensors/gyro_sensor/vendor 766 | chown system radio /sys/class/sensors/gyro_sensor/name 767 | 768 | # Barometer_sensor 769 | chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure 770 | chown system radio /sys/class/sensors/barometer_sensor/vendor 771 | chown system radio /sys/class/sensors/barometer_sensor/name 772 | chown system radio /sys/class/sensors/barometer_sensor/calibration 773 | chown system radio /sys/class/sensors/barometer_sensor/temperature 774 | 775 | # Magnetic_sensor 776 | chown system radio /sys/class/sensors/magnetic_sensor/raw_data 777 | chown system radio /sys/class/sensors/magnetic_sensor/vendor 778 | chown system radio /sys/class/sensors/magnetic_sensor/name 779 | chown system radio /sys/class/sensors/magnetic_sensor/dhr_sensor_info 780 | chown system radio /sys/class/sensors/magnetic_sensor/selftest 781 | 782 | # HRM_sensor 783 | chown system radio /sys/class/sensors/hrm_sensor/name 784 | chown system radio /sys/class/sensors/hrm_sensor/vendor 785 | chown system radio /sys/class/sensors/hrm_sensor/led_current 786 | chown system radio /sys/class/sensors/hrm_sensor/eol_test 787 | chown system radio /sys/class/sensors/hrm_sensor/eol_test_result 788 | chown system radio /sys/class/sensors/hrm_sensor/eol_test_status 789 | chown system radio /sys/class/sensors/hrm_sensor/lib_ver 790 | chown system radio /sys/class/sensors/hrm_sensor/part_type 791 | chown system radio /sys/class/sensors/hrm_sensor/device_id 792 | chown system radio /sys/class/sensors/hrm_sensor/hrm_flush 793 | chown system radio /sys/class/sensors/hrm_sensor/threshold 794 | chown system system /sys/class/sensors/hrm_sensor/curr_adc 795 | chown system system /sys/class/sensors/hrm_sensor/i2c_err_cnt 796 | chown system system /sys/class/sensors/hrm_sensor/mode_cnt 797 | chown system system /sys/class/sensors/hrm_sensor/hrm_debug 798 | chown system system /sys/class/sensors/hrm_sensor/write_reg 799 | chown system system /sys/class/sensors/hrm_sensor/read_reg 800 | chown system system /sys/class/sensors/hrm_sensor/osc_trim 801 | chmod 0600 /dev/max_hrm 802 | chown system system /dev/max_hrm 803 | chown system system /efs/FactoryApp/hrm_osc_trim 804 | chmod 0644 /efs/FactoryApp/hrm_osc_trim 805 | 806 | # Grip_sensor 807 | chown system radio /sys/class/sensors/grip_sensor/name 808 | chown system radio /sys/class/sensors/grip_sensor/vendor 809 | chown system radio /sys/class/sensors/grip_sensor/raw_data 810 | chown system radio /sys/class/sensors/grip_sensor/threshold 811 | chown system radio /sys/class/sensors/grip_sensor/calibration 812 | chown system radio /sys/class/sensors/grip_sensor/onoff 813 | chown system radio /sys/class/sensors/grip_sensor/reset 814 | chown system radio /sys/class/sensors/grip_sensor/mode 815 | chown system radio /sys/class/sensors/grip_sensor/gain 816 | chown system radio /sys/class/sensors/grip_sensor/start 817 | chown system radio /sys/class/sensors/grip_sensor/normal_threshold 818 | chown system radio /sys/class/sensors/grip_sensor/gain_ch2 819 | chown system radio /sys/class/sensors/grip_sensor/raw_data_ch2 820 | chown system radio /sys/class/sensors/grip_sensor/diff_avg_ch2 821 | chown system radio /sys/class/sensors/grip_sensor/normal_threshold_ch2 822 | chown system radio /sys/class/sensors/grip_sensor/ch_state 823 | chown system radio /sys/class/sensors/grip_sensor/body_threshold 824 | chown system radio /sys/class/sensors/grip_sensor/grip_flush 825 | chown system radio /sys/class/sensors/grip_sensor/irq_count 826 | 827 | # SensorHub 828 | chown system radio /sys/class/sensors/ssp_sensor/enable 829 | chown system radio /sys/class/sensors/ssp_sensor/mcu_rev 830 | chown system radio /sys/class/sensors/ssp_sensor/mcu_name 831 | chown system radio /sys/class/sensors/ssp_sensor/mcu_test 832 | chown system radio /sys/class/sensors/ssp_sensor/mcu_reset 833 | chown system radio /sys/class/sensors/ssp_sensor/mcu_update 834 | chown system radio /sys/class/sensors/ssp_sensor/mcu_sleep_test 835 | chown system radio /sys/class/sensors/ssp_sensor/ori_poll_delay 836 | chown root system /sys/class/sec/sensorhub/mcu_power 837 | 838 | # Sensorhub IIO 839 | chown system radio /sys/class/sensors/ssp_sensor/accel_poll_delay 840 | chown system radio /sys/class/sensors/ssp_sensor/rot_poll_delay 841 | chown system radio /sys/class/sensors/ssp_sensor/game_rot_poll_delay 842 | chown system radio /sys/class/sensors/ssp_sensor/step_det_poll_delay 843 | chown system radio /sys/class/sensors/ssp_sensor/gyro_poll_delay 844 | chown system radio /sys/class/sensors/ssp_sensor/uncalib_gyro_poll_delay 845 | chown system radio /sys/class/sensors/ssp_sensor/mag_poll_delay 846 | chown system radio /sys/class/sensors/ssp_sensor/uncal_mag_poll_delay 847 | chown system radio /sys/class/sensors/ssp_sensor/light_poll_delay 848 | chown system radio /sys/class/sensors/ssp_sensor/light_flicker_poll_delay 849 | chown system radio /sys/class/sensors/ssp_sensor/light_ir_poll_delay 850 | chown system radio /sys/class/sensors/ssp_sensor/prox_alert_poll_delay 851 | chown system radio /sys/class/sensors/ssp_sensor/pressure_poll_delay 852 | chown system radio /sys/class/sensors/ssp_sensor/tilt_poll_delay 853 | chown system radio /sys/class/sensors/ssp_sensor/pickup_poll_delay 854 | chown system radio /sys/class/sensors/ssp_sensor/prox_poll_delay 855 | chown system radio /sys/class/sensors/ssp_sensor/sig_motion_poll_delay 856 | chown system radio /sys/class/sensors/ssp_sensor/step_cnt_poll_delay 857 | chown system radio /sys/class/sensors/ssp_sensor/uncal_gyro_poll_delay 858 | chown system radio /sys/class/sensors/ssp_sensor/interrupt_gyro_poll_delay 859 | chown system radio /sys/class/sensors/ssp_sensor/ssp_flush 860 | chown system radio /sys/class/sensors/ssp_sensor/sensor_state 861 | chown system radio /sys/class/sensors/ssp_sensor/sensor_dump 862 | 863 | # MOBEAM 864 | chown system radio /sys/class/sec/sec_barcode_emul/vendor 865 | chown system radio /sys/class/sec/sec_barcode_emul/name 866 | chown system radio /sys/class/sec/sec_barcode_emul/barcode_send 867 | chown system radio /sys/class/sec/sec_barcode_emul/barcode_led_status 868 | chown system radio /sys/class/sec/sec_barcode_emul/barcode_ver_check 869 | 870 | # Meta event 871 | chown system radio /sys/class/sensors/sensor_dev/flush 872 | 873 | # DATA_INJECTION 874 | chown system radio /sys/class/sensors/ssp_sensor/data_injection_enable 875 | 876 | #load ecd firmware 877 | write /proc/ecd/load_firmware 1 878 | 879 | # ARGOSD network_throughput 880 | chown system system /dev/network_throughput 881 | 882 | # ARGOSD 883 | service argos-daemon /vendor/bin/argosd 884 | class main 885 | user system 886 | group system radio 887 | 888 | #service trustonic-proxy /system/bin/trustonic_tee_proxy 889 | # class core 890 | # user system 891 | # group system drmrpc 892 | # seclabel u:r:tee:s0 893 | 894 | # Modem boot daemon 895 | # service cpboot-daemon /sbin/cbd -d -tss310 -bm -mm -P sda5 896 | # class main 897 | # user root 898 | # group radio cache inet misc audio sdcard_rw log 899 | # seclabel u:r:cbd:s0 900 | 901 | # DM daemon 902 | # service DM-daemon /system/bin/dmd 903 | # class main 904 | # user root 905 | # group system 906 | 907 | # SCE daemon 908 | # service SCE-daemon /system/bin/sced 909 | # class main 910 | # user root 911 | # group system 912 | 913 | # diag daemon 914 | # service DM-daemon /system/bin/diagexe 915 | # class main 916 | # user root 917 | # group system 918 | # seclabel u:r:dmd:s0 919 | 920 | service fuse_sdcard /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard /storage/sdcard 921 | class late_start 922 | disabled 923 | service fuse_usb1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usb1 /storage/usb1 924 | class late_start 925 | disabled 926 | service fuse_usb2 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usb2 /storage/usb2 927 | class late_start 928 | disabled 929 | 930 | # Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin 931 | service watchdogd /sbin/watchdogd 10 20 932 | class core 933 | seclabel u:r:watchdogd:s0 934 | 935 | service watchdog_break /system/bin/watchdog_break.sh 936 | oneshot 937 | class core 938 | seclabel u:r:watchdogd:s0 939 | 940 | # on userdebug and eng builds, enable kgdb on the serial console 941 | on property:ro.debuggable=1 942 | write /sys/module/kgdboc/parameters/kgdboc ttyFIQ1 943 | write /sys/module/fiq_debugger/parameters/kgdb_enable 1 944 | 945 | on property:ro.bootmode=charger 946 | mkdir /efs/lpm 0775 system system 947 | class_start sec-charger 948 | 949 | # umount service 950 | service umount_service /system/bin/umount -D /preload 951 | disabled 952 | seclabel u:r:umount_service:s0 953 | oneshot 954 | 955 | on property:sys.mobicoredaemon.enable=true 956 | write /proc/iccc_ready 1 957 | 958 | # irisd 959 | service irisd /system/bin/irisd 960 | class late_start 961 | user system 962 | group system 963 | 964 | # faced 965 | service faced /system/bin/faced 966 | class late_start 967 | user system 968 | group system 969 | 970 | on property:sys.boot_completed=1 971 | swapon_all /fstab.${ro.hardware} 972 | setprop security.semdaemonfinish 0 973 | start sem_daemon 974 | # Change permission for A-Box firmware logs file & GPR dump 975 | chown audioserver system /sys/kernel/debug/abox/log-00 976 | chown audioserver system /sys/devices/platform/13e50000.abox/13e50000.abox:abox_debug@0/gpr 977 | chown audioserver system /sys/devices/platform/13e50000.abox/13e50000.abox:abox_debug@0/calliope_sram 978 | chown audioserver system /sys/devices/platform/13e50000.abox/13e50000.abox:abox_debug@0/calliope_dram 979 | chown audioserver system /sys/devices/platform/13e50000.abox/13e50000.abox:abox_debug@0/calliope_iva 980 | 981 | on property:security.semdaemonfinish=1 982 | stop sem_daemon 983 | 984 | # SSWAP 985 | service swapon /sbin/sswap -s -f 2048 986 | class core 987 | user root 988 | group root 989 | seclabel u:r:sswap:s0 990 | oneshot 991 | --------------------------------------------------------------------------------