The method acan be used for all KaiOS mobiles as long as file-system integrity (boot-chain) verification is disabled. If not, you will experiance boot-loop after flashing modified boot.img and recovery.img.
This method will enable adb with root previlage in recovery mode and during boot. It will not help to install update.zip packages signed by ASOP keys. The method is helpful for those who are seeking to have adb-root access for executing tweeks/mods/hacks but do not want to break OTA official updates.
Before proceeding, usual but highly important warning/reminder for user/tester:
......I'm not responsible for any data lost or device brick. Back up before proceeding!
......If your confident about modifying Stock boot and recovery for your Phone, you can proceed.
......Anything wrong while unpacking/modifying/re-packing boot.img and recovery.img will cause boot-loop or worse......
....**Apply your tweak, hack, mod that involves /system partition modification - on your own risk! Because.....
....**Even a small change on the /system partition will prevent you to get future official updates (can't download / can't apply).
Features:
- *** Flashing his recovery and boot does not break Update.
- adb in recovery with root access (adb shell).
- adb push and adb pull with raed & write access.
- Mounting and dumping partitions, add/delete/modifying files is now possible due to adb in recovery with root access.
- Possible to use 'almost' every tweak/hack that Nokia 8110 users can apply... :), apart from flashing custom update.zip packages.
This tutorial is for Windows users. (suitably applicable for other OS).
Requirements:
- Stock Rom of your model from internet. From it: boot.img and recovery.img
(For Linux users, use abootimg utility.)
-
adbd (insecure) taken from
adbd-Insecure-v2.00.apk.zip --> assets folder --> rename adbd.21.png to adbd or extract it from gradaOS-recovery.img --> ramdisk folder --> sbin --> adbd
-
busybox (optional and only for recovery.img)
- Notepad++ (get from Internet)
Procedure: [A] For recovery.img
**For Beginner (Noobs?) ;-)**
- Extract AIK.v3.4-Win32.zip on suitable location (say Desktop) for simplicity.
- Place Stock ROM recovery.img in AIK folder and execute unpackimg.bat. ramdisk and split_img folders will be created. Just to avoid confusion, move/delete stock recovery.img file to other location after extraction.
- Edit AIK/ramdisk/default.prop using Notepad++: to add-replace-edit following lines:
ro.secure=0
security.perf_harden=0
ro.allow.mock.location=1
ro.debuggable=1
ro.adb.secure=0
persist.sys.usb.config=adb
#Set composition for USB
persist.sys.usb.config=diag,serial_smd,rmnet_qti_bam,adb
#Set read only default composition for USB
ro.sys.usb.default.config=diag,serial_smd,rmnet_qti_bam,adb
service.adb.root=1
- Copy busybox provided above and move it to AIK/ramdisk/sbin/
- Copy adbd provided above and move/replace it to AIK/ramdisk/sbin/
- In AIK folder execute repackimg.bat to repack recovery.img. In AIK folder you will find image-new.img.
- Rename it to recovery.img and flash to your phone using suitable method.
For JioPhone, use QFIL_v1.0.0.3 or QFIL_v2.0.0.1 software (windows) with nulled patch0.xml file and recovery entry only rawprogram_unsparse.xml.(reference is provided in QFIL_v1.0.0.3.zip.)
[B] For boot.img
Follow the same procedure mentioned above. Just insted of recovery.img, use boot.img.
- Power off the phone. Go into recovery mode by pressing key-combinations of your mobile. Connect phone to PC.
PC will detect phone as adb compatible device in device manager.
- Open cmd (Command-Prompt).
Type: adb devices
If adb drivers are already insalled in your PC then you can see something like below on cmd screen:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
43808560 recovery or device
Type: adb boot
'adbd is already running as root'
Type: adb shell
It should show: / # or root@msm8009/#
Bingo!!
Now, you can start with
This tutorial to manually install OmniSD first....
Insted of using localhost use following commands:
mount -t ext4 -o rw /dev/block/bootdevice/by-name/userdata /data
mount -t vfat -o rw /dev/block/mmcblk1p1 /sdcard
cp /data/local/webapps/webapps.json /sdcard
Now you can see the webapps.json file on your sd card.
Edit the file manually adding this (just copy/paste all on a "},"):..............follow rest of the tutorial as directed.
The rest is user's choice....firmware dumping, modifying /system partition by using tweeks given on site bananahackers --> customizations.........
(If files are not downloadable, Please notify.)