(Q). Unpacking and repacking boot.img - Kindle Fire General

Hi all.
I,m trying to do some alterations on a roms updater.script and the boot.img file located in (andriod/omap4430.)
Here's what I'm doing.
Editing the updater.script by double clicking on rom.zip and opening up the file, then navigating to the updater.script file opening and editing then pressing save. ( I think I'm doing this bit right).
I'm using a kitchen to make a working folder then placing rom with edited updater.script inside.
Then extracting boot.img/ramdisc .
Then Modding the file init.omap4430.rc, saving and repacking
Then rebuilding rom
Installing on sdcard and then flashing.
The error code on install are as follows
Installing update update...
E:Error in /sdcard/romname.zip
(Status 6)
Install aborted
I think I'm unpacking/repacking wrong as I've tried as an experiment to just unpack a working rom and then repack it without any editing and this also won't install without errors.
I'm actually trying to edit all this to use a rom on a dual boot partition.
Any guidance would be much appreciated
Thanks
Steve
sent from my ever evolving kindle fire

lovejoy777 said:
Hi all.
I,m trying to do some alterations on a roms updater.script and the boot.img file located in (andriod/omap4430.)
Here's what I'm doing.
Editing the updater.script by double clicking on rom.zip and opening up the file, then navigating to the updater.script file opening and editing then pressing save. ( I think I'm doing this bit right).
I'm using a kitchen to make a working folder then placing rom with edited updater.script inside.
Then extracting boot.img/ramdisc .
Then Modding the file init.omap4430.rc, saving and repacking
Then rebuilding rom
Installing on sdcard and then flashing.
The error code on install are as follows
Installing update update...
E:Error in /sdcard/romname.zip
(Status 6)
Install aborted
I think I'm unpacking/repacking wrong as I've tried as an experiment to just unpack a working rom and then repack it without any editing and this also won't install without errors.
I'm actually trying to edit all this to use a rom on a dual boot partition.
Any guidance would be much appreciated
Thanks
Steve
sent from my ever evolving kindle fire
Click to expand...
Click to collapse
Your not signing the zip after you repackaged it. Turn off signature verification in recovery
Sent from my Kindle Fire using Tapatalk 2 Beta-5

thanks ill try when i get back
Sent from my Galaxy Nexus using xda premium

ok
i've tried with both options signed & unsigned, still get errors.
i'm going to have another go and try to post log of boot.
thanks again

Related

Editing comments in updater script

I have smoki rom(for example). I'm open it in winRAR, and extract updater-script file. I'm edit comments and save changes. If I copy modified updater script file to smoki rom will it works correctly?
your using windows so you need to edit it in notepad++ otherwise it fails
So, if i use notepad ++ for this all will works?
yes it should
E:Wrong digest:
META-INF/com/google/android/updater-script
E:Verification failed
I'm only delete some lines ui_print.
did you resign the rom? you need to do that
How i can sign the rom(or another update file)? In occasion ask: have I to perform Partitioning HOW TO REVERT BACK TO STOCK when I want to upload the rom other than smoki(rcmagic v4.2 for example)?
sign the rom with auto-sign, you can search it in the g1 forum, i cant remember which thread
i like update zip packager 2 better
auto sign doesnt work for me on cm6
here:
http://forum.xda-developers.com/showthread.php?t=717437
well i only knew of the other hehe, but just something to sign it

[TOOL][ROMDEV] working baksmali for honeycomb

I recently made a discovery regarding the RETURN_VOID_BARRIER issues encountered while trying to deodex honeycomb's framework. Here is a working version of baksmali based on JesusFreke's 1.2.7 patch with the difference that it now produces compliant smali code that can be recompiled by smali.jar 1.2.6. This means that there is no need to edit the smali code to be able to recompile it.
I tried recompiling with smali 1.2.7 and got a nice box of bootloops so stick with 1.2.6 until a proper fix is implemented in the official smali tools.
Thanks! This was most useful for my project today!
I'm really amazed more people haven't noticed/commented on this TBH.
NetworkLocation.odex still give errors.
Thats the error:
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/android/location/provider/GeocodeProvider;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:668)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:282)
Error while loading class Lcom/google/android/location/GeocodeProvider; from file NetworkLocation.odex
Error while loading ClassPath class Lcom/google/android/location/GeocodeProvider;
I'm also getting errors on galaxy tab 10.1, framework was done without any problem but many of system app can not deodex
Thanks,the proeblem I meet is solved.
trying to download this file, it downloads as a zip, shouldnt it be a jar? I have tried renaming it to jar and it says its corrupt. help?
fallingup said:
trying to download this file, it downloads as a zip, shouldnt it be a jar? I have tried renaming it to jar and it says its corrupt. help?
Click to expand...
Click to collapse
I think you have to unzip it first. Have a peek inside.
sent from my cyanogen(mod) vision
gee one said:
I think you have to unzip it first. Have a peek inside.
sent from my cyanogen(mod) vision
Click to expand...
Click to collapse
its the contents of a .jar file...
fallingup said:
its the contents of a .jar file...
Click to expand...
Click to collapse
It's a zip of a jar file. The jar file is a zip like format, so maybe whatever you are using to unzip is a bit aggressive? Try something milder
sent from my cyanogen(mod) vision
gee one said:
It's a zip of a jar file. The jar file is a zip like format, so maybe whatever you are using to unzip is a bit aggressive? Try something milder
sent from my cyanogen(mod) vision
Click to expand...
Click to collapse
Thanks for gettin me outta my n00b moment silly osx unzipped it and made it seem like just one zip file, its been too long since ive done any dev work on my mac
Yeah, it happens. When I want to peek at something on my mac, sometimes it goes into a loop where it unzips to a tar.gz and then when I try to open that, it opens up a zip. Infinite loop!
It works fine from the terminal command line and zipeg seems to do a good job.
sent from my cyanogen(mod) vision

[Q]Remove kernel installation from roms

Is there a way to remove kernel installation from a rom? Id like to try installing some fascinate GB roms over our Froyo kernel but most of the Fascinate GB roms include a kernel installation which I would like to avoid (for obvious reasons).
Basically what I want is a ROM only install no kernel.
Or better yet does anyone have our 2.2.2 kernel (just the kernel) in a flashable odin package?
Im only experimenting so no flaming..
Thanks
Yup, there is for either option too xP
Which option do you choose?
Sent from my SCH-I400 using xda premium
If you have the 2.2.2 kernel in an odin package I'll take that.. But for the sake of education I'll take both if you have the time to explain..
+1 for you
Thanks!
Alright, here is the 2.2.2 kernel only Odin Package Can you check now as a test to make sure it works? haha I didn't test it myself
http://www.mediafire.com/?qgkh35439o79sjl
and alright, here is how you can remove flashing the kernel in those packages...
First, open up the package in 7zip...
Delete the Kernel_Update folder, or something named closely to such, on the root of the zip
Then go to META-INF\com\google\android, and copy the updater-script to your desktop
open it up with Notepad++ or another advanced text editor (*Important!) and delete all the lines that look connected with the kernel...
The most important lines are "package_extract_dir("kernel_update"" and "run_program("/tmp/kernel_update/bmlwrite"" lines
K ill give it a try and let you know.
Sent from my SCH-I400 using XDA App
*Edit* Kernel works just fine.
I deleted the "updates" folder which contained a zImage file, redbend.ua, and modem.bin file. However in the META folder there were no instances of the word 'kernel' found. Just references to run the installer for the formentioned 'updates' folder which I deleted.
Should I just delete the 'zImage' file which I'm assuming is the kernel and leave the script to install the redbend.ua and modem.bin files?
Much Appreciated! :highfive:
trailblazer101 said:
Alright, here is the 2.2.2 kernel only Odin Package Can you check now as a test to make sure it works? haha I didn't test it myself
http://www.mediafire.com/?qgkh35439o79sjl
and alright, here is how you can remove flashing the kernel in those packages...
First, open up the package in 7zip...
Delete the Kernel_Update folder, or something named closely to such, on the root of the zip
Then go to META-INF\com\google\android, and copy the updater-script to your desktop
open it up with Notepad++ or another advanced text editor (*Important!) and delete all the lines that look connected with the kernel...
The most important lines are "package_extract_dir("kernel_update"" and "run_program("/tmp/kernel_update/bmlwrite"" lines
Click to expand...
Click to collapse

[Q] Custom Rom invalid .zip

hi guys!
First of all : I'm new to the custom rom scene development. I do know how to flash and so..
So i've installed cygwin and the android kitchen. I took the stock rom provided to me by the manufacturer, i was able to set up the working folder. Then I did : "Build ROM from working folder", without making any changes to apk's or something like that.
When i got the update.zip file i tried flashing it with a recovery and using the update.zip in /sdcard method. The first method just stopped after verifying, the second method said it was an invalid package.
I believe there is something wrong with the signing of the rom. Could you guys help me out?
Thx!
Check type of script used in update.zip
tcornelis said:
hi guys!
First of all : I'm new to the custom rom scene development. I do know how to flash and so..
So i've installed cygwin and the android kitchen. I took the stock rom provided to me by the manufacturer, i was able to set up the working folder. Then I did : "Build ROM from working folder", without making any changes to apk's or something like that.
When i got the update.zip file i tried flashing it with a recovery and using the update.zip in /sdcard method. The first method just stopped after verifying, the second method said it was an invalid package.
I believe there is something wrong with the signing of the rom. Could you guys help me out?
Thx!
Click to expand...
Click to collapse
Did u signed the update.zip while exporting rom using cygwin menu. ?
If you didnt sign it will notify that is invalid
But there might be some other kind of issue like
1. Cygwin provides updater_script and update_script in update.zip package it contain all information reguarding flashing
check that your device require which type of script .
let me know your responce.
Press thanks button. if this helped

Need help in Porting Rom

Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
i had similar issue, didn't flash the system & boot.img. Creating Zip on different platform fixed it.
Wizardlysense said:
i had similar issue, didn't flash the system & boot.img. Creating Zip on different platform fixed it.
Click to expand...
Click to collapse
On which platform did you create the Zip??
I am using Windows 10.
AndroiDTechi said:
On which platform did you create the Zip??
I am using Windows 10.
Click to expand...
Click to collapse
windows 10 pro
Wizardlysense said:
windows 10 pro
Click to expand...
Click to collapse
I am also using Windows 10 Pro. Can you tell me how did you create the zip? I just put all the files like Meta-inf , system , boot.img and others if something more is present into a folder and convert it into a Zip using 7zip. Do i need to do something else??
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
just get the 'update-binary' file from any previous flashable custom roms from meta-inf folder and copy it to yours
tawidhiphoper said:
just get the 'update-binary' file from any previous flashable custom roms from meta-inf folder and copy it to yours
Click to expand...
Click to collapse
I am using CM 12.1 as base for porting and i am using update-binary form CM 12.1 only but still its not flashing
CM 12.1 flashes and works perfectly.
AndroiDTechi said:
I am using CM 12.1 as base for porting and i am using update-binary form CM 12.1 only but still its not flashing
CM 12.1 flashes and works perfectly.
Click to expand...
Click to collapse
can u upload the updater-script?
AndroiDTechi said:
I am also using Windows 10 Pro. Can you tell me how did you create the zip? I just put all the files like Meta-inf , system , boot.img and others if something more is present into a folder and convert it into a Zip using 7zip. Do i need to do something else??
Click to expand...
Click to collapse
i used WinRAR to zip files, no more problems since reinstalled windows
AndroiDTechi said:
Hey guys recently i was trying my hand at porting roms. I have read a lot of guides and i know mostly all about flashing or modifying custom roms or kernel etc. But i am stuck because every time i try to flash my ported rom it gives this error :-
could not find meta-inf/com/google/android/update-binary
Flashing fails after this error. I have already checked that update-binary file is present at the correct location and I am 100% sure i am following all the porting guides completely but still i am getting this error. I have tried 2-3 different guides but every single time i get this error. Can anyone tell me where am i going wrong?
Click to expand...
Click to collapse
u have to create zip by selecting meta inf,system data and many more files
Wizardlysense said:
i used WinRAR to zip files, no more problems since reinstalled windows
Click to expand...
Click to collapse
I prefer android kitchen to zip the rom.. just place the ported files in the "working" folder and zip via android kitchen..it generates the updater script n update binary by default
tawidhiphoper said:
I prefer android kitchen to zip the rom.. just place the ported files in the "working" folder and zip via android kitchen..it generates the updater script n update binary by default
Click to expand...
Click to collapse
I guess it didnt generate it successfully
Use assaydes kitchen bro have u got update script

Categories

Resources