How to use update-binary to change things? - Android Q&A, Help & Troubleshooting

The Pixel XL cannot use the typical TWRP flashable zip. It needs heavy modding.
I'm using Chainfire's TWRP flashable zip to do things to my phone.
But he doesn't use updater-script, he uses update-binary to make changes on the phone.
I need to edit the update-binary to copy some files to the phone, change their permissions and then also update the build.prop a little.
Could someone link me to a guide for editing update-binary to make changes to the phone?
I'm finding tons of info on updater-script but none of those mods work in update-binary.

Related

Pack a custom rom

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

Making CWM flashable files

I would like learning to make flashable files for executing various tasks.
For example:
- to move some files from for example sdcard to system directory and rewrite existing one
- to execute already made .zip file
And all that in one file...
Can you point me some good resources for this, and everything needed to know...
Thanks
TwinHeadedEagle said:
I would like learning to make flashable files for executing various tasks.
For example:
- to move some files from for example sdcard to system directory and rewrite existing one
- to execute already made .zip file
And all that in one file...
Can you point me some good resources for this, and everything needed to know...
Thanks
Click to expand...
Click to collapse
Here you go:
- [GUIDE] how to make a flashable package (update.zip)
- [GUIDE] How to make a cwm recovery flashable zip
And there should be even more resources. Use a Google search.

[Q] Can you make a recovery zip that alters .xml or other system files?

So I know that I can make a recovery zip to install packages, but I was wondering if I can make a zip that will extract and replace database files on my phone that are not packaged. The reason I want to do this is so that when I flash a new ROM, I can easily restore certain phone settings like altered APN databases. Thanks
Theoretically u can, by writing a bash script to handle the job and instructing the updater-script to run the bash script.

[Q] Help needed for merging of different MODs

Hello all,
does somebody have a instruction/faq how to merge different MODs into onw ZIP.
Why? Because i am flashing round about 4 MODs after a Custom firmware update.
I want to Merge the following MODs:
- 12_headphone_shortcuts_mod_v0.1.zip
- Camera_HX-MOD_1.52_CWM.zip
- CWM_SecLauncher2_Mixed_5x5_5x6_SCR_on.ELKC.zip
- XXELLA SystemUI.zip
- SGS_3.zip (Picture for XXELLA SystemUI.zip
- Sihay Kernel
I have already taken a look into the ZIPs, but have a problem in understanding the structure of the ZIPs.
In some zips i have a different update-binary file.
The updater script is different to each other. Seems for me that this is the file with the commands which have to be used for updating process.
The Manifest.MF and CERT.SF file seams to have hashs of the files (SHA1-Digest). These differ from Zip to Zip even when the same filename is used.
Read here something about a signing of the Zip.
Is this need for/after merging the Zips?
Could somebody help me with the steps which have to be done to merge the Zips.
I want to learn how it has to be done. I donĀ“t want a ready to use Zip file.
I already searched for instructions but have not found a concrete instruction/faq for the merging of ZIPs.
Best regards
Jake555
PUSH

How to generate update-binary for flashable zip?

Hi all, almost always after installing new CFW i have to delete annoying stock apps, so i think, that with flashable .zip that would be easier. I have created updater-script, but i need update-binary for it's work, right? So, anybody knows, how to generate it or smth? Thank you

Categories

Resources