commit bc8e833c078173b96d9af207596c58c3cabad2d8 Author: MandySingh3 Date: Mon Apr 3 03:16:24 2017 +0530 Initial TWRP diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..bd04c3a --- /dev/null +++ b/Android.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2016 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +ifneq ($(filter potter, $(TARGET_DEVICE)),) + +LOCAL_PATH := $(call my-dir) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif \ No newline at end of file diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..5c81bfe --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2015 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/omni_potter.mk \ No newline at end of file diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..679f16b --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,77 @@ +# +# Copyright (C) 2015-2016 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +DEVICE_PATH := device/motorola/potter + +TARGET_RECOVERY_DEVICE_DIRS := $(DEVICE_PATH) + +TARGET_ARCH := arm +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_CPU_VARIANT := cortex-a53 +TARGET_ARCH_VARIANT := armv7-a-neon +TARGET_CPU_SMP := true +ARCH_ARM_HAVE_TLS_REGISTER := true + +TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp +TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp + +TARGET_BOARD_PLATFORM := msm8953 + +TARGET_BOOTLOADER_BOARD_NAME := MSM8953 +TARGET_NO_BOOTLOADER := true + +#TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/boot.img-zImage +#TARGET_PREBUILT_DTB := $(DEVICE_PATH)/boot.img-dt + +BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci vmalloc=350M androidboot.selinux=permissive +BOARD_KERNEL_BASE := 0x80000000 +BOARD_KERNEL_SEPARATED_DT := true +BOARD_RAMDISK_OFFSET := 0x01000000 +BOARD_KERNEL_PAGESIZE := 2048 +BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 +BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkbootimg.mk +KERNEL_TOOLCHAIN_PREFIX := arm-linux-androidkernel- +TARGET_KERNEL_CONFIG := addison_potter +TARGET_KERNEL_SOURCE := kernel/motorola/msm8953 + +BOARD_USES_QCOM_HARDWARE := true + +# Partitions +BOARD_FLASH_BLOCK_SIZE := 131072 +BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 # 16384 * 1024 mmcblk0p37 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16879616 # 16484 * 1024 mmcblk0p38 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4294967296 # 4194304 * 1024 mmcblk0p53 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 25614597120 # 25014255 * 1024 mmcblk0p54 + +# don't take forever to wipe +BOARD_SUPPRESS_SECURE_ERASE := true +#COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD + +# Crypto +TARGET_HW_DISK_ENCRYPTION := true +TW_INCLUDE_CRYPTO := true + +# TWRP +RECOVERY_SDCARD_ON_DATA := true +TARGET_RECOVERY_FSTAB := device/motorola/potter/twrp.fstab +TARGET_RECOVERY_PIXEL_FORMAT := RGB_565 +TARGET_RECOVERY_QCOM_RTC_FIX := true +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_USERIMAGES_USE_F2FS := true +TW_NEW_ION_HEAP := true +TW_THEME := portrait_hdpi +TW_SCREEN_BLANK_ON_BOOT := true \ No newline at end of file diff --git a/full_potter.mk b/full_potter.mk new file mode 100644 index 0000000..d979b2a --- /dev/null +++ b/full_potter.mk @@ -0,0 +1,25 @@ +# +# Copyright (C) 2015 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := potter +PRODUCT_NAME := full_potter +PRODUCT_BRAND := motorola +PRODUCT_MODEL := Moto G5 Plus +PRODUCT_MANUFACTURER := motorola \ No newline at end of file diff --git a/mkbootimg.mk b/mkbootimg.mk new file mode 100644 index 0000000..da68e89 --- /dev/null +++ b/mkbootimg.mk @@ -0,0 +1,45 @@ +LOCAL_PATH := $(call my-dir) + +## Don't change anything under here. The variables are named MSM8916_whatever +## on purpose, to avoid conflicts with similarly named variables at other +## parts of the build environment + +## Imported from the original makefile... +KERNEL_CONFIG := $(KERNEL_OUT)/.config +KERNEL_ZIMG = $(KERNEL_OUT)/arch/arm/boot/zImage +DTC = $(KERNEL_OUT)/scripts/dtc/dtc + + +## Build and run dtbtool +DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX) + +INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img + +ifndef TARGET_PREBUILT_DTB +$(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr $(INSTALLED_KERNEL_TARGET) + @echo -e ${CL_CYN}"Start DT image: $@"${CL_RST} + $(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)") + $(hide) $(DTBTOOL) -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/dts/qcom/ + @echo -e ${CL_CYN}"Made DT image: $@"${CL_RST} +else +$(INSTALLED_DTIMAGE_TARGET): $(TARGET_PREBUILT_DTB) + cp $(TARGET_PREBUILT_DTB) $(INSTALLED_DTIMAGE_TARGET) +endif + +## Overload bootimg generation: Same as the original, + --dt arg +$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET) + $(call pretty,"Target boot image: $@") + $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@ + @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} + +LZMA_RAMDISK := $(PRODUCT_OUT)/ramdisk-recovery-lzma.img + +$(LZMA_RAMDISK): $(recovery_ramdisk) + gunzip -f < $(recovery_ramdisk) | lzma > $@ + +## Overload recoveryimg generation: Same as the original, + --dt arg +$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) $(LZMA_RAMDISK) $(recovery_kernel) + @echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST} + $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@ --ramdisk $(LZMA_RAMDISK) + $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) + @echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} \ No newline at end of file diff --git a/omni_potter.mk b/omni_potter.mk new file mode 100644 index 0000000..df34a61 --- /dev/null +++ b/omni_potter.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2015 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Inherit from our custom product configuration +$(call inherit-product, vendor/omni/config/common.mk) + +$(call inherit-product, device/motorola/potter/full_potter.mk) + +PRODUCT_NAME := omni_potter \ No newline at end of file diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc new file mode 100644 index 0000000..0a3494f --- /dev/null +++ b/recovery/root/init.recovery.qcom.rc @@ -0,0 +1,10 @@ +# separate copy needed to use /sbin/linker instead of /system/bin/linker +service sbinqseecomd /sbin/qseecomd + oneshot + disabled + user root + group root + seclabel u:r:recovery:s0 + +on property:ro.crypto.state=encrypted + start sbinqseecomd \ No newline at end of file diff --git a/recovery/root/sbin/qseecomd b/recovery/root/sbin/qseecomd new file mode 100644 index 0000000..bf39518 Binary files /dev/null and b/recovery/root/sbin/qseecomd differ diff --git a/recovery/root/ueventd.qcom.rc b/recovery/root/ueventd.qcom.rc new file mode 100644 index 0000000..e9c9082 --- /dev/null +++ b/recovery/root/ueventd.qcom.rc @@ -0,0 +1,342 @@ +# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of The Linux Foundation nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +# the DIAG device node is not world writable/readable. +/dev/diag 0660 system qcom_diag +/dev/ttydiag0 0660 system qcom_diag +/dev/ttydiag1 0660 system qcom_diag +/dev/ttydiag2 0660 system qcom_diag + +/dev/genlock 0666 system system +/dev/kgsl 0666 system system +/dev/kgsl-3d0 0666 system system +/dev/kgsl-2d0 0666 root root +/dev/kgsl-2d1 0666 root root +/dev/ion 0664 system system +/dev/rtc0 0660 system system +/dev/smd0 0660 system system +/dev/smd4 0660 system system +/dev/smd_cxm_qmi 0640 radio radio +/dev/smd5 0660 system system +/dev/smd6 0660 system system +/dev/smd7 0660 bluetooth bluetooth +/dev/ccid_bridge 0660 system system +/dev/ipa 0660 system net_admin +/dev/wwan_ioctl 0660 system net_admin +/dev/ipaNatTable 0660 net_admin net_admin +/dev/rmnet_ctrl 0660 usb usb +/dev/dpl_ctrl 0660 usb usb + +#permissions for CSVT +/dev/smd11 0660 radio radio + +/dev/radio0 0640 system system +/dev/rfcomm0 0660 bluetooth bluetooth +/dev/ttyUSB0 0660 bluetooth bluetooth +/dev/smdcntl0 0640 radio radio +/dev/smdcntl1 0640 radio radio +/dev/smdcntl2 0640 radio radio +/dev/smdcntl3 0640 radio radio +/dev/smdcntl4 0640 radio radio +/dev/smdcntl5 0640 radio radio +/dev/smdcntl6 0640 radio radio +/dev/smdcntl7 0640 radio radio +/dev/smdcntl8 0640 radio radio +/dev/smdcnt_rev0 0640 radio radio +/dev/smdcnt_rev1 0640 radio radio +/dev/smdcnt_rev2 0640 radio radio +/dev/smdcnt_rev3 0640 radio radio +/dev/smdcnt_rev4 0640 radio radio +/dev/smdcnt_rev5 0640 radio radio +/dev/smdcnt_rev6 0640 radio radio +/dev/smdcnt_rev7 0640 radio radio +/dev/smdcnt_rev8 0640 radio radio +/dev/smuxctl32 0640 radio radio +/dev/sdioctl0 0640 radio radio +/dev/sdioctl1 0640 radio radio +/dev/sdioctl2 0640 radio radio +/dev/sdioctl3 0640 radio radio +/dev/sdioctl4 0640 radio radio +/dev/sdioctl5 0640 radio radio +/dev/sdioctl6 0640 radio radio +/dev/sdioctl7 0640 radio radio +/dev/sdioctl8 0640 radio radio +/dev/rmnet_mux_ctrl 0640 radio radio +/dev/hsicctl0 0640 radio radio +/dev/hsicctl1 0640 radio radio +/dev/hsicctl2 0640 radio radio +/dev/hsicctl3 0640 radio radio +/dev/hsicctl4 0640 radio radio +/dev/hsicctl5 0640 radio radio +/dev/hsicctl6 0640 radio radio +/dev/hsicctl7 0640 radio radio +/dev/hsicctl8 0640 radio radio +/dev/hsicctl9 0640 radio radio +/dev/hsicctl10 0640 radio radio +/dev/hsicctl11 0640 radio radio +/dev/hsicctl12 0640 radio radio +/dev/hsicctl13 0640 radio radio +/dev/hsicctl14 0640 radio radio +/dev/hsicctl15 0640 radio radio +/dev/hsicctl16 0640 radio radio +/dev/mhi_pipe_14 0640 radio radio +/dev/mhi_pipe_16 0640 radio radio +/dev/mhi_pipe_32 0640 radio radio +/dev/at_usb0 0640 radio radio +/dev/at_mdm0 0640 radio radio +/dev/video* 0660 system camera +/dev/v4l2-hal-ctrl 0660 system camera +/dev/media* 0660 system camera +/dev/v4l-subdev* 0660 system camera +/dev/qseecom 0660 system drmrpc +/dev/qsee_ipc_irq_spss 0660 system drmrpc +/dev/seemplog 0660 system system +/dev/pft 0660 system drmrpc +/dev/spcom 0660 system system +/dev/sp_kernel 0660 system system +/dev/sp_ssr 0660 system system +/dev/sp_keymaster 0660 system system +/dev/cryptoapp 0660 system system +/dev/gemini0 0660 system camera +/dev/jpeg0 0660 system camera +/dev/jpeg1 0660 system camera +/dev/jpeg2 0660 system camera +/dev/jpeg3 0660 system camera +/dev/adsprpc-smd 0664 system system +/dev/system_health_monitor 0644 radio system +/dev/mdss_rotator 0664 system system +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system +/dev/msm_camera/* 0660 system camera +/dev/gemini/ 0660 system camera +/dev/mercury0 0660 system camera +/dev/msm_vidc_reg 0660 system audio +/dev/msm_vidc_dec 0660 system audio +/dev/msm_vidc_dec_sec 0660 system audio +/dev/msm_vidc_enc 0660 system audio +/dev/msm_rotator 0660 system system +/dev/hw_random 0600 root root +/dev/sdsprpc-smd 0660 system system + +#permissions for audio +/dev/wcd-dsp-glink 0660 system audio +/dev/audio_slimslave 0660 system audio +/dev/msm_qcelp 0660 system audio +/dev/msm_evrc 0660 system audio +/dev/msm_wma 0660 system audio +/dev/msm_wmapro 0660 system audio +/dev/msm_alac 0660 system audio +/dev/msm_ape 0660 system audio +/dev/msm_amrnb 0660 system audio +/dev/msm_amrwb 0660 system audio +/dev/msm_amrwbplus 0660 system audio +/dev/msm_aac 0660 system audio +/dev/msm_multi_aac 0660 system audio +/dev/msm_aac_in 0660 system audio +/dev/msm_qcelp_in 0660 system audio +/dev/msm_evrc_in 0660 system audio +/dev/msm_amrnb_in 0640 system audio +/dev/msm_a2dp_in 0660 system audio +/dev/msm_ac3 0660 system audio +/dev/msm_audio_cal 0660 system audio +/dev/msm_hweffects 0660 system audio +/dev/msm_cad 0660 system audio +/dev/msm_fm 0660 system audio +/dev/msm_mvs 0660 system audio +/dev/msm_pcm_lp_dec 0660 system audio +/dev/msm_preproc_ctl 0660 system audio +/dev/msm_rtac 0660 system audio +/dev/msm_voicememo 0660 system audio +/dev/smd3 0660 bluetooth net_bt_stack +/dev/smd2 0660 bluetooth net_bt_stack +/dev/ttyHSL1 0660 system system +/dev/ttyHS1 0660 system system +/dev/mdm 0660 system radio +/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio +/dev/sdio_tty_ciq_00 0660 system system +/dev/tty_sdio_00 0660 system system +/dev/ttyGS0 0660 system system +/dev/i2c-5 0660 media media +/dev/voice_svc 0660 system audio +/dev/avtimer 0660 system audio + +# DVB devices +/dev/dvb/adapter0/demux* 0440 media media +/dev/dvb/adapter0/dvr* 0660 media media +/dev/dvb/adapter0/video* 0660 media media + +# Broadcast devices +/dev/tsc_mux0 0660 media media +/dev/tsc_ci0 0660 media media + +# sensors +/sys/devices/i2c-12/12-* pollrate_ms 0664 system system +/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system +/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* enable 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* poll_delay 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* enable_wakeup 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* max_latency 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* flush 0660 input system +/sys/devices/soc/78b6000.i2c/i2c-0/0-* calibrate 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* enable 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* poll_delay 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* enable_wakeup 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* max_latency 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* flush 0660 input system +/sys/devices/soc/78b5000.i2c/i2c-1/1-* calibrate 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system +/sys/devices/virtual/input/input* poll 0660 input system +/sys/devices/virtual/input/input* pollrate_ms 0660 input system +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch_enable 0660 system drmrpc + +# laser sensor access +/sys/devices/virtual/input/input* enable_ps_sensor 0660 system system +/sys/devices/virtual/input/input* set_delay_ms 0660 system system + +# vm_bms +/dev/vm_bms 0660 system system +/dev/battery_data 0660 system system + +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system +/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0/queues/rx-* rps_cpus 0660 system system +/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/p2p0/queues/rx-* rps_cpus 0660 system system + +#nfc permissions +/dev/nfc-nci 0660 nfc nfc +/dev/nq-nci 0660 nfc nfc +/dev/assd 0660 nfc nfc +/dev/pn544 0660 nfc nfc +/dev/bcm2079x-i2c 0660 nfc nfc + +# UIO devices +/dev/uio0 0660 system system +/dev/uio1 0660 system system +/dev/uio2 0660 system system + +# SSR devices +/dev/subsys_* 0640 system system + +# Add device block for FRP +/dev/block/bootdevice/by-name/frp 0600 system system + +# Ultrasound device +/dev/usf1 0660 system system + +# Ramdump devices +/dev/ramdump* 0640 system system + +# Fingerprint device +/dev/qbt1000 0660 system system + +#ImproveTouch device +/dev/hbtp_input 0660 system system +/dev/hbtp_vm 0660 system system + +# Add device block for FRP +/dev/block/platform/soc/7464900.sdhci/by-name/frp 0600 system system +/dev/block/platform/soc/624000.ufshc/by-name/frp 0600 system system +/dev/block/bootdevice/by-name/frp 0600 system system + +# I2C +/dev/i2c-* 0660 system system + +#JOT fixture devices for AMPS factory testing +/dev/hidraw0 0660 root mot_tcmd +/dev/hidraw1 0660 root mot_tcmd + +# MOD device +/sys/devices/soc/75b5000.i2c/i2c-7/7-0072 irq_enable 0660 mot_tcmd mot_tcmd +/sys/devices/soc/0.apba_ctrl apba_enable 0660 mot_tcmd mot_mod +/sys/devices/soc/0.apba_ctrl apba_mode 0660 mot_tcmd mot_mod +/sys/devices/soc/0.apba_ctrl flash_partition 0220 mot_tcmd mot_mod +/sys/devices/soc/0.apba_ctrl unipro_mid 0440 root mot_mod +/sys/devices/soc/0.apba_ctrl unipro_pid 0440 root mot_mod +/sys/devices/soc/0.apba_ctrl vid 0440 root mot_mod +/sys/devices/soc/0.apba_ctrl pid 0440 root mot_mod +/sys/devices/soc/0.apba_ctrl fw_version 0440 root mot_mod +/sys/devices/soc/0.apba_ctrl fw_version_str 0440 root mot_mod +/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* hotplug 0660 root mot_mod +/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* uevent 0660 root mot_mod +/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* current_limit 0220 root mot_mod +/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* rtc_sync 0220 root mot_mod +/sys/devices/soc/soc:muc_svc@0 flashmode 0660 root mot_mod +/sys/devices/soc/soc:muc_svc@0 reset 0660 root mot_mod +/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* hotplug 0660 root mot_mod +/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* uevent 0660 root mot_mod +/sys/devices/soc/0.muc/0.muc:muc_svc@0 flashmode 0660 root mot_mod +/sys/devices/platform/mods_ap uevent 0660 root mot_mod +/sys/devices/platform/mods_ap/* uevent 0660 root mot_mod +/sys/devices/platform/mods_ap/greybus1 uevent 0664 root mot_mod + +# MOD display device +/sys/devices/platform/mods_ap/greybus1/*/*/display/display* state 0660 root mot_mod +/sys/devices/platform/mods_ap/greybus1/*/*/display/display* config 0444 root mot_mod +/sys/devices/platform/mods_ap/greybus1/*/*/display/display* notification 0660 root mot_mod + +# MOD light device +/sys/devices/platform/mods_ap/greybus1/*/*/leds/mod_light*::backlight brightness 0660 root mot_mod + +# RAW device +/dev/gbraw* 0660 root mot_mod +# Audio device +/sys/devices/platform/mods_codec.0 uevent 0660 root mot_mod +/sys/devices/platform/mods_codec.0/* uevent 0660 root mot_mod + +# MOD camera device +/dev/mot_camera_ext* 0660 system camera +/sys/devices/virtual/video4linux/mot_camera_ext* open_mode 0660 system camera +/sys/devices/virtual/video4linux/mot_camera_ext* uevent 0660 root mot_mod +/sys/devices/virtual/video4linux/video* open_mode 0660 system camera +/sys/devices/virtual/video4linux/video* uevent 0660 root mot_mod + +# Laser device +/dev/laser 0660 system camera + +# haptic +/dev/drv2605 0660 system system + +#DTV +/dev/isdbt 0660 mot_dtv mot_dtv + +#Egistec fingerprint +/dev/esfp0 0660 system system diff --git a/recovery/root/vendor/lib/hw/keystore.msm8953.so b/recovery/root/vendor/lib/hw/keystore.msm8953.so new file mode 100644 index 0000000..7fb8af5 Binary files /dev/null and b/recovery/root/vendor/lib/hw/keystore.msm8953.so differ diff --git a/recovery/root/vendor/lib/libQSEEComAPI.so b/recovery/root/vendor/lib/libQSEEComAPI.so new file mode 100644 index 0000000..3a5726f Binary files /dev/null and b/recovery/root/vendor/lib/libQSEEComAPI.so differ diff --git a/recovery/root/vendor/lib/libdiag.so b/recovery/root/vendor/lib/libdiag.so new file mode 100644 index 0000000..055683f Binary files /dev/null and b/recovery/root/vendor/lib/libdiag.so differ diff --git a/recovery/root/vendor/lib/libdrmfs.so b/recovery/root/vendor/lib/libdrmfs.so new file mode 100644 index 0000000..485d54b Binary files /dev/null and b/recovery/root/vendor/lib/libdrmfs.so differ diff --git a/recovery/root/vendor/lib/libdrmtime.so b/recovery/root/vendor/lib/libdrmtime.so new file mode 100644 index 0000000..89b16d5 Binary files /dev/null and b/recovery/root/vendor/lib/libdrmtime.so differ diff --git a/recovery/root/vendor/lib/librpmb.so b/recovery/root/vendor/lib/librpmb.so new file mode 100644 index 0000000..c0a96da Binary files /dev/null and b/recovery/root/vendor/lib/librpmb.so differ diff --git a/recovery/root/vendor/lib/libssd.so b/recovery/root/vendor/lib/libssd.so new file mode 100644 index 0000000..35c8a2a Binary files /dev/null and b/recovery/root/vendor/lib/libssd.so differ diff --git a/recovery/root/vendor/lib/libtime_genoff.so b/recovery/root/vendor/lib/libtime_genoff.so new file mode 100644 index 0000000..1d99d4d Binary files /dev/null and b/recovery/root/vendor/lib/libtime_genoff.so differ diff --git a/twrp.fstab b/twrp.fstab new file mode 100644 index 0000000..a3f2aac --- /dev/null +++ b/twrp.fstab @@ -0,0 +1,13 @@ +/system ext4 /dev/block/bootdevice/by-name/system +/data f2fs /dev/block/bootdevice/by-name/userdata flags=encryptable=/dev/block/bootdevice/by-name/metadata +/keymaster emmc /dev/block/bootdevice/by-name/keymaster +/cache auto /dev/block/bootdevice/by-name/cache +/boot emmc /dev/block/bootdevice/by-name/boot +/recovery emmc /dev/block/bootdevice/by-name/recovery +/oem ext4 /dev/block/bootdevice/by-name/oem +/persist ext4 /dev/block/bootdevice/by-name/persist flags=fsflags=noatime,nosuid,nodev,barrier=1,noauto_da_alloc;mounttodecrypt +/firmware ext4 /dev/block/bootdevice/by-name/modem flags=fsflags=ro,nosuid,nodev,barrier=0;mounttodecrypt +/misc emmc /dev/block/bootdevice/by-name/misc + +/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="MicroSD Card";storage;wipeingui;removable +/usb_otg auto /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable \ No newline at end of file diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..fb387fc --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo omni_potter-userdebug \ No newline at end of file