[guide][kk & lp] create your own modified ,twrp flashable stock rom

TechNova

Senior Member
Mar 24, 2013
467
322
63
22
Mumbai
Hello everyone, this is a tutorial on how to make your own modified ,TWRP flashable stock ROM..

Downloads :-
META-INF KITKAT :- https://drive.google.com/open?id=0ByrZGmLZemEpdnVrS1lrcGJKVlU
META-INF LOLLIPOP :- https://drive.google.com/open?id=0ByrZGmLZemEpNzg5ZHppRWhKUGM

STEPS:-
1. Make a folder somewhere,say 'ROM'
2. Extract the META-INF folder from the zip and place it inside the 'ROM' Folder.
3. Then place the stock boot.img ,system folder of the stock rom and ifwi.zip file (you can get these from the official ASUS rom's zip file) and place it in the 'ROM' folder.
It should look like this:-
1.PNG

4.Then add these 4 files to zip (Compress it to zip format) using any archive manager like 7z, winzip ,etc. like this:-
View attachment 3822782 2.PNG

(I used 7zip for this, see the picture)
5. Now you can copy this zip into ur sdcard and flash it via twrp recovery :) .
------------------------------------------------------------------------------------------------------------
IMP. NOTE:- This guide works for Stock based roms only. Cyanogenmod roms are untested
For those who are willing to try it out on ROMs other than stock rom (and are 5.0+) use the Lollipop META-INF.
Again, it is untested on other ROMs. Please report if it works.

-----------------------------------------------------------------------------------------------------------
Debloating the ROM (Only for lollipop):-
List of apps that can be safely removed from the system/app and system/priv-app :- https://drive.google.com/open?id=0ByrZGmLZemEpZnRQangyQ3NBLXc
-----------------------------------------------------------------------------------------------------------
CREDITS:-
@milano88 for providing META-INF folder.
Me for this guide.
-----------------------------------------------------------------------------------------------------------
IF YOU ARE FACING ANY ISSUES, PLEASE COMMENT DOWN BELOW.
SUGGESTIONS ARE WELCOME :)
-----------------------------------------------------------------------------------------------------------
P.S. If you are modifying anything under updater-script, don't ask me anything.If you don't know what are you doing and are not sure of it, please don't do it. I am not responsible for any damage.

ENJOY :)
 
Last edited:

TechNova

Senior Member
Mar 24, 2013
467
322
63
22
Mumbai
I already made it and everything work good. Did you know how to flash system.img on updater-script in this zip? flash_osip system.img or write_raw system.img didnt work.

Sent from my ASUS_T00F using XDA-Developers mobile app
What u hv made it? guide or updater-script?
And i dont know how to flash system.img via updater-script
This Meta-INF is by @milano88 , i just made a guide since many people were asking for how to make a rom ,in PM.
 

milano88

Senior Member
May 31, 2013
568
507
123
Istanbul
for image files in updater script try
Code:
package_extract_file("system.img", "/tmp/system.img");
flash_osip("/tmp/system.img", "system");
delete("/tmp/system.img");
or
Code:
package_extract_file("system.img", "/tmp/system.img");
run_program("/sbin/busybox", "dd", "if=/tmp/system.img", "of=/dev/block/mmcblk0p9");
delete("/tmp/system.img");
NOTE: system image must be in ext4 format not fastboot image
 
Last edited:
  • Like
Reactions: paktepu

paktepu

Senior Member
May 4, 2016
330
117
53
Kabanjahe
@prathmesh pande
I have made any files incl boot, droidboot, recovery, fastboot, ifwi, ota-zip flash success via twrp but failed on system.img

Sent from my ASUS_T00F using XDA-Developers mobile app

---------- Post added at 13:27 ---------- Previous post was at 13:23 ----------

for image files in updater script try
Code:
package_extract_file("system.img", "/tmp/system.img");
flash_osip("/tmp/system.img", "system");
delete("/tmp/system.img");
or
Code:
package_extract_file("system.img", "/tmp/system.img");
run_program("/sbin/busybox", "dd", "if=/tmp/system.img", "of=/dev/block/mmcblk0p9");
delete("/tmp/system.img");
NOTE: system image must be in ext4 format not fastboot image
thanks a lot that what i need. I will try this on my updater-script

Sent from my ASUS_T00F using XDA-Developers mobile app
 
Last edited:

paktepu

Senior Member
May 4, 2016
330
117
53
Kabanjahe
you wont flash system.img using updater sript?
yes bro

Sent from my ASUS_T00F using XDA-Developers mobile app

---------- Post added at 22:58 ---------- Previous post was at 22:55 ----------

Report from my exp
both code in updater-script to flash system.img didnt work. Still error.
Finally can manage it, following asus method on their zip.

Sent from my ASUS_T00F using XDA-Developers mobile app
 

kihope12

Senior Member
Sep 2, 2015
734
286
0
České Budějovice
yes bro

Sent from my ASUS_T00F using XDA-Developers mobile app

---------- Post added at 22:58 ---------- Previous post was at 22:55 ----------

Report from my exp
both code in updater-script to flash system.img didnt work. Still error.
Finally can manage it, following asus method on their zip.

Sent from my ASUS_T00F using XDA-Developers mobile app
Why you dont flash system.img using fastboot? comand: fastboot flash system system.img

or just unpack your system.img to system folder, and then use stock ifwi, boot.img and this meta folder
 

paktepu

Senior Member
May 4, 2016
330
117
53
Kabanjahe
Why you dont flash system.img using fastboot? comand: fastboot flash system system.img

or just unpack your system.img to system folder, and then use stock ifwi, boot.img and this meta folder
Yes i know it work on fastboot. I need to put this zip on my microsd. Whenever i need this, we just simple flash it through twrp.
I know we can make a backup system from twrp. But this is for my last backup.
And yes i can manage it by extract my sys img.

Sent from my ASUS_T00F using XDA-Developers mobile app
 

EletronicTech

Member
Jul 14, 2016
48
7
0
Mariental (Lapa)
@prathmesh pande , nice work with this tutorial, I'm a TecnoTailsPlays friend (he abandoned xda for some reasons I think), he told me about you and the clean stock rom you made, I don't know very good how everybody here are (well, some guys are a bit rude, but ok), I am here on xda for a long time (but I din't have an account, I created this one a little time ago), I am making ZenUI 3.0 in a custom rom (cm 13) to be like an update for the lollipop that we have, I built the cm 13 miself (so no dev will be mad), it will be the update 4.11.50.97, it will also be a static Cm 13 (no cm updates) what do you think?
 

TechNova

Senior Member
Mar 24, 2013
467
322
63
22
Mumbai
@prathmesh pande , nice work with this tutorial, I'm a TecnoTailsPlays friend (he abandoned xda for some reasons I think), he told me about you and the clean stock rom you made, I don't know very good how everybody here are (well, some guys are a bit rude, but ok), I am here on xda for a long time (but I din't have an account, I created this one a little time ago), I am making ZenUI 3.0 in a custom rom (cm 13) to be like an update for the lollipop that we have, I built the cm 13 miself (so no dev will be mad), it will be the update 4.11.50.97, it will also be a static Cm 13 (no cm updates) what do you think?
Strange to hear tails abandoned ..
Ur idea seems to be nice :) ,u must give a shot..
And as per the rude persons are concerned, let them bark via words, just ignore it... See the good ;)
 
  • Like
Reactions: EletronicTech

kihope12

Senior Member
Sep 2, 2015
734
286
0
České Budějovice
@prathmesh pande , nice work with this tutorial, I'm a TecnoTailsPlays friend (he abandoned xda for some reasons I think), he told me about you and the clean stock rom you made, I don't know very good how everybody here are (well, some guys are a bit rude, but ok), I am here on xda for a long time (but I din't have an account, I created this one a little time ago), I am making ZenUI 3.0 in a custom rom (cm 13) to be like an update for the lollipop that we have, I built the cm 13 miself (so no dev will be mad), it will be the update 4.11.50.97, it will also be a static Cm 13 (no cm updates) what do you think?
Good Luck man :eek:;)
 
  • Like
Reactions: EletronicTech