Quantcast
Channel: admin » TWRP
Viewing all articles
Browse latest Browse all 1595

How to port twrp 3.x for your device

$
0
0

This Lesson:
Port TWRP 3.x for your device and Port Upgraded TWRP for your device

PORT or UPGRADE

Requirements:
Windows/Linux
Stock Recovery
TWRP 3.x Recovery with same resolution. (Mine: 480×850)

1. Open Cygwin/Kitchen and Installed dir.
2. Lets call Stock Recovery=STOCK
3. TWRP Recovery=PORT
4. Make new folder in kitchen folder "WORKING_Recovery" "rename port.img to boot.img"
5. Now go to boot-tools in kitchen and press "w" it will unpack.
6. Now go to boot-tools in kitchen and press "a" a new dir will be created (boot.img_xxxxxx)
7. Copy STOCK.img to bott.img_xxxxx rename it to boot.img

Open BOOT-EXTRACTED and BOOT.IMG_XXXXX Side by side.

Code:

Delete: In BOOT-EXTRACTED
BOOT-EXTRACTED/zImage
BOOT-EXTRACTED/boot.img-xxxx/ueventd.rc
BOOT-EXTRACTED/boot.img-xxxx/fstab.codename
BOOT-EXTRACTED/boot.img-xxxx/default.prop
BOOT-EXTRACTED/boot.img-xxxx/etc/recovery.fstab


Code:

Copy: from BOOT.IMG-XXXX to BOOTEXTRACTED
BOOT.IMG-XXXX/zImage
BOOT.IMG-XXXX/boot.img-xxxx/ueventd.rc
BOOT.IMG-XXXX/boot.img-xxxx/fstab.codename
BOOT.IMG-XXXX/boot.img-xxxx/default.prop
BOOT.IMG-XXXX/boot.img-xxxx/etc/recovery.fstab


Code:

If Upgrade:
Do same procedure as above and follow this one.

Replace
*BOOT.IMG-XXXX/boot.img-xxxx/etc/twrp.fstab to BOOT-EXTRACTED/boot.img-xxxx/etc/

*=If file not found please try some other recovery which dosent depend on twrp.fstab or you can try copying (recovery.fstab) to same dir and rename (recovery (Copy).fstab) to (twrp.fstab) if it dosent boot try different recovery.



Now open cygwin/kitchen again go to boot-tools and select "b"

Done! you will find your recovery in "WORKING_FIX" Folder as boot.img (with new size)

Code:

Fixes:

Bootloop: Make sure you have replaced ueventd.rc as well as default.prop
                  your still facing it then? replace uevnted.rc and open default.prop of PORT and STOCK and replace lines from      stock to port. don't add.

Temperature Fix (Only Upgrade): download UEStudio open stock /sbin/recovery in UFAT-8 Mode. Go to find and replace search present TWRP VERSION (EX: 3.0.0-0) to the recovery your porting (EX: 3.0.2-0)

Flashing issues: Error: Overspam size partition. check your recovery partition size. if more than size then forget porting try porting the one with less size.



Any more issues? please comment i ll try to help you out.

Many bugs still on bootloop please try different recoveries.


Viewing all articles
Browse latest Browse all 1595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>