Create CWM zip - Galaxy S II General

I want to create a CWM Flashable zip that will modify
Code:
/system/etc/gps.conf
Can some one please advise me, how can I create such CWM zip file.

t4ure4n said:
I want to create a CWM Flashable zip that will modify
Code:
/system/etc/gps.conf
Can some one please advise me, how can I create such CWM zip file.
Click to expand...
Click to collapse
I guess wrong forum. Should be in general Android forum and not in SGSII.
Maybe this helps:
http://fokke.org/site/content/howto-create-android-updatezip-package
or this:
http://code.google.com/p/android-customization-autotool/wiki/UpdateZipCreator
Just make an update.zip that mounts /system and replace the gps.conf with your new gps.conf.
Google will help as well

Schindler33 said:
I guess wrong forum. Should be in general Android forum and not in SGSII.
Maybe this helps:
http://fokke.org/site/content/howto-create-android-updatezip-package
or this:
http://code.google.com/p/android-customization-autotool/wiki/UpdateZipCreator
Just make an update.zip that mounts /system and replace the gps.conf with your new gps.conf.
Google will help as well
Click to expand...
Click to collapse
Thanks mate..

Related

Looking for a tutorial: how to cook a ROM?

I'm looking for a guide which tells how to make a own custom ROM from another one
I mean:
1. How to add/replace/remove apps in /system/app/?
1. a) Do they need to have special permission?
2. How to replace boot screen?
3. How to add custom kernel?
4. How to add Desire lockscreen/flip clock?
5. How to add transparent notofication area?
6. How to add Power menu?
I've been serching forum, but didn't find such tutorial. Would be very thanful to get this knowledge.
I think that will be very useful for maaaany android maniacs
1. Simple delete/copy apks in .zip file using 7-Zip or any other.
2. I belive you need to put bootanimation.zip in /data/local/ folder.
3. Idk
4. For Desire lockscreen you need edited HtcLockScreen.apk; for flip clock - HtcClockWidget.apk
5. Edited /system/framework-res.apk or /system/framework/com.htc.resources.apk. I'm not sure
6. You need edited /system/framework/android.policy.jar
69. Resign your zip file using Auto Sign
Attachment doesn't load, but I know about resigning ROM after everything is done
Ad. 1. As I thought, but do the need special permissions? And I also wonder one thing. Are they installed while flashing? Cuz they need to be in system registry, I think...
I have found this: http://wiki.android.com.pl/wiki/Kon...iana_instalowanych_aplikacji_razem_z_systemem
No any permissions etc.
Found this, too. Thanks.
to add a custom kernel you have to unpack the boot image and edit the ramdisk manually, although i think there is an option in dsixda's kitchen to unpack and repack the boot.img
I've got two more questions:
1. When signing, three files are created in folder META-INF: CERT.RSA, CERT.SF, MANIFEST.SF. But in other packages I see also com/google/android/update-script in META-INF. How to make it? Is it necessary?
2. If I want to make only flashable update file which changes one app or another file, eg. framework-res.apk, I have to create folder structure: system/framework/framework-res.apk, add it to zip archive (no compression?) and sing using Auto-sing. Am I right?
Edit:
Found nice guide there: update-script syntax
tomekk_nt said:
I've got two more questions:
1. When signing, three files are created in folder META-INF: CERT.RSA, CERT.SF, MANIFEST.SF. But in other packages I see also com/google/android/update-script in META-INF. How to make it? Is it necessary?
2. If I want to make only flashable update file which changes one app or another file, eg. framework-res.apk, I have to create folder structure: system/framework/framework-res.apk, add it to zip archive (no compression?) and sing using Auto-sing. Am I right?
Click to expand...
Click to collapse
The most important part of a recovery update zip is the update script. It will tell the recovery what to do. If you want an example of a basic update package, which replaces one file in the /system/framework (although a different one) can found here. Open this and read the META-INF/com/google/android/updater-script (or whatever its called). The syntax is pretty straight forward and I think its easiest to learn from the examples of updater scripts found here on XDA. For the simple case, of only replacing/adding files to the /system partition you can leave the updater script from the above example as is and only change the files under the /system directory in the zip.
Note, that the above example uses the newer upader-script (I hope I am writing this correctly, I am writing from memory) which also has a binary file in the same directory. Some update zips use the older "update-script" lone text script. For these kind of scripts, you can find a guide here.
Personally, I use RA recovery, and for this recovery you need to sign the update zips (last thing you do of course). At least for RA recovery, both the older "update-script" and the newer "updater-script" work fine, so its up to your personal preference which do you prefer.
Thanks. Found a guide you mentioned a couple of minutes ago and read it.
The more I know, the more questions it brings So one more thing. If I'd like to use the newer version of syntax: "updater-script", I need also to put this binary file in this folder. But I create/edit only "updater-script", binary file is the same for all packages, or do I need to edit it, too?
I built a kernel tool long time ago, very easy to use (only for linux)
1: unzip the file, place it where you want it eg your desktop
2: place boot.img in the working directory
3: double-click the menu icon or launch from terminal
4: it creates a new directory named BOOT-EXTRACT,edit what you want in there or change the kernel etc.. and repack it again via the kernel tool
see screenshot. here for those how want the tool >>> http://www.elelinux.se/tools/kernel_tool.zip
Edit: Only for Hero
tomekk_nt said:
Thanks. Found a guide you mentioned a couple of minutes ago and read it.
The more I know, the more questions it brings So one more thing. If I'd like to use the newer version of syntax: "updater-script", I need also to put this binary file in this folder. But I create/edit only "updater-script", binary file is the same for all packages, or do I need to edit it, too?
Click to expand...
Click to collapse
Only the updater-script. The binary is a replacement of the script-interpreter I think, but thats just an assumption.
elelinux said:
I built a kernel tool long time ago, very easy to use (only for linux)
Click to expand...
Click to collapse
And that's a good reason to install newest Ubuntu Thanks!
riemervdzee said:
Only the updater-script. The binary is a replacement of the script-interpreter I think, but thats just an assumption.
Click to expand...
Click to collapse
That's mine assuption, too, but would like to know it for 100%
Edit: I see you use it in your kernel update package. So you write only updater-script and place also update-binary next to it?
LOL, you've got help from every well known hero dev on xda, I'm sure you'll have all the info you need now to start building rom's. Good Luck!
Found an app called Easy Flashable zip Builder on this thread. Will test it soon.
tomekk_nt said:
Found an app called Easy Flashable zip Builder on this thread. Will test it soon.
Click to expand...
Click to collapse
But it is for MS Windows, or saw I wrong ? I have also built a tool to javasign files,but should probably write a manual first,it is easy to use but some dependencies maybe not so easy for a beginner with Linux.
tomekk_nt said:
That's mine assuption, too, but would like to know it for 100%
Edit: I see you use it in your kernel update package. So you write only updater-script and place also update-binary next to it?
Click to expand...
Click to collapse
Correcto

Need help with update.zip

I want to make update.zip for cwm, for this i search a lot in xda and google but i m unable to make a flashable update.zip, can any one give a step by step guideline for making flashable update.zip. Thanks for your support.
Check [URL="forum.xda-developers.com/showthread.php?t=1087885]this[/URL] out
Rapier07 said:
Check [URL="forum.xda-developers.com/showthread.php?t=1087885]this[/URL] out
Click to expand...
Click to collapse
Thanks but link is not working
Checked its working
Edit: forum.xda-developers.com/showthread.php?t=1087885
Rapier07 said:
Checked its working
Edit: forum.xda-developers.com/showthread.php?t=1087885
Click to expand...
Click to collapse
Thanks i will give it a try, now i m trying to make flashable zip with update.zip packer (a windows program) but whenever i flash the zip, some lines like E: Cant mount system:app appeares.
Check out Jazux' s "HOW TO' S". There is a tutorial on how to make update.zip.

Flashable TWRP / CWM recoveries

Hi. I want to create a flashable zip file from the latest TWRP .img file and the latest CWM .img file. Can someone please point me in the right direction? I've searched all over google and couldn't find what I was looking for.
Thanks,
Mike
Google i337 twrp zip xda
jd1639 said:
Google i337 twrp zip xda
Click to expand...
Click to collapse
Thanks for the reply, but I still can't find what I'm looking for. I want to take the twrp.img or cwm.img file and create a flashable zip from it. I see that you've done it for twrp, do you mind sharing how you did it ?
Thanks again,
Mike
mmcneil said:
Thanks for the reply, but I still can't find what I'm looking for. I want to take the twrp.img or cwm.img file and create a flashable zip from it. I see that you've done it for twrp, do you mind sharing how you did it ?
Thanks again,
Mike
Click to expand...
Click to collapse
Download the zip and extract it. All you need to do is drag and drop the recovery image you want in it, cwm or twrp and delete the one that's currently in there. Then navigate to the updater-script (it's deep inside the meta-inf folder) and edit it with notepad++ It'll become self explanatory once you look through the zip file. When you'll all done just zip it back up. You'll have a flashable recovery zip.
Ps, I use 7-zip to extract and zip
jd1639 said:
Download the zip and extract it. All you need to do is drag and drop the recovery image you want in it, cwm or twrp and delete the one that's currently in there. Then navigate to the updater-script (it's deep inside the meta-inf folder) and edit it with notepad++ It'll become self explanatory once you look through the zip file. When you'll all done just zip it back up. You'll have a flashable recovery zip.
Click to expand...
Click to collapse
Thanks jd.
Mike
mmcneil said:
Thanks jd.
Mike
Click to expand...
Click to collapse
No problem, if you have any questions just post them here.

How do you extract boot animation from a ROM?

So my favorite boot animation by far is the one that comes with NucleaRom, but I need to use a different rom. Could someone point me in a direction to extract the bootanimation from a certain rom and flash it on my current system? Was surprised to not find a guide to help me already.
A2017U
Lots of ba threads in theme forum.
lafester said:
Lots of ba threads in theme forum.
Click to expand...
Click to collapse
Read through them. Not what I'm looking for
Amer532 said:
extract the bootanimation from a certain rom and flash it on my current system?
Click to expand...
Click to collapse
@Amer532 ... Use a root empowered File Manager to go to /system/media and there you will find the current "bootanimation.zip" file. Copy it to a folder on your external sdcard then when you load your new rom, again go to /system/media and replace the existing file "bootanimation.zip" with the one you previously saved to your ext sdcard. That should do the trick. I should stress that the A2017U is a finiky device so I don't take any responsibility for anything that goes wrong. :fingers-crossed:
metpolds said:
@Amer532 ... Use a root empowered File Manager to go to /system/media and there you will find the current "bootanimation.zip" file. Copy it to a folder on your external sdcard then when you load your new rom, again go to /system/media and replace the existing file "bootanimation.zip" with the one you previously saved to your ext sdcard. That should do the trick. I should stress that the A2017U is a finiky device so I don't take any responsibility for anything that goes wrong. :fingers-crossed:
Click to expand...
Click to collapse
Ok thank you now I understand that the rom has to be installed to get to that "bootanimation.zip". Thanks for clearing that up for me XD

Unroot & Re-pack firmware?

I had 50pc japan version of s5(sc-04f), installed rom 'G900F.STOCK.FOR.SCL23.FULL.MINHQUAN'. The downside of this rom is that its pre-rooted. I managed to unroot it by goin in supersu & click 'full-unroot'. But i had multiple devices to flash, so is there a way for me to re-pack this firmware again after i unroot it? So that i could flash it to my other devices without root.
wee2000 said:
I had 50pc japan version of s5(sc-04f), installed rom 'G900F.STOCK.FOR.SCL23.FULL.MINHQUAN'. The downside of this rom is that its pre-rooted. I managed to unroot it by goin in supersu & click 'full-unroot'. But i had multiple devices to flash, so is there a way for me to re-pack this firmware again after i unroot it? So that i could flash it to my other devices without root.
Click to expand...
Click to collapse
Your best bet is to post this question within the following Q&A thread that's specific to your device.
https://forum.xda-developers.com/showthread.php?t=2700073
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
ok done, thx 4 the info
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
wee2000 said:
just in case if i missed the reply there, hope someone could reply me here?
when i extract the ZIP file, i got
METE-INF folder
boot.img
system.img
Click to expand...
Click to collapse
Should we search for this firmware or you can provide a link to its thread?
the link is here : https://choimobile.vn/threads/6-0-1-scl23-stock-rom-g900f-full-port-v3-by-huaminhquan93.37412/
wee2000 said:
the link is here : https://choimobile.vn/threads/6-0-1-scl23-stock-rom-g900f-full-port-v3-by-huaminhquan93.37412/
Click to expand...
Click to collapse
Generally, if it's 6.0.1 and rooted systemlessly, you need to replace boot.img with a stock one and remove SuperSU app from system.img.
This ROM intended to be flashed from TWRP, so it's an ext4 image.
You can mount it to a linux system on your PC and remove anything you want.
I havent done anything like this before. Could u give me some links or guides? My PC is running Windows 10.
wee2000 said:
I havent done anything like this before. Could u give me some links or guides? My PC is running Windows 10.
Click to expand...
Click to collapse
Ok, here' a simpler way:
1. Make changes on one phone.
2. Make a TWRP backup of boot and system partitions.
3. Restore this backup on other phones. They must have TWRP installed, a 6.0.1 bootloader and modem.
You'll have to rename backup's folder path and to wipe cache/data/system before restore.
can i use winrar to extract & compile the rom, without linux? So that i will have a much faster flashing process for all other units..
wee2000 said:
can i use winrar to extract & compile the rom, without linux? So that i will have a much faster flashing process for all other units..
Click to expand...
Click to collapse
Ok, I've managed to download that ROM at last.
The things look even simpler.
To prepare an "unrooted" ROM:
1. Download the zip form this post and unpack updater-script somewhere.
2. Make a copy of V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip, open it with Windows Explorer and replace V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip\META-INF\com\google\android\updater-script with the file you've unpacked from the attachment.
3. Try to flash ans see if it's what you need.
thx so much, already passed all units to the buyer. ill try that on next batch restock, may iknow if there's a way to get the service menu shortcode *#0*# to work again? This rom doesn't has the service menu.
bbsc said:
Ok, I've managed to download that ROM at last.
The things look even simpler.
To prepare an "unrooted" ROM:
1. Download the zip form this post and unpack updater-script somewhere.
2. Make a copy of V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip, open it with Windows Explorer and replace V3.G900F.STOCK.FOR.SCL23.FULL.MINHQUAN.zip\META-INF\com\google\android\updater-script with the file you've unpacked from the attachment.
3. Try to flash ans see if it's what you need.
Click to expand...
Click to collapse
I've replaced the updater-script in the zip file, but supersu is still there

Categories

Resources