-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: yshalsager <[email protected]>
- Loading branch information
1 parent
f1c97da
commit f48f52f
Showing
12 changed files
with
58 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/omni_kenzo.mk | ||
$(LOCAL_DIR)/omni_PB2PRO.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
## TWRP device tree for Xiaomi Redmi Note 3 (kenzo) | ||
|
||
Add to `.repo/local_manifests/kenzo.xml`: | ||
|
||
```xml | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<manifest> | ||
<project path="device/xiaomi/kenzo" name="android_device_xiaomi_kenzo" remote="TeamWin" revision="android-7.1" /> | ||
</manifest> | ||
``` | ||
|
||
Then run `repo sync` to check it out. | ||
## TWRP device tree for Lenovo Phab 2 Pro (PB2-690Y) | ||
|
||
To build: | ||
|
||
```sh | ||
. build/envsetup.sh | ||
lunch omni_kenzo-eng | ||
lunch omni_PB2PRO-eng | ||
make -j8 recoveryimage | ||
``` | ||
|
||
Kernel sources are available at: https://github.com/LineageOS/android_kernel_xiaomi_msm8956 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
/system ext4 /dev/block/bootdevice/by-name/system | ||
/system_image emmc /dev/block/bootdevice/by-name/system | ||
/data ext4 /dev/block/bootdevice/by-name/userdata flags=length=-16384 | ||
/cache ext4 /dev/block/bootdevice/by-name/cache | ||
/cust ext4 /dev/block/bootdevice/by-name/cust flags=display="Cust" | ||
/boot emmc /dev/block/bootdevice/by-name/boot | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 | ||
/aboot emmc /dev/block/bootdevice/by-name/aboot flags=display="Aboot";backup=1 | ||
/abootbak emmc /dev/block/bootdevice/by-name/abootbak flags=subpartitionof=/aboot;backup=1 | ||
/boot emmc /dev/block/bootdevice/by-name/boot flags=display="Boot";backup=1 | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=display="Recovery";backup=1 | ||
/splash emmc /dev/block/bootdevice/by-name/splash flags=display="Splash";backup=1;flashimg=1 | ||
/system_image emmc /dev/block/bootdevice/by-name/system | ||
/system ext4 /dev/block/bootdevice/by-name/system | ||
/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";backup=1 | ||
/cache ext4 /dev/block/bootdevice/by-name/cache | ||
/data ext4 /dev/block/bootdevice/by-name/userdata length=-16384,flags=encryptable=footer | ||
/misc emmc /dev/block/bootdevice/by-name/misc flags=display="Misc" | ||
/firmware vfat /dev/block/bootdevice/by-name/modem flags=display="Modem";fsflags="nosuid,nodev";backup=1 | ||
|
||
# For bootloader commands to recovery | ||
/misc emmc /dev/block/bootdevice/by-name/misc | ||
/sbl1 emmc /dev/block/bootdevice/by-name/sbl1 flags=display="Firmware-update";backup=1 | ||
/sbl1bak emmc /dev/block/bootdevice/by-name/sbl1bak flags=subpartitionof=/sbl1;backup=1 | ||
/tz emmc /dev/block/bootdevice/by-name/tz flags=subpartitionof=/sbl1;backup=1 | ||
/tzbak emmc /dev/block/bootdevice/by-name/tzbak flags=subpartitionof=/sbl1;backup=1 | ||
/rpm emmc /dev/block/bootdevice/by-name/rpm flags=subpartitionof=/sbl1;backup=1 | ||
/rpmbak emmc /dev/block/bootdevice/by-name/rpmbak flags=subpartitionof=/sbl1;backup=1 | ||
/mdtp emmc /dev/block/bootdevice/by-name/mdtp flags=subpartitionof=/sbl1;backup=1 | ||
/devcfg emmc /dev/block/bootdevice/by-name/devcfg flags=subpartitionof=/sbl1;backup=1 | ||
/devcfgbak emmc /dev/block/bootdevice/by-name/devcfgbak flags=subpartitionof=/sbl1;backup=1 | ||
/keymaster emmc /dev/block/bootdevice/by-name/keymaster flags=subpartitionof=/sbl1;backup=1 | ||
/keymasterbak emmc /dev/block/bootdevice/by-name/keymasterbak flags=subpartitionof=/sbl1;backup=1 | ||
/cmnlib emmc /dev/block/bootdevice/by-name/cmnlib flags=subpartitionof=/sbl1;backup=1 | ||
/cmnlibbak emmc /dev/block/bootdevice/by-name/cmnlibbak flags=subpartitionof=/sbl1;backup=1 | ||
/cmnlib64 emmc /dev/block/bootdevice/by-name/cmnlib64 flags=subpartitionof=/sbl1;backup=1 | ||
/cmnlib64bak emmc /dev/block/bootdevice/by-name/cmnlib64bak flags=subpartitionof=/sbl1;backup=1 | ||
|
||
# Firmware | ||
/firmware vfat /dev/block/bootdevice/by-name/modem flags=backup=1;display="Firmware";mounttodecrypt | ||
/frp emmc /dev/block/bootdevice/by-name/config flags=display="Frp";wipeingui | ||
/fsg emmc /dev/block/bootdevice/by-name/fsg flags=display="Efs";backup=1 | ||
/modemst1 emmc /dev/block/bootdevice/by-name/modemst1 flags=subpartitionof=/fsg;backup=1 | ||
/modemst2 emmc /dev/block/bootdevice/by-name/modemst2 flags=subpartitionof=/fsg;backup=1 | ||
/mota emmc /dev/block/bootdevice/by-name/mota | ||
|
||
/aboot emmc /dev/block/bootdevice/by-name/aboot flags=backup=1;display="Bootloader" | ||
/cmnlib emmc /dev/block/bootdevice/by-name/cmnlib flags=backup=1;subpartitionof=/aboot | ||
/hyp emmc /dev/block/bootdevice/by-name/hyp flags=backup=1;subpartitionof=/aboot | ||
/tz emmc /dev/block/bootdevice/by-name/tz flags=backup=1;subpartitionof=/aboot | ||
/rpm emmc /dev/block/bootdevice/by-name/rpm flags=backup=1;subpartitionof=/aboot | ||
/keymaster emmc /dev/block/bootdevice/by-name/keymaster flags=backup=1;subpartitionof=/aboot | ||
/devcfg emmc /dev/block/bootdevice/by-name/devcfg flags=backup=1;subpartitionof=/aboot | ||
|
||
# Modem backup/restore | ||
/modem emmc /dev/block/bootdevice/by-name/modem flags=backup=1;display="Modem" | ||
/dsp emmc /dev/block/bootdevice/by-name/dsp flags=backup=1;subpartitionof=/modem | ||
|
||
# EFS backup/restore | ||
/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display="EFS" | ||
/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 | ||
/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 | ||
/efsc emmc /dev/block/bootdevice/by-name/fsc flags=backup=1;subpartitionof=/efs1 | ||
|
||
# Removable devices | ||
/sdcard1 auto /dev/block/mmcblk1p1 flags=display="MicroSD";storage;wipeingui;removable | ||
/usb-otg auto /dev/block/sda1 flags=display="USB OTG";storage;wipeingui;removable | ||
/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDCard";storage;wipeingui;removable | ||
/usbotg auto /dev/block/sda1 /dev/block/sda flags=display="Usb-Otg";storage;wipeingui;removable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,30 @@ | ||
# Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# * Neither the name of The Linux Foundation nor | ||
# the names of its contributors may be used to endorse or promote | ||
# products derived from this software without specific prior written | ||
# permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
|
||
on fs | ||
mkdir /dev/usb-ffs 0770 shell shell | ||
mkdir /dev/usb-ffs/adb 0770 shell shell | ||
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 | ||
|
||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 2717 | ||
write /sys/class/android_usb/android0/idProduct 904D | ||
write /sys/class/android_usb/android0/idVendor 18D1 | ||
write /sys/class/android_usb/android0/idProduct 4EE2 | ||
write /sys/class/android_usb/android0/f_ffs/aliases adb | ||
write /sys/class/android_usb/android0/functions mtp,adb | ||
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} | ||
write /sys/class/android_usb/android0/iProduct ${ro.product.model} | ||
write /sys/class/android_usb/android0/iSerial ${ro.serialno} | ||
|
||
setprop sys.usb.config ${persist.sys.usb.config} | ||
|
||
on property:sys.usb.config=none | ||
stop adbd | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/bDeviceClass 0 | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
# ADB only USB configuration | ||
# This is the fallback configuration if the | ||
# USB manager fails to set a standard configuration | ||
on property:sys.usb.config=adb | ||
stop adbd | ||
on property:sys.usb.config=mass_storage,adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 05C6 | ||
write /sys/class/android_usb/android0/idProduct 9015 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable 1 | ||
start adbd | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
on property:sys.usb.config=mass_storage,adb | ||
stop adbd | ||
on property:sys.usb.config=mtp,adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 05C6 | ||
write /sys/class/android_usb/android0/idProduct 9015 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable 1 | ||
start adbd | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
on property:sys.usb.config=mtp,adb | ||
stop adbd | ||
on property:sys.usb.config=adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 2717 | ||
write /sys/class/android_usb/android0/idProduct ff48 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable 1 | ||
write /sys/class/android_usb/android0/enable ${service.adb.root} | ||
start adbd | ||
setprop sys.usb.state ${sys.usb.config} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
ro.sf.lcd_density=440 | ||
ro.hardware.keystore=msm8952 | ||
persist.sys.usb.config=mtp,adb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
add_lunch_combo omni_kenzo-eng | ||
add_lunch_combo omni_kenzo-userdebug | ||
add_lunch_combo omni_PB2PRO-eng | ||
add_lunch_combo omni_PB2PRO-userdebug |