[SOLVED] Trouble making update.zip - Galaxy 3 Q&A, Help & Troubleshooting

Having some trouble making an update.zip for our phone. I was making my first update.zip by trying to push an apk file into /system/app. Below is the content of updater-script.
ui_print("Installing Titanium Backup6.0.2");
package_extract_file("system/app/TitaniumBackup602.apk","/system/app/TitaniumBackup602.apk");
set_perm(1000, 1000, 0664, "/system/app/TitaniumBackup602.apk");
ui_print("Done.");
Everytime I flash it gives an Installation aborted error. also I am confused about the update-binary file.Some say we should just copy paste the working binary file into our update.zip but I have two files(each of different sizes) both working with the zips they came along but surprisingly I am still getting the same error.
Any more info required? Please help.This is really frustrating.

Re: [Q] Trouble making update.zip
just use Notepad++ for editing updater scripts otherwise u will allways have errors in cwm when you try to flash it....
Sent fom my S-II running Vanilla Rootbox >>Nightly (2013/03/31)<< powered with DorimanX kernel v. >>9.12<<

Re: [Q] Trouble making update.zip
I used gedit on ubuntu.
You read my post :what:click Thanks to undo

Related

[Q] Include Bali Kernel in a ROM I'm building?

I'm attempting to build my first ROM and I'm curious how to add a kernel to the ROM.
(more specifically, Bali)
Any help is appreciated.
i cant answer your question, but if you need any help, let me know and i will help out any way i can
In updater script
Code:
set_perm(0, 0, 755, "/tmp/updates/redbend_ua");
ui_print("++ Installing kernel");
run_program("/tmp/updates/redbend_ua", "restore", "/tmp/updates/zImage", "/dev/block/bml7");
You'll need redbend_ua and zImage which you can find in the updates folder of other roms. I'd ask a dev if you can use them. I can't believe it's not butter uses them.
FBis251 said:
In updater script
Code:
set_perm(0, 0, 755, "/tmp/updates/redbend_ua");
ui_print("++ Installing kernel");
run_program("/tmp/updates/redbend_ua", "restore", "/tmp/updates/zImage", "/dev/block/bml7");
You'll need redbend_ua and zImage which you can find in the updates folder of other roms. I'd ask a dev if you can use them. I can't believe it's not butter uses them.
Click to expand...
Click to collapse
Alright, but before doing that...I'm getting an error when trying to flash the custom ROM in CWM.
E: Error in /scard/test1.zip
(status 6)
Installation aborted.
Any ideas?
http://lmgtfy.com/?q=cwm+status+6
First thread 3rd post
FBis251 said:
http://lmgtfy.com/?q=cwm+status+6
First thread 3rd post
Click to expand...
Click to collapse
Yeah I saw that, except I have no idea how to fix it.
If you use notepad++, open the updater script, go to Edit > EOL Conversion > Unix format. Do that for any other text files/scripts you have.
Thanks, but where is the updater script?
hahah sorry this is my first time making a ROM
META-INF\com\google\android\updater-script
Thank you!

[Q] howto install UOT Files?

Hallo, I´ve problems installing UOT Themes via the recovery (clockwork mod 5.0.2). Trying to install the .zip files throws me "error 0". In the kitchen I have read to substitute a certain file from the rom, but having done this the installer aborts without doing anything. I can manually substitute the framework.res file via rootexplorer, but this isn´t elegant and annyoing.
Does anybody have experiences with this problem or a solution to this?
TIA
Marcus4Aspern
Yeah what I do is once I've done the theme downloaded it I get the update-binary file from the rom I'm using which is here in the zip file \META-INF\com\google\android\ and then exchange it with the one in the zip file from the kitchen and then flash it with CWM. I've done that with every theme I've done and its worked every time

[Q] (Stock Deodexing) -- boot.img failure on update.zip flash? Fix, Replace? Re-Zip?

I have a ZTE990 avail.
Currently I'm rooted with no other roms installed, simply stock, and odexed.
I've tried to manually de-odex using baksmali, Xultimate, etc. All were a pain, all wouldn't work properly.
I found someone and downloaded someone who just simply uploaded a Stock_Deodex.zip rom. Sounded perfect.
So I boot into CWM, try to update and...
assert failed: write_raw_image("/tmp/boot.img","boot" android
Click to expand...
Click to collapse
Since I have stock.. and am just trying to De-Odex.
Can I just unzip the Stock_Deodex.zip, delete the current (apparently faulty) boot.img, and replace it with one of the ones created with the cwm recovery, re-zip and attempt to update as usual?
Or since (if my understanding is correct), the only thing necessary for a system to become deodex is the files in /system/app and /system/restore.
Obviously when I un-zip stock_deodex.zip I have access to them. Could I possibly just replace the two folders (somehow?) and be properly de-odexed?
Any other options that I could use that'd be best?
Much appreciated to anyone who helps, thanks!

[Resolved] Help Creating a Flashable Zip for AOSP MMS (5.0)

Before the eye rolling starts, please note i've Googled and searched for a solution on XDA extensively, with very little help concerning creating a flashable Zip file for Lollipop. Most of the guides and results dealt with KK and lower...
I'm attempting to create a flashable zip for the modified version of the Lollipop AOSP MMS app (located here: https://www.androidfilehost.com/?fid=95832962473398790). I've done this in the past with Jellybean and KitKat, but this time the app, for whatever reason just simply won't flash. No errors come up in recovery, but upon reboot, the app won't be installed.
I've concluded that the reason the app won't flash is the way I have my flashable zip structured.... Or the Updater Script is written wrong.. I've had this problem in the past and rectified it by placing the corresponding META-INF file into the apk itself before placing it in a flashable zip, but this hasn't fixed the issue this time around. The apk in the link above installs itself into the following directory when installed using a file explorer:
Code:
/data/app/com.android.mms-1
If I place the modified apk into the same exact directory in a flashable zip (along with the META-INF folder). An example of what I've done can be downloaded Here, for those interested in dissecting the zip. The only difference is the apk loaded in that zip is the original apk that I know works, not my modified one, as it isn't complete yet.
For reference, I took a look at the CM12 Gallery flashable zip which installs itself in this directory:
Code:
/system/app/Gallery2
Please note that the apk decompiles and recompiles with no issue, so unless APKtool (newest version) screws something up without throwing an error, I doubt that's the issue.
Really need some guidance on this one. I'm excited to see what I can do with this MMS app as I have done in the past with the KK AOSP MMS application. Any help would be greatly appreciated.
Resolution:
I've constructed a perfectly functioning flashable zip (not the ones above) after a few more trial runs. The problem actually seems to be with Apktool not compiling or decompiling the apks correctly. Basically the problem is APKtool.

[Request]Full tutorial to make flashable zip FROM SCRATCH

Hii devs,
I'm a budding developer. I've been trying to make a flashable zip since long time. Came across many tutorials, resources, apps, and a lot more! But none of them seemed to help me make a flashable zip from scratch.. All tutorials either provide a dummy (sample) zip or suggest an app or are incomplete.. But still I haven't been able to find a helpful resource..
My situation:
I made two directories: META-INF & data.
Wrote the updater-script
Added it in META-INF/com/google/android
Verified the syntax of updater-script, everything seemed fine.
Added the required stuff in the data directory.
Compressed the directories (both using normal "New Zip Archive" from Desktop as well as 7Zip).
Signed the zip.
[*]NOW COMES THE PROBLEM: THE update-binary
Tried a lot of resources to obtain the update-binary, took it from a cm nightly for my device, from a dummy zip (which I was able to flash successfully), downloaded it from a tutorial, used an app to make a flashable zip and took out the update-binary from it
BUT STILL NO LUCK
I always get an error in the TWRP recovery:
Code:
E: Error executing update-binary in xxx.zip
Even posted threads in XDA forums, but got replies suggesting me to use ZipMe app..
I humbly request you to provide me a full-fledged tutorial for making a flashable zip, or correct me if I'm going wrong in any step..

Categories

Resources