Tutorial make rom from ruu windows 7 - Android Q&A, Help & Troubleshooting

I just read a another tutorial about this and if your new it's kinda long, maybe confusing. So hopefully this is better. Options are always better
You'll need only a couple things
7zip
the ruu of choice
unyaffs batch script (included)
autosign (check my signature)
Download the ruu of choice and begin to run it
press ctrl,alt,del and open taskmanager, select aruwizard.exe and go to file location.
Scroll through the file and find rom.zip move it to your desktop or other conveniant location.
Close the ruu then unzip the rom.zip with 7zip
unzip the unyaffs batch file
inside the rom.zip you'll find system.img and boot.img
move the system.img into the unyaffs folder and double click the unyaffs.bat
In the out file will be all the files from the system.img
Now take the boot.img and the files from the system.img and put them in the same folder
In that same folder make a meta-inf folder and put your update script in there
zip it all up and sign it

I get this error, when using the tool. What should I do?

i tried too many times but when i want to open rom.zip after copying from aurwizard.exe location will say rom.zip is invalid .

can any one clarify if it is working in windows 8 ?m

Related

[Q] Files in a nandroid back up

Ive done a backup on my phone and created a flashable zip (update.zip)
Now im playing around with dsixda's kitchen and trying to extract the system.tar, however it fails most likely due to fact the the system.tar is empty
the files in the archive are as follows
Meta-inf -- <folder>
boot.img -- <8192KB>
image-edify -- <1KB>
system.ext4.tar -- <0KB>
system.ext4.tar.a -- <976,563KB>
system.ext4.tar.b -- <68,151KB>
By the looks of things it has split the system.ext4.tar because its over a gig
How can i compile this into one file or one image so that the kitchen can read it, I'm on a windows 7 PC but i can run linux in a vbox if necessary.
Thanks
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
mikep99 said:
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
Click to expand...
Click to collapse
Already tried, it comes back saying its deleting the part a and part b files and then says the system.ext4.tar isnt a valid archive.
Is it a stock rom?
If so, download the firmware from sammobile and put the tar.md5 file into your input folder (after removing the .md5 suffix).
Thats worked for me in the past....
It is stock, but i have removed the bloatware, installed a few mods, i was hoping to use this particular one really as a base. Ive already played around with fully stock and i kind of broke the whole thing
I'm not too sure then unless theres some tool you can find to merge the 3 tar files into 1...
Never had to do it so I'm unable to suggest anything I'm afraid.

Custom ROM for new device

Hi, I have new Prestigio tablet PMT5777_3G and I want to modify it's default ROM. I followed this tutorial: http://forum.xda-developers.com/showthread.php?t=1801690. I successfully extracted system folder, but I have no idea how to create updater-script for this specific ROM. If I understand correctly I need to get updater-script from original ROM.
I've got something that resembles original ROM, but it's folder structure is completely different from what I would expect.
I would expect:
META-INF
system
boot.img
I've got:
APDB_MT6582_S01_MAIN2.1_W10.24
boot-sign.img
BPLGUInfoCustomAppSrcP_MT6582_S00_MOLY_WR8_W1315_MD_WG_MP_V12_P4_1_wg_n
cache-sign.img
Checksum.ini
EBR1-sign
lk-sign.bin
logo-sign.bin
MBR-sign
MT6582_Android_scatter.txt
preloader_htt82_tb_jb5.bin
recovery-sign.img
secro-sign.img
system-sign.img
sro-lock-sign.img
sro-unlock-sign.img
userdata-sign.img
I'm an android developer, but have no experience with custom ROM's and now am in a situation, where I want to get that custom ROM up and running, but am unable, because I can't figure out how to create updater-script or extract it from files that I currently have. It would be great if someone could point me to the right direction of what to do next.
Thanks
P. S. It seems it's against the rules to ask questions here, but I can't seem to find where else to ask this on xda
Dantenas said:
Hi, I have new Prestigio tablet PMT5777_3G and I want to modify it's default ROM. I followed this tutorial: http://forum.xda-developers.com/showthread.php?t=1801690. I successfully extracted system folder, but I have no idea how to create updater-script for this specific ROM. If I understand correctly I need to get updater-script from original ROM.
I've got something that resembles original ROM, but it's folder structure is completely different from what I would expect.
I would expect:
META-INF
system
boot.img
I've got:
APDB_MT6582_S01_MAIN2.1_W10.24
boot-sign.img
BPLGUInfoCustomAppSrcP_MT6582_S00_MOLY_WR8_W1315_MD_WG_MP_V12_P4_1_wg_n
cache-sign.img
Checksum.ini
EBR1-sign
lk-sign.bin
logo-sign.bin
MBR-sign
MT6582_Android_scatter.txt
preloader_htt82_tb_jb5.bin
recovery-sign.img
secro-sign.img
system-sign.img
sro-lock-sign.img
sro-unlock-sign.img
userdata-sign.img
I'm an android developer, but have no experience with custom ROM's and now am in a situation, where I want to get that custom ROM up and running, but am unable, because I can't figure out how to create updater-script or extract it from files that I currently have. It would be great if someone could point me to the right direction of what to do next.
Thanks
P. S. It seems it's against the rules to ask questions here, but I can't seem to find where else to ask this on xda
Click to expand...
Click to collapse
Since you are a beginner to ROM development, I would recommend the use of dsixda's Android kitchen, which you probably have downloaded already. If not use this link
http://forum.xda-developers.com/showthread.php?t=633246
Follow these steps to obtain the file structure and Meta-Inf folder for your custom rom.
1. Open the folder where you have placed the kitchen.
2. You will find a folder called original_update.
3. Open that folder and copy your boot.img and system.img files into it. ( In your case it is boot-sign.img and system-sign.img. Rename those files into boot.img and system.img and place them in the folder )
4. Now open the kitchen. ( Refer the above link to know how to do it )
5. You will find " 1. Set up working folder from ROM " option under Main Menu.
6. Type 1 and you will be directed to another menu. Click Enter.
7. Select your boot.img and system.img from the menu.
8. Now follow the instructions that appear on the screen.
9. When you successfully complete the steps, you will have the required Working folder, with boot.img, system folder and Meta-Inf folder, which will contain the updater-script (It will be automatically generated)
All the best. :good:
Hit Thanks if this helped you... PM me if you need further help or search the forum for detailed instructions.
Thanks, this helped me, but I still can't create ROM.
I encountered a problem with kitchen:
Code:
Available ROMs:
(1) system.img and boot.img
Enter selection number (default=1, cancel=0, r=refresh):
Found original_update/system.img
Found original_update/boot.img
The new working folder will be named WORKING_061614_070841
Change the name (y/n)? (default: n):
Creating working folder WORKING_061614_070841 ...
Copying boot.img ...
Copying system.img ...
Adding an update-script ...
NON-YAFFS/NON-TAR FILE FORMAT DETECTED IN ROM
Mounting system.img to loopback device and then extracting files ...
Error: Unable to mount system.img
Error: No /system/framework folder found!
Press Enter to continue
This creates my missing update-script and boot.img, but system folder is empty.
Would it be a good idea to extract all system files from device and attempt to create ROM with them, and this update-script, or is there something I could do with system.img to make it extract?
Try this
Don't worry. There's always an alternative. Try this simple method.
1. Boot into CWM (Clockwork Mod) Recovery. (I'm pretty sure you know how to do it, if not, you can feel free to search the forum)
2. Choose Backup and Restore.
3. Make a backup in your external sdcard.
4. Now boot normally, open your external sdcard. You will find a folder called clockworkmod. Copy that folder to your PC.
5. Inside that folder, you will find the backup.
6. Now, copy boot.img and system.ext4.tar.a to your original_update folder of the kitchen.
7. Warning! Do not copy system.ext4.tar, only copy system.ext4.tar.a
8. Once you have copied these two files, rename system.ext4.tar.a into system.ext4.tar
9. Now, open android kitchen and follow the exact same steps as you did before.
10. When you choose the available rom, you will find the screen as below.
Code:
Available Roms:
(1) system.ext4.tar and boot.img
11. Choose it and follow the instructions. You will have your required working folder.
Try this and let me know if you still face any issues. :good:
I was unable to load CWM recovery, because it is not supported by my device. I tried TWRP too, which also doesn't support my device. Is it possible to do without CWM?
Dantenas said:
I was unable to load CWM recovery, because it is not supported by my device. I tried TWRP too, which also doesn't support my device. Is it possible to do without CWM?
Click to expand...
Click to collapse
I'm sorry my friend, even if you create your own ROM, you require either one of them to flash the ROM to your device. Seeing you so keen on developing the rom, try to use any yaffs tool to create your system.img from extracted system folder. You may refer this thread.
http://forum.xda-developers.com/showthread.php?t=1645412

How to build your own rom using stock rom/firmware(noob friendly guide)

HERE IS A GUIDE FOR YOU ALL YOU CAN CREATE YOUR OWN ROM BY THIS METHOD.I AM NOT RESPONSIBLE FOR BRICKED DEVICES.
Click to expand...
Click to collapse
Requirement to make a custom rom
*JAVA JDK installed on your SYSTEM
*WIN XP/ 7/8/8.1.
*package given in download section
Who is this kitchen for ?
Those who are brand new to
creating custom ROMs and
want an easy place to start
learning
Those who just want to modify
shipped ROMs or someone
else's custom ROMs to their
liking
Those who are confused by all
those scripts and complex
commands required for
building and extracting
This is NOT a tool to
automatically turn you into a
full-fledged ROM developer.
ROM development normally
involves work from the ground
up and involves time , research
and patience .
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK..
Kitchen setup
setting up dsixda kitchen
1.download all the three link and unzip kitchen.rar and cywin package.
2.open cywin_package then open folder now, you can see 3 icons, a read-
me,a setup, and a folder. Choose
the setup. Here you will choose
install from local directory. Next,
navigate to the the folder of
extraction of cygwin and choose
the folder cygwin_packages inside
the cygwin extraction folder. Wait
for some time. Then, you will come
across a list of file. Click the 2-
circle-arrows,untill, it displays
“install”
after the procedure is complete,
run the batch file cygwin.bat . Now, minimise
it and copy kitchen folder,
keep it in some location where you have installed your cygwin package open home/ajay-pc(in my case this is administrator name of my pc)kitchen
now, open the batch file window
and type
cd c:\kitchen
wait for some time and then when
the location the changed, type
./menu
Click to expand...
Click to collapse
press thanks if you like my work
GUIDE
now minimize the batch file and extract official rom there you will find system.img then extract it using magic iso or flash
the official stock rom using odin the take a nandroid backup u will get system.rfs.tar in your sd card extract it using magic iso then make a folder in called rom and open it. again create a folder called system and copy all data from system.rfs.tar which u have extracted(do drag and dropping).
Now copy meta-inf of any stock rom and copy and kernel to rom folder.
Now you will get two folder and one file in your rom folder zip the folder content and copy the file where you have installed cygwin/home/ajay/kitchen/original update folder.
now open command shell which you have minimized 1st create working folder then add root permission,deodex your rom.
and at last press 99 to build your rom..
note-if it ask you to change updater script to update script change it but dont forget to change it back to updater script.now you will get your rom in output folder copy it to your sd card flash it if error occur unzip the zip file and delete meta-inf and boot.img and again copy meta-inf of any rom and kernel to it and zip it..again flash the rom..
PRESS THANKS IF YOU LIKE MY WORK
DOWNLOADS
Downloads​
Link for cygwin click here :good:​link for kitchen click here :good:​link for magic iso click here :good:​
Link for official firmware click here :good:​
PRESS THANKS IF YOU LIKE MY WORK
CREDIT
DSIXDA for Android Kitchen
Samsung for this awesome device
ME for this Guide

[Tutorial] LG-P715 kdz to Flashable zip

Here I'm posting how to convert .kdz file into a Flashable zip file, The list of files you needed are
Official kdz file
kdz extractor
LGwinTools
ext2explore
Cygwin (If you are a windows user) from here
dsixda's kitchen This Thread
1. Extract the kdz extractor to the new folder, just drag and drop the kdz file to the unpack_kdz.bat. You will find the .cab file in the same directory where you have kdz.
2. Drag and drop the cab file to unpack_cab.bat. The dz file will be extracted to /dz folder in the same directory.
3. Now extract and open LGwinTools file->open locate the dz file. Items will be displayed in bin files, now click on save to any new folder.
4. We need two files SYSTEM and APPS. Extract and run ext2explore then locate the SYSTEM file, it will load. Now click on save to any new directory(make sure the folder name is system)
5. Now rename the file APPS to "boot.img" (you have extracted from LGwinTools)
6. Make an archive .zip containing \system boot.img \META-INF(attached below)
6 Next process will be installing "Cygwin" read this
7. Installing dsixda's Kitchen read this
8. After you installation you have move the created zip file to \kitchen\original_update (In my case it is "C:\Cygwin\home\Santhoosh\Kitchen\original_update")
9. Run Cygwin
Code:
cd kitchen
./menu
10. Setup working folder and go to Advanced option select "Deodex files in your rom" MAKE SURE YOU SET THE API LEVEL TO 19 and choose both system and framework
11. After this "Rename the app folder in /system to app1" "priv-app to app" in WORKING Directory
12. Now again go for Deodex and deodex the remaining files. after completion rename app to priv-app and app1 to app.
13. Make sure the updator-script is untouched
14. Do zip align(optional) and make any other changes you want.
15. Remove unnecessary app like GooglePlus etc. Remove the Qtranslator and Polarisviewer apk and odex files.
Note: After Deodexing the LG Keyboard will not work, Remove it and add any other keyboard to app folder.
16. Now move to working folder and make a zip file of all. (/system /META-INF boot.img)
17. FLASH IT :laugh::laugh:
18. To Gain root access you have to download this and flash SU
I tried to unpack kdz file, but the programm (unpack_kdz.bat) didn't work. The text in a window is : "Error! LGExtract.exe is not internal or external command, programm or batch file". Why did this error happened? I use windows 7 x64
explains better.. please no root l7 ii p715 kitkat 4.4.2 ....
:
santhoosh said:
Here I'm posting how to convert .kdz file into a Flashable zip file, The list of files you needed are
Official kdz file
kdz extractor
LGwinTools
ext2explore
Cygwin (If you are a windows user) from here
dsixda's kitchen This Thread
1. Extract the kdz extractor to the new folder, just drag and drop the kdz file to the unpack_kdz.bat. You will find the .cab file in the same directory where you have kdz.
2. Drag and drop the cab file to unpack_cab.bat. The dz file will be extracted to /dz folder in the same directory.
3. Now extract and open LGwinTools file->open locate the dz file. Items will be displayed in bin files, now click on save to any new folder.
4. We need two files SYSTEM and APPS. Extract and run ext2explore then locate the SYSTEM file, it will load. Now click on save to any new directory(make sure the folder name is system)
5. Now rename the file APPS to "boot.img" (you have extracted from LGwinTools)
6. Make an archive .zip containing \system boot.img \META-INF(attached below)
6 Next process will be installing "Cygwin" read this
7. Installing dsixda's Kitchen read this
8. After you installation you have move the created zip file to \kitchen\original_update (In my case it is "C:\Cygwin\home\Santhoosh\Kitchen\original_update")
9. Run Cygwin
Code:
cd kitchen
./menu
10. Setup working folder and go to Advanced option select "Deodex files in your rom" MAKE SURE YOU SET THE API LEVEL TO 19 and choose both system and framework
11. After this "Rename the app folder in /system to app1" "priv-app to app" in WORKING Directory
12. Now again go for Deodex and deodex the remaining files. after completion rename app to priv-app and app1 to app.
13. Make sure the updator-script is untouched
14. Do zip align(optional) and make any other changes you want.
15. Remove unnecessary app like GooglePlus etc. Remove the Qtranslator and Polarisviewer apk and odex files.
Note: After Deodexing the LG Keyboard will not work, Remove it and add any other keyboard to app folder.
16. Now move to working folder and make a zip file of all. (/system /META-INF boot.img)
17. FLASH IT :laugh::laugh:
18. To Gain root access you have to download this and flash SU
Click to expand...
Click to collapse
Ilyazzzz said:
I tried to unpack kdz file, but the programm (unpack_kdz.bat) didn't work. The text in a window is : "Error! LGExtract.exe is not internal or external command, programm or batch file". Why did this error happened? I use windows 7 x64
Click to expand...
Click to collapse
use this, i have uploaded wrong file
https://www.dropbox.com/s/ko3s25r0wxf2ext/kdz_extractor.zip?dl=0
rodrigorafaelb said:
:
Click to expand...
Click to collapse
you can root by flashing this file
SuperSU
kdz_extractor modified
download and use this, dont download the kdz_extractor in the main thread.
So.. for the last step is, we don't have to build using kitchen but just archive the working folder instead?
santhoosh said:
you can root by flashing this file
SuperSU
Click to expand...
Click to collapse
how to flash it??
riskey95 said:
how to flash it??
Click to expand...
Click to collapse
In cwm.
sasa g said:
In cwm.
Click to expand...
Click to collapse
my device not rooted yet
riskey95 said:
my device not rooted yet
Click to expand...
Click to collapse
So root it follow author tutorial i already rooted my p715 thanks ts
i managed to make a flashable .zip and rooted with your tutorial ,thanks,but do you know how to make the inverse proccess? make this .zip into a kdz firmware??????
will this work for l5 II? I'm having trouble using lg mobile support tool. this is my only option for now..
It will work
Sent from my LG-P715 using XDA Free mobile app
santhoosh said:
It will work
Sent from my LG-P715 using XDA Free mobile app
Click to expand...
Click to collapse
thanks. by the way, will the custom recovery and root access be removed when I flash the zip?
It won't be removed
Sent from my LG-P715 using XDA Free mobile app
santhoosh said:
It won't be removed
Sent from my LG-P715 using XDA Free mobile app
Click to expand...
Click to collapse
ts i did a flashable zip of my country kitkat firmware its philppine kitkat firmware http://csmgdl.lgmobile.com/dn/downloader.dev?fileKey=FW808706432109876543213/V20A_00.kdz
after i flashed .zip it success is version is 4.2.2 but the software version is v10h? not v20a? did you have any idea for this?
May be you have to wait for the kitkat update or simply download any other country firmware.
Sent from my LG-P715 using XDA Free mobile app
what does the bat file do? nothing happens when I drag and drop the kdz file in the batch file.
Which one you downloaded, i have attached a modified kdz_extractor.zip try that
Sent from my LG-P715 using XDA Free mobile app

How to extract system.img.ext4?

I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
I think Android Kitchen can do that.
Sent from my GT-I9060I using Tapatalk
7-Zip
7-Zip cannot read .img.ext4 files. I used program called sgs2toext4 and now the file is .ext4.img and 7-Zip can read it but it can't extract any .so files. I need to get libdefcontrainer_jni.so from /system/priv-app/DefaultContrainerService/lib/arm.
PetteriM said:
I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
Click to expand...
Click to collapse
Use for that the EXT2 unpacker tool,
https://androidfrog.com/5gt67f
Select Package and then the directory where you want to extract it.
Doesn't work. It can't save that .so file.
same problem here, i try to extract cache.img from S8 firmware (G950FXXU1AQJ1/G950FOXM1AQJ1/G950FXXU1AQJ1/G950FXXU1AQJ1 , 20171018104053) . using ImgExtractor 1.3.7 it extracts , but the extracted zip cannot be opened by any program, with ext4_unpacker (after i fix the img header 4 bytes using sgs4ext4fs) it gives 'list index out of bounds' when i try to extract the zip, using CacheRipperUX it extracts the zip from img but when i try to open the zip using 7-zip it only sees a few files, when i try to open with Winrar it sees full list but cannot extract any of them because it give archive corrupted.
i found a solution: convert the original cache.img (samsung sparse ext4) to raw ext4 using simg2img , and the resulted .img file open with 7-zip and extract the content. My zip content was extracted correctly.
Is there any app for android which can extract .img files like system.img?

Categories

Resources