Pack a custom rom - Galaxy S II Q&A, Help & Troubleshooting

Hi, I want to create my own custom rom, I've finish them, but I've a problem.
I don't know how to pack all the files in a flashable zip, I've make a zip with 7-zip but when I try to install it, recovery say "Installation Aborted".
Someone can explain to me how to create the zip? I've an good experience on android but I haven't already create a flashable zip...
Thanks!

Would not have a clue my friend but by reading the following threads your best bet is to go to the following links
http://forum.xda-developers.com/showthread.php?t=1227549
http://forum.xda-developers.com/showthread.php?t=1133846
Have a look at those links and those are the best options you have to create your own rom. Enjoy

It is possible to make a simple tutorial for me, I'm french and that's too hard to understand for me. I just need to pack in a zip file flashable. Thanks you .

Wouldn't there need to be a script to tell CW what to do with the files in the package/how to install them, etc ?
I wouldn't have a clue how to do this BTW, I'm just thinking logically around what I know about the way CW works so far as installing roms/kernels goes.

MistahBungle said:
Wouldn't there need to be a script to tell CW what to do with the files in the package/how to install them, etc ?
I wouldn't have a clue how to do this BTW, I'm just thinking logically around what I know about the way CW works so far as installing roms/kernels goes.
Click to expand...
Click to collapse
Thanks, but we can't pack a rom with cwm if that's what you want to say.

sangosnip69 said:
Thanks, but we can't pack a rom with cwm if that's what you want to say.
Click to expand...
Click to collapse
still check those links i gave you above. there must be a solution or guide to tell you how to pack a rom once you are finished putting everything together.my guess is that you do need an updater script and updater binary script something like that..check on those two links and have a look..or zip the rom using powerarchiver if you are on windows

just head over to http://perka.zapto.org and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk.
You can just take the signatures from the zip and add them in your future zips or just keep copying this one.
The update script shows the screens on install so change text in there and it will show on install.
Or there is a guide to Edify Scripting here: http://forum.xda-developers.com/showthread.php?t=1265120

Related

Request: System Dump of full DI01 updated phone.

Someone who has done the whole DI01 update, please dump their system for me, or just the framework folder, apparently the one given to me had the stock android lockscreen patch applied to it lol.
Aside from that, the DI01 deodex works perfect, I opt_png'ed and zip_align'ed all the apk's, as well as the framework-res and twframework-res.
I will also need someone who knows how to sign updater-scripts to open the one attached, and just save it again properly and upload it for me. I am trying to get a flashable CW zip but the darn thing always gives me a status 6 error, which means the CW cannot read the updater script.
Sorry for the n00b question, but what benifit does deodexing provide? Also if there is another software update will I have to readd any .apk's to my /system folder?
Why not just flash your own system back to stock, then run the update, then dump /system? If you'd like an update script that doesn't update modem.bin, I already have one.
Assuming you're updating via CWM, why are you signing the zip? You don't need any signature, just zip the file up.
Is there anything involved in a dump besides just copying the files in /system?
namebrandon said:
Why not just flash your own system back to stock, then run the update, then dump /system? If you'd like an update script that doesn't update modem.bin, I already have one.
Assuming you're updating via CWM, why are you signing the zip? You don't need any signature, just zip the file up.
Click to expand...
Click to collapse
Because I am too lazy to go through all that.
I don't need it signed per say. More like opened, edited, and saved properly. It is said it is best to edit the update script in s Linux based environment which I don't have, but that notepad should suffice, yet when I save it with my notepad, I get the error of cw not being able to read it properly.
I have a fresh phone that just got the D101 update. Just need directions on what if anything is involved beyond just getting the /system directory via adb.
s44 said:
I have a fresh phone that just got the D101 update. Just need directions on what if anything is involved beyond just getting the /system directory via adb.
Click to expand...
Click to collapse
That is all I need. The only things I deodex are the contents of system/app and system/framework.
frostman89 said:
I don't need it signed per say. More like opened, edited, and saved properly. It is said it is best to edit the update script in s Linux based environment which I don't have, but that notepad should suffice, yet when I save it with my notepad, I get the error of cw not being able to read it properly.
Click to expand...
Click to collapse
Try a real editor, like bluefish or something.. Those scripts look like sh#! in notepad.
If no one has done it by tonight, just grab me on IRC and I'll do it under Linux for you.
Make sure you've got the file/directory structure right too.. You can't just throw a script in a zip file, but I'm sure you knew that. Myself and and a few others had the wrong directory structure at first, don't remember what error number that gave us though.. I think it just froze.
OK, how can I get it to you? I can't post links or (I think) files yet.
s44 said:
OK, how can I get it to you? I can't post links or (I think) files yet.
Click to expand...
Click to collapse
You can just zip it up and upload it to mediafire.com
Just splice up the link like WWW. Website. Com and I will just delete the spaces.
Mediafire upload just not working for some reason. Hm.
s44 said:
Mediafire upload just not working for some reason. Hm.
Click to expand...
Click to collapse
http://multiupload.com/
J1HDKEGYAR at multiupload

Precook Kernel into Rom Zip

Is there a unified manner in which this is done?
I've been looking for a way to precook this kernel here: http://forum.xda-developers.com/showthread.php?t=756774 into my ROM's zip before flashing, to save myself the extra step.
Is there anything special to it? I assumed it might just be as straightforward as copying the entire folder structure into the ROM's zip, but the kernel inquestion actually has a third folder called "kernel".
Any help would be much appreciated, this combined with my LauncherPro cooking question earlier will make this ROM perfect for me
LiquidSolstice said:
Is there a unified manner in which this is done?
I've been looking for a way to precook this kernel here: http://forum.xda-developers.com/showthread.php?t=756774 into my ROM's zip before flashing, to save myself the extra step.
Is there anything special to it? I assumed it might just be as straightforward as copying the entire folder structure into the ROM's zip, but the kernel inquestion actually has a third folder called "kernel".
Any help would be much appreciated, this combined with my LauncherPro cooking question earlier will make this ROM perfect for me
Click to expand...
Click to collapse
unpack the existing rom zip's boot image, copy in the kernel you wants zImage, repack it and plop the boot image back into the sip. then remove all the modules in /system/lib/modules in the rom zip and copy all the modules from the kernel zip into the modules folder in your rom zip.
then you ware ready to go.
Yes man, but where to put the zImage? i have 2 GZ files and 1 folder. i tried to put it in the folder and repack that, and the rom stuck at the splash screen. where to put it and how?
thanks

[Q] How do I make a CwM flashable .zip with edify scripting?

Hi all,
I need to make a CwM flashable .zip, but I don't know how. All I need to do is replace a few files in the /system/lib/ folder. Can anyone help me? I've been looking all over XDA and Google, but I just can't seem to find help for exactly the problem I have.
put whatever files you want on your phone and move them to wherever with root explorer ?? easier than making a zip to flash them instead
kyle51 said:
put whatever files you want on your phone and move them to wherever with root explorer ?? easier than making a zip to flash them instead
Click to expand...
Click to collapse
like that answers the OP's question....
@OP here:
http://forum.xda-developers.com/showthread.php?t=936175
http://forum.xda-developers.com/showthread.php?t=994940
http://www.synfulgeek.com/main/inde...d-off-of-kernel-source-code&catid=57:articles
http://spblinux.de/2.0/doc/commands.html
and of course you'll need some linux knowledge.
http://www.wikihow.com/Learn-to-Use-Linux
saw this before create thread.. linux not same as windows rite? i m new and confuse with those command

How to install themes without APK?

i asked in few threads but seems people are not willing to answer this question, and in threads with roms whom includes custom themes, do not have instructions how to install. So how to do that?
newestuser said:
i asked in few threads but seems people are not willing to answer this question, and in threads with roms whom includes custom themes, do not have instructions how to install. So how to do that?
Click to expand...
Click to collapse
Always search first post of specific thread for answers you will find your answer, or at least search your question before posting
you are not specific to your question
Q.1 Which Firmware are you using
Q.2 Is it Rooted
Q.3 what kind of theme is that (a CWM Flashable, xRecovery Flashable or Manual)
If you are using stock firmware then you will have to root, then you find a compatible theme and apply it according to the method provided by the theme maker
same applies to Custom ROM but they are already rooted and you might already have a recovery software installed
e.g
if its flashable by xRecovery you can go to xRecovery and flash it
if its flashable by CWM you can go to CWM and flash it
if you don't want to flash it go to Root Explorer copy that Framework-res.apk and replace it in system/framework directory and change permission to rw-r--r-- and reboot your device
and above all Backup your device before doing these because first time you might do it wrong and stuck up in boot loop
im using cm mini 7 v20 for rooted mini pro, i dont know if themes are flashable or not, they dont write that:
http://forum.xda-developers.com/showthread.php?t=1217611
not everyone are captain obvious to know what type they are
thanks for responding!
http://forum.xda-developers.com/showpost.php?p=18818162&postcount=35
newestuser said:
im using cm mini 7 v20 for rooted mini pro, i dont know if themes are flashable or not, they dont write that:
http://forum.xda-developers.com/showthread.php?t=1217611
Click to expand...
Click to collapse
its a Flashable zip, can be done via CWM
or you can manually copy & Replace those apks to their respective destination after extracting
and change permission to rw-r--r--
but be sure to backup first
ahub1988 said:
its a Flashable zip, can be done via CWM
or you can manually copy & Replace those apks to their respective destination after extracting
and change permission to rw-r--r--
but be sure to backup first
Click to expand...
Click to collapse
thanks, but can you tell step by step instruction ? because last time i did that via CWM... i got a bootloop :X
newestuser said:
thanks, but can you tell step by step instruction ? because last time i did that via CWM... i got a bootloop :X
Click to expand...
Click to collapse
so you want to do it manually.
first i must tell you as it is for older miniCM version it might cause problems
First extract your zip in SD card
copy apks from framework and apps folders
mount /system to rw and paste them to system folder
change permission of each apk to rw-r--r-- by press-holding and clicking permission in root explorer
make sure all apks have permission of rw-r--r--
move and replace framework-res.apk from /system to /system/farmework/
move and replace all other apks from /system to /system/apps/
Reboot
Thats it; if you done it correctly then it will go fine
or you can try themes from here by installing apks Here
The apks can be extracted and installed directly, no copying and setting permissions needed. However the core framework of cm7 must have changed since these were made as they don't render properly on newer cm7 based roms

[Q] How to close the update.zip file the right way

Hi everyone,
I want to eventually create an edited ROM for an Android tablet. (Very simple stuff, really. Removing apks, adding build.prop mods)
I have a working update.zip file, which re-installs the image on the tablet, through stock recovery and the install from sdcard option.
But once I unzip it,
and then zip and even re-sign it (with the tool I found by searching the forum),
the recovery says 'installation aborted', when it is verifying the package.
1. How can I avoid this from happening? I get it that closing the update.zip is done wrong. How can I pass the verification section?
2. It IS possible to push such a .zip through stock recovery, right? I want to avoid CWM and TWRP and make it as simple as possible.
Thanks.
Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).
dxppxd said:
Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).
Click to expand...
Click to collapse
I tried this, too.
I only deleted one apk from system/app and later I tried again by deleting the apk and its odex file, too.
In both cases, instead of rejecting the update instanlty, it starts the process and then stops after a few seconds.
IS it possible that there is a filesize checker text inside the image?
(or maybe a propery inside the build.prop or updater-script ?)
Any ideas, anyone?
Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?
iraklisvel said:
Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?
Click to expand...
Click to collapse
No
Stock recovery doesn't flash custom roms
Get cwm from builder.recovery.com
Press thanks :good: I'd helped :highfive:

Categories

Resources