angkringan0prek

Thursday 27 August 2015

Cara Porting Rom Pada Perangkat Qualcomm Snapdragon

** ASSALAMU'ALAIKUM.. WR.. WB.. ***
 ===========================================

NUBIE TEAM  ANGKRINGAN0PREK

MEMPERSEMBAHKAN 

  Cara Porting Rom Pada Perangkat Qualcomm Snapdragon

 ===========================================




How to Port Roms (Lenovo, Baidu, Miui,
Lewa, etc) to your Ukiss 86

Note: I AM NOT RESPONSIBLE FOR ANYTHING. HAHA. Not for beginners but if you insist then goodluck :D
 
 
Prerequisites:
1.   Base rom – miui, lewa, baidu, leno etc installation zips from KarbonnA9+, C8813D, lenovo a820e, etc

2.   Stock Ukiss 86 rom – we’ll get the required libs from here.

3.   Knowledge in unpacking and repacking boot.img (most important)

4.   Knowledge in creating a flashable zip.

5.   Common sense and determination.
Steps:

A.   Merging system files
1.   Extract both the base rom and the stock to different folders. You can name each folder
as base and stock respectively.

2.  Remove all other files and folders from the KarbonnA9+ roms(base) except for boot.img, META-INF, system, and/or data. Usually, zips from Lenovo a820e include
radio/modem files that will surely brick your device

3.   Copy and replace the files written below from stock folder to base folder. This is to fix bugs like wifi,camera,bt,etc. if files are not present just ignore them. Again, The files you need to copy from stock (Ukiss 86) Then paste it to base(KarbonnA9+ roms). And we will use, zip and flash the base folder.

EDIT: TO BE SURE THAT PARTITIONS IN THE UPDATER SCRIPT ARE PROPERLY SET, IT IS ADVISABLE TO USE THIS METAINF. 
 
In /system/bin replace:



Files:
am
bmgr
brcm_patchram_plus
hci_attach
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
wpa_supplicant
In /system/etc replace:



Folders:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
Files:
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
In /system/lib replace:

Folders:
modules
hw
egl
Files:
libauth.so
libcm.so
libbluedroid.so
libbluetooth.so
libbluetoothd.so
libcamera.so
libcameraservice.so
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll.so
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog.so
libnv.so
liboem_rapi.so
liboemcamera.so
libhardware_legacy.so
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice.so
libwms.so
libwmsts.so

libchromatix*
(all files with names that starts with libchromatix)



Optional:

/system/usr
folder – for hardware/capacitive keys assignment. (Optional). But For cm10 and cm10.1 You need this.
B.   Unpacking the boot.img.
 I use linux to unpack,edit,and repack the
boot.img. There’s also a way to do that on windows.  Search for android image kitchen

Here we'll be using u86's stock boot image + port's init.rc

1.   Unpack both u86's and port's boot.img. Copy port's init.rc to u86's boot ramdisk folder. 

2.   edit the init.rc that you copy from ramdisk folder then add these lines. [this step might be not need since this whole guide is originally from a9+]

#TYDRV jinxr merge from android 2.2 for BT test 2011-9-19 start 
service  hciattach_test /system/bin/brcm_patchram_plus \
 --enable_test --patchram /etc/firmware/brcm_bt.hcd  /dev/ttyHS0
    user root
    group root
    disabled
    oneshot


service hciattach_brcm /system/bin/brcm_patchram_plus \
--enable_hci --enable_lpm --baudrate 3000000 --patchram /etc/firmware/brcm_bt.hcd  /dev/ttyHS0
    user root
    group root
    disabled

#qupw add for brcm fm btld 
service btld /system/bin/logwrapper /system/bin/btld -lpm 1 -hb 3000000
    user root
    group bluetooth net_bt_admin
    disabled
    oneshot

# start btld if soft_onoff is enabled
on property:service.brcm.bt.soft_onoff=1
    start btld

# stop btld if soft_onoff is disabled
on property:service.brcm.bt.soft_onoff=0
    stop btld
#TYDRV jinxr merge from android 2.2 for BT test 2011-9-19 end 


3.   To make it insecure and enable adb remount commands, edit default.prop then set ro.secure from 0 to 1 and also same goes to ro.debuggable. save.

4.   Now repack and add the newly edited boot.img (Ukiss 86 boot.img)
REVIEW: Before you zip the files need to be complete.
META-INF - from the port
boot.img - stock + port's init.rc
system - from the port of course
C.   Flashing
1.   Copy the newly created zip to sdcard then flash it through recovery (or you can sideload it). If it doesn’t boot, you may have done something wrong with the
boot.img

 


GOODLUCK AND HAPPY PORTING. :D

  ======== WASALAMUALIKUM WR WB ========
 

No comments:

Post a Comment