Nougat Porting Guide - 2
Nougat Porting Guide - 2
Nougat Porting Guide - 2
Requirements
- Compatible Chipset: MT6750, MT6735, MT6737, MT6753, MT6755.
- Kernel version: 3.18.35
- Android version: AOSP (based) Nougat (7.0 & 7.1.x)
- Notepad++
- Ubuntu
- Windows (if you like)
- Carliv Image Kitchen- Lot of time and knowledge of the basics
Difficulty level
- Advanced
1. Unpack port and stock boot files with Carliv Image Kitchen
2. Copy these files from port boot: default.prop, init.environ.rc
3. Paste them in stock ramdisk and replace
4. Open init.rc with Notepad++ in stock ramdisk and find this line:
setprop selinux.reload_policy 1
Replace its value from 1 to 0
5. Open boot.img-cmdline of your stock extracted boot and add this to it:
androidboot.selinux=permissive buildvariant=userdebug
It will look something like:
bootopt=64S3,32N2,64N2 androidboot.selinux=permissive buildvariant=userdebug
6. If port boot has proprietary files like init.flyme.rc, ini.miui.rc,
init.sony-xxxx.rc, you must copy them to stock ramdisk and find the init file
in which they should be imported by referring to port’s ramdisk. These are
usually init.rc and init.mt67xx.rc
7. Pack the stock boot and copy it back to your port rom.
Finishing up
Select META-INF, system and boot.img from your port ROM
Zip them
Boot to TWRP and test.
Troubleshooting and bugs fix
1. If you follow everything correctly above, your ROM should boot.
2. You’ll ultimately need to add stock extra files (from bin, etc, lib, lib64
and the same files from vendor folder) to port ROM using Root Explorer (from
speedsoftware) for example. You you can do it with your computer and make
another flashable zip. You need that to get Camera and other features
working.
3. For fingerprint, read this http://www.nontastik.com/nougat-fin...
4. If you have Wifi & BT switch issue, you've to patch port's boot instead of
using/patching stock boot. Go here https://www.facebook.com/notes/mtk-... and
read
"Method 3: Patch the port boot.img" part.