├── README.md ├── tethered ├── athene │ ├── athene-xt1622-mpj24.139-63 │ │ ├── charger │ │ ├── default.prop │ │ ├── file_contexts │ │ ├── fstab.qcom │ │ ├── init │ │ ├── init.3gb.rc │ │ ├── init.amxar.rc │ │ ├── init.amxbr.rc │ │ ├── init.amxcl.rc │ │ ├── init.amxco.rc │ │ ├── init.amxla.rc │ │ ├── init.amxmx.rc │ │ ├── init.amxpe.rc │ │ ├── init.att.rc │ │ ├── init.bwaca.rc │ │ ├── init.class_main.sh │ │ ├── init.eegb.rc │ │ ├── init.environ.rc │ │ ├── init.mdm.sh │ │ ├── init.mmi.block_perm.sh │ │ ├── init.mmi.boot.sh │ │ ├── init.mmi.common.rc │ │ ├── init.mmi.debug.rc │ │ ├── init.mmi.diag.rc │ │ ├── init.mmi.diag_mdlog.rc │ │ ├── init.mmi.dtv.rc │ │ ├── init.mmi.laser.sh │ │ ├── init.mmi.overlay.rc │ │ ├── init.mmi.rc │ │ ├── init.mmi.usb.rc │ │ ├── init.mmi.usb.sh │ │ ├── init.oem.hw.sh │ │ ├── init.oem.rc │ │ ├── init.oraes.rc │ │ ├── init.orafr.rc │ │ ├── init.qcom.bms.sh │ │ ├── init.qcom.class_core.sh │ │ ├── init.qcom.early_boot.sh │ │ ├── init.qcom.factory.rc │ │ ├── init.qcom.rc │ │ ├── init.qcom.sh │ │ ├── init.qcom.syspart_fixup.sh │ │ ├── init.rc │ │ ├── init.rcica.rc │ │ ├── init.recovery.qcom.rc │ │ ├── init.target.rc │ │ ├── init.trace.rc │ │ ├── init.usb.configfs.rc │ │ ├── init.usb.rc │ │ ├── init.vffr.rc │ │ ├── init.zygote32.rc │ │ ├── module_hashes │ │ ├── property_contexts │ │ ├── res │ │ │ └── images │ │ │ │ └── charger │ │ │ │ ├── battery_fail.png │ │ │ │ └── battery_scale.png │ │ ├── sbin │ │ │ ├── adbd │ │ │ ├── healthd │ │ │ ├── qcrypto_module.hmac │ │ │ ├── qcrypto_module.ko │ │ │ ├── qdrbg_module.hmac │ │ │ ├── qdrbg_module.ko │ │ │ ├── qfintverify │ │ │ ├── qfintverify.hmac │ │ │ ├── ueventd │ │ │ └── watchdogd │ │ ├── seapp_contexts │ │ ├── selinux_version │ │ ├── sepolicy │ │ ├── service_contexts │ │ ├── ueventd.qcom.rc │ │ ├── ueventd.rc │ │ ├── verity_key │ │ └── xbin │ │ │ ├── qe │ │ │ ├── qee.dat │ │ │ └── qem.dat │ ├── athene-xt1622-npjs25.93-14-4 │ │ ├── bugreports │ │ ├── charger │ │ ├── d │ │ ├── default.prop │ │ ├── etc │ │ ├── file_contexts.bin │ │ ├── fstab.qcom │ │ ├── init │ │ ├── init.3gb.rc │ │ ├── init.amxar.rc │ │ ├── init.amxbr.rc │ │ ├── init.amxcl.rc │ │ ├── init.amxco.rc │ │ ├── init.amxla.rc │ │ ├── init.amxmx.rc │ │ ├── init.amxpe.rc │ │ ├── init.att.rc │ │ ├── init.bwaca.rc │ │ ├── init.class_main.sh │ │ ├── init.eegb.rc │ │ ├── init.environ.rc │ │ ├── init.mdm.sh │ │ ├── init.mmi.block_perm.sh │ │ ├── init.mmi.boot.sh │ │ ├── init.mmi.common.rc │ │ ├── init.mmi.debug.rc │ │ ├── init.mmi.diag.rc │ │ ├── init.mmi.diag_mdlog.rc │ │ ├── init.mmi.dtv.rc │ │ ├── init.mmi.laser.sh │ │ ├── init.mmi.overlay.rc │ │ ├── init.mmi.rc │ │ ├── init.mmi.sensor.rc │ │ ├── init.mmi.usb.rc │ │ ├── init.mmi.usb.sh │ │ ├── init.mmi.volte.rc │ │ ├── init.oem.hw.sh │ │ ├── init.oem.rc │ │ ├── init.oraes.rc │ │ ├── init.orafr.rc │ │ ├── init.qcom.bms.sh │ │ ├── init.qcom.build.rc │ │ ├── init.qcom.class_core.sh │ │ ├── init.qcom.early_boot.sh │ │ ├── init.qcom.factory.rc │ │ ├── init.qcom.rc │ │ ├── init.qcom.sh │ │ ├── init.qcom.syspart_fixup.sh │ │ ├── init.rc │ │ ├── init.rcica.rc │ │ ├── init.recovery.qcom.rc │ │ ├── init.target.rc │ │ ├── init.usb.configfs.rc │ │ ├── init.usb.rc │ │ ├── init.vffr.rc │ │ ├── init.zygote32.rc │ │ ├── module_hashes │ │ ├── property_contexts │ │ ├── res │ │ │ └── images │ │ │ │ └── charger │ │ │ │ ├── battery_fail.png │ │ │ │ └── battery_scale.png │ │ ├── sbin │ │ │ ├── adbd │ │ │ ├── healthd │ │ │ ├── qcrypto_module.hmac │ │ │ ├── qcrypto_module.ko │ │ │ ├── qdrbg_module.hmac │ │ │ ├── qdrbg_module.ko │ │ │ ├── qfintverify │ │ │ ├── qfintverify.hmac │ │ │ ├── ueventd │ │ │ └── watchdogd │ │ ├── sdcard │ │ ├── seapp_contexts │ │ ├── sepolicy │ │ ├── service_contexts │ │ ├── ueventd.qcom.rc │ │ ├── ueventd.rc │ │ ├── vendor │ │ ├── verity_key │ │ └── xbin │ │ │ ├── qe │ │ │ ├── qee.dat │ │ │ └── qem.dat │ ├── initroot-athene-xt1622-mpj24.139-63.cpio.gz │ ├── initroot-athene-xt1622-npjs25.93-14-4-padded.cpio.gz │ ├── initroot-athene-xt1622-npjs25.93-14-4.cpio.gz │ └── initroot-tethered.sh ├── cedric │ ├── cedric-npp25.137-33 │ │ ├── charger │ │ ├── d │ │ ├── default.prop │ │ ├── etc │ │ ├── file_contexts.bin │ │ ├── fstab.qcom │ │ ├── init │ │ ├── init.3gb.rc │ │ ├── init.acg.rc │ │ ├── init.altfr.rc │ │ ├── init.amxar.rc │ │ ├── init.amxbr.rc │ │ ├── init.amxcl.rc │ │ ├── init.amxco.rc │ │ ├── init.amxla.rc │ │ ├── init.amxmx.rc │ │ ├── init.amxpe.rc │ │ ├── init.att.rc │ │ ├── init.bwaca.rc │ │ ├── init.class_main.sh │ │ ├── init.eegb.rc │ │ ├── init.environ.rc │ │ ├── init.gbmods.sh │ │ ├── init.lra.rc │ │ ├── init.mdm.sh │ │ ├── init.mmi.audio.sh │ │ ├── init.mmi.block_perm.sh │ │ ├── init.mmi.boot.sh │ │ ├── init.mmi.chipset.rc │ │ ├── init.mmi.common.rc │ │ ├── init.mmi.debug.rc │ │ ├── init.mmi.diag.rc │ │ ├── init.mmi.diag_mdlog.rc │ │ ├── init.mmi.dtv.rc │ │ ├── init.mmi.laser.sh │ │ ├── init.mmi.overlay.rc │ │ ├── init.mmi.rc │ │ ├── init.mmi.sensor.rc │ │ ├── init.mmi.usb.rc │ │ ├── init.mmi.usb.sh │ │ ├── init.mmi.volte.rc │ │ ├── init.oem.hw.sh │ │ ├── init.oem.rc │ │ ├── init.oraes.rc │ │ ├── init.orafr.rc │ │ ├── init.qcom.build.rc │ │ ├── init.qcom.class_core.sh │ │ ├── init.qcom.early_boot.sh │ │ ├── init.qcom.factory.rc │ │ ├── init.qcom.rc │ │ ├── init.qcom.sensors.sh │ │ ├── init.qcom.sh │ │ ├── init.qcom.syspart_fixup.sh │ │ ├── init.rc │ │ ├── init.rcica.rc │ │ ├── init.retca.rc │ │ ├── init.target.rc │ │ ├── init.usb.configfs.rc │ │ ├── init.usb.rc │ │ ├── init.usc.rc │ │ ├── init.vffr.rc │ │ ├── init.wndca.rc │ │ ├── init.zygote32.rc │ │ ├── module_hashes │ │ ├── property_contexts │ │ ├── res │ │ │ └── images │ │ │ │ └── charger │ │ │ │ ├── battery_fail.png │ │ │ │ └── battery_scale.png │ │ ├── sbin │ │ │ ├── adbd │ │ │ ├── healthd │ │ │ ├── su │ │ │ ├── ueventd │ │ │ └── watchdogd │ │ ├── sdcard │ │ ├── seapp_contexts │ │ ├── selinux_version │ │ ├── sepolicy │ │ ├── service_contexts │ │ ├── ueventd.qcom.rc │ │ ├── ueventd.rc │ │ ├── vendor │ │ ├── verity_key │ │ └── xbin │ │ │ ├── qe │ │ │ ├── qee.dat │ │ │ └── qem.dat │ ├── initroot-cedric-npp25.137-33-upx.cpio.gz │ ├── initroot-cedric-npp25.137-33.cpio-padded.gz │ ├── initroot-cedric-npp25.137-33.cpio.gz │ └── initroot-tethered.sh ├── initroot-tethered.sh └── shamu │ ├── initroot-shamu-aosp-nmf26f-missingdirs.cpio.gz │ ├── initroot-shamu-aosp-nmf26f.cpio.gz │ ├── initroot-tethered.sh │ └── shamu-aosp-nmf26f │ ├── charger │ ├── d │ ├── default.prop │ ├── etc │ ├── file_contexts.bin │ ├── fstab.shamu │ ├── init │ ├── init.environ.rc │ ├── init.rc │ ├── init.shamu.diag.rc │ ├── init.shamu.power.rc │ ├── init.shamu.rc │ ├── init.shamu.usb.rc │ ├── init.usb.configfs.rc │ ├── init.usb.rc │ ├── init.zygote32.rc │ ├── property_contexts │ ├── res │ └── images │ │ ├── charger │ │ ├── battery_fail.png │ │ └── battery_scale.png │ │ └── warning │ │ ├── verity_red_1.png │ │ └── verity_red_2.png │ ├── sbin │ ├── adbd │ ├── healthd │ ├── slideshow │ ├── ueventd │ └── watchdogd │ ├── sdcard │ ├── seapp_contexts │ ├── selinux_version │ ├── sepolicy │ ├── service_contexts │ ├── ueventd.rc │ ├── ueventd.shamu.rc │ ├── vendor │ └── verity_key └── untethered ├── athene ├── initroot-untethered.sh ├── padC-ext4-empty └── padC-initroot ├── cedric ├── initroot-untethered.sh ├── padA-ext4-empty └── padA-initroot ├── initroot-untethered.sh └── shamu ├── initroot-untethered.sh ├── padA-ext4-empty └── padA-initroot /tethered/athene/athene-xt1622-mpj24.139-63/charger: -------------------------------------------------------------------------------- 1 | /sbin/healthd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/default.prop: -------------------------------------------------------------------------------- 1 | # 2 | # ADDITIONAL_DEFAULT_PROPERTIES 3 | # 4 | ro.secure=1 5 | ro.allow.mock.location=0 6 | ro.debuggable=0 7 | ro.adb.secure=1 8 | ro.zygote=zygote32 9 | dalvik.vm.image-dex2oat-Xms=64m 10 | dalvik.vm.image-dex2oat-Xmx=64m 11 | dalvik.vm.dex2oat-Xms=64m 12 | dalvik.vm.dex2oat-Xmx=512m 13 | ro.dalvik.vm.native.bridge=0 14 | debug.atrace.tags.enableflags=0 15 | # 16 | # BOOTIMAGE_BUILD_PROPERTIES 17 | # 18 | ro.bootimage.build.date=Thu Aug 4 19:28:57 CDT 2016 19 | ro.bootimage.build.date.utc=1470356937 20 | ro.bootimage.build.fingerprint=motorola/athene_retail/athene:6.0.1/MPJ24.139-63/64:user/release-keys 21 | persist.sys.usb.config=mtp 22 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/fstab.qcom: -------------------------------------------------------------------------------- 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 | #TODO: Add 'check' as fs_mgr_flags with data partition. 6 | # Currently we dont have e2fsck compiled. So fs check would failed. 7 | 8 | # 9 | /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait 10 | /dev/block/bootdevice/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,nobarrier,inline_xattr,inline_data wait,check,formattable,encryptable=/dev/block/bootdevice/by-name/metadata 11 | /dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,formattable,encryptable=/dev/block/bootdevice/by-name/metadata 12 | /devices/soc.0/7864900.sdhci/mmc_host* auto auto nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=userdata 13 | /dev/block/zram0 none swap defaults zramsize=536870912 14 | /dev/block/bootdevice/by-name/cache /cache ext4 rw,noatime,nosuid,nodev,barrier=1,data=ordered wait,check,formattable 15 | /devices/platform/msm_hsusb* auto auto defaults voldmanaged=usb:auto 16 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.3gb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-h3g-{country} 3 | setprop ro.com.google.clientidbase.am android-h3g-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxar.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxbr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | setprop persist.radio.use_se_table_only 1 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxcl.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxco.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxla.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxmx.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.amxpe.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.att.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-att-us 3 | setprop ro.com.google.clientidbase.am android-att-us 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.bwaca.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-bell-ca 3 | setprop ro.com.google.clientidbase.am android-bell-ca 4 | 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.class_main.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | # 30 | # start ril-daemon only for targets on which radio is present 31 | # 32 | baseband=`getprop ro.baseband` 33 | sgltecsfb=`getprop persist.radio.sglte_csfb` 34 | datamode=`getprop persist.data.mode` 35 | netmgr=`getprop ro.use_data_netmgrd` 36 | 37 | case "$baseband" in 38 | "apq") 39 | setprop ro.radio.noril yes 40 | stop ril-daemon 41 | esac 42 | 43 | case "$baseband" in 44 | "msm" | "csfb" | "svlte2a" | "mdm" | "mdm2" | "sglte" | "sglte2" | "dsda2" | "unknown" | "dsda3") 45 | start qmuxd 46 | start ipacm-diag 47 | start ipacm 48 | case "$baseband" in 49 | "svlte2a" | "csfb") 50 | start qmiproxy 51 | ;; 52 | "sglte" | "sglte2" ) 53 | if [ "x$sgltecsfb" != "xtrue" ]; then 54 | start qmiproxy 55 | else 56 | setprop persist.radio.voice.modem.index 0 57 | fi 58 | ;; 59 | "dsda2") 60 | setprop persist.radio.multisim.config dsda 61 | esac 62 | 63 | multisim=`getprop persist.radio.multisim.config` 64 | 65 | if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then 66 | start ril-daemon2 67 | elif [ "$multisim" = "tsts" ]; then 68 | start ril-daemon2 69 | start ril-daemon3 70 | fi 71 | 72 | case "$datamode" in 73 | "tethered") 74 | start qti 75 | start port-bridge 76 | ;; 77 | "concurrent") 78 | start qti 79 | if [ "$netmgr" = "true" ]; then 80 | start netmgrd 81 | fi 82 | ;; 83 | *) 84 | if [ "$netmgr" = "true" ]; then 85 | start netmgrd 86 | fi 87 | ;; 88 | esac 89 | esac 90 | 91 | # 92 | # Allow persistent faking of bms 93 | # User needs to set fake bms charge in persist.bms.fake_batt_capacity 94 | # 95 | fake_batt_capacity=`getprop persist.bms.fake_batt_capacity` 96 | case "$fake_batt_capacity" in 97 | "") ;; #Do nothing here 98 | * ) 99 | echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity 100 | ;; 101 | esac 102 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.eegb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.android.dataroaming true 3 | setprop ro.com.google.clientidbase.ms android-tmobile-{country} 4 | setprop ro.com.google.clientidbase.am android-tmobile-{country} 5 | setprop ro.com.google.clientidbase.gmm android-tmobile-{country} 6 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.environ.rc: -------------------------------------------------------------------------------- 1 | # set up the global environment 2 | on init 3 | export ANDROID_BOOTLOGO 1 4 | export ANDROID_ROOT /system 5 | export ANDROID_ASSETS /system/app 6 | export ANDROID_DATA /data 7 | export ANDROID_STORAGE /storage 8 | export EXTERNAL_STORAGE /sdcard 9 | export ASEC_MOUNTPOINT /mnt/asec 10 | export BOOTCLASSPATH /system/framework/tcmiface.jar:/system/framework/qcom.fmradio.jar:/system/framework/oem-services.jar:/system/framework/core-libart.jar:/system/framework/prcui-config.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar 11 | export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar 12 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mdm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | baseband=`getprop ro.baseband` 30 | if [ "$baseband" = "mdm" ] || [ "$baseband" = "mdm2" ]; then 31 | start mdm_helper 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.block_perm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | block_by_name=/dev/block/bootdevice/by-name 4 | utags=${block_by_name}/utags 5 | utags_backup=${block_by_name}/utagsBackup 6 | 7 | # Set correct permissions for UTAGS 8 | /system/bin/chown -L mot_tcmd:system $utags 9 | /system/bin/chown -L mot_tcmd:system $utags_backup 10 | /system/bin/chmod -L 0660 $utags 11 | /system/bin/chmod -L 0660 $utags_backup 12 | 13 | # CLOGO 14 | clogo=${block_by_name}/clogo 15 | /system/bin/chown -L root:mot_tcmd $clogo 16 | /system/bin/chmod -L 0660 $clogo 17 | 18 | #CID 19 | cid=${block_by_name}/cid 20 | /system/bin/chown -L root:mot_tcmd $cid 21 | /system/bin/chmod -L 0660 $cid 22 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.boot.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | # We take this from cpuinfo because hex "letters" are lowercase there 4 | set -A cinfo `cat /proc/cpuinfo | /system/bin/grep Revision` 5 | hw=${cinfo[2]#?} 6 | 7 | # Now "cook" the value so it can be matched against devtree names 8 | m2=${hw%?} 9 | minor2=${hw#$m2} 10 | m1=${m2%?} 11 | minor1=${m2#$m1} 12 | if [ "$minor2" == "0" ]; then 13 | minor2="" 14 | if [ "$minor1" == "0" ]; then 15 | minor1="" 16 | fi 17 | fi 18 | setprop ro.hw.revision p${hw%??}$minor1$minor2 19 | unset hw cinfo m1 m2 minor1 minor2 20 | 21 | # reload UTAGS 22 | echo 1 > /proc/config/reload 23 | 24 | # Export these for factory validation purposes 25 | iccid=$(cat /proc/config/iccid/ascii 2>/dev/null) 26 | if [ ! -z "$iccid" ]; then 27 | setprop ro.mot.iccid $iccid 28 | fi 29 | unset iccid 30 | cust_md5=$(cat /proc/config/cust_md5/ascii 2>/dev/null) 31 | if [ ! -z "$cust_md5" ]; then 32 | setprop ro.mot.cust_md5 $cust_md5 33 | fi 34 | unset cust_md5 35 | 36 | # Get FTI data and catch old units with incorrect/missing UTAG_FTI 37 | pds_fti=/persist/factory/fti 38 | set -A fti_pds $(hd $pds_fti 2>/dev/null) 39 | if [ $? -eq 0 ]; then 40 | set -A fti $(hd $pds_fti 2>/dev/null) 41 | fi 42 | 43 | # If UTAG_FTI is readable, compare checksums 44 | # and if they mismatch, assume PDS is valid and overwrite UTAG 45 | utag_fti=/proc/config/fti 46 | set -A fti_utag $(hd ${utag_fti}/ascii 2>/dev/null) 47 | if [ $? -eq 0 ]; then 48 | # Byte 153 is total cksum, if nothing there, PDS data is invalid/missing 49 | if [ ! -z "${fti[153]}" ]; then 50 | # Bytes 75 and 94 have line checksums for year and month/date 51 | if [ "${fti[75]}" != "${fti_utag[75]}" -o "${fti[94]}" != "${fti_utag[94]}" ]; then 52 | echo "Copying FTI data from PDS" 53 | cat $pds_fti > ${utag_fti}/raw 54 | fi 55 | else 56 | # If PDS data is invalid, take UTAG and hope it is correct 57 | set -A fti $(hd ${utag_fti}/ascii 2>/dev/null) 58 | fi 59 | fi 60 | 61 | # Now we have set fti var either from PDS or UTAG 62 | # Get Last Test Station stamp from FTI 63 | # and convert to user-friendly date, US format 64 | # The offsets are for hd-format, corresponding to real offsets 64/65/66 65 | # If the month/date look reasonable, data is probably OK. 66 | mdate="Unknown" 67 | y=0x${fti[73]} 68 | m=0x${fti[77]} 69 | d=0x${fti[78]} 70 | let year=$y month=$m day=$d 71 | # Invalid data will often have bogus month/date values 72 | if [ $month -le 12 -a $day -le 31 -a $year -ge 12 ]; then 73 | mdate=$month/$day/20$year 74 | else 75 | echo "Corrupt FTI data" 76 | fi 77 | 78 | setprop ro.manufacturedate $mdate 79 | unset fti y m d year month day utag_fti pds_fti fti_utag mdate 80 | 81 | t=$(getprop ro.build.tags) 82 | if [[ "$t" != *release* ]]; then 83 | for p in $(cat /proc/cmdline); do 84 | if [ ${p%%:*} = "@" ]; then 85 | v=${p#@:}; a=${v%=*}; b=${v#*=} 86 | ${a%%:*} ${a##*:} $b 87 | fi 88 | done 89 | fi 90 | unset p v a b t 91 | 92 | # Cleanup stale/incorrect programmed model value 93 | # Real values will never contain substrings matching "internal" device name 94 | product=$(getprop ro.hw.device) 95 | model=$(cat /proc/config/model/ascii 2>/dev/null) 96 | if [ $? -eq 0 ]; then 97 | if [ "${model#*_}" == "$product" -o "${model%_*}" == "$product" ]; then 98 | echo "Clearing stale model value" 99 | echo "" > /proc/config/model/raw 100 | fi 101 | fi 102 | unset model product 103 | 104 | # For non-user builds only check if Normal min free offset file is there and use 105 | # those values to override the default setting 106 | if [ "`getprop ro.build.type`" != "user" ] 107 | then 108 | if [ -f /data/minFreeOff.txt ] 109 | then 110 | if [ -e /proc/sys/vm/min_free_normal_offset ] 111 | then 112 | echo -e `cat /data/minFreeOff.txt` > /proc/sys/vm/min_free_normal_offset 113 | fi 114 | fi 115 | fi 116 | 117 | if [ -e /dev/vfsspi ] 118 | then 119 | setprop ro.mot.hw.fingerprint 1 120 | fi 121 | 122 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.common.rc: -------------------------------------------------------------------------------- 1 | service setup_shutdown /system/bin/setup_shutdown.sh 2 | class main 3 | user system 4 | oneshot 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.debug.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.debug.rc -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.diag.rc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.diag_mdlog.rc: -------------------------------------------------------------------------------- 1 | 2 | on post-fs-data 3 | mkdir /data/diag_mdlog 0770 system log 4 | mkdir /data/diag_mdlog/logs 0750 log log 5 | 6 | on property:persist.sys.diag_mdlog.on=1 7 | start diag_mdlog 8 | 9 | on property:persist.sys.diag_mdlog.on=0 10 | start safe_stop_mdlog 11 | 12 | on property:log.diag_mdlog.invld_mode_stop=1 13 | stop diag_mdlog 14 | 15 | on property:persist.radio.usbdiag=1 16 | setprop persist.sys.diag_mdlog.on 0 17 | 18 | service diag_mdlog /system/bin/diag_mdlog-wrap 19 | class late_start 20 | socket mdlog_cmd stream 0660 log diag 21 | user log 22 | group log sdcard_rw sdcard_r media_rw qcom_diag mount 23 | disabled 24 | 25 | service safe_stop_mdlog /system/bin/diag_mdlog-wrap -s 26 | class late_start 27 | user log 28 | group log sdcard_rw sdcard_r media_rw qcom_diag 29 | oneshot 30 | disabled 31 | 32 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.dtv.rc: -------------------------------------------------------------------------------- 1 | on post-fs 2 | 3 | # DTV feature 4 | on property:ro.hw.dtv=true 5 | insmod /system/lib/modules/isdbt.ko 6 | 7 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.laser.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | scriptname=${0##*/} 3 | dbg_on=1 4 | debug() 5 | { 6 | [ $dbg_on ] && echo "Debug: $*" 7 | } 8 | 9 | notice() 10 | { 11 | echo "$*" 12 | echo "$scriptname: $*" > /dev/kmsg 13 | } 14 | 15 | error_and_leave() 16 | { 17 | local err_msg 18 | local err_code=$1 19 | case $err_code in 20 | 1) err_msg="Error: No response";; 21 | 2) err_msg="Error: in factory mode";; 22 | 3) err_msg="Error: calibration file not exist";; 23 | 4) err_msg="Error: the calibration sys file not show up";; 24 | esac 25 | notice "$err_msg" 26 | exit $err_code 27 | } 28 | 29 | bootmode=`getprop ro.bootmode` 30 | if [ $bootmode == "mot-factory" ] 31 | then 32 | error_and_leave 2 33 | fi 34 | 35 | laser_offset_path=/sys/kernel/range/offset 36 | laser_offset_string=$(ls $laser_offset_path) 37 | [ -z "$laser_offset_string" ] && error_and_leave 4 38 | 39 | cal_offset_path=/persist/camera/focus/offset_cal 40 | cal_offset_string=$(ls $cal_offset_path) 41 | [ -z "$cal_offset_string" ] && error_and_leave 3 42 | 43 | offset_cal=$(cat $cal_offset_path) 44 | debug "offset cal value [$offset_cal]" 45 | 46 | debug "set cal value to kernel" 47 | echo $offset_cal > $laser_offset_path 48 | notice "laser cal data update success" 49 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.mmi.overlay.rc: -------------------------------------------------------------------------------- 1 | import init.mmi.dtv.rc 2 | 3 | service fingerprintd /system/bin/fingerprintd 4 | class late_start 5 | user system 6 | group fingerp 7 | disabled 8 | 9 | on post-fs-data 10 | # fingerprintd 11 | on property:ro.hw.fps=true 12 | start fingerprintd 13 | 14 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.oem.rc: -------------------------------------------------------------------------------- 1 | on init 2 | mkdir /oem 0550 root root 3 | on fs 4 | wait /dev/block/bootdevice/by-name/oem 5 | mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev context=u:object_r:oemfs:s0 6 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.oraes.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.orafr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.qcom.bms.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2009-2015, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | target=`getprop ro.board.platform` 30 | 31 | start_vm_bms() 32 | { 33 | if [ -e /dev/vm_bms ]; then 34 | chown -h root.system /sys/class/power_supply/bms/current_now 35 | chown -h root.system /sys/class/power_supply/bms/voltage_ocv 36 | chmod 0664 /sys/class/power_supply/bms/current_now 37 | chmod 0664 /sys/class/power_supply/bms/voltage_ocv 38 | start vm_bms 39 | fi 40 | } 41 | 42 | case "$target" in 43 | "msm8916") 44 | start_vm_bms 45 | ;; 46 | "msm8909") 47 | start_vm_bms 48 | ;; 49 | esac 50 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.qcom.syspart_fixup.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | target="$1" 30 | serial="$2" 31 | 32 | # No path is set up at this point so we have to do it here. 33 | PATH=/sbin:/system/sbin:/system/bin:/system/xbin 34 | export PATH 35 | 36 | mount_needed=false; 37 | 38 | if [ ! -f /system/etc/boot_fixup ];then 39 | # This should be the first command 40 | # remount system as read-write. 41 | mount -o rw,remount,barrier=1 /system 42 | mount_needed=true; 43 | fi 44 | 45 | # **** WARNING ***** 46 | # This runs in a single-threaded, critical path portion 47 | # of the Android bootup sequence. This is to guarantee 48 | # all necessary system partition fixups are done before 49 | # the rest of the system starts up. Run any non- 50 | # timing critical tasks in a separate process to 51 | # prevent slowdown at boot. 52 | 53 | # Run modem link script 54 | if [ -f /system/etc/init.qcom.modem_links.sh ]; then 55 | /system/bin/sh /system/etc/init.qcom.modem_links.sh 56 | fi 57 | 58 | # Run mdm link script 59 | if [ -f /system/etc/init.qcom.mdm_links.sh ]; then 60 | /system/bin/sh /system/etc/init.qcom.mdm_links.sh 61 | fi 62 | 63 | # Run wifi script 64 | if [ -f /system/etc/init.qcom.wifi.sh ]; then 65 | /system/bin/sh /system/etc/init.qcom.wifi.sh "$target" "$serial" 66 | fi 67 | 68 | # Run the sensor script 69 | if [ -f /system/etc/init.qcom.sensor.sh ]; then 70 | /system/bin/sh /system/etc/init.qcom.sensor.sh 71 | fi 72 | 73 | touch /system/etc/boot_fixup 74 | 75 | if $mount_needed ;then 76 | # This should be the last command 77 | # remount system as read-only. 78 | mount -o ro,remount,barrier=1 /system 79 | fi 80 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.rcica.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-rogers-ca 3 | setprop ro.com.google.clientidbase.am android-rogers-ca 4 | 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.recovery.qcom.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | on early-init 30 | # Start QCE driver, needed to support MDTP in recovery 31 | insmod /sbin/qcrypto_module.ko 32 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.trace.rc: -------------------------------------------------------------------------------- 1 | ## Permissions to allow system-wide tracing to the kernel trace buffer. 2 | ## 3 | on boot 4 | 5 | # Allow writing to the kernel trace log. 6 | chmod 0222 /sys/kernel/debug/tracing/trace_marker 7 | 8 | # Allow the shell group to enable (some) kernel tracing. 9 | chown root shell /sys/kernel/debug/tracing/trace_clock 10 | chown root shell /sys/kernel/debug/tracing/buffer_size_kb 11 | chown root shell /sys/kernel/debug/tracing/options/overwrite 12 | chown root shell /sys/kernel/debug/tracing/options/print-tgid 13 | chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable 14 | chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable 15 | chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable 16 | chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable 17 | chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable 18 | chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable 19 | chown system shell /sys/kernel/debug/tracing/tracing_on 20 | 21 | chmod 0664 /sys/kernel/debug/tracing/trace_clock 22 | chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb 23 | chmod 0664 /sys/kernel/debug/tracing/options/overwrite 24 | chmod 0664 /sys/kernel/debug/tracing/options/print-tgid 25 | chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable 26 | chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable 27 | chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable 28 | chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable 29 | chmod 0664 /sys/kernel/debug/tracing/events/power/clock_set_rate/enable 30 | chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable 31 | chmod 0664 /sys/kernel/debug/tracing/tracing_on 32 | 33 | # Allow the system user and shell group to read and truncate the kernel trace. 34 | chown system shell /sys/kernel/debug/tracing/trace 35 | chmod 0660 /sys/kernel/debug/tracing/trace 36 | 37 | # Allow the system user to enable memkill traces 38 | chown system root /sys/kernel/debug/tracing/events/memkill/enable 39 | chmod 0664 /sys/kernel/debug/tracing/events/memkill/enable 40 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.usb.rc: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # USB configuration common for all android devices 4 | # 5 | 6 | on post-fs-data 7 | chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file 8 | chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file 9 | chown system system /sys/class/android_usb/android0/f_rndis/ethaddr 10 | chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr 11 | 12 | on boot 13 | setprop sys.usb.configfs 0 14 | 15 | # Used to disable USB when switching states 16 | on property:sys.usb.config=none && property:sys.usb.configfs=0 17 | stop adbd 18 | write /sys/class/android_usb/android0/enable 0 19 | write /sys/class/android_usb/android0/bDeviceClass 0 20 | setprop sys.usb.state ${sys.usb.config} 21 | 22 | # adb only USB configuration 23 | # This is the fallback configuration if the 24 | # USB manager fails to set a standard configuration 25 | on property:sys.usb.config=adb && property:sys.usb.configfs=0 26 | write /sys/class/android_usb/android0/enable 0 27 | write /sys/class/android_usb/android0/idVendor 22b8 28 | write /sys/class/android_usb/android0/idProduct 2E81 29 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 30 | write /sys/class/android_usb/android0/enable 1 31 | start adbd 32 | setprop sys.usb.state ${sys.usb.config} 33 | 34 | # USB accessory configuration 35 | on property:sys.usb.config=accessory && property:sys.usb.configfs=0 36 | write /sys/class/android_usb/android0/enable 0 37 | write /sys/class/android_usb/android0/idVendor 18d1 38 | write /sys/class/android_usb/android0/idProduct 2d00 39 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 40 | write /sys/class/android_usb/android0/enable 1 41 | setprop sys.usb.state ${sys.usb.config} 42 | 43 | # USB accessory configuration, with adb 44 | on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0 45 | write /sys/class/android_usb/android0/enable 0 46 | write /sys/class/android_usb/android0/idVendor 18d1 47 | write /sys/class/android_usb/android0/idProduct 2d01 48 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 49 | write /sys/class/android_usb/android0/enable 1 50 | start adbd 51 | setprop sys.usb.state ${sys.usb.config} 52 | 53 | # audio accessory configuration 54 | on property:sys.usb.config=audio_source && property:sys.usb.configfs=0 55 | write /sys/class/android_usb/android0/enable 0 56 | write /sys/class/android_usb/android0/idVendor 18d1 57 | write /sys/class/android_usb/android0/idProduct 2d02 58 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 59 | write /sys/class/android_usb/android0/enable 1 60 | setprop sys.usb.state ${sys.usb.config} 61 | 62 | # audio accessory configuration, with adb 63 | on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=0 64 | write /sys/class/android_usb/android0/enable 0 65 | write /sys/class/android_usb/android0/idVendor 18d1 66 | write /sys/class/android_usb/android0/idProduct 2d03 67 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 68 | write /sys/class/android_usb/android0/enable 1 69 | start adbd 70 | setprop sys.usb.state ${sys.usb.config} 71 | 72 | # USB and audio accessory configuration 73 | on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=0 74 | write /sys/class/android_usb/android0/enable 0 75 | write /sys/class/android_usb/android0/idVendor 18d1 76 | write /sys/class/android_usb/android0/idProduct 2d04 77 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 78 | write /sys/class/android_usb/android0/enable 1 79 | setprop sys.usb.state ${sys.usb.config} 80 | 81 | # USB and audio accessory configuration, with adb 82 | on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=0 83 | write /sys/class/android_usb/android0/enable 0 84 | write /sys/class/android_usb/android0/idVendor 18d1 85 | write /sys/class/android_usb/android0/idProduct 2d05 86 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 87 | write /sys/class/android_usb/android0/enable 1 88 | start adbd 89 | setprop sys.usb.state ${sys.usb.config} 90 | 91 | # Used to set USB configuration at boot and to switch the configuration 92 | # when changing the default configuration 93 | on property:persist.sys.usb.config=* 94 | setprop sys.usb.config ${persist.sys.usb.config} 95 | 96 | # 97 | # USB type C 98 | # 99 | 100 | # USB mode changes 101 | on property:sys.usb.typec.mode=dfp 102 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 103 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 104 | 105 | on property:sys.usb.typec.mode=ufp 106 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 107 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 108 | 109 | # USB data role changes 110 | on property:sys.usb.typec.data_role=device 111 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 112 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 113 | 114 | on property:sys.usb.typec.data_role=host 115 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 116 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 117 | 118 | # USB power role changes 119 | on property:sys.usb.typec.power_role=source 120 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 121 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 122 | 123 | on property:sys.usb.typec.power_role=sink 124 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 125 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 126 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.vffr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-hms-vf-fr 3 | setprop ro.com.google.clientidbase.am android-sfr-fr 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/init.zygote32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | socket zygote stream 660 root system 4 | onrestart write /sys/android_power/request_state wake 5 | onrestart write /sys/power/state on 6 | onrestart restart media 7 | onrestart restart netd 8 | writepid /dev/cpuset/foreground/tasks 9 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/module_hashes: -------------------------------------------------------------------------------- 1 | 1aaf1b15375abcc580ef427a46831575b3806def 2 | 1c28709f12559c64a01196df2dbd09614a2d00bd 3 | 1f999bdfad2822df0365f41030f31e574a78a526 4 | 28e449be65c9f5c79ad51e33a4efd4638d34957c 5 | 37797dfe57725096e2855c99f14a2ed78aa2089c 6 | 38a49998d92bc6a44e9a0c5fc81c335db61c4018 7 | 3fd7d49ac5809cbbd5ec9a5adedc141b5e5f6f3f 8 | 48cf0ca9fdeed24b3db93551bf66d410c7c3b43a 9 | 62cb3b4557ea48fbae3d21b9c7e03a875e5d1f07 10 | 6b354193f5fd3c8eae12ca476ec2a1087ac72229 11 | 72538cf04afe57e4507519250de97e792920c4ea 12 | 7965019ebd0f6475f1231fa54233117ab08d305e 13 | 7e1a2db7256a4053f2ba5232f3ea7d23d5862732 14 | 85df5959c62620ee24b833167cd39b2fad091156 15 | 8d72aaf17ed9ff607bd0b61a23a0151a38ae02d9 16 | aec28b52fdb01ddc4bd03c816359e9d02bf8272f 17 | e416a770621fe02c274475bd259b09ce6748ac11 18 | e95b4add6f3886cd791a21f1f42c100250d50f86 19 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/res/images/charger/battery_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/res/images/charger/battery_fail.png -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/res/images/charger/battery_scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/res/images/charger/battery_scale.png -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/adbd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sbin/adbd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/healthd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sbin/healthd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qcrypto_module.hmac: -------------------------------------------------------------------------------- 1 | f2b7169d58e9e4f1514ea73cbb9ca8983ad0f4f7f6f9ee4a0c9f5c329ec87645 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qcrypto_module.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sbin/qcrypto_module.ko -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qdrbg_module.hmac: -------------------------------------------------------------------------------- 1 | 2baccda576dae35f208ec379a79d21df8431d0b0b13be2a95da7226d27c2e657 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qdrbg_module.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sbin/qdrbg_module.ko -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qfintverify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sbin/qfintverify -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/qfintverify.hmac: -------------------------------------------------------------------------------- 1 | ccc582e7c9d88ef4bdd4da56de836958d46c3589075aee3658798fa54f752b0c 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/ueventd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sbin/watchdogd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/seapp_contexts: -------------------------------------------------------------------------------- 1 | isSystemServer=true domain=system_server 2 | user=system seinfo=platform domain=system_app type=system_app_data_file 3 | user=bluetooth seinfo=platform domain=bluetooth type=bluetooth_data_file 4 | user=nfc seinfo=platform domain=nfc type=nfc_data_file 5 | user=radio seinfo=platform domain=radio type=radio_data_file 6 | user=shared_relro domain=shared_relro 7 | user=shell seinfo=platform domain=shell type=shell_data_file 8 | user=_isolated domain=isolated_app levelFrom=user 9 | user=_app seinfo=platform domain=platform_app type=app_data_file levelFrom=user 10 | user=_app domain=untrusted_app type=app_data_file levelFrom=user 11 | user=gps domain=location_app type=location_app_data_file 12 | user=system seinfo=platform name=com.qualcomm.services.location domain=location_app type=location_app_data_file 13 | user=system seinfo=platform name=com.qualcomm.location.XT domain=location_app type=location_app_data_file 14 | user=system seinfo=platform name=com.qti.dpmserviceapp domain=dpmservice_app type=dpmd_app_data_file 15 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidocryptoservice domain=qsee_svc_app type=qsee_svc_app_data_file 16 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidosuiservice domain=qsee_svc_app type=qsee_svc_app_data_file 17 | user=system seinfo=platform name=com.qualcomm.qti.securemsm.mdtp.MdtpService domain=mdtpservice_app type=mdtp_svc_app_data_file 18 | user=system seinfo=platform name=com.qualcomm.qti.tetherservice domain=qtitetherservice_app type=qtitetherservice_app_data_file 19 | user=_app seinfo=platform name=com.qualcomm.location.qvtester domain=location_app type=location_app_data_file 20 | user=_app seinfo=platform name=com.qualcomm.qct.dlt domain=location_app type=location_app_data_file 21 | user=system seinfo=platform name=com.qualcomm.qti.auth.securesampleauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 22 | user=system seinfo=platform name=com.qualcomm.qti.auth.secureextauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 23 | user=log domain=system_app type=log_app_data_file 24 | user=smartcard domain=system_app type=smartcard_data_file 25 | user=sprint_extension domain=system_app type=system_app_data_file 26 | user=mot_common seinfo=common domain=platform_app type=app_data_file 27 | user=mot_shared seinfo=platform domain=platform_app type=app_data_file 28 | user=_app seinfo=common domain=platform_app type=app_data_file levelFrom=user 29 | user=_app seinfo=common domain=untrusted_app name=com.motorola.MotGallery2 type=app_data_file levelFrom=user 30 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/selinux_version: -------------------------------------------------------------------------------- 1 | motorola/athene_retail/athene:6.0.1/MPJ24.139-63/64:user/release-keys -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/sepolicy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/sepolicy -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/ueventd.rc: -------------------------------------------------------------------------------- 1 | subsystem adf 2 | devname uevent_devname 3 | 4 | /dev/null 0666 root root 5 | /dev/zero 0666 root root 6 | /dev/full 0666 root root 7 | /dev/ptmx 0666 root root 8 | /dev/tty 0666 root root 9 | /dev/random 0666 root root 10 | /dev/urandom 0666 root root 11 | # Make HW RNG readable by group system to let EntropyMixer read it. 12 | /dev/hw_random 0440 root system 13 | /dev/ashmem 0666 root root 14 | /dev/binder 0666 root root 15 | /dev/assd 0660 smartcard smartcard 16 | 17 | # Anyone can read the logs, but if they're not in the "logs" 18 | # group, then they'll only see log entries for their UID. 19 | /dev/log/* 0666 root log 20 | /dev/pmsg0 0222 root log 21 | 22 | # the msm hw3d client device node is world writable/readable 23 | /dev/msm_hw3dc 0666 root root 24 | 25 | # the DIAG device node is not world writable/readable. 26 | /dev/diag 0660 system qcom_diag 27 | 28 | # gpu driver for adreno200 is globally accessible 29 | /dev/kgsl 0666 root root 30 | 31 | # kms driver for drm based gpu 32 | /dev/dri/* 0666 root graphics 33 | 34 | # these should not be world writable 35 | /dev/diag_arm9 0660 radio radio 36 | /dev/android_adb 0660 adb adb 37 | /dev/android_adb_enable 0660 adb adb 38 | /dev/ttyMSM0 0600 bluetooth bluetooth 39 | /dev/uhid 0660 system net_bt_stack 40 | /dev/uinput 0660 system net_bt_stack 41 | /dev/alarm 0664 system radio 42 | /dev/rtc0 0640 system system 43 | /dev/tty0 0660 root system 44 | /dev/graphics/* 0660 system graphics 45 | /dev/msm_hw3dm 0660 system graphics 46 | /dev/input/* 0660 root input 47 | /dev/eac 0660 root audio 48 | /dev/cam 0660 root camera 49 | /dev/pmem 0660 system graphics 50 | /dev/pmem_adsp* 0660 system audio 51 | /dev/pmem_camera* 0660 system camera 52 | /dev/oncrpc/* 0660 root system 53 | /dev/adsp/* 0660 system audio 54 | /dev/snd/* 0660 system audio 55 | /dev/mt9t013 0660 system system 56 | /dev/msm_camera/* 0660 system system 57 | /dev/akm8976_daemon 0640 compass system 58 | /dev/akm8976_aot 0640 compass system 59 | /dev/akm8973_daemon 0640 compass system 60 | /dev/akm8973_aot 0640 compass system 61 | /dev/bma150 0640 compass system 62 | /dev/cm3602 0640 compass system 63 | /dev/akm8976_pffd 0640 compass system 64 | /dev/lightsensor 0640 system system 65 | /dev/msm_pcm_out* 0660 system audio 66 | /dev/msm_pcm_in* 0660 system audio 67 | /dev/msm_pcm_ctl* 0660 system audio 68 | /dev/msm_snd* 0660 system audio 69 | /dev/msm_mp3* 0660 system audio 70 | /dev/audience_a1026* 0660 system audio 71 | /dev/tpa2018d1* 0660 system audio 72 | /dev/msm_audpre 0660 system audio 73 | /dev/msm_audio_ctl 0660 system audio 74 | /dev/htc-acoustic 0660 system audio 75 | /dev/vdec 0660 system audio 76 | /dev/q6venc 0660 system audio 77 | /dev/snd/dsp 0660 system audio 78 | /dev/snd/dsp1 0660 system audio 79 | /dev/snd/mixer 0660 system audio 80 | /dev/smd0 0640 radio radio 81 | /dev/qmi 0640 radio radio 82 | /dev/qmi0 0640 radio radio 83 | /dev/qmi1 0640 radio radio 84 | /dev/qmi2 0640 radio radio 85 | /dev/bus/usb/* 0660 root usb 86 | /dev/mtp_usb 0660 root mtp 87 | /dev/usb_accessory 0660 root usb 88 | /dev/tun 0660 system vpn 89 | 90 | # CDMA radio interface MUX 91 | /dev/ts0710mux* 0640 radio radio 92 | /dev/ppp 0660 radio vpn 93 | 94 | # sysfs properties 95 | /sys/devices/platform/trusty.* trusty_version 0440 root log 96 | /sys/devices/virtual/input/input* enable 0660 root input 97 | /sys/devices/virtual/input/input* poll_delay 0660 root input 98 | /sys/devices/virtual/usb_composite/* enable 0664 root system 99 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 100 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 101 | 102 | # DVB API device nodes 103 | /dev/dvb* 0660 root system 104 | 105 | # IIO 106 | /sys/devices/iio_sysfs_trigger/add_trigger 0220 system system 107 | /sys/devices/iio_sysfs_trigger/remove_trigger 0220 system system 108 | 109 | /sys/devices/iio:device* buffer/* 0664 system system 110 | /sys/devices/iio:device* scan_elements/in_*_en 0664 system system 111 | /sys/devices/iio:device* trigger/current_trigger 0664 system system 112 | /sys/devices/iio:device* in_sampling_frequency 0664 system system 113 | /sys/devices/iio:device* max_latency_ns 0664 system system 114 | /sys/devices/iio:device* flush 0220 system system 115 | 116 | /dev/iio:device* 0600 system system 117 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/verity_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/verity_key -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/xbin/qe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/xbin/qe -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/xbin/qee.dat: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-mpj24.139-63/xbin/qem.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-mpj24.139-63/xbin/qem.dat -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/bugreports: -------------------------------------------------------------------------------- 1 | /data/user_de/0/com.android.shell/files/bugreports -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/charger: -------------------------------------------------------------------------------- 1 | /sbin/healthd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/d: -------------------------------------------------------------------------------- 1 | /sys/kernel/debug -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/default.prop: -------------------------------------------------------------------------------- 1 | # 2 | # ADDITIONAL_DEFAULT_PROPERTIES 3 | # 4 | ro.secure=1 5 | security.perf_harden=1 6 | ro.adb.secure=1 7 | ro.allow.mock.location=0 8 | ro.debuggable=0 9 | ro.zygote=zygote32 10 | pm.dexopt.first-boot=interpret-only 11 | pm.dexopt.boot=verify-profile 12 | pm.dexopt.install=interpret-only 13 | pm.dexopt.bg-dexopt=speed-profile 14 | pm.dexopt.ab-ota=speed-profile 15 | pm.dexopt.nsys-library=speed 16 | pm.dexopt.shared-apk=speed 17 | pm.dexopt.forced-dexopt=speed 18 | pm.dexopt.core-app=speed 19 | dalvik.vm.image-dex2oat-Xms=64m 20 | dalvik.vm.image-dex2oat-Xmx=64m 21 | dalvik.vm.dex2oat-Xms=64m 22 | dalvik.vm.dex2oat-Xmx=512m 23 | ro.dalvik.vm.native.bridge=0 24 | dalvik.vm.usejit=true 25 | dalvik.vm.usejitprofiles=true 26 | dalvik.vm.appimageformat=lz4 27 | debug.atrace.tags.enableflags=0 28 | # 29 | # BOOTIMAGE_BUILD_PROPERTIES 30 | # 31 | ro.bootimage.build.date=Fri Mar 3 01:48:00 CST 2017 32 | ro.bootimage.build.date.utc=1488527280 33 | ro.bootimage.build.fingerprint=motorola/athene_retail/athene:7.0/NPJS25.93-14-4/4:user/release-keys 34 | persist.sys.usb.config=mtp 35 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/etc: -------------------------------------------------------------------------------- 1 | /system/etc -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/file_contexts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/file_contexts.bin -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/fstab.qcom: -------------------------------------------------------------------------------- 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 | #TODO: Add 'check' as fs_mgr_flags with data partition. 6 | # Currently we dont have e2fsck compiled. So fs check would failed. 7 | 8 | # 9 | /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait 10 | /dev/block/bootdevice/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,nobarrier,inline_xattr,inline_data wait,check,formattable,encryptable=/dev/block/bootdevice/by-name/metadata 11 | /dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,formattable,encryptable=/dev/block/bootdevice/by-name/metadata 12 | /devices/soc.0/7864900.sdhci/mmc_host* auto auto nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=userdata 13 | /dev/block/zram0 none swap defaults zramsize=536870912 14 | /dev/block/bootdevice/by-name/cache /cache ext4 rw,noatime,nosuid,nodev,barrier=1,data=ordered wait,check,formattable 15 | /devices/platform/msm_hsusb* auto auto defaults voldmanaged=usb:auto 16 | /dev/block/bootdevice/by-name/misc /misc emmc defaults defaults 17 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.3gb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-h3g-{country} 3 | setprop ro.com.google.clientidbase.am android-h3g-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxar.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxbr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | setprop persist.radio.use_se_table_only 1 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxcl.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxco.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxla.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxmx.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.amxpe.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.att.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-att-us 3 | setprop ro.com.google.clientidbase.am android-att-us 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.bwaca.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-bell-ca 3 | setprop ro.com.google.clientidbase.am android-bell-ca 4 | 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.class_main.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | # 30 | # start ril-daemon only for targets on which radio is present 31 | # 32 | baseband=`getprop ro.baseband` 33 | sgltecsfb=`getprop persist.radio.sglte_csfb` 34 | datamode=`getprop persist.data.mode` 35 | netmgr=`getprop ro.use_data_netmgrd` 36 | 37 | case "$baseband" in 38 | "apq") 39 | setprop ro.radio.noril yes 40 | stop ril-daemon 41 | esac 42 | 43 | case "$baseband" in 44 | "msm" | "csfb" | "svlte2a" | "mdm" | "mdm2" | "sglte" | "sglte2" | "dsda2" | "unknown" | "dsda3") 45 | start qmuxd 46 | start ipacm-diag 47 | start ipacm 48 | case "$baseband" in 49 | "svlte2a" | "csfb") 50 | start qmiproxy 51 | ;; 52 | "sglte" | "sglte2" ) 53 | if [ "x$sgltecsfb" != "xtrue" ]; then 54 | start qmiproxy 55 | else 56 | setprop persist.radio.voice.modem.index 0 57 | fi 58 | ;; 59 | "dsda2") 60 | setprop persist.radio.multisim.config dsda 61 | esac 62 | 63 | multisim=`getprop persist.radio.multisim.config` 64 | 65 | if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then 66 | start ril-daemon2 67 | elif [ "$multisim" = "tsts" ]; then 68 | start ril-daemon2 69 | start ril-daemon3 70 | fi 71 | 72 | case "$datamode" in 73 | "tethered") 74 | start qti 75 | start port-bridge 76 | ;; 77 | "concurrent") 78 | start qti 79 | if [ "$netmgr" = "true" ]; then 80 | start netmgrd 81 | fi 82 | ;; 83 | *) 84 | if [ "$netmgr" = "true" ]; then 85 | start netmgrd 86 | fi 87 | ;; 88 | esac 89 | esac 90 | 91 | # 92 | # Allow persistent faking of bms 93 | # User needs to set fake bms charge in persist.bms.fake_batt_capacity 94 | # 95 | fake_batt_capacity=`getprop persist.bms.fake_batt_capacity` 96 | case "$fake_batt_capacity" in 97 | "") ;; #Do nothing here 98 | * ) 99 | echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity 100 | ;; 101 | esac 102 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.eegb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.android.dataroaming true 3 | setprop ro.com.google.clientidbase.ms android-tmobile-{country} 4 | setprop ro.com.google.clientidbase.am android-tmobile-{country} 5 | setprop ro.com.google.clientidbase.gmm android-tmobile-{country} 6 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.environ.rc: -------------------------------------------------------------------------------- 1 | # set up the global environment 2 | on init 3 | export ANDROID_BOOTLOGO 1 4 | export ANDROID_ROOT /system 5 | export ANDROID_ASSETS /system/app 6 | export ANDROID_DATA /data 7 | export ANDROID_STORAGE /storage 8 | export EXTERNAL_STORAGE /sdcard 9 | export ASEC_MOUNTPOINT /mnt/asec 10 | export BOOTCLASSPATH /system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/prcui-config.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/qcom.fmradio.jar 11 | export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar 12 | 13 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mdm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | baseband=`getprop ro.baseband` 30 | if [ "$baseband" = "mdm" ] || [ "$baseband" = "mdm2" ]; then 31 | start mdm_helper 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.block_perm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | block_by_name=/dev/block/bootdevice/by-name 4 | utags=${block_by_name}/utags 5 | utags_backup=${block_by_name}/utagsBackup 6 | 7 | # Set correct permissions for UTAGS 8 | /system/bin/chown -L mot_tcmd:system $utags 9 | /system/bin/chown -L mot_tcmd:system $utags_backup 10 | /system/bin/chmod -L 0660 $utags 11 | /system/bin/chmod -L 0660 $utags_backup 12 | 13 | # CLOGO 14 | clogo=${block_by_name}/clogo 15 | /system/bin/chown -L root:mot_tcmd $clogo 16 | /system/bin/chmod -L 0660 $clogo 17 | 18 | #CID 19 | cid=${block_by_name}/cid 20 | /system/bin/chown -L root:mot_tcmd $cid 21 | /system/bin/chmod -L 0660 $cid 22 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.boot.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | PATH=/sbin:/system/sbin:/system/bin:/system/xbin 4 | export PATH 5 | 6 | scriptname=${0##*/} 7 | 8 | notice() 9 | { 10 | echo "$*" 11 | echo "$scriptname: $*" > /dev/kmsg 12 | } 13 | 14 | # We take this from cpuinfo because hex "letters" are lowercase there 15 | set -A cinfo `cat /proc/cpuinfo | /system/bin/grep Revision` 16 | hw=${cinfo[2]#?} 17 | 18 | # Now "cook" the value so it can be matched against devtree names 19 | m2=${hw%?} 20 | minor2=${hw#$m2} 21 | m1=${m2%?} 22 | minor1=${m2#$m1} 23 | if [ "$minor2" == "0" ]; then 24 | minor2="" 25 | if [ "$minor1" == "0" ]; then 26 | minor1="" 27 | fi 28 | fi 29 | setprop ro.hw.revision p${hw%??}$minor1$minor2 30 | unset hw cinfo m1 m2 minor1 minor2 31 | 32 | # reload UTAGS 33 | utag_status=$(cat /proc/config/reload) 34 | if [ "$utag_status" == "2" ]; then 35 | notice "Utags are not ready, reloading" 36 | echo 1 > /proc/config/reload 37 | utag_status=$(cat /proc/config/reload) 38 | [ "$utag_status" != "0" ] && notice "Utags failed to reload" 39 | fi 40 | 41 | # Export these for factory validation purposes 42 | iccid=$(cat /proc/config/iccid/ascii 2>/dev/null) 43 | if [ ! -z "$iccid" ]; then 44 | setprop ro.mot.iccid $iccid 45 | fi 46 | unset iccid 47 | cust_md5=$(cat /proc/config/cust_md5/ascii 2>/dev/null) 48 | if [ ! -z "$cust_md5" ]; then 49 | setprop ro.mot.cust_md5 $cust_md5 50 | fi 51 | unset cust_md5 52 | 53 | # Get FTI data and catch old units with incorrect/missing UTAG_FTI 54 | pds_fti=/persist/factory/fti 55 | if [ -r $pds_fti ]; then 56 | set -A fti $(od -A n -t x1 $pds_fti 2>/dev/null) 57 | else 58 | notice "Can not read FTI data in persist" 59 | fi 60 | 61 | # Read HW version from FTI data 62 | hw_v1="\x${fti[35]}" 63 | hw_v2="\x${fti[36]}" 64 | hw_v3="\x${fti[37]}" 65 | if [ "$hw_v3" == "\x30" ]; then 66 | hw_v3="" 67 | fi 68 | hw_v4="\x${fti[38]}" 69 | if [ "$hw_v4" == "\x30" ]; then 70 | hw_v4="" 71 | fi 72 | setprop ro.hw.boardversion $(printf "$hw_v1$hw_v2$hw_v3$hw_v4") 73 | 74 | # If UTAG_FTI is readable, compare checksums 75 | # and if they mismatch, assume PDS is valid and overwrite UTAG 76 | utag_fti=/proc/config/fti 77 | if [ -r $utag_fti/ascii ]; then 78 | set -A fti_utag $(cat ${utag_fti}/raw | sed 's/../& /g') 79 | # Byte 128 is total cksum, if nothing there, PDS data is invalid/missing 80 | if [ ! -z "${fti[127]}" ]; then 81 | # Make sure fti in UTAG is the same as in persist. Checksum comparison 82 | if [ "${fti[126]}" != "${fti_utag[126]}" -o "${fti[127]}" != "${fti_utag[127]}" ]; then 83 | notice "Copying FTI data from persist" 84 | cat $pds_fti > ${utag_fti}/raw 85 | fi 86 | else 87 | # If PDS data is invalid, take UTAG and hope it is correct 88 | notice "Will use FTI from UTAG" 89 | set -A fti $(cat ${utag_fti}/raw | sed 's/../& /g') 90 | fi 91 | else 92 | notice "Missing FTI UTAG; copying from persist" 93 | echo fti > /proc/config/all/new 94 | cat $pds_fti > ${utag_fti}/raw 95 | fi 96 | 97 | # Now we have set fti var either from PDS or UTAG 98 | # Get Last Test Station stamp from FTI 99 | # and convert to user-friendly date, US format 100 | # Real offsets for year/month/day are 63/64/65 101 | # If the month/date look reasonable, data is probably OK. 102 | mdate="Unknown" 103 | y=0x${fti[63]} 104 | m=0x${fti[64]} 105 | d=0x${fti[65]} 106 | let year=$y month=$m day=$d 107 | # Invalid data will often have bogus month/date values 108 | if [ $month -le 12 -a $day -le 31 -a $year -ge 12 ]; then 109 | mdate=$month/$day/20$year 110 | else 111 | notice "Corrupt FTI data" 112 | fi 113 | setprop ro.manufacturedate $mdate 114 | unset fti y m d year month day utag_fti pds_fti fti_utag mdate 115 | 116 | t=$(getprop ro.build.tags) 117 | if [[ "$t" != *release* ]]; then 118 | for p in $(cat /proc/cmdline); do 119 | if [ ${p%%:*} = "@" ]; then 120 | v=${p#@:}; a=${v%=*}; b=${v#*=} 121 | ${a%%:*} ${a##*:} $b 122 | fi 123 | done 124 | fi 125 | unset p v a b t 126 | 127 | # Cleanup stale/incorrect programmed model value 128 | # Real values will never contain substrings matching "internal" device name 129 | product=$(getprop ro.hw.device) 130 | model=$(cat /proc/config/model/ascii 2>/dev/null) 131 | if [ $? -eq 0 ]; then 132 | if [ "${model#*_}" == "$product" -o "${model%_*}" == "$product" ]; then 133 | notice "Clearing stale model value" 134 | echo "" > /proc/config/model/raw 135 | fi 136 | fi 137 | unset model product 138 | 139 | # For non-user builds only check if Normal min free offset file is there and use 140 | # those values to override the default setting 141 | if [ "`getprop ro.build.type`" != "user" ] 142 | then 143 | if [ -f /data/minFreeOff.txt ] 144 | then 145 | if [ -e /proc/sys/vm/min_free_normal_offset ] 146 | then 147 | echo -e `cat /data/minFreeOff.txt` > /proc/sys/vm/min_free_normal_offset 148 | fi 149 | fi 150 | fi 151 | 152 | if [ -e /dev/vfsspi ] 153 | then 154 | setprop ro.mot.hw.fingerprint 1 155 | fi 156 | 157 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.common.rc: -------------------------------------------------------------------------------- 1 | service setup_shutdown /system/bin/setup_shutdown.sh 2 | class main 3 | user system 4 | oneshot 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.debug.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.debug.rc -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.diag.rc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.diag_mdlog.rc: -------------------------------------------------------------------------------- 1 | 2 | on post-fs-data 3 | mkdir /data/diag_mdlog 0770 system log 4 | mkdir /data/diag_mdlog/logs 0750 log log 5 | 6 | on property:persist.sys.diag_mdlog.on=1 7 | start diag_mdlog 8 | 9 | on property:persist.sys.diag_mdlog.on=0 10 | start safe_stop_mdlog 11 | 12 | on property:log.diag_mdlog.invld_mode_stop=1 13 | stop diag_mdlog 14 | 15 | on property:persist.radio.usbdiag=1 16 | setprop persist.sys.diag_mdlog.on 0 17 | 18 | service diag_mdlog /system/bin/diag_mdlog-wrap 19 | class late_start 20 | socket mdlog_cmd stream 0660 log diag 21 | user log 22 | group log sdcard_rw sdcard_r media_rw qcom_diag mount 23 | disabled 24 | 25 | service safe_stop_mdlog /system/bin/diag_mdlog-wrap -s 26 | class late_start 27 | user log 28 | group log sdcard_rw sdcard_r media_rw qcom_diag 29 | oneshot 30 | disabled 31 | 32 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.dtv.rc: -------------------------------------------------------------------------------- 1 | on post-fs 2 | 3 | # DTV feature 4 | on property:ro.hw.dtv=true 5 | insmod /system/lib/modules/isdbt.ko 6 | 7 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.laser.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | scriptname=${0##*/} 3 | dbg_on=1 4 | debug() 5 | { 6 | [ $dbg_on ] && echo "Debug: $*" 7 | } 8 | 9 | notice() 10 | { 11 | echo "$*" 12 | echo "$scriptname: $*" > /dev/kmsg 13 | } 14 | 15 | error_and_leave() 16 | { 17 | local err_msg 18 | local err_code=$1 19 | case $err_code in 20 | 1) err_msg="Error: No response";; 21 | 2) err_msg="Error: in factory mode";; 22 | 3) err_msg="Error: calibration file not exist";; 23 | 4) err_msg="Error: the calibration sys file not show up";; 24 | esac 25 | notice "$err_msg" 26 | exit $err_code 27 | } 28 | 29 | bootmode=`getprop ro.bootmode` 30 | if [ $bootmode == "mot-factory" ] 31 | then 32 | error_and_leave 2 33 | fi 34 | 35 | laser_offset_path=/sys/kernel/range/offset 36 | laser_offset_string=$(ls $laser_offset_path) 37 | [ -z "$laser_offset_string" ] && error_and_leave 4 38 | 39 | cal_offset_path=/persist/camera/focus/offset_cal 40 | cal_offset_string=$(ls $cal_offset_path) 41 | [ -z "$cal_offset_string" ] && error_and_leave 3 42 | 43 | offset_cal=$(cat $cal_offset_path) 44 | debug "offset cal value [$offset_cal]" 45 | 46 | debug "set cal value to kernel" 47 | echo $offset_cal > $laser_offset_path 48 | notice "laser cal data update success" 49 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.overlay.rc: -------------------------------------------------------------------------------- 1 | import init.mmi.dtv.rc 2 | 3 | service fingerprintd /system/bin/fingerprintd 4 | class late_start 5 | user system 6 | group fingerp 7 | disabled 8 | 9 | on property:ro.hw.fps=true 10 | enable fingerprintd 11 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.sensor.rc: -------------------------------------------------------------------------------- 1 | on boot 2 | # STML0 driver parameter permissions 3 | chown root mot_tcmd /sys/module/stml0xx/parameters/irq_disable 4 | chmod 0660 /sys/module/stml0xx/parameters/irq_disable 5 | 6 | #STML0 device permissions 7 | chown system compass /dev/stml0xx 8 | chmod 0660 /dev/stml0xx 9 | chown compass compass /dev/stml0xx_as 10 | chmod 0660 /dev/stml0xx_as 11 | chown compass compass /dev/stml0xx_ms 12 | chmod 0660 /dev/stml0xx_ms 13 | chown compass compass /dev/stml0xx_akm 14 | chmod 0660 /dev/stml0xx_akm 15 | 16 | # Start Sensor daemon 17 | service motosh /system/bin/motosh boot 18 | 19 | class late_start 20 | user compass 21 | group compass misc input 22 | oneshot 23 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.mmi.volte.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Motorola Mobilit L. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are met: 5 | # * Redistributions of source code must retain the above copyright 6 | # notice, this list of conditions and the following disclaimer. 7 | # * Redistributions in binary form must reproduce the above copyright 8 | # notice, this list of conditions and the following disclaimer in the 9 | # documentation and/or other materials provided with the distribution. 10 | # * Neither the name of Code Aurora nor 11 | # the names of its contributors may be used to endorse or promote 12 | # products derived from this software without specific prior written 13 | # permission. 14 | # 15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 19 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | # 27 | 28 | service imsqmidaemon /system/bin/imsqmidaemon 29 | class main 30 | user system 31 | socket ims_qmid stream 0660 system radio 32 | group radio log diag 33 | 34 | service imsdatadaemon /system/bin/imsdatadaemon 35 | class main 36 | user system 37 | socket ims_datad stream 0660 system radio 38 | group system wifi radio inet log diag 39 | disabled 40 | 41 | on property:sys.ims.QMI_DAEMON_STATUS=1 42 | start imsdatadaemon 43 | 44 | service cnd /system/bin/cnd 45 | class late_start 46 | socket cnd stream 660 root inet 47 | 48 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.oem.rc: -------------------------------------------------------------------------------- 1 | on init 2 | mkdir /oem 0550 root root 3 | on fs 4 | wait /dev/block/bootdevice/by-name/oem 5 | mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev context=u:object_r:oemfs:s0 6 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.oraes.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.orafr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.qcom.bms.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2009-2015, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | target=`getprop ro.board.platform` 30 | 31 | start_vm_bms() 32 | { 33 | if [ -e /dev/vm_bms ]; then 34 | chown -h root.system /sys/class/power_supply/bms/current_now 35 | chown -h root.system /sys/class/power_supply/bms/voltage_ocv 36 | chmod 0664 /sys/class/power_supply/bms/current_now 37 | chmod 0664 /sys/class/power_supply/bms/voltage_ocv 38 | start vm_bms 39 | fi 40 | } 41 | 42 | case "$target" in 43 | "msm8916") 44 | start_vm_bms 45 | ;; 46 | "msm8909") 47 | start_vm_bms 48 | ;; 49 | esac 50 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.qcom.build.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/init.qcom.build.rc -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.qcom.syspart_fixup.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | target="$1" 30 | serial="$2" 31 | 32 | # No path is set up at this point so we have to do it here. 33 | PATH=/sbin:/system/sbin:/system/bin:/system/xbin 34 | export PATH 35 | 36 | mount_needed=false; 37 | 38 | if [ ! -f /system/etc/boot_fixup ];then 39 | # This should be the first command 40 | # remount system as read-write. 41 | mount -o rw,remount,barrier=1 /system 42 | mount_needed=true; 43 | fi 44 | 45 | # **** WARNING ***** 46 | # This runs in a single-threaded, critical path portion 47 | # of the Android bootup sequence. This is to guarantee 48 | # all necessary system partition fixups are done before 49 | # the rest of the system starts up. Run any non- 50 | # timing critical tasks in a separate process to 51 | # prevent slowdown at boot. 52 | 53 | # Run modem link script 54 | if [ -f /system/etc/init.qcom.modem_links.sh ]; then 55 | /system/bin/sh /system/etc/init.qcom.modem_links.sh 56 | fi 57 | 58 | # Run mdm link script 59 | if [ -f /system/etc/init.qcom.mdm_links.sh ]; then 60 | /system/bin/sh /system/etc/init.qcom.mdm_links.sh 61 | fi 62 | 63 | # Run wifi script 64 | if [ -f /system/etc/init.qcom.wifi.sh ]; then 65 | /system/bin/sh /system/etc/init.qcom.wifi.sh "$target" "$serial" 66 | fi 67 | 68 | # Run the sensor script 69 | if [ -f /system/etc/init.qcom.sensor.sh ]; then 70 | /system/bin/sh /system/etc/init.qcom.sensor.sh 71 | fi 72 | 73 | touch /system/etc/boot_fixup 74 | 75 | if $mount_needed ;then 76 | # This should be the last command 77 | # remount system as read-only. 78 | mount -o ro,remount,barrier=1 /system 79 | fi 80 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.rcica.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-rogers-ca 3 | setprop ro.com.google.clientidbase.am android-rogers-ca 4 | 5 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.recovery.qcom.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | on early-init 30 | # Start QCE driver, needed to support MDTP in recovery 31 | insmod /sbin/qcrypto_module.ko 32 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.usb.rc: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # USB configuration common for all android devices 4 | # 5 | 6 | on post-fs-data 7 | chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file 8 | chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file 9 | chown system system /sys/class/android_usb/android0/f_rndis/ethaddr 10 | chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr 11 | mkdir /data/misc/adb 02750 system shell 12 | mkdir /data/adb 0700 root root 13 | 14 | # adbd is controlled via property triggers in init..usb.rc 15 | service adbd /sbin/adbd --root_seclabel=u:r:su:s0 16 | class core 17 | socket adbd stream 660 system system 18 | disabled 19 | seclabel u:r:kernel:s0 20 | 21 | # adbd on at boot in emulator 22 | on property:ro.kernel.qemu=1 23 | start adbd 24 | 25 | on boot 26 | setprop sys.usb.configfs 0 27 | 28 | # Used to disable USB when switching states 29 | on property:sys.usb.config=none && property:sys.usb.configfs=0 30 | stop adbd 31 | write /sys/class/android_usb/android0/enable 0 32 | write /sys/class/android_usb/android0/bDeviceClass 0 33 | setprop sys.usb.state ${sys.usb.config} 34 | 35 | # adb only USB configuration 36 | # This is the fallback configuration if the 37 | # USB manager fails to set a standard configuration 38 | on property:sys.usb.config=adb && property:sys.usb.configfs=0 39 | write /sys/class/android_usb/android0/enable 0 40 | write /sys/class/android_usb/android0/idVendor 22b8 41 | write /sys/class/android_usb/android0/idProduct 2E81 42 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 43 | write /sys/class/android_usb/android0/enable 1 44 | start adbd 45 | setprop sys.usb.state ${sys.usb.config} 46 | 47 | # USB accessory configuration 48 | on property:sys.usb.config=accessory && property:sys.usb.configfs=0 49 | write /sys/class/android_usb/android0/enable 0 50 | write /sys/class/android_usb/android0/idVendor 18d1 51 | write /sys/class/android_usb/android0/idProduct 2d00 52 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 53 | write /sys/class/android_usb/android0/enable 1 54 | setprop sys.usb.state ${sys.usb.config} 55 | 56 | # USB accessory configuration, with adb 57 | on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0 58 | write /sys/class/android_usb/android0/enable 0 59 | write /sys/class/android_usb/android0/idVendor 18d1 60 | write /sys/class/android_usb/android0/idProduct 2d01 61 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 62 | write /sys/class/android_usb/android0/enable 1 63 | start adbd 64 | setprop sys.usb.state ${sys.usb.config} 65 | 66 | # audio accessory configuration 67 | on property:sys.usb.config=audio_source && property:sys.usb.configfs=0 68 | write /sys/class/android_usb/android0/enable 0 69 | write /sys/class/android_usb/android0/idVendor 18d1 70 | write /sys/class/android_usb/android0/idProduct 2d02 71 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 72 | write /sys/class/android_usb/android0/enable 1 73 | setprop sys.usb.state ${sys.usb.config} 74 | 75 | # audio accessory configuration, with adb 76 | on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=0 77 | write /sys/class/android_usb/android0/enable 0 78 | write /sys/class/android_usb/android0/idVendor 18d1 79 | write /sys/class/android_usb/android0/idProduct 2d03 80 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 81 | write /sys/class/android_usb/android0/enable 1 82 | start adbd 83 | setprop sys.usb.state ${sys.usb.config} 84 | 85 | # USB and audio accessory configuration 86 | on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=0 87 | write /sys/class/android_usb/android0/enable 0 88 | write /sys/class/android_usb/android0/idVendor 18d1 89 | write /sys/class/android_usb/android0/idProduct 2d04 90 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 91 | write /sys/class/android_usb/android0/enable 1 92 | setprop sys.usb.state ${sys.usb.config} 93 | 94 | # USB and audio accessory configuration, with adb 95 | on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=0 96 | write /sys/class/android_usb/android0/enable 0 97 | write /sys/class/android_usb/android0/idVendor 18d1 98 | write /sys/class/android_usb/android0/idProduct 2d05 99 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 100 | write /sys/class/android_usb/android0/enable 1 101 | start adbd 102 | setprop sys.usb.state ${sys.usb.config} 103 | 104 | # Used to set USB configuration at boot and to switch the configuration 105 | # when changing the default configuration 106 | on property:persist.sys.usb.config=* 107 | setprop sys.usb.config ${persist.sys.usb.config} 108 | 109 | # 110 | # USB type C 111 | # 112 | 113 | # USB mode changes 114 | on property:sys.usb.typec.mode=dfp 115 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 116 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 117 | 118 | on property:sys.usb.typec.mode=ufp 119 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 120 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 121 | 122 | # USB data role changes 123 | on property:sys.usb.typec.data_role=device 124 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 125 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 126 | 127 | on property:sys.usb.typec.data_role=host 128 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 129 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 130 | 131 | # USB power role changes 132 | on property:sys.usb.typec.power_role=source 133 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 134 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 135 | 136 | on property:sys.usb.typec.power_role=sink 137 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 138 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 139 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.vffr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-hms-vf-fr 3 | setprop ro.com.google.clientidbase.am android-sfr-fr 4 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/init.zygote32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | socket zygote stream 660 root system 4 | onrestart write /sys/android_power/request_state wake 5 | onrestart write /sys/power/state on 6 | onrestart restart audioserver 7 | onrestart restart cameraserver 8 | onrestart restart media 9 | onrestart restart netd 10 | writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks 11 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/module_hashes: -------------------------------------------------------------------------------- 1 | 4797323fac52eef72ec34245b271552a9464da9f 2 | 6acabdc261d653820e548bf964a976a5faa0a40f 3 | 72838d70036e67023c5f593e2b831e143d1c64db 4 | 7b7965fcc1e23144e783adbf76f7cca3e6d4a5ff 5 | 81028399f611bf1f3c42464aaa0827647a25b1a0 6 | 8a7f4ba2d926d6ea758e2ce772ec562ae8415c8c 7 | 8c415a204b5626bfb290b37a8a3badb5841d34d1 8 | 8cf2b4376c35c2e8cc003ba08f841d4885d3604a 9 | 962a827486d4697cd84274f8047b0dd430d21e3e 10 | a0f2102b39421f2e656af2b9f2a43c293f024b3a 11 | a5fd9e715de6f740d7a12f16ccf736f8877780e3 12 | af94bf1528a8008d3402b4e0ca2b0a110fa9a0e3 13 | bf4dccbbc675c08efdba54ca1d46666323c44e03 14 | c4fcb02208f96bc33e624fd739880b01514f2a10 15 | d2641bc847be46e2ca33fa2346388f90fab7eda4 16 | d3c599c00e4fea65fc305a82cd70ae0b95eb4eec 17 | e7377b3def0ce3362875a2f45663e508027865fc 18 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/res/images/charger/battery_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/res/images/charger/battery_fail.png -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/res/images/charger/battery_scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/res/images/charger/battery_scale.png -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/adbd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/adbd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/healthd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/healthd -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qcrypto_module.hmac: -------------------------------------------------------------------------------- 1 | be04d87b98aaf49670d5a532511665970ef9767f4613eaed42c2211e6db59ad3 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qcrypto_module.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qcrypto_module.ko -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qdrbg_module.hmac: -------------------------------------------------------------------------------- 1 | 7a4759f18bea2e6cd338d6d50f9536d08b9a211495fc644d40c217f0b1e4b6ef 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qdrbg_module.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qdrbg_module.ko -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qfintverify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qfintverify -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/qfintverify.hmac: -------------------------------------------------------------------------------- 1 | 48129fd8bf860b7801034fbaa135f03a189e8e16ff2e5b942ff24fa792d0205e 2 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/ueventd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sbin/watchdogd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sdcard: -------------------------------------------------------------------------------- 1 | /storage/self/primary -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/seapp_contexts: -------------------------------------------------------------------------------- 1 | isSystemServer=true domain=system_server 2 | user=system seinfo=platform domain=system_app type=system_app_data_file 3 | user=bluetooth seinfo=platform domain=bluetooth type=bluetooth_data_file 4 | user=nfc seinfo=platform domain=nfc type=nfc_data_file 5 | user=radio seinfo=platform domain=radio type=radio_data_file 6 | user=shared_relro domain=shared_relro 7 | user=shell seinfo=platform domain=shell type=shell_data_file 8 | user=_isolated domain=isolated_app levelFrom=user 9 | user=_app seinfo=platform domain=platform_app type=app_data_file levelFrom=user 10 | user=_app isAutoPlayApp=true domain=autoplay_app type=autoplay_data_file levelFrom=all 11 | user=_app isPrivApp=true domain=priv_app type=app_data_file levelFrom=user 12 | user=_app domain=untrusted_app type=app_data_file levelFrom=user 13 | user=gps domain=location_app type=location_app_data_file 14 | user=system seinfo=platform name=com.qualcomm.services.location domain=location_app type=location_app_data_file 15 | user=system seinfo=platform name=com.qualcomm.location.XT domain=location_app type=location_app_data_file 16 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidocryptoservice domain=qsee_svc_app type=qsee_svc_app_data_file 17 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidosuiservice domain=qsee_svc_app type=qsee_svc_app_data_file 18 | user=system seinfo=platform name=com.qualcomm.qti.securemsm.mdtp.MdtpService domain=mdtpservice_app type=mdtp_svc_app_data_file 19 | user=system seinfo=platform name=.dataservices domain=dataservice_app type=system_app_data_file 20 | user=_app seinfo=platform name=com.qualcomm.location.qvtester domain=location_app type=location_app_data_file 21 | user=_app seinfo=platform name=com.qualcomm.qct.dlt domain=location_app type=location_app_data_file 22 | user=system seinfo=platform name=com.qualcomm.qti.auth.securesampleauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 23 | user=system seinfo=platform name=com.qualcomm.qti.auth.secureextauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 24 | user=log domain=platform_app type=log_app_data_file 25 | user=smartcard domain=platform_app type=smartcard_data_file 26 | user=mot_common seinfo=common domain=platform_app type=app_data_file 27 | user=mot_shared seinfo=platform domain=platform_app type=app_data_file 28 | user=_app seinfo=common domain=platform_app type=app_data_file levelFrom=user 29 | user=_app seinfo=common domain=untrusted_app name=com.motorola.MotGallery2 type=app_data_file levelFrom=user 30 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/sepolicy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/sepolicy -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/ueventd.rc: -------------------------------------------------------------------------------- 1 | subsystem adf 2 | devname uevent_devname 3 | 4 | # ueventd can only set permissions on device nodes and their associated 5 | # sysfs attributes, not on arbitrary paths. 6 | # 7 | # format for /dev rules: devname mode uid gid 8 | # format for /sys rules: nodename attr mode uid gid 9 | # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" 10 | 11 | /dev/null 0666 root root 12 | /dev/zero 0666 root root 13 | /dev/full 0666 root root 14 | /dev/ptmx 0666 root root 15 | /dev/tty 0666 root root 16 | /dev/random 0666 root root 17 | /dev/urandom 0666 root root 18 | # Make HW RNG readable by group system to let EntropyMixer read it. 19 | /dev/hw_random 0440 root system 20 | /dev/ashmem 0666 root root 21 | /dev/binder 0666 root root 22 | 23 | # Anyone can read the logs, but if they're not in the "logs" 24 | # group, then they'll only see log entries for their UID. 25 | /dev/log/* 0666 root log 26 | /dev/pmsg0 0222 root log 27 | 28 | # the msm hw3d client device node is world writable/readable. 29 | /dev/msm_hw3dc 0666 root root 30 | 31 | # the DIAG device node is not world writable/readable. 32 | /dev/diag 0660 system qcom_diag 33 | 34 | # gpu driver for adreno200 is globally accessible 35 | /dev/kgsl 0666 root root 36 | 37 | # kms driver for drm based gpu 38 | /dev/dri/* 0666 root graphics 39 | 40 | # these should not be world writable 41 | /dev/diag_arm9 0660 radio radio 42 | /dev/android_adb 0660 adb adb 43 | /dev/android_adb_enable 0660 adb adb 44 | /dev/ttyMSM0 0600 bluetooth bluetooth 45 | /dev/uhid 0660 system net_bt_stack 46 | /dev/uinput 0660 system net_bt_stack 47 | /dev/alarm 0664 system radio 48 | /dev/rtc0 0640 system system 49 | /dev/tty0 0660 root system 50 | /dev/graphics/* 0660 root graphics 51 | /dev/msm_hw3dm 0660 system graphics 52 | /dev/input/* 0660 root input 53 | /dev/eac 0660 root audio 54 | /dev/cam 0660 root camera 55 | /dev/pmem 0660 system graphics 56 | /dev/pmem_adsp* 0660 system audio 57 | /dev/pmem_camera* 0660 system camera 58 | /dev/oncrpc/* 0660 root system 59 | /dev/adsp/* 0660 system audio 60 | /dev/snd/* 0660 system audio 61 | /dev/mt9t013 0660 system system 62 | /dev/msm_camera/* 0660 system system 63 | /dev/akm8976_daemon 0640 compass system 64 | /dev/akm8976_aot 0640 compass system 65 | /dev/akm8973_daemon 0640 compass system 66 | /dev/akm8973_aot 0640 compass system 67 | /dev/bma150 0640 compass system 68 | /dev/cm3602 0640 compass system 69 | /dev/akm8976_pffd 0640 compass system 70 | /dev/lightsensor 0640 system system 71 | /dev/msm_pcm_out* 0660 system audio 72 | /dev/msm_pcm_in* 0660 system audio 73 | /dev/msm_pcm_ctl* 0660 system audio 74 | /dev/msm_snd* 0660 system audio 75 | /dev/msm_mp3* 0660 system audio 76 | /dev/audience_a1026* 0660 system audio 77 | /dev/tpa2018d1* 0660 system audio 78 | /dev/msm_audpre 0660 system audio 79 | /dev/msm_audio_ctl 0660 system audio 80 | /dev/htc-acoustic 0660 system audio 81 | /dev/vdec 0660 system audio 82 | /dev/q6venc 0660 system audio 83 | /dev/snd/dsp 0660 system audio 84 | /dev/snd/dsp1 0660 system audio 85 | /dev/snd/mixer 0660 system audio 86 | /dev/smd0 0640 radio radio 87 | /dev/qmi 0640 radio radio 88 | /dev/qmi0 0640 radio radio 89 | /dev/qmi1 0640 radio radio 90 | /dev/qmi2 0640 radio radio 91 | /dev/bus/usb/* 0660 root usb 92 | /dev/mtp_usb 0660 root mtp 93 | /dev/usb_accessory 0660 root usb 94 | /dev/tun 0660 system vpn 95 | 96 | # CDMA radio interface MUX 97 | /dev/ts0710mux* 0640 radio radio 98 | /dev/ppp 0660 radio vpn 99 | 100 | # sysfs properties 101 | /sys/devices/platform/trusty.* trusty_version 0440 root log 102 | /sys/devices/virtual/input/input* enable 0660 root input 103 | /sys/devices/virtual/input/input* poll_delay 0660 root input 104 | /sys/devices/virtual/usb_composite/* enable 0664 root system 105 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 106 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 107 | 108 | # DVB API device nodes 109 | /dev/dvb* 0660 root system 110 | 111 | # IIO 112 | /sys/devices/iio_sysfs_trigger/add_trigger 0220 system system 113 | /sys/devices/iio_sysfs_trigger/remove_trigger 0220 system system 114 | 115 | /sys/devices/iio:device* buffer/* 0664 system system 116 | /sys/devices/iio:device* scan_elements/in_*_en 0664 system system 117 | /sys/devices/iio:device* trigger/current_trigger 0664 system system 118 | /sys/devices/iio:device* in_sampling_frequency 0664 system system 119 | /sys/devices/iio:device* max_latency_ns 0664 system system 120 | /sys/devices/iio:device* flush 0220 system system 121 | 122 | /dev/iio:device* 0600 system system 123 | -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/vendor: -------------------------------------------------------------------------------- 1 | /system/vendor -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/verity_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/verity_key -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/xbin/qe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/xbin/qe -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/xbin/qee.dat: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tethered/athene/athene-xt1622-npjs25.93-14-4/xbin/qem.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/athene-xt1622-npjs25.93-14-4/xbin/qem.dat -------------------------------------------------------------------------------- /tethered/athene/initroot-athene-xt1622-mpj24.139-63.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/initroot-athene-xt1622-mpj24.139-63.cpio.gz -------------------------------------------------------------------------------- /tethered/athene/initroot-athene-xt1622-npjs25.93-14-4-padded.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/initroot-athene-xt1622-npjs25.93-14-4-padded.cpio.gz -------------------------------------------------------------------------------- /tethered/athene/initroot-athene-xt1622-npjs25.93-14-4.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/athene/initroot-athene-xt1622-npjs25.93-14-4.cpio.gz -------------------------------------------------------------------------------- /tethered/athene/initroot-tethered.sh: -------------------------------------------------------------------------------- 1 | ../initroot-tethered.sh athene 0x92000000 2505052 initroot-athene-xt1622-npjs25.93-14-4-padded.cpio.gz 2 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/charger: -------------------------------------------------------------------------------- 1 | /sbin/healthd -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/d: -------------------------------------------------------------------------------- 1 | /sys/kernel/debug -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/default.prop: -------------------------------------------------------------------------------- 1 | # 2 | # ADDITIONAL_DEFAULT_PROPERTIES 3 | # 4 | ro.oem_unlock_supported=1 5 | ro.secure=1 6 | security.perf_harden=1 7 | ro.adb.secure=1 8 | ro.allow.mock.location=0 9 | ro.debuggable=0 10 | ro.logdumpd.enabled=0 11 | ro.zygote=zygote32 12 | pm.dexopt.first-boot=interpret-only 13 | pm.dexopt.boot=verify-profile 14 | pm.dexopt.install=interpret-only 15 | pm.dexopt.bg-dexopt=speed-profile 16 | pm.dexopt.ab-ota=speed-profile 17 | pm.dexopt.nsys-library=speed 18 | pm.dexopt.shared-apk=speed 19 | pm.dexopt.forced-dexopt=speed 20 | pm.dexopt.core-app=speed 21 | dalvik.vm.image-dex2oat-Xms=64m 22 | dalvik.vm.image-dex2oat-Xmx=64m 23 | dalvik.vm.dex2oat-Xms=64m 24 | dalvik.vm.dex2oat-Xmx=512m 25 | ro.dalvik.vm.native.bridge=0 26 | dalvik.vm.usejit=true 27 | dalvik.vm.usejitprofiles=true 28 | dalvik.vm.appimageformat=lz4 29 | debug.atrace.tags.enableflags=0 30 | # 31 | # BOOTIMAGE_BUILD_PROPERTIES 32 | # 33 | ro.bootimage.build.date=Mon Feb 6 18:44:42 CST 2017 34 | ro.bootimage.build.date.utc=1486428282 35 | ro.bootimage.build.fingerprint=motorola/cedric_retail/cedric:7.0/NPP25.137-33/31:user/release-keys 36 | persist.sys.usb.config=mtp 37 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/etc: -------------------------------------------------------------------------------- 1 | /system/etc -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/file_contexts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/file_contexts.bin -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/fstab.qcom: -------------------------------------------------------------------------------- 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 | #TODO: Add 'check' as fs_mgr_flags with data partition. 6 | # Currently we dont have e2fsck compiled. So fs check would failed. 7 | 8 | # 9 | /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait 10 | /dev/block/bootdevice/by-name/misc /misc emmc defaults defaults 11 | /dev/block/bootdevice/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,nobarrier,inline_data wait,check,formattable,forceencrypt=/dev/block/bootdevice/by-name/metadata 12 | /devices/soc/7864900.sdhci/mmc_host* auto auto nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=userdata 13 | /dev/block/zram0 none swap defaults zramsize=536870912 14 | /dev/block/bootdevice/by-name/cache /cache ext4 rw,noatime,nosuid,nodev,barrier=1,data=ordered wait,check,formattable 15 | /devices/soc/78db000.usb/msm_hsusb_host* auto auto defaults voldmanaged=usb:auto 16 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/init -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.3gb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-h3g-{country} 3 | setprop ro.com.google.clientidbase.am android-h3g-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.acg.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.android.dataroaming true 3 | 4 | on post-fs-data 5 | setprop ril.subscription.types RUIM 6 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.altfr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-hms-vf-fr 3 | setprop ro.com.google.clientidbase.am android-sfr-fr 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxar.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxbr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | setprop persist.radio.use_se_table_only 1 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxcl.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxco.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxla.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxmx.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.amxpe.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-americamovil-{country} 3 | setprop ro.com.google.clientidbase.am android-americamovil-{country} 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.att.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-att-us 3 | setprop ro.com.google.clientidbase.am android-att-us 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.bwaca.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-motorola 3 | setprop ro.com.google.clientidbase.am android-motorola 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.class_main.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | # 30 | # start ril-daemon only for targets on which radio is present 31 | # 32 | baseband=`getprop ro.baseband` 33 | sgltecsfb=`getprop persist.radio.sglte_csfb` 34 | datamode=`getprop persist.data.mode` 35 | 36 | case "$baseband" in 37 | "apq") 38 | setprop ro.radio.noril yes 39 | stop ril-daemon 40 | esac 41 | 42 | case "$baseband" in 43 | "msm" | "csfb" | "svlte2a" | "mdm" | "mdm2" | "sglte" | "sglte2" | "dsda2" | "unknown" | "dsda3") 44 | start qmuxd 45 | start ipacm-diag 46 | start ipacm 47 | case "$baseband" in 48 | "svlte2a" | "csfb") 49 | start qmiproxy 50 | ;; 51 | "sglte" | "sglte2" ) 52 | if [ "x$sgltecsfb" != "xtrue" ]; then 53 | start qmiproxy 54 | else 55 | setprop persist.radio.voice.modem.index 0 56 | fi 57 | ;; 58 | "dsda2") 59 | setprop persist.radio.multisim.config dsda 60 | esac 61 | 62 | multisim=`getprop persist.radio.multisim.config` 63 | 64 | if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then 65 | start ril-daemon2 66 | elif [ "$multisim" = "tsts" ]; then 67 | start ril-daemon2 68 | start ril-daemon3 69 | fi 70 | 71 | case "$datamode" in 72 | "tethered") 73 | start qti 74 | start port-bridge 75 | ;; 76 | "concurrent") 77 | start qti 78 | start netmgrd 79 | start port-bridge 80 | ;; 81 | *) 82 | start netmgrd 83 | ;; 84 | esac 85 | esac 86 | 87 | # 88 | # Allow persistent faking of bms 89 | # User needs to set fake bms charge in persist.bms.fake_batt_capacity 90 | # 91 | fake_batt_capacity=`getprop persist.bms.fake_batt_capacity` 92 | case "$fake_batt_capacity" in 93 | "") ;; #Do nothing here 94 | * ) 95 | echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity 96 | ;; 97 | esac 98 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.eegb.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.android.dataroaming true 3 | setprop ro.com.google.clientidbase.ms android-tmobile-{country} 4 | setprop ro.com.google.clientidbase.am android-tmobile-{country} 5 | setprop ro.com.google.clientidbase.gmm android-tmobile-{country} 6 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.environ.rc: -------------------------------------------------------------------------------- 1 | # set up the global environment 2 | on init 3 | export ANDROID_BOOTLOGO 1 4 | export ANDROID_ROOT /system 5 | export ANDROID_ASSETS /system/app 6 | export ANDROID_DATA /data 7 | export ANDROID_STORAGE /storage 8 | export EXTERNAL_STORAGE /sdcard 9 | export ASEC_MOUNTPOINT /mnt/asec 10 | export BOOTCLASSPATH /system/framework/prcui-config.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/qcom.fmradio.jar:/system/framework/oem-services.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar 11 | export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar 12 | 13 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.gbmods.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | debug=$(getprop ro.boot.gbdebug 2> /dev/null) 4 | bootmode=$(getprop ro.bootmode 2> /dev/null) 5 | 6 | # If androidboot.gbdebug is set on command line, skip inserting 7 | # the pre-installed modules. 8 | if [ "$debug" == "1" ]; then 9 | return 0 10 | fi 11 | 12 | insmod /system/lib/modules/greybus.ko 13 | 14 | # Only support PTP and BATTERY in charge-only mode 15 | if [ "$bootmode" == "charger" ]; then 16 | insmod /system/lib/modules/gb-mods.ko 17 | insmod /system/lib/modules/gb-battery.ko 18 | insmod /system/lib/modules/gb-ptp.ko 19 | 20 | return 0 21 | fi 22 | 23 | gbmods="/system/lib/modules/gb-*" 24 | for mod in $gbmods 25 | do 26 | insmod $mod 27 | done 28 | 29 | insmod /system/lib/modules/v4l2-hal.ko 30 | start mods_camd 31 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.lra.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.android.dataroaming true 3 | 4 | on post-fs-data 5 | setprop ril.subscription.types RUIM 6 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mdm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2013, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | baseband=`getprop ro.baseband` 30 | if [ "$baseband" = "mdm" ] || [ "$baseband" = "mdm2" ]; then 31 | start mdm_helper 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.audio.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | path=/etc/acdbdata 4 | typeset -l device=$(getprop ro.hw.device) 5 | index=0 6 | for file in $(ls $path/$device/*.acdb); do 7 | setprop persist.audio.calfile$index $file 8 | index=$((index+1)) 9 | done 10 | 11 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.block_perm.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | block_by_name=/dev/block/bootdevice/by-name 4 | utags=${block_by_name}/utags 5 | utags_backup=${block_by_name}/utagsBackup 6 | 7 | # Set correct permissions for UTAGS 8 | /system/bin/chown -L mot_tcmd:system $utags 9 | /system/bin/chown -L mot_tcmd:system $utags_backup 10 | /system/bin/chmod -L 0660 $utags 11 | /system/bin/chmod -L 0660 $utags_backup 12 | 13 | # HOB/DHOB 14 | hob=${block_by_name}/hob 15 | dhob=${block_by_name}/dhob 16 | /system/bin/chown -L radio:radio $hob 17 | /system/bin/chown -L radio:radio $dhob 18 | /system/bin/chmod -L 0660 $hob 19 | /system/bin/chmod -L 0660 $dhob 20 | 21 | # CLOGO 22 | clogo=${block_by_name}/clogo 23 | /system/bin/chown -L root:mot_tcmd $clogo 24 | /system/bin/chmod -L 0660 $clogo 25 | 26 | #CID 27 | cid=${block_by_name}/cid 28 | /system/bin/chown -L root:mot_tcmd $cid 29 | /system/bin/chmod -L 0660 $cid 30 | 31 | #BL logs 32 | logs=${block_by_name}/logs 33 | /system/bin/chown -L root:log $logs 34 | /system/bin/chmod -L 0640 $logs 35 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.boot.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | PATH=/sbin:/system/sbin:/system/bin:/system/xbin 4 | export PATH 5 | 6 | scriptname=${0##*/} 7 | 8 | notice() 9 | { 10 | echo "$*" 11 | echo "$scriptname: $*" > /dev/kmsg 12 | } 13 | 14 | # We take this from cpuinfo because hex "letters" are lowercase there 15 | set -A cinfo `cat /proc/cpuinfo | /system/bin/grep Revision` 16 | hw=${cinfo[2]#?} 17 | 18 | # Now "cook" the value so it can be matched against devtree names 19 | m2=${hw%?} 20 | minor2=${hw#$m2} 21 | m1=${m2%?} 22 | minor1=${m2#$m1} 23 | if [ "$minor2" == "0" ]; then 24 | minor2="" 25 | if [ "$minor1" == "0" ]; then 26 | minor1="" 27 | fi 28 | fi 29 | setprop ro.hw.revision p${hw%??}$minor1$minor2 30 | unset hw cinfo m1 m2 minor1 minor2 31 | 32 | # reload UTAGS 33 | utag_status=$(cat /proc/config/reload) 34 | if [ "$utag_status" == "2" ]; then 35 | notice "Utags are not ready, reloading" 36 | echo 1 > /proc/config/reload 37 | utag_status=$(cat /proc/config/reload) 38 | [ "$utag_status" != "0" ] && notice "Utags failed to reload" 39 | fi 40 | 41 | # Export these for factory validation purposes 42 | iccid=$(cat /proc/config/iccid/ascii 2>/dev/null) 43 | if [ ! -z "$iccid" ]; then 44 | setprop ro.mot.iccid $iccid 45 | fi 46 | unset iccid 47 | cust_md5=$(cat /proc/config/cust_md5/ascii 2>/dev/null) 48 | if [ ! -z "$cust_md5" ]; then 49 | setprop ro.mot.cust_md5 $cust_md5 50 | fi 51 | unset cust_md5 52 | 53 | # Get FTI data and catch old units with incorrect/missing UTAG_FTI 54 | pds_fti=/persist/factory/fti 55 | if [ -r $pds_fti ]; then 56 | set -A fti $(od -A n -t x1 $pds_fti 2>/dev/null) 57 | else 58 | notice "Can not read FTI data in persist" 59 | fi 60 | 61 | # Read HW version from FTI data 62 | hw_v1="\x${fti[35]}" 63 | hw_v2="\x${fti[36]}" 64 | hw_v3="\x${fti[37]}" 65 | if [ "$hw_v3" == "\x30" ]; then 66 | hw_v3="" 67 | fi 68 | hw_v4="\x${fti[38]}" 69 | if [ "$hw_v4" == "\x30" ]; then 70 | hw_v4="" 71 | fi 72 | setprop ro.hw.boardversion $(printf "$hw_v1$hw_v2$hw_v3$hw_v4") 73 | 74 | # If UTAG_FTI is readable, compare checksums 75 | # and if they mismatch, assume PDS is valid and overwrite UTAG 76 | utag_fti=/proc/config/fti 77 | if [ -r $utag_fti/ascii ]; then 78 | set -A fti_utag $(cat ${utag_fti}/raw | sed 's/../& /g') 79 | # Byte 128 is total cksum, if nothing there, PDS data is invalid/missing 80 | if [ ! -z "${fti[127]}" ]; then 81 | # Make sure fti in UTAG is the same as in persist. Checksum comparison 82 | if [ "${fti[126]}" != "${fti_utag[126]}" -o "${fti[127]}" != "${fti_utag[127]}" ]; then 83 | notice "Copying FTI data from persist" 84 | cat $pds_fti > ${utag_fti}/raw 85 | fi 86 | else 87 | # If PDS data is invalid, take UTAG and hope it is correct 88 | notice "Will use FTI from UTAG" 89 | set -A fti $(cat ${utag_fti}/raw | sed 's/../& /g') 90 | fi 91 | else 92 | notice "Missing FTI UTAG; copying from persist" 93 | echo fti > /proc/config/all/new 94 | cat $pds_fti > ${utag_fti}/raw 95 | fi 96 | 97 | # Now we have set fti var either from PDS or UTAG 98 | # Get Last Test Station stamp from FTI 99 | # and convert to user-friendly date, US format 100 | # Real offsets for year/month/day are 63/64/65 101 | # If the month/date look reasonable, data is probably OK. 102 | mdate="Unknown" 103 | y=0x${fti[63]} 104 | m=0x${fti[64]} 105 | d=0x${fti[65]} 106 | let year=$y month=$m day=$d 107 | # Invalid data will often have bogus month/date values 108 | if [ $month -le 12 -a $day -le 31 -a $year -ge 12 ]; then 109 | mdate=$month/$day/20$year 110 | else 111 | notice "Corrupt FTI data" 112 | fi 113 | setprop ro.manufacturedate $mdate 114 | unset fti y m d year month day utag_fti pds_fti fti_utag mdate 115 | 116 | t=$(getprop ro.build.tags) 117 | if [[ "$t" != *release* ]]; then 118 | for p in $(cat /proc/cmdline); do 119 | if [ ${p%%:*} = "@" ]; then 120 | v=${p#@:}; a=${v%=*}; b=${v#*=} 121 | ${a%%:*} ${a##*:} $b 122 | fi 123 | done 124 | fi 125 | unset p v a b t 126 | 127 | # Cleanup stale/incorrect programmed model value 128 | # Real values will never contain substrings matching "internal" device name 129 | product=$(getprop ro.hw.device) 130 | model=$(cat /proc/config/model/ascii 2>/dev/null) 131 | if [ $? -eq 0 ]; then 132 | if [ "${model#*_}" == "$product" -o "${model%_*}" == "$product" ]; then 133 | notice "Clearing stale model value" 134 | echo "" > /proc/config/model/raw 135 | fi 136 | fi 137 | unset model product 138 | 139 | # For non-user builds only check if Normal min free offset file is there and use 140 | # those values to override the default setting 141 | if [ "`getprop ro.build.type`" != "user" ] 142 | then 143 | if [ -f /data/minFreeOff.txt ] 144 | then 145 | if [ -e /proc/sys/vm/min_free_normal_offset ] 146 | then 147 | echo -e `cat /data/minFreeOff.txt` > /proc/sys/vm/min_free_normal_offset 148 | fi 149 | fi 150 | fi 151 | 152 | 153 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.chipset.rc: -------------------------------------------------------------------------------- 1 | # Chipset-specific init settings 2 | on boot 3 | # Change permission for type C params 4 | chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state 5 | chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn 6 | 7 | # usb driver parameter permissions 8 | chown root mot_tcmd /sys/module/phy_msm_usb/parameters/host_mode_disable 9 | chmod 0660 /sys/module/phy_msm_usb/parameters/host_mode_disable 10 | 11 | service fingerprintd /system/bin/fingerprintd 12 | class late_start 13 | user system 14 | group fingerp 15 | 16 | service emmc_ffu /system/bin/emmc_ffu.sh 17 | user root 18 | class core 19 | oneshot 20 | disabled 21 | 22 | on property:sys.boot_completed=1 23 | start emmc_ffu 24 | 25 | #Configure mtp rx/tx req len for msm8937 26 | write /sys/module/g_android/parameters/mtp_rx_req_len 1048576 27 | write /sys/module/g_android/parameters/mtp_tx_req_len 16384 28 | write /sys/class/android_usb/android0/f_rndis_qc/rndis_transports " " 29 | 30 | on moto-charger 31 | setprop ro.board.platform msm8937 32 | trigger firmware_mounts_complete 33 | start qcom-post-boot 34 | start gbmodinstall 35 | start charge_only_mode 36 | start batt_health 37 | start thermal-com 38 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.common.rc: -------------------------------------------------------------------------------- 1 | service setup_shutdown /system/bin/setup_shutdown.sh 2 | class main 3 | user system 4 | oneshot 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.debug.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/init.mmi.debug.rc -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.diag.rc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.diag_mdlog.rc: -------------------------------------------------------------------------------- 1 | 2 | on post-fs-data 3 | mkdir /data/diag_mdlog 0770 system log 4 | mkdir /data/diag_mdlog/logs 0750 log log 5 | 6 | on property:persist.sys.diag_mdlog.on=1 7 | start diag_mdlog 8 | 9 | on property:persist.sys.diag_mdlog.on=0 10 | start safe_stop_mdlog 11 | 12 | on property:log.diag_mdlog.invld_mode_stop=1 13 | stop diag_mdlog 14 | 15 | on property:persist.radio.usbdiag=1 16 | setprop persist.sys.diag_mdlog.on 0 17 | 18 | service diag_mdlog /system/bin/diag_mdlog-wrap 19 | class late_start 20 | socket mdlog_cmd stream 0660 log diag 21 | user log 22 | group log sdcard_rw sdcard_r media_rw qcom_diag mount 23 | disabled 24 | 25 | service safe_stop_mdlog /system/bin/diag_mdlog-wrap -s 26 | class late_start 27 | user log 28 | group log sdcard_rw sdcard_r media_rw qcom_diag 29 | oneshot 30 | disabled 31 | 32 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.dtv.rc: -------------------------------------------------------------------------------- 1 | on post-fs 2 | 3 | # DTV feature 4 | insmod /system/lib/modules/isdbt.ko 5 | 6 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.laser.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | scriptname=${0##*/} 3 | dbg_on=1 4 | debug() 5 | { 6 | [ $dbg_on ] && echo "Debug: $*" 7 | } 8 | 9 | notice() 10 | { 11 | echo "$*" 12 | echo "$scriptname: $*" > /dev/kmsg 13 | } 14 | 15 | error_and_leave() 16 | { 17 | local err_msg 18 | local err_code=$1 19 | case $err_code in 20 | 1) err_msg="Error: No response";; 21 | 2) err_msg="Error: in factory mode";; 22 | 3) err_msg="Error: calibration file not exist";; 23 | 4) err_msg="Error: the calibration sys file not show up";; 24 | esac 25 | notice "$err_msg" 26 | exit $err_code 27 | } 28 | 29 | bootmode=`getprop ro.bootmode` 30 | if [ $bootmode == "mot-factory" ] 31 | then 32 | error_and_leave 2 33 | fi 34 | 35 | laser_offset_path=/sys/kernel/range/offset 36 | laser_offset_string=$(ls $laser_offset_path) 37 | [ -z "$laser_offset_string" ] && error_and_leave 4 38 | 39 | cal_offset_path=/persist/camera/focus/offset_cal 40 | cal_offset_string=$(ls $cal_offset_path) 41 | [ -z "$cal_offset_string" ] && error_and_leave 3 42 | 43 | offset_cal=$(cat $cal_offset_path) 44 | debug "offset cal value [$offset_cal]" 45 | 46 | debug "set cal value to kernel" 47 | echo $offset_cal > $laser_offset_path 48 | notice "laser cal data update success" 49 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.overlay.rc: -------------------------------------------------------------------------------- 1 | import init.mmi.dtv.rc 2 | 3 | on post-fs-data 4 | # AK09912 calibration file directory 5 | mkdir /data/misc/akmd 0770 system compass 6 | 7 | # Start AKM executable 8 | service ecompassd /system/bin/akmd09912 9 | class main 10 | user compass 11 | group compass misc input 12 | disabled 13 | 14 | on property:ro.hw.ecompass=true 15 | enable ecompassd 16 | 17 | # Huaqin factory diag service 18 | service yepdiag /system/bin/yepdiag 19 | class core 20 | user root 21 | disabled 22 | 23 | service openfactory /system/bin/sh /system/etc/openfactory.sh 24 | class main 25 | user root 26 | oneshot 27 | disabled 28 | 29 | service capsense_reset /system/bin/capsense_reset 30 | class core 31 | user system 32 | group system 33 | disabled 34 | 35 | on property:sys.boot_completed=1 36 | start capsense_reset 37 | 38 | on property:sys.config.factorystart=1 39 | start openfactory 40 | 41 | on property:ro.bootmode=bp-tools 42 | start yepdiag 43 | 44 | on boot 45 | #change permission for capsensor 46 | chmod 0660 /sys/class/capsense/enable 47 | chown system system sys/class/capsense/enable 48 | chmod 0660 /sys/class/capsense/reset 49 | chown system system sys/class/capsense/reset 50 | 51 | # Change permission for fingerprint sensor 52 | chown system mot_tcmd /sys/bus/spi/devices/spi6.0/nav 53 | chown system mot_tcmd /sys/bus/spi/devices/spi6.0/clk_enable 54 | chown system mot_tcmd /sys/bus/spi/devices/spi6.0/dev_enable 55 | chown system mot_tcmd /sys/bus/spi/devices/spi6.0/irq 56 | chown system mot_tcmd /sys/bus/spi/devices/spi6.0/irq_cnt 57 | chmod 0440 /sys/bus/spi/devices/spi6.0/irq_cnt 58 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.sensor.rc: -------------------------------------------------------------------------------- 1 | on boot 2 | # STML0 driver parameter permissions 3 | chown root mot_tcmd /sys/module/stml0xx/parameters/irq_disable 4 | chmod 0660 /sys/module/stml0xx/parameters/irq_disable 5 | 6 | #STML0 device permissions 7 | chown system compass /dev/stml0xx 8 | chmod 0660 /dev/stml0xx 9 | chown compass compass /dev/stml0xx_as 10 | chmod 0660 /dev/stml0xx_as 11 | chown compass compass /dev/stml0xx_ms 12 | chmod 0660 /dev/stml0xx_ms 13 | chown compass compass /dev/stml0xx_akm 14 | chmod 0660 /dev/stml0xx_akm 15 | 16 | # Start Sensor daemon 17 | service motosh /system/bin/motosh boot 18 | 19 | class late_start 20 | user compass 21 | group compass misc input 22 | oneshot 23 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.mmi.volte.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Motorola Mobilit L. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are met: 5 | # * Redistributions of source code must retain the above copyright 6 | # notice, this list of conditions and the following disclaimer. 7 | # * Redistributions in binary form must reproduce the above copyright 8 | # notice, this list of conditions and the following disclaimer in the 9 | # documentation and/or other materials provided with the distribution. 10 | # * Neither the name of Code Aurora nor 11 | # the names of its contributors may be used to endorse or promote 12 | # products derived from this software without specific prior written 13 | # permission. 14 | # 15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 19 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | # 27 | 28 | service imsqmidaemon /system/bin/imsqmidaemon 29 | class main 30 | user system 31 | socket ims_qmid stream 0660 system radio 32 | group radio log diag 33 | 34 | service imsdatadaemon /system/bin/imsdatadaemon 35 | class main 36 | user system 37 | socket ims_datad stream 0660 system radio 38 | group system wifi radio inet log diag 39 | disabled 40 | 41 | on property:sys.ims.QMI_DAEMON_STATUS=1 42 | start imsdatadaemon 43 | 44 | service cnd /system/bin/cnd 45 | class late_start 46 | socket cnd stream 660 root inet 47 | 48 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.oem.rc: -------------------------------------------------------------------------------- 1 | on init 2 | mkdir /oem 0550 root root 3 | on fs 4 | wait /dev/block/bootdevice/by-name/oem 5 | mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev context=u:object_r:oemfs:s0 6 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.oraes.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | setprop media.httplive.kdlblocksize 1920 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.orafr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-orange-{country} 3 | setprop ro.com.google.clientidbase.am android-orange-{country} 4 | setprop media.httplive.kdlblocksize 1920 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.qcom.build.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/init.qcom.build.rc -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.qcom.factory.rc: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2009-2016, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | # Define fastmmi 30 | service fastmmi /system/bin/mmi 31 | user root 32 | group root 33 | disabled 34 | 35 | on property:sys.boot_mode=ffbm 36 | write -p /dev/block /dev/block/bootdevice/by-name/misc "ffbm-01" 37 | 38 | on property:sys.boot_mode=normal 39 | write -p /dev/block /dev/block/bootdevice/by-name/misc "normal" 40 | 41 | # Creating a scratch storage on /data for factory testing. 42 | on factory-fs 43 | mount tmpfs tmpfs /data 44 | 45 | on mmi 46 | # ======================================================== 47 | # This is FFBM only settings. 48 | # ======================================================== 49 | #mkdir for factory data files. 50 | mkdir /cache/FTM_AP 0750 root root 51 | 52 | #Start the following services needed for fftm 53 | start qcom-usb-sh 54 | start logd 55 | start debuggerd 56 | start debuggerd64 57 | start servicemanager 58 | start surfaceflinger 59 | start per_mgr 60 | start qcom-sh 61 | start ril-daemon 62 | start config_bluetooth 63 | start sensors 64 | start media 65 | start fastmmi 66 | start wcnss-service 67 | start qcom-post-boot 68 | start rmt_storage 69 | start qcom-c_main-sh 70 | start irsc_util 71 | start qcamerasvr 72 | start qcomsysd 73 | start ptt_ffbm 74 | start tftp_server 75 | 76 | on ffbm 77 | trigger early-fs 78 | trigger factory-fs 79 | trigger fs 80 | trigger post-fs 81 | 82 | # Load properties from /system/ + /factory after fs mount. Place 83 | # this in another action so that the load will be scheduled after the prior 84 | # issued fs triggers have completed. 85 | trigger load_system_props_action 86 | 87 | # Now we can mount /data. File encryption requires keymaster to decrypt 88 | # /data, which in turn can only be loaded when system properties are present 89 | trigger post-fs-data 90 | trigger load_persist_props_action 91 | 92 | # Remove a file to wake up anything waiting for firmware. 93 | trigger firmware_mounts_complete 94 | 95 | trigger early-boot 96 | trigger boot 97 | trigger mmi 98 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.qcom.sensors.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2015, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | # 30 | # Function to start sensors for SSC enabled platforms 31 | # 32 | start_sensors() 33 | { 34 | if [ -c /dev/msm_dsps -o -c /dev/sensors ]; then 35 | chmod -h 775 /persist/sensors 36 | chmod -h 664 /persist/sensors/sensors_settings 37 | chown -h system.root /persist/sensors/sensors_settings 38 | 39 | mkdir -p /data/misc/sensors 40 | chmod -h 775 /data/misc/sensors 41 | 42 | start sensors 43 | fi 44 | } 45 | 46 | start_sensors 47 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.qcom.syspart_fixup.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above copyright 9 | # notice, this list of conditions and the following disclaimer in the 10 | # documentation and/or other materials provided with the distribution. 11 | # * Neither the name of The Linux Foundation nor 12 | # the names of its contributors may be used to endorse or promote 13 | # products derived from this software without specific prior written 14 | # permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | 29 | target="$1" 30 | serial="$2" 31 | 32 | # No path is set up at this point so we have to do it here. 33 | PATH=/sbin:/system/sbin:/system/bin:/system/xbin 34 | export PATH 35 | 36 | mount_needed=false; 37 | 38 | if [ ! -f /system/etc/boot_fixup ];then 39 | # This should be the first command 40 | # remount system as read-write. 41 | mount -o rw,remount,barrier=1 /system 42 | mount_needed=true; 43 | fi 44 | 45 | # **** WARNING ***** 46 | # This runs in a single-threaded, critical path portion 47 | # of the Android bootup sequence. This is to guarantee 48 | # all necessary system partition fixups are done before 49 | # the rest of the system starts up. Run any non- 50 | # timing critical tasks in a separate process to 51 | # prevent slowdown at boot. 52 | 53 | # Run modem link script 54 | if [ -f /system/etc/init.qcom.modem_links.sh ]; then 55 | /system/bin/sh /system/etc/init.qcom.modem_links.sh 56 | fi 57 | 58 | # Run mdm link script 59 | if [ -f /system/etc/init.qcom.mdm_links.sh ]; then 60 | /system/bin/sh /system/etc/init.qcom.mdm_links.sh 61 | fi 62 | 63 | # Run wifi script 64 | if [ -f /system/etc/init.qcom.wifi.sh ]; then 65 | /system/bin/sh /system/etc/init.qcom.wifi.sh "$target" "$serial" 66 | fi 67 | 68 | # Run the sensor script 69 | if [ -f /system/etc/init.qcom.sensor.sh ]; then 70 | /system/bin/sh /system/etc/init.qcom.sensor.sh 71 | fi 72 | 73 | touch /system/etc/boot_fixup 74 | 75 | if $mount_needed ;then 76 | # This should be the last command 77 | # remount system as read-only. 78 | mount -o ro,remount,barrier=1 /system 79 | fi 80 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.rcica.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-rogers-ca 3 | setprop ro.com.google.clientidbase.am android-rogers-ca 4 | 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.retca.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop persist.radio.process_sups_ind 1 3 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.usb.rc: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # USB configuration common for all android devices 4 | # 5 | 6 | on post-fs-data 7 | chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file 8 | chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file 9 | chown system system /sys/class/android_usb/android0/f_rndis/ethaddr 10 | chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr 11 | mkdir /data/misc/adb 02750 system shell 12 | mkdir /data/adb 0700 root root 13 | 14 | # adbd is controlled via property triggers in init..usb.rc 15 | service adbd /sbin/adbd --root_seclabel=u:r:su:s0 16 | class core 17 | socket adbd stream 660 system system 18 | disabled 19 | seclabel u:r:adbd:s0 20 | 21 | # adbd on at boot in emulator 22 | on property:ro.kernel.qemu=1 23 | start adbd 24 | 25 | on boot 26 | setprop sys.usb.configfs 0 27 | 28 | # Used to disable USB when switching states 29 | on property:sys.usb.config=none && property:sys.usb.configfs=0 30 | stop adbd 31 | write /sys/class/android_usb/android0/enable 0 32 | write /sys/class/android_usb/android0/bDeviceClass 0 33 | setprop sys.usb.state ${sys.usb.config} 34 | 35 | # adb only USB configuration 36 | # This is the fallback configuration if the 37 | # USB manager fails to set a standard configuration 38 | on property:sys.usb.config=adb && property:sys.usb.configfs=0 39 | write /sys/class/android_usb/android0/enable 0 40 | write /sys/class/android_usb/android0/idVendor 22b8 41 | write /sys/class/android_usb/android0/idProduct 2E81 42 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 43 | write /sys/class/android_usb/android0/enable 1 44 | start adbd 45 | setprop sys.usb.state ${sys.usb.config} 46 | 47 | # USB accessory configuration 48 | on property:sys.usb.config=accessory && property:sys.usb.configfs=0 49 | write /sys/class/android_usb/android0/enable 0 50 | write /sys/class/android_usb/android0/idVendor 18d1 51 | write /sys/class/android_usb/android0/idProduct 2d00 52 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 53 | write /sys/class/android_usb/android0/enable 1 54 | setprop sys.usb.state ${sys.usb.config} 55 | 56 | # USB accessory configuration, with adb 57 | on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0 58 | write /sys/class/android_usb/android0/enable 0 59 | write /sys/class/android_usb/android0/idVendor 18d1 60 | write /sys/class/android_usb/android0/idProduct 2d01 61 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 62 | write /sys/class/android_usb/android0/enable 1 63 | start adbd 64 | setprop sys.usb.state ${sys.usb.config} 65 | 66 | # audio accessory configuration 67 | on property:sys.usb.config=audio_source && property:sys.usb.configfs=0 68 | write /sys/class/android_usb/android0/enable 0 69 | write /sys/class/android_usb/android0/idVendor 18d1 70 | write /sys/class/android_usb/android0/idProduct 2d02 71 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 72 | write /sys/class/android_usb/android0/enable 1 73 | setprop sys.usb.state ${sys.usb.config} 74 | 75 | # audio accessory configuration, with adb 76 | on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=0 77 | write /sys/class/android_usb/android0/enable 0 78 | write /sys/class/android_usb/android0/idVendor 18d1 79 | write /sys/class/android_usb/android0/idProduct 2d03 80 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 81 | write /sys/class/android_usb/android0/enable 1 82 | start adbd 83 | setprop sys.usb.state ${sys.usb.config} 84 | 85 | # USB and audio accessory configuration 86 | on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=0 87 | write /sys/class/android_usb/android0/enable 0 88 | write /sys/class/android_usb/android0/idVendor 18d1 89 | write /sys/class/android_usb/android0/idProduct 2d04 90 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 91 | write /sys/class/android_usb/android0/enable 1 92 | setprop sys.usb.state ${sys.usb.config} 93 | 94 | # USB and audio accessory configuration, with adb 95 | on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=0 96 | write /sys/class/android_usb/android0/enable 0 97 | write /sys/class/android_usb/android0/idVendor 18d1 98 | write /sys/class/android_usb/android0/idProduct 2d05 99 | write /sys/class/android_usb/android0/functions ${sys.usb.config} 100 | write /sys/class/android_usb/android0/enable 1 101 | start adbd 102 | setprop sys.usb.state ${sys.usb.config} 103 | 104 | # Used to set USB configuration at boot and to switch the configuration 105 | # when changing the default configuration 106 | on property:persist.sys.usb.config=* 107 | setprop sys.usb.config ${persist.sys.usb.config} 108 | 109 | # 110 | # USB type C 111 | # 112 | 113 | # USB mode changes 114 | on property:sys.usb.typec.mode=dfp 115 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 116 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 117 | 118 | on property:sys.usb.typec.mode=ufp 119 | write /sys/class/dual_role_usb/otg_default/mode ${sys.usb.typec.mode} 120 | setprop sys.usb.typec.state ${sys.usb.typec.mode} 121 | 122 | # USB data role changes 123 | on property:sys.usb.typec.data_role=device 124 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 125 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 126 | 127 | on property:sys.usb.typec.data_role=host 128 | write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} 129 | setprop sys.usb.typec.state ${sys.usb.typec.data_role} 130 | 131 | # USB power role changes 132 | on property:sys.usb.typec.power_role=source 133 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 134 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 135 | 136 | on property:sys.usb.typec.power_role=sink 137 | write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} 138 | setprop sys.usb.typec.state ${sys.usb.typec.power_role} 139 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.usc.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-uscellular-us 3 | setprop ro.com.google.clientidbase.am android-uscellular-us 4 | setprop ro.com.android.dataroaming true 5 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.vffr.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop ro.com.google.clientidbase.ms android-hms-vf-fr 3 | setprop ro.com.google.clientidbase.am android-sfr-fr 4 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.wndca.rc: -------------------------------------------------------------------------------- 1 | on early-init 2 | setprop persist.radio.process_sups_ind 1 3 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/init.zygote32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | socket zygote stream 660 root system 4 | onrestart write /sys/android_power/request_state wake 5 | onrestart write /sys/power/state on 6 | onrestart restart audioserver 7 | onrestart restart cameraserver 8 | onrestart restart media 9 | onrestart restart netd 10 | writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks 11 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/module_hashes: -------------------------------------------------------------------------------- 1 | 08cebe0238af334a07d31c9313e4f73b79d655d8 2 | 0af0aecee3ccbb3a404fe03d1f9d51ff0537406c 3 | 1281455c9514a785565227bbce680e889ff5ddf0 4 | 354a6e8807ccab40c136ebbd4724d381f77b8f92 5 | 47d1b5bdfc92fbbe233f10f39e5825d5dedf40e3 6 | 49d9779943fd3b054e2ca6d2818034076ce6f34b 7 | 58782fab10be12c2cfef2271b9b4393a2cfb347d 8 | 6fe8fbe650b973927326283eac87130171badbac 9 | 7fa591d4f4fd142b9a9f8379d8217619559b6c1f 10 | 81ac0ee239d9d4c0a14d82113727885217ad63d5 11 | 9f70f0907ac9ecc1869ad6d6854a2ba958ea7428 12 | acaa92d646613f6fda6c4011915ed3a09d1ce735 13 | b3c92b293bbd91df21d5170f01308bfd37127038 14 | cd592469a3c39791fc899a2a2dcc118b9febc331 15 | e4178d50e63ef1ebdc0f970acffad523fa23963d 16 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/res/images/charger/battery_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/res/images/charger/battery_fail.png -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/res/images/charger/battery_scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/res/images/charger/battery_scale.png -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sbin/adbd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/sbin/adbd -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sbin/healthd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/sbin/healthd -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sbin/su: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/sbin/su -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sbin/ueventd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sbin/watchdogd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sdcard: -------------------------------------------------------------------------------- 1 | /storage/self/primary -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/seapp_contexts: -------------------------------------------------------------------------------- 1 | isSystemServer=true domain=system_server 2 | user=system seinfo=platform domain=system_app type=system_app_data_file 3 | user=bluetooth seinfo=platform domain=bluetooth type=bluetooth_data_file 4 | user=nfc seinfo=platform domain=nfc type=nfc_data_file 5 | user=radio seinfo=platform domain=radio type=radio_data_file 6 | user=shared_relro domain=shared_relro 7 | user=shell seinfo=platform domain=shell type=shell_data_file 8 | user=_isolated domain=isolated_app levelFrom=user 9 | user=_app seinfo=platform domain=platform_app type=app_data_file levelFrom=user 10 | user=_app isAutoPlayApp=true domain=autoplay_app type=autoplay_data_file levelFrom=all 11 | user=_app isPrivApp=true domain=priv_app type=app_data_file levelFrom=user 12 | user=_app domain=untrusted_app type=app_data_file levelFrom=user 13 | user=gps domain=location_app type=location_app_data_file 14 | user=system seinfo=platform name=com.qualcomm.services.location domain=location_app type=location_app_data_file 15 | user=system seinfo=platform name=com.qualcomm.location.XT domain=location_app type=location_app_data_file 16 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidocryptoservice domain=qsee_svc_app type=qsee_svc_app_data_file 17 | user=system seinfo=platform name=com.qualcomm.qti.auth.fidosuiservice domain=qsee_svc_app type=qsee_svc_app_data_file 18 | user=system seinfo=platform name=com.qualcomm.qti.securemsm.mdtp.MdtpService domain=mdtpservice_app type=mdtp_svc_app_data_file 19 | user=system seinfo=platform name=.dataservices domain=dataservice_app type=system_app_data_file 20 | user=_app seinfo=platform name=com.qualcomm.location.qvtester domain=location_app type=location_app_data_file 21 | user=_app seinfo=platform name=com.qualcomm.qct.dlt domain=location_app type=location_app_data_file 22 | user=system seinfo=platform name=com.qualcomm.qti.auth.securesampleauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 23 | user=system seinfo=platform name=com.qualcomm.qti.auth.secureextauthservice domain=qsee_svc_app type=qsee_svc_app_data_file 24 | user=log domain=platform_app type=log_app_data_file 25 | user=smartcard domain=platform_app type=smartcard_data_file 26 | user=mot_common seinfo=common domain=platform_app type=app_data_file 27 | user=mot_shared seinfo=platform domain=platform_app type=app_data_file 28 | user=_app seinfo=common domain=platform_app type=app_data_file levelFrom=user 29 | user=_app seinfo=common domain=untrusted_app name=com.motorola.MotGallery2 type=app_data_file levelFrom=user 30 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/selinux_version: -------------------------------------------------------------------------------- 1 | motorola/cedric_retail/cedric:7.0/NPP25.137-33/31:user/release-keys -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/sepolicy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/sepolicy -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/ueventd.rc: -------------------------------------------------------------------------------- 1 | subsystem adf 2 | devname uevent_devname 3 | 4 | # ueventd can only set permissions on device nodes and their associated 5 | # sysfs attributes, not on arbitrary paths. 6 | # 7 | # format for /dev rules: devname mode uid gid 8 | # format for /sys rules: nodename attr mode uid gid 9 | # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" 10 | 11 | /dev/null 0666 root root 12 | /dev/zero 0666 root root 13 | /dev/full 0666 root root 14 | /dev/ptmx 0666 root root 15 | /dev/tty 0666 root root 16 | /dev/random 0666 root root 17 | /dev/urandom 0666 root root 18 | # Make HW RNG readable by group system to let EntropyMixer read it. 19 | /dev/hw_random 0440 root system 20 | /dev/ashmem 0666 root root 21 | /dev/binder 0666 root root 22 | 23 | # Anyone can read the logs, but if they're not in the "logs" 24 | # group, then they'll only see log entries for their UID. 25 | /dev/log/* 0666 root log 26 | /dev/pmsg0 0222 root log 27 | 28 | # the msm hw3d client device node is world writable/readable. 29 | /dev/msm_hw3dc 0666 root root 30 | 31 | # the DIAG device node is not world writable/readable. 32 | /dev/diag 0660 system qcom_diag 33 | 34 | # gpu driver for adreno200 is globally accessible 35 | /dev/kgsl 0666 root root 36 | 37 | # kms driver for drm based gpu 38 | /dev/dri/* 0666 root graphics 39 | 40 | # these should not be world writable 41 | /dev/diag_arm9 0660 radio radio 42 | /dev/android_adb 0660 adb adb 43 | /dev/android_adb_enable 0660 adb adb 44 | /dev/ttyMSM0 0600 bluetooth bluetooth 45 | /dev/uhid 0660 system net_bt_stack 46 | /dev/uinput 0660 system net_bt_stack 47 | /dev/alarm 0664 system radio 48 | /dev/rtc0 0640 system system 49 | /dev/tty0 0660 root system 50 | /dev/graphics/* 0660 root graphics 51 | /dev/msm_hw3dm 0660 system graphics 52 | /dev/input/* 0660 root input 53 | /dev/eac 0660 root audio 54 | /dev/cam 0660 root camera 55 | /dev/pmem 0660 system graphics 56 | /dev/pmem_adsp* 0660 system audio 57 | /dev/pmem_camera* 0660 system camera 58 | /dev/oncrpc/* 0660 root system 59 | /dev/adsp/* 0660 system audio 60 | /dev/snd/* 0660 system audio 61 | /dev/mt9t013 0660 system system 62 | /dev/msm_camera/* 0660 system system 63 | /dev/akm8976_daemon 0640 compass system 64 | /dev/akm8976_aot 0640 compass system 65 | /dev/akm8973_daemon 0640 compass system 66 | /dev/akm8973_aot 0640 compass system 67 | /dev/bma150 0640 compass system 68 | /dev/cm3602 0640 compass system 69 | /dev/akm8976_pffd 0640 compass system 70 | /dev/lightsensor 0640 system system 71 | /dev/msm_pcm_out* 0660 system audio 72 | /dev/msm_pcm_in* 0660 system audio 73 | /dev/msm_pcm_ctl* 0660 system audio 74 | /dev/msm_snd* 0660 system audio 75 | /dev/msm_mp3* 0660 system audio 76 | /dev/audience_a1026* 0660 system audio 77 | /dev/tpa2018d1* 0660 system audio 78 | /dev/msm_audpre 0660 system audio 79 | /dev/msm_audio_ctl 0660 system audio 80 | /dev/htc-acoustic 0660 system audio 81 | /dev/vdec 0660 system audio 82 | /dev/q6venc 0660 system audio 83 | /dev/snd/dsp 0660 system audio 84 | /dev/snd/dsp1 0660 system audio 85 | /dev/snd/mixer 0660 system audio 86 | /dev/smd0 0640 radio radio 87 | /dev/qmi 0640 radio radio 88 | /dev/qmi0 0640 radio radio 89 | /dev/qmi1 0640 radio radio 90 | /dev/qmi2 0640 radio radio 91 | /dev/bus/usb/* 0660 root usb 92 | /dev/mtp_usb 0660 root mtp 93 | /dev/usb_accessory 0660 root usb 94 | /dev/tun 0660 system vpn 95 | 96 | # CDMA radio interface MUX 97 | /dev/ts0710mux* 0640 radio radio 98 | /dev/ppp 0660 radio vpn 99 | 100 | # sysfs properties 101 | /sys/devices/platform/trusty.* trusty_version 0440 root log 102 | /sys/devices/virtual/input/input* enable 0660 root input 103 | /sys/devices/virtual/input/input* poll_delay 0660 root input 104 | /sys/devices/virtual/usb_composite/* enable 0664 root system 105 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 106 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 107 | 108 | # DVB API device nodes 109 | /dev/dvb* 0660 root system 110 | 111 | # IIO 112 | /sys/devices/iio_sysfs_trigger/add_trigger 0220 system system 113 | /sys/devices/iio_sysfs_trigger/remove_trigger 0220 system system 114 | 115 | /sys/devices/iio:device* buffer/* 0664 system system 116 | /sys/devices/iio:device* scan_elements/in_*_en 0664 system system 117 | /sys/devices/iio:device* trigger/current_trigger 0664 system system 118 | /sys/devices/iio:device* in_sampling_frequency 0664 system system 119 | /sys/devices/iio:device* max_latency_ns 0664 system system 120 | /sys/devices/iio:device* flush 0220 system system 121 | 122 | /dev/iio:device* 0600 system system 123 | -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/vendor: -------------------------------------------------------------------------------- 1 | /system/vendor -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/verity_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/verity_key -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/xbin/qe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/xbin/qe -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/xbin/qee.dat: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tethered/cedric/cedric-npp25.137-33/xbin/qem.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/cedric-npp25.137-33/xbin/qem.dat -------------------------------------------------------------------------------- /tethered/cedric/initroot-cedric-npp25.137-33-upx.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/initroot-cedric-npp25.137-33-upx.cpio.gz -------------------------------------------------------------------------------- /tethered/cedric/initroot-cedric-npp25.137-33.cpio-padded.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/initroot-cedric-npp25.137-33.cpio-padded.gz -------------------------------------------------------------------------------- /tethered/cedric/initroot-cedric-npp25.137-33.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/cedric/initroot-cedric-npp25.137-33.cpio.gz -------------------------------------------------------------------------------- /tethered/cedric/initroot-tethered.sh: -------------------------------------------------------------------------------- 1 | ../initroot-tethered.sh cedric 0xA2100000 1588596 initroot-cedric-npp25.137-33.cpio-padded.gz 2 | -------------------------------------------------------------------------------- /tethered/initroot-tethered.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # usage: ./initroot-tethered.sh 4 | # use the device specific initroot.sh which uses this file with the right parameters 5 | 6 | echo Welcome to initroot-$1-tethered 7 | adb shell id 8 | adb reboot bootloader 9 | fastboot oem config fsg-id "a initrd=$2,$3" 10 | fastboot flash aleph $4 11 | fastboot continue 12 | adb wait-for-device 13 | adb shell id 14 | -------------------------------------------------------------------------------- /tethered/shamu/initroot-shamu-aosp-nmf26f-missingdirs.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/initroot-shamu-aosp-nmf26f-missingdirs.cpio.gz -------------------------------------------------------------------------------- /tethered/shamu/initroot-shamu-aosp-nmf26f.cpio.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/initroot-shamu-aosp-nmf26f.cpio.gz -------------------------------------------------------------------------------- /tethered/shamu/initroot-tethered.sh: -------------------------------------------------------------------------------- 1 | ../initroot-tethered.sh shamu 0x11000000 1519997 initroot-shamu-aosp-nmf26f.cpio.gz 2 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/charger: -------------------------------------------------------------------------------- 1 | /sbin/healthd -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/d: -------------------------------------------------------------------------------- 1 | /sys/kernel/debug -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/default.prop: -------------------------------------------------------------------------------- 1 | # 2 | # ADDITIONAL_DEFAULT_PROPERTIES 3 | # 4 | ro.oem_unlock_supported=1 5 | ro.secure=1 6 | security.perf_harden=1 7 | ro.allow.mock.location=0 8 | ro.debuggable=1 9 | ro.zygote=zygote32 10 | pm.dexopt.first-boot=interpret-only 11 | pm.dexopt.boot=verify-profile 12 | pm.dexopt.install=interpret-only 13 | pm.dexopt.bg-dexopt=speed-profile 14 | pm.dexopt.ab-ota=speed-profile 15 | pm.dexopt.nsys-library=speed 16 | pm.dexopt.shared-apk=speed 17 | pm.dexopt.forced-dexopt=speed 18 | pm.dexopt.core-app=speed 19 | dalvik.vm.image-dex2oat-Xms=64m 20 | dalvik.vm.image-dex2oat-Xmx=64m 21 | dalvik.vm.dex2oat-Xms=64m 22 | dalvik.vm.dex2oat-Xmx=512m 23 | ro.dalvik.vm.native.bridge=0 24 | dalvik.vm.usejit=true 25 | dalvik.vm.usejitprofiles=true 26 | dalvik.vm.appimageformat=lz4 27 | debug.atrace.tags.enableflags=0 28 | camera.disable_zsl_mode=0 29 | persist.camera.HAL3.enabled=1 30 | persist.camera.ois.disable=0 31 | ro.qualcomm.perf.cores_online=2 32 | # 33 | # BOOTIMAGE_BUILD_PROPERTIES 34 | # 35 | ro.bootimage.build.date=Fri May 19 02:05:48 IDT 2017 36 | ro.bootimage.build.date.utc=1495148748 37 | ro.bootimage.build.fingerprint=Android/aosp_shamu/shamu:7.1.1/NMF26F/aleph:userdebug/test-keys 38 | persist.sys.usb.config=adb 39 | 40 | service.adb.root=1 41 | 42 | 43 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/etc: -------------------------------------------------------------------------------- 1 | /system/etc -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/file_contexts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/file_contexts.bin -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/fstab.shamu: -------------------------------------------------------------------------------- 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/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait 7 | /dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,nodiratime,noauto_da_alloc,nobarrier wait,check,formattable,forceencrypt=/dev/block/platform/msm_sdcc.1/by-name/metadata 8 | /dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,noatime,nosuid,nodev,barrier=1,data=ordered wait,check,formattable 9 | /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ext4 ro,barrier=1,context=u:object_r:firmware_file:s0 wait 10 | /dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,nosuid,nodev,barrier=1 wait,check,notrim 11 | /dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults 12 | /dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults 13 | /dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults 14 | /dev/block/platform/msm_sdcc.1/by-name/modem /modem emmc defaults defaults 15 | /dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs1 /mdm1m9kefs1 emmc defaults defaults 16 | /dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs2 /mdm1m9kefs2 emmc defaults defaults 17 | /dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs3 /mdm1m9kefs3 emmc defaults defaults 18 | /dev/block/platform/msm_sdcc.1/by-name/sbl1 /sbl1 emmc defaults defaults 19 | /dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults 20 | /dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults 21 | /dev/block/platform/msm_sdcc.1/by-name/sdi /sdi emmc defaults defaults 22 | /dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults 23 | /dev/block/platform/msm_sdcc.1/by-name/versions /versions emmc defaults defaults 24 | /dev/block/platform/msm_sdcc.1/by-name/logo /logo emmc defaults defaults 25 | /dev/block/platform/msm_sdcc.1/by-name/frp /persistent emmc defaults defaults 26 | /devices/*/xhci-hcd.0.auto/usb* auto auto defaults voldmanaged=usb:auto 27 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/init -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/init.environ.rc: -------------------------------------------------------------------------------- 1 | # set up the global environment 2 | on init 3 | export ANDROID_BOOTLOGO 1 4 | export ANDROID_ROOT /system 5 | export ANDROID_ASSETS /system/app 6 | export ANDROID_DATA /data 7 | export ANDROID_STORAGE /storage 8 | export EXTERNAL_STORAGE /sdcard 9 | export ASEC_MOUNTPOINT /mnt/asec 10 | export BOOTCLASSPATH /system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar 11 | export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar 12 | 13 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/init.shamu.diag.rc: -------------------------------------------------------------------------------- 1 | # This file gets copied as /init.shamu.diag.rc 2 | 3 | on post-fs-data 4 | # Modem logging collection 5 | mkdir /data/diag_logs 0777 system system 6 | chmod 666 /dev/diag 7 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/init.shamu.power.rc: -------------------------------------------------------------------------------- 1 | on charger 2 | #low power governing 3 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive 4 | restorecon_recursive /sys/devices/system/cpu/cpufreq/interactive 5 | write /sys/devices/system/cpu/cpu1/online 0 6 | write /sys/devices/system/cpu/cpu2/online 0 7 | write /sys/devices/system/cpu/cpu3/online 0 8 | write /sys/module/lpm_levels/enable_low_power/l2 4 9 | write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 10 | write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 11 | write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 12 | write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 13 | write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 14 | 15 | on boot 16 | # Shamu boots with performance governor. 17 | # Switch one core to interactive to set permissions, for power hal and system server. 18 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive 19 | restorecon_recursive /sys/devices/system/cpu/cpufreq/interactive 20 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate 21 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate 22 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack 23 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack 24 | chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 25 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 26 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 27 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 28 | chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads 29 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads 30 | chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 31 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 32 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 33 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 34 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost 35 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost 36 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse 37 | #chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost 38 | #chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost 39 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration 40 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration 41 | chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 42 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 43 | chown system system /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 44 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 45 | 46 | on property:dev.bootcomplete=1 47 | write /sys/module/lpm_levels/enable_low_power/l2 4 48 | write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 49 | write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 50 | write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1 51 | write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1 52 | write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 53 | write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1 54 | write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1 55 | write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1 56 | write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 57 | write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1 58 | write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1 59 | write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1 60 | write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 61 | write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1 62 | write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1 63 | write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1 64 | write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 65 | write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 66 | write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 67 | write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 68 | write /sys/module/msm_thermal/core_control/enabled 0 69 | write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive 70 | write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive 71 | write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive 72 | write /sys/module/msm_thermal/core_control/enabled 1 73 | write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 1 74 | 75 | # cpufreq settings 76 | write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "20000 1400000:40000 1700000:20000" 77 | write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90 78 | write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1497600 79 | write /sys/devices/system/cpu/cpufreq/interactive/target_loads "85 1500000:90 1800000:70" 80 | write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 40000 81 | write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 100000 82 | write /sys/module/cpu_boost/parameters/input_boost_freq 1497600 83 | write /sys/module/cpu_boost/parameters/input_boost_ms 40 84 | write /dev/cpuctl/apps/cpu.notify_on_migrate 0 85 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/init.zygote32.rc: -------------------------------------------------------------------------------- 1 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server 2 | class main 3 | socket zygote stream 660 root system 4 | onrestart write /sys/android_power/request_state wake 5 | onrestart write /sys/power/state on 6 | onrestart restart audioserver 7 | onrestart restart cameraserver 8 | onrestart restart media 9 | onrestart restart netd 10 | writepid /dev/cpuset/foreground/tasks 11 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/property_contexts: -------------------------------------------------------------------------------- 1 | #line 1 "system/sepolicy/property_contexts" 2 | ########################## 3 | # property service keys 4 | # 5 | # 6 | net.rmnet u:object_r:net_radio_prop:s0 7 | net.gprs u:object_r:net_radio_prop:s0 8 | net.ppp u:object_r:net_radio_prop:s0 9 | net.qmi u:object_r:net_radio_prop:s0 10 | net.lte u:object_r:net_radio_prop:s0 11 | net.cdma u:object_r:net_radio_prop:s0 12 | net.dns u:object_r:net_radio_prop:s0 13 | sys.usb.config u:object_r:system_radio_prop:s0 14 | ril. u:object_r:radio_prop:s0 15 | ro.ril. u:object_r:radio_prop:s0 16 | gsm. u:object_r:radio_prop:s0 17 | persist.radio u:object_r:radio_prop:s0 18 | 19 | net. u:object_r:system_prop:s0 20 | dev. u:object_r:system_prop:s0 21 | ro.runtime. u:object_r:system_prop:s0 22 | hw. u:object_r:system_prop:s0 23 | ro.hw. u:object_r:system_prop:s0 24 | sys. u:object_r:system_prop:s0 25 | sys.cppreopt u:object_r:cppreopt_prop:s0 26 | sys.powerctl u:object_r:powerctl_prop:s0 27 | sys.usb.ffs. u:object_r:ffs_prop:s0 28 | service. u:object_r:system_prop:s0 29 | wlan. u:object_r:system_prop:s0 30 | dhcp. u:object_r:dhcp_prop:s0 31 | dhcp.bt-pan.result u:object_r:pan_result_prop:s0 32 | bluetooth. u:object_r:bluetooth_prop:s0 33 | 34 | debug. u:object_r:debug_prop:s0 35 | debug.db. u:object_r:debuggerd_prop:s0 36 | dumpstate. u:object_r:dumpstate_prop:s0 37 | log. u:object_r:log_prop:s0 38 | log.tag u:object_r:log_tag_prop:s0 39 | log.tag.WifiHAL u:object_r:wifi_log_prop:s0 40 | security.perf_harden u:object_r:shell_prop:s0 41 | service.adb.root u:object_r:shell_prop:s0 42 | service.adb.tcp.port u:object_r:shell_prop:s0 43 | 44 | persist.audio. u:object_r:audio_prop:s0 45 | persist.debug. u:object_r:persist_debug_prop:s0 46 | persist.logd. u:object_r:logd_prop:s0 47 | persist.logd.security u:object_r:device_logging_prop:s0 48 | persist.logd.logpersistd u:object_r:logpersistd_logging_prop:s0 49 | logd.logpersistd u:object_r:logpersistd_logging_prop:s0 50 | persist.log.tag u:object_r:log_tag_prop:s0 51 | persist.mmc. u:object_r:mmc_prop:s0 52 | persist.sys. u:object_r:system_prop:s0 53 | persist.sys.safemode u:object_r:safemode_prop:s0 54 | ro.sys.safemode u:object_r:safemode_prop:s0 55 | persist.sys.audit_safemode u:object_r:safemode_prop:s0 56 | persist.service. u:object_r:system_prop:s0 57 | persist.service.bdroid. u:object_r:bluetooth_prop:s0 58 | persist.security. u:object_r:system_prop:s0 59 | 60 | # Boolean property set by system server upon boot indicating 61 | # if device owner is provisioned. 62 | ro.device_owner u:object_r:device_logging_prop:s0 63 | 64 | # selinux non-persistent properties 65 | selinux.restorecon_recursive u:object_r:restorecon_prop:s0 66 | selinux. u:object_r:security_prop:s0 67 | 68 | # default property context 69 | * u:object_r:default_prop:s0 70 | 71 | # data partition encryption properties 72 | vold. u:object_r:vold_prop:s0 73 | ro.crypto. u:object_r:vold_prop:s0 74 | 75 | # ro.build.fingerprint is either set in /system/build.prop, or is 76 | # set at runtime by system_server. 77 | ro.build.fingerprint u:object_r:fingerprint_prop:s0 78 | 79 | # ctl properties 80 | ctl.bootanim u:object_r:ctl_bootanim_prop:s0 81 | ctl.dumpstate u:object_r:ctl_dumpstate_prop:s0 82 | ctl.fuse_ u:object_r:ctl_fuse_prop:s0 83 | ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0 84 | ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0 85 | ctl.bugreport u:object_r:ctl_bugreport_prop:s0 86 | ctl.console u:object_r:ctl_console_prop:s0 87 | ctl. u:object_r:ctl_default_prop:s0 88 | 89 | # NFC properties 90 | nfc. u:object_r:nfc_prop:s0 91 | 92 | # These properties are not normally set by processes other than init. 93 | # They are only distinguished here for setting by qemu-props on the 94 | # emulator/goldfish. 95 | config. u:object_r:config_prop:s0 96 | ro.config. u:object_r:config_prop:s0 97 | dalvik. u:object_r:dalvik_prop:s0 98 | ro.dalvik. u:object_r:dalvik_prop:s0 99 | #line 1 "out/target/product/shamu/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl" 100 | 101 | #line 1 "device/moto/shamu/sepolicy/property_contexts" 102 | sys.ims. u:object_r:qcom_ims_prop:s0 103 | net.r_rmnet u:object_r:qcom_netmgrd_prop:s0 104 | ctl.mpdecision u:object_r:ctl_mpdecision:s0 105 | rcs. u:object_r:rcs_prop:s0 106 | #line 1 "out/target/product/shamu/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl" 107 | 108 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/res/images/charger/battery_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/res/images/charger/battery_fail.png -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/res/images/charger/battery_scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/res/images/charger/battery_scale.png -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/res/images/warning/verity_red_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/res/images/warning/verity_red_1.png -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/res/images/warning/verity_red_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/res/images/warning/verity_red_2.png -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sbin/adbd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/sbin/adbd -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sbin/healthd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/sbin/healthd -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sbin/slideshow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/sbin/slideshow -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sbin/ueventd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sbin/watchdogd: -------------------------------------------------------------------------------- 1 | ../init -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sdcard: -------------------------------------------------------------------------------- 1 | /storage/self/primary -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/seapp_contexts: -------------------------------------------------------------------------------- 1 | isSystemServer=true domain=system_server 2 | user=system seinfo=platform domain=system_app type=system_app_data_file 3 | user=bluetooth seinfo=platform domain=bluetooth type=bluetooth_data_file 4 | user=nfc seinfo=platform domain=nfc type=nfc_data_file 5 | user=radio seinfo=platform domain=radio type=radio_data_file 6 | user=shared_relro domain=shared_relro 7 | user=shell seinfo=platform domain=shell type=shell_data_file 8 | user=_isolated domain=isolated_app levelFrom=user 9 | user=_app seinfo=platform domain=platform_app type=app_data_file levelFrom=user 10 | user=_app isAutoPlayApp=true domain=autoplay_app type=autoplay_data_file levelFrom=all 11 | user=_app isPrivApp=true domain=priv_app type=app_data_file levelFrom=user 12 | user=_app domain=untrusted_app type=app_data_file levelFrom=user 13 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/selinux_version: -------------------------------------------------------------------------------- 1 | Android/aosp_shamu/shamu:7.1.1/NMF26F/aleph:userdebug/test-keys 2 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/sepolicy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/sepolicy -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/ueventd.rc: -------------------------------------------------------------------------------- 1 | subsystem adf 2 | devname uevent_devname 3 | 4 | # ueventd can only set permissions on device nodes and their associated 5 | # sysfs attributes, not on arbitrary paths. 6 | # 7 | # format for /dev rules: devname mode uid gid 8 | # format for /sys rules: nodename attr mode uid gid 9 | # shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" 10 | 11 | /dev/null 0666 root root 12 | /dev/zero 0666 root root 13 | /dev/full 0666 root root 14 | /dev/ptmx 0666 root root 15 | /dev/tty 0666 root root 16 | /dev/random 0666 root root 17 | /dev/urandom 0666 root root 18 | # Make HW RNG readable by group system to let EntropyMixer read it. 19 | /dev/hw_random 0440 root system 20 | /dev/ashmem 0666 root root 21 | /dev/binder 0666 root root 22 | 23 | # Anyone can read the logs, but if they're not in the "logs" 24 | # group, then they'll only see log entries for their UID. 25 | /dev/log/* 0666 root log 26 | /dev/pmsg0 0222 root log 27 | 28 | # the msm hw3d client device node is world writable/readable. 29 | /dev/msm_hw3dc 0666 root root 30 | 31 | # gpu driver for adreno200 is globally accessible 32 | /dev/kgsl 0666 root root 33 | 34 | # kms driver for drm based gpu 35 | /dev/dri/* 0666 root graphics 36 | 37 | # these should not be world writable 38 | /dev/diag 0660 radio radio 39 | /dev/diag_arm9 0660 radio radio 40 | /dev/android_adb 0660 adb adb 41 | /dev/android_adb_enable 0660 adb adb 42 | /dev/ttyMSM0 0600 bluetooth bluetooth 43 | /dev/uhid 0660 system net_bt_stack 44 | /dev/uinput 0660 system net_bt_stack 45 | /dev/alarm 0664 system radio 46 | /dev/rtc0 0640 system system 47 | /dev/tty0 0660 root system 48 | /dev/graphics/* 0660 root graphics 49 | /dev/msm_hw3dm 0660 system graphics 50 | /dev/input/* 0660 root input 51 | /dev/eac 0660 root audio 52 | /dev/cam 0660 root camera 53 | /dev/pmem 0660 system graphics 54 | /dev/pmem_adsp* 0660 system audio 55 | /dev/pmem_camera* 0660 system camera 56 | /dev/oncrpc/* 0660 root system 57 | /dev/adsp/* 0660 system audio 58 | /dev/snd/* 0660 system audio 59 | /dev/mt9t013 0660 system system 60 | /dev/msm_camera/* 0660 system system 61 | /dev/akm8976_daemon 0640 compass system 62 | /dev/akm8976_aot 0640 compass system 63 | /dev/akm8973_daemon 0640 compass system 64 | /dev/akm8973_aot 0640 compass system 65 | /dev/bma150 0640 compass system 66 | /dev/cm3602 0640 compass system 67 | /dev/akm8976_pffd 0640 compass system 68 | /dev/lightsensor 0640 system system 69 | /dev/msm_pcm_out* 0660 system audio 70 | /dev/msm_pcm_in* 0660 system audio 71 | /dev/msm_pcm_ctl* 0660 system audio 72 | /dev/msm_snd* 0660 system audio 73 | /dev/msm_mp3* 0660 system audio 74 | /dev/audience_a1026* 0660 system audio 75 | /dev/tpa2018d1* 0660 system audio 76 | /dev/msm_audpre 0660 system audio 77 | /dev/msm_audio_ctl 0660 system audio 78 | /dev/htc-acoustic 0660 system audio 79 | /dev/vdec 0660 system audio 80 | /dev/q6venc 0660 system audio 81 | /dev/snd/dsp 0660 system audio 82 | /dev/snd/dsp1 0660 system audio 83 | /dev/snd/mixer 0660 system audio 84 | /dev/smd0 0640 radio radio 85 | /dev/qmi 0640 radio radio 86 | /dev/qmi0 0640 radio radio 87 | /dev/qmi1 0640 radio radio 88 | /dev/qmi2 0640 radio radio 89 | /dev/bus/usb/* 0660 root usb 90 | /dev/mtp_usb 0660 root mtp 91 | /dev/usb_accessory 0660 root usb 92 | /dev/tun 0660 system vpn 93 | 94 | # CDMA radio interface MUX 95 | /dev/ts0710mux* 0640 radio radio 96 | /dev/ppp 0660 radio vpn 97 | 98 | # sysfs properties 99 | /sys/devices/platform/trusty.* trusty_version 0440 root log 100 | /sys/devices/virtual/input/input* enable 0660 root input 101 | /sys/devices/virtual/input/input* poll_delay 0660 root input 102 | /sys/devices/virtual/usb_composite/* enable 0664 root system 103 | /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system 104 | /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system 105 | 106 | # DVB API device nodes 107 | /dev/dvb* 0660 root system 108 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/ueventd.shamu.rc: -------------------------------------------------------------------------------- 1 | /dev/genlock 0666 system system 2 | /dev/kgsl 0666 system system 3 | /dev/kgsl-3d0 0666 system system 4 | /dev/ion 0664 system system 5 | /dev/video* 0660 system camera 6 | /dev/media* 0660 system camera 7 | /dev/v4l-subdev* 0660 system camera 8 | /dev/rtc0 0660 system system 9 | /dev/diag 0660 radio radio 10 | /dev/ttydiag2 0660 radio radio 11 | /dev/mdm 0660 system radio 12 | /dev/ttyUSB0 0660 system system 13 | /dev/msm_acdb 0660 system audio 14 | /dev/msm_rtac 0660 system audio 15 | /dev/audio_slimslave 0660 system audio 16 | /dev/msm_rotator 0660 system system 17 | /dev/smd0 0660 system system 18 | /dev/smd4 0660 system system 19 | /dev/smd5 0660 system system 20 | /dev/smd6 0660 system system 21 | /dev/smd7 0660 bluetooth bluetooth 22 | /dev/smd_cxm_qmi 0640 radio radio 23 | /dev/smdcntl0 0640 radio radio 24 | /dev/smdcntl1 0640 radio radio 25 | /dev/smdcntl2 0640 radio radio 26 | /dev/smdcntl3 0640 radio radio 27 | /dev/smdcntl4 0640 radio radio 28 | /dev/smdcntl5 0640 radio radio 29 | /dev/smdcntl6 0640 radio radio 30 | /dev/smdcntl7 0640 radio radio 31 | /dev/smuxctl32 0640 radio radio 32 | /dev/rmnet_mux_ctrl 0640 radio radio 33 | /dev/hsicctl0 0640 radio radio 34 | /dev/hsicctl1 0640 radio radio 35 | /dev/hsicctl2 0640 radio radio 36 | /dev/hsicctl3 0640 radio radio 37 | /dev/hsicctl4 0640 radio radio 38 | /dev/hsicctl5 0640 radio radio 39 | /dev/hsicctl6 0640 radio radio 40 | /dev/hsicctl7 0640 radio radio 41 | /dev/hsicctl8 0640 radio radio 42 | /dev/hsicctl9 0640 radio radio 43 | /dev/hsicctl10 0640 radio radio 44 | /dev/hsicctl11 0640 radio radio 45 | /dev/hsicctl12 0640 radio radio 46 | /dev/hsicctl13 0640 radio radio 47 | /dev/hsicctl14 0640 radio radio 48 | /dev/hsicctl15 0640 radio radio 49 | /dev/hsicctl16 0640 radio radio 50 | /dev/qseecom 0660 system drmrpc 51 | /dev/video32 0660 system camera 52 | /dev/video33 0660 system camera 53 | /dev/bcm2079x-i2c 0660 nfc nfc 54 | /dev/jpeg0 0660 system camera 55 | /dev/jpeg1 0660 system camera 56 | /dev/jpeg2 0660 system camera 57 | /dev/ttyHS99 0660 bluetooth net_bt_stack 58 | /sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio 59 | 60 | #SAR device 61 | /sys/devices/mmi_sar_ctrl.* sar_wifi 0220 radio radio 62 | 63 | /dev/subsys_esoc* 0640 system radio 64 | 65 | /dev/block/platform/msm_sdcc.1/by-name/frp 0600 system system 66 | -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/vendor: -------------------------------------------------------------------------------- 1 | /system/vendor -------------------------------------------------------------------------------- /tethered/shamu/shamu-aosp-nmf26f/verity_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/tethered/shamu/shamu-aosp-nmf26f/verity_key -------------------------------------------------------------------------------- /untethered/athene/initroot-untethered.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../initroot-untethered.sh athene padC-initroot mmcblk0p41 3 | -------------------------------------------------------------------------------- /untethered/athene/padC-ext4-empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/athene/padC-ext4-empty -------------------------------------------------------------------------------- /untethered/athene/padC-initroot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/athene/padC-initroot -------------------------------------------------------------------------------- /untethered/cedric/initroot-untethered.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../initroot-untethered.sh cedric padA-initroot mmcblk0p48 3 | -------------------------------------------------------------------------------- /untethered/cedric/padA-ext4-empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/cedric/padA-ext4-empty -------------------------------------------------------------------------------- /untethered/cedric/padA-initroot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/cedric/padA-initroot -------------------------------------------------------------------------------- /untethered/initroot-untethered.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # usage: initroot-untethered.sh 4 | # use the device specific initroot.sh which runs this file with the correct parameters 5 | 6 | echo Welcome to initroot-$1-untethered 7 | cd ../../tethered/$1 8 | ../../tethered/$1/initroot-tethered.sh 9 | cd ../../untethered/$1 10 | 11 | adb wait-for-device shell id 12 | adb wait-for-device push $2 /data/local/tmp 13 | adb wait-for-device shell "dd of=/dev/block/$3 if=/data/local/tmp/$2" 14 | adb wait-for-device reboot bootloader 15 | fastboot oem config fsg-id "a rdinit= root=/dev/$3" 16 | fastboot reboot 17 | adb wait-for-device shell id 18 | adb wait-for-device shell 19 | -------------------------------------------------------------------------------- /untethered/shamu/initroot-untethered.sh: -------------------------------------------------------------------------------- 1 | ../initroot-untethered.sh shamu padA-initroot mmcblk0p11 2 | -------------------------------------------------------------------------------- /untethered/shamu/padA-ext4-empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/shamu/padA-ext4-empty -------------------------------------------------------------------------------- /untethered/shamu/padA-initroot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alephsecurity/initroot/8a68bf2cf99a1705bc92b566e3d9b020dfdda52c/untethered/shamu/padA-initroot --------------------------------------------------------------------------------