[Easy Tool] For developers and rom cokers

Search This thread

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Hi, here is tool for making flashable zip in few commands! No need root! In few commands your rom is ready for sharing or flashing with CMW ! You can dump any rom! NOTE: all your rom changes which is in your phone will be included in rom.zip (for example busybox, su...etc)! Tool will be usefull for dumping next Sony stock rom, but allso all rom is supported! Enjoy!

For no rooted devices:
  • adb push romgen /data/local/tmp/
  • adb shell
  • cd /data/local/tmp
  • chmod 755 romgen
  • Code:
    ./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/null[/COLOR] /storage/removable/sdcard1/rom.zip
/dev/null must be used as a boot partition since no rooted devices have no access to these device!

For rooted devices:
  • adb push romgen /data/local/tmp/
  • adb shell
  • su
  • cd /data/local/tmp
  • chmod 755 romgen
  • Code:
    ./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/block/platform/msm_sdcc.1/by-name/boot[/COLOR] /storage/removable/sdcard1/rom.zip

Download tool:
http://xdaforums.com/showthread.php?t=2533585
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
is it stable already?
I mean the Meta-INF generated completely?
thanks gonna try this if the tool complete

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!
 
Last edited:
  • Like
Reactions: nelikp

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
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 :)

I am hope eerything is right now, but I will test and let you know if generated zip is installable with sucess!
 
  • Like
Reactions: nelikp

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
New working version finaly, sorry! Now I tested tool and found another 2 bugs, first one was "zip fail to store file which contain special characters like *()...etc", and seccond one was wrong format of the permssions in updater-scrip. Now all things is solved, I have tested tool, tried to install generated zip, installed zip, and bum. Everything is ok now, enjoy!
 
  • Like
Reactions: nelikp

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Hi mate...nice to see you here ;)

If I'm correct, you have some great work and kernels in your biography ;)

Sent from my C6903 using Tapatalk
 
  • Like
Reactions: munjeni

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Hi mate...nice to see you here ;)

If I'm correct, you have some great work and kernels in your biography ;)

Sent from my C6903 using Tapatalk

No space left in my signature :laugh: One oftopic question, anyone have info when Sony will anounce 4.4.2 ?
 
Last edited:

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
No space left in my signature :laugh: One oftopic question, anyone have info when Sony will anounce 4.4.2 ?

Yeah...I'm using Tapatalk so can't see...but, as I said, I know who you are and we will be very happy if you join Z1 development :thumbup:

It should be out (most likely) in a first few days on april (let just hope it won't be first April and we.won't be April's fools ;))

Some of Z2 apk files are already out and if that guy who already post few things managed to post Z2 system dump - we could have something even earlier ;)

Sent from my C6903 using Tapatalk
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
I am allready in development on Z1 Compact but curently I have problem in semc_colorizable (going to start working in MIUI), so first of all I need to solve all things related to the recompiling framework-res and full removal of the semc_generic_uxp... by now have no luck :( Did you have luck on framework-res on Z1 using apktool ? I have managed to recompile/compile them by now, but boot loop on colorizable things since my modificaions on framework / framework-res is not complete .
 
Last edited:

ChinmayKunkikar

Senior Member
Nov 15, 2012
1,035
1,119
Pune
I am allready in development on Z1 Compact but curently I have problem in semc_colorizable (going to start working in MIUI), so first of all I need to solve all things related to the recompiling framework-res and full removal of the semc_generic_uxp... by now have no luck :( Did you have luck on framework-res on Z1 using apktool ? I have managed to recompile/compile them by now, but boot loop on colorizable things since my modificaions on framework / framework-res is not complete .
@munjeni bro, you can try out the Advanced APKtool by @BDFreak bro for the framework-res issues. It's compatible with z1 Compact.

http://xdaforums.com/showthread.php?t=2639400
 
Last edited:

Chocolatetrain

Senior Member
Mar 26, 2013
853
610
Leicestershire
Xiaomi Mi 11
@munjeni, nice tool, but I need help. I get this error in CWM log every time I try to install my zip; "l:Can't partition non mmcblk device: /devices/msm_sdcc.2/mmc_host

What do I need to do to the updater script? I tried replacing the mount system bit with;

run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");

but I had no luck.
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Probably you pased bad command to the romgen since you say /devices/msm_sdcc.2/mmc_host !!! Double check first post before you going to generate zip! Or probably you using an bad cwm which have bad fstab! If no of these 2 simptoms is true than for sure you have modified updater-script by your own way which probably is not ok! Hope this help.
 
Last edited:

Chocolatetrain

Senior Member
Mar 26, 2013
853
610
Leicestershire
Xiaomi Mi 11
Probably you pased bad command to the romgen since you say /devices/msm_sdcc.2/mmc_host !!! Double check first post before you going to generate zip! Or probably you using an bad cwm which have bad fstab! If no of these 2 simptoms is true than for sure you have modified updater-script by your own way which probably is not ok! Hope this help.

Okay so it's the bad fstab, thanks man
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    Hi, here is tool for making flashable zip in few commands! No need root! In few commands your rom is ready for sharing or flashing with CMW ! You can dump any rom! NOTE: all your rom changes which is in your phone will be included in rom.zip (for example busybox, su...etc)! Tool will be usefull for dumping next Sony stock rom, but allso all rom is supported! Enjoy!

    For no rooted devices:
    • adb push romgen /data/local/tmp/
    • adb shell
    • cd /data/local/tmp
    • chmod 755 romgen
    • Code:
      ./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/null[/COLOR] /storage/removable/sdcard1/rom.zip
    /dev/null must be used as a boot partition since no rooted devices have no access to these device!

    For rooted devices:
    • adb push romgen /data/local/tmp/
    • adb shell
    • su
    • cd /data/local/tmp
    • chmod 755 romgen
    • Code:
      ./romgen C6903 honami /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/byname/userdata /dev/block/platform/msm_sdcc.1/by-name/cache [COLOR="Red"]/dev/block/platform/msm_sdcc.1/by-name/boot[/COLOR] /storage/removable/sdcard1/rom.zip

    Download tool:
    http://xdaforums.com/showthread.php?t=2533585
    2
    I am allready in development on Z1 Compact but curently I have problem in semc_colorizable (going to start working in MIUI), so first of all I need to solve all things related to the recompiling framework-res and full removal of the semc_generic_uxp... by now have no luck :( Did you have luck on framework-res on Z1 using apktool ? I have managed to recompile/compile them by now, but boot loop on colorizable things since my modificaions on framework / framework-res is not complete .
    1
    is it stable already?
    I mean the Meta-INF generated completely?
    thanks gonna try this if the tool complete

    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!
    1
    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 :)

    I am hope eerything is right now, but I will test and let you know if generated zip is installable with sucess!
    1
    New working version finaly, sorry! Now I tested tool and found another 2 bugs, first one was "zip fail to store file which contain special characters like *()...etc", and seccond one was wrong format of the permssions in updater-scrip. Now all things is solved, I have tested tool, tried to install generated zip, installed zip, and bum. Everything is ok now, enjoy!