What to need!!!!??
*boot.img and System.img or system folder
*Rest ..Delete all folders
Important:
1.If u have system.img extract it and keep it as system folder
2.B4 doing anything in system folder....Delete recovery-from-boot.p
Procedure:
System part:
*Replace from stock to port the below files
1. Etc/ firmware,apn.conf and spn.conf and mddb
2.Libs and Lib64 /egl and hw folders fully
mtk drb,lib.pq,DEC.pipe,showlogo,ipod,stagefright all files
3.Build.prop/LCD,Consys,Rotation and replace Mt6797 to mt67xx
ro.mtk.xxxx files from stock to port//....(all should be same)
Boot.img part:
*Replace stock to port......kernel,Fstab.mt67xx,init.mt67xx.rc, init.mt67xx.usb.rc,init.modem.rc,init.mal.rc,init.volte.rc*(Add init.recovery.mt67xx if present in stock boot.img)
Lets see Deep in ::::::::::
1.file_context: dont replace these lines
MICROTRUST START
/dev/ut_keymaster u:object_r:ut_keymaster_device:s0
##nubia add for MICROTRUST END
#line 1 "device/zte/NX541J/goodix/products/sepolicy/file_contexts"
# goodix fingerprint
/dev/goodix_fp u:object_r:goodixfingerprintd_device:s0
/system/bin/goodixfingerprintd u:object_r:goodixfingerprintd_exec:s0
# goodix fingerprint end
#line 1 "device/zte/NX541J/microarray/products/sepolicy/file_contexts"
#microarray chr dev madev0
/dev/madev0 u:object_r:microarray_device:s0
#endf
IT MAY CAUSE SETTINGS FC
2.init.project.rc
Replace oly camera lines
#Camera
chmod 0660 /dev/MAINAF
chown system camera /dev/MAINAF
chmod 0660 /dev/MAINAF2
chown system camera /dev/MAINAF2
chmod 0660 /dev/SUBAF
chown system camera /dev/SUBAF
3.init.project.rc
Check for header files...it should be same
4.init.rc
Check for header files...it should be same like below
import /init.environ.rc
import /init.usb.rc
import /init.${ro.hardware}.rc
import /init.${ro.zygote}.rc
import /init.trace.rc
import /init.miui.rc
import init.supersu.rc
5.Dont touch init.environ.rc and init.trace.rc.................it may cause bootloop for sure
Note:Today also i ask help from Syed sir...so this may work or may not work for u.....
Meta-Inf part:
*I use Syed sir tool for Auto writing scripts...
If booted successfully ....
Bug Fix:
*Camera
then copy all files from stock to port....... bin,etc,lib/64 and donot replace anything
*Audio
Replace stock to port (or) port to stock......... lib/64 audio.primary.mt67xx.so
Can you please send me the downloadlink oft the Rom?
ReplyDeleteAnd have you ported from the N1 vor to the N1?
ReplyDelete