[TOOL] RomGen

M

Modding.MyMind

Guest
No, all things which have no licence is private projects and I not going to open them public. Is latest version ok now?
I have to remove assert() and format() from the updater-script. When using assert it fails even though the info is correct inside the build.prop file. Format fails because it has four arguments when it will only allow me three at most.

I still get that problem when trying to view the Rom.zip like I mentioned previously. I personally use TWRP, so even with the first to command lines removed from the updater-script it still fails to install the Rom. Guess it is due to the recovery I use. Haven't messed with it too much as of recent. Still playing with it as I try to understand why it doesn't flash.

Sent from my K2_CL using Tapatalk
 

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
New version is out! Fixed all bugs, added option for skipping boot.img flashing, added another field for defining another name of device, iternal busybox (no need rooted device by now! If you using no rooted device than you must use /dev/null as a boot partition!)...

For example, to skip boot flashing, do command:
romgen D5503 amami systemblaba datablabla cacheblalba /dev/null outzip_blabla

where /dev/null is boot partition so null will be writen to boot after flashing if you used /dev/null as a boot partition...
 
Last edited:
M

Modding.MyMind

Guest
New version is out! Fixed all bugs, added option for skipping boot.img flashing, added another field for defining another name of device, iternal busybox (no need rooted device by now! If you using no rooted device than you must use /dev/null as a boot partition!)...

For example, to skip boot flashing, do command:
romgen D5503 amami systemblaba datablabla cacheblalba /dev/null outzip_blabla

where /dev/null is boot partition so null will be writen to boot after flashing if you used /dev/null as a boot partition...
Awesome, does this version have the option to choose single partitions. Previously, the command would only allow for all partitions, system, boot, data, cache. Would be good to have the ability to only choose one if needed.

I ask because it would allow the possibilty to create a Rom straight from the phone without the need of a computer or the use of a kitchen like dsixda. So for me at least, that would be very resourceful as I am not always by a computer.

Sent from my C525c using Tapatalk
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
System data cache boot out... but there is only used system and boot partition, data & cache is nothing (probably I will remain only system and boot). So you can use for example "getrom name1 name2 /system_partition /dev/null /dev/null /dev/null out_zip" so only system and fake boot will be dumped!
 
  • Like
Reactions: nelikp

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
Yesterday I noticed bug There is bug when folder is empty or when symlink is inside folder but there no other files! So when tool generate zip these folder is missing in zip but updater-script have line "set perm to folder" which not exist, so installation aborting because a missing folder Will try to solve them soon! Do not flash generated zip since you will get boot loop (you can only if you add missing folders to zip)! I will make new version soon, hope clean!
 
  • Like
Reactions: nelikp

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
New version is out! Hope all bugs solved! Bug is solved by creating empty file .placeholder to all existing folders so zip for sure now have all mised folders, than placeholders is auto removed at finish of the installation :)
 
  • Like
Reactions: nelikp

ChinmayKunkikar

Senior Member
Nov 15, 2012
1,035
1,119
0
Pune
Hello @munjeni bro!

I am trying this tool out.

One problem is that I can't find out the correct partitions in dev/block for /system, /cache, /data and everything.

I am currently on XSola.
So can i use the same paths that you have mentioned in the examples of the script?

Thanks :good:

Edit-
I tried it using the same paths as mentioned in the script in Terminal emulator.

I got an error something like
Error giving permission to /data/local/tmp/rom/busybox. Do it manually first
 
Last edited:
M

Modding.MyMind

Guest
@munjeni , please reply mate.

Sent from my Xperia™ Sola...
If your device is emmc then try this either via adb shell or on your device using a terminal emulator:

Code:
cat /proc/emmc
With that said, no you cannot use the same partitions mentioned in his layout. Each device is specific to not only their given partitions but their sizes as well. Some devices will share similarities.

Sent from my C525c using Tapatalk

---------- Post added at 05:07 PM ---------- Previous post was at 05:05 PM ----------

What is that man its a file with no exentination
Its a compiled binary to keep it simple. An executable file more in less. Think of this file as an .exe file on windows ;). There is more to it, but this should help you get started in your research.

Sent from my C525c using Tapatalk
 
Last edited:
M

Modding.MyMind

Guest
Ok bro I understood. So how do I find those partitions?

Sent from Xperia™ Sola
Use an android terminal emulator on your device. You can download it from the Play Store. If your device is emmc....

Type and enter:
Code:
cat /proc/emmc
See picture for an example... The picture will show a list of partitions. Those partitions are specific to my device (not yours).


Sent from my C525c using Tapatalk
 

Attachments