REQ: To understanding & Building custom Meta INF with Updater Script - Xperia SP Q&A, Help & Troubleshooting

Pardon me..
I was wondering to have a fresh flashable zip from stock FTF by trying to put and or remove some app like supersu or theme ..
But during flash it ended up with various errors like >> symlink error / perm error <<
On display the android bot being really sick by holding an error on it's chest
I found a little discussion about the META-INF, but I believe it's a problem occurred by META-INF and or updater script.
I was using various meta folder extracting from various custom rom.
Failed & failed.
It would be great if some clarification would come from expert and or experienced people.
Advanced thanks.

zYuga said:
Pardon me..
I was wondering to have a fresh flashable zip from stock FTF by trying to put and or remove some app like supersu or theme ..
But during flash it ended up with various errors like >> symlink error / perm error <<
On display the android bot being really sick by holding an error on it's chest
I found a little discussion about the META-INF, but I believe it's a problem occurred by META-INF and or updater script.
I was using various meta folder extracting from various custom rom.
Failed & failed.
It would be great if some clarification would come from expert and or experienced people.
Advanced thanks.
Click to expand...
Click to collapse
Editing update-script would require a minimal knowledge on Linux terminal and Linux file system. About update-binary, you can copy from any other Xperia SP's flashable zip. If you were trying to flash the ftf through cwm or, a zip through flashtool, it will not work! Please attempt this tutorial instead if you wish to create a stock ROM zip.
If you really want to get advanced like you have mentioned, use this guide as a reference. Unfortunately I don't use that one, so I might not be able to help you with that.

Related

[?] How do you "sign" a .zip file?

I grabbed a ROM from here and deleted some unwanted apps, and added a couple that I wanted so I wouldnt have to do it after I flashed and zipped it back up. When going to flash it to my phone I get a "E: No signature (830 files)... E: Verification failed. Installation aborted."
Im very new to all this so please dont flame me. Is it simple enough to sign & verify it so I can flash it, or will I have to flash the original and uninstall the unwanted apps via adb?
Thanks in advance.
The Jero said:
I grabbed a ROM from here and deleted some unwanted apps, and added a couple that I wanted so I wouldnt have to do it after I flashed and zipped it back up. When going to flash it to my phone I get a "E: No signature (830 files)... E: Verification failed. Installation aborted."
Im very new to all this so please dont flame me. Is it simple enough to sign & verify it so I can flash it, or will I have to flash the original and uninstall the unwanted apps via adb?
Thanks in advance.
Click to expand...
Click to collapse
You can sign it and then flash. Try this
http://androidforums.com/developer-101/8665-how-signing-roms.html
Jus10o said:
You can sign it and then flash. Try this
http://androidforums.com/developer-101/8665-how-signing-roms.html
Click to expand...
Click to collapse
Thanks man! I got it all resigned and went to flash but now it got all the way to "Installing update..." then I recieved a "E:Can't find update script Installation aborted."
I guess I'm going to have to do a lot of forum searching and reading to get this running!
Jus10o said:
You can sign it and then flash. Try this
http://androidforums.com/developer-101/8665-how-signing-roms.html
Click to expand...
Click to collapse
Just to add a little more info if your using someone elses updatezip make sure you delete the apks sha1 or anything else you aren't using out of the manifest. also avabox works great. all in one tool for signing apps unyaffs and so fourth
The Jero said:
Thanks man! I got it all resigned and went to flash but now it got all the way to "Installing update..." then I recieved a "E:Can't find update script Installation aborted."
I guess I'm going to have to do a lot of forum searching and reading to get this running!
Click to expand...
Click to collapse
You need to zip the contents of the rom folder, and not the folder itself. Go into the ROM folder, select all the files (system, boot.img, meta-inf, etc) and zip it that way. Then, sign THAT zip, and you're good to go.
HeroMeng said:
You need to zip the contents of the rom folder, and not the folder itself. Go into the ROM folder, select all the files (system, boot.img, meta-inf, etc) and zip it that way. Then, sign THAT zip, and you're good to go.
Click to expand...
Click to collapse
I'm editing the update-script with Word Pad, then re-saving it. Is this the wrong way to do it?
I'm getting an error (Status 6) when I run my .zip update, every time.
http://forum.xda-developers.com/showthread.php?t=763406
i just put this up bro check it out
Thank you now I learned how to sign roms I just modded...
Problems signing with stock recovery
I am trying to reuse an old LG L45C and I need to flash the stock rom however I get "E: failed to verify whole-file signature" Could anybody sign this for me?
https://www.dropbox.com/s/04o8d0har828chm/Stock_L45C_Rom.zip?dl=0
I am on the stock recovery <3e>
I'm trying to make a file package that will install a file manager and terminal emulator. The device only reads a file package that has am zip md5 and zip sig. Can anyone help me set up something like this

Problems with my custom Rom?!

Hi all,i have a big Problem with my custom Rom.
First if i install my Rom with Rom Manager i run always in the same error
E:Failure at line 6: symlink toolbox SYSTEM:bin/cat
i have toolbox in my system/bin folder and i think my update-script is also ok!?
Then i have a another Problem with deodexing InfoAlarm.apk(system/app) and core.jar (system/framework) any ideas? Tool i used is dsixda's kitchen.
with the newest smali baksmali(1.26) 1.25 hasnt worked too.
Many thanks in advance!
At a guess - you need to provide more details if noone has been able to answer your question
post up the script and your rom somewhere and link to it and let people actually have a hack at whats wrong - without knowing what your doing - no one can tell you where you went wrong...

[Q] Unable to flash UOT zip

Hey guys, I've looked around and haven't found any reason why I SHOULD'NT be able to flash a custom theme from the Ultimate Online Kitchen, so I'm posting for suggestions as to why I am getting this error when trying to flash this... here is the error message I keep getting:
Installing update...
E:Error in /sdcard/Flashing/Themes/UOT-08-25-17-41-1.zip
(Status 0)
Installation aborted.
I also tried flashing it from the root of the SD card with the same results.
At the kitchen I am using the Type MTD (default) update binary...
Looking forward to your suggestions, maybe I have my settings wrong in the kitchen
From the how-to page:
WORKAROUND for recovery error (Status 0):
1. Unzip your ROM and find
META-INF/com/google/android/update-binary file
2. Put this file in the UOT zip (overriding UOT's file)
Click to expand...
Click to collapse
I saw that in the How TO section and tried different ways:
1: Just dragging the file (update-binary)to root of the zip
2: Navigating in the zip to where the update-binary is and dropping it in there
3: Unpacking the zip and placing the file in the root of the zip
4: Unpacking the zip and replacing the file in the zip with the one from my rom
They all yield the same results (I'm pullin' my hair out) because the 2nd technique should've worked
did you ever figure out how to make this work?
My bad fellas, I should've posted back that I got this resolved...
I eventually downloaded a fresh copy of my ROM, unzipped the entire thing instead of just dragging out the file I needed.
I then deleted the file I was replacing with the one I got from my ROM and it went fine (after about 10 tries).
I also flashed my recovery to my phone and the amss and the dsp1...
Anyway, now I'm a cookin' fool changing themes every other day
cdzo72 said:
My bad fellas, I should've posted back that I got this resolved...
I eventually downloaded a fresh copy of my ROM, unzipped the entire thing instead of just dragging out the file I needed.
I then deleted the file I was replacing with the one I got from my ROM and it went fine (after about 10 tries).
I also flashed my recovery to my phone and the amss and the dsp1...
Anyway, now I'm a cookin' fool changing themes every other day
Click to expand...
Click to collapse
Hi, I am from CR too
I am trying to do this but no luck
Galaxy S2 i9100
Ice Cream I9100XXLPQ
I have the file but when I try to install it I get the error (Status 0)
I understand this:
WORKAROUND for recovery error (Status 0):
1. Unzip your ROM and find
META-INF/com/google/android/update-binary file ----->> What do they mean to unzip the ROM?? I installed ICS from a .tar.md5 file and it is without folders (opening with Winrar). I also searched in the phone with root explorer and didn't find META-INF....
2. Put this file in the UOT zip (overriding UOT's file)
PV!
mrfmanuel said:
Hi, I am from CR too
I am trying to do this but no luck
Galaxy S2 i9100
Ice Cream I9100XXLPQ
I have the file but when I try to install it I get the error (Status 0)
I understand this:
WORKAROUND for recovery error (Status 0):
1. Unzip your ROM and find
META-INF/com/google/android/update-binary file ----->> What do they mean to unzip the ROM?? I installed ICS from a .tar.md5 file and it is without folders (opening with Winrar). I also searched in the phone with root explorer and didn't find META-INF....
2. Put this file in the UOT zip (overriding UOT's file)
PV!
Click to expand...
Click to collapse
I have a i9100 also and you really don't need the kitchen because there so many themed ROMs out there. If you like send me a private message and will contact you with pointers on getting the most out of your i9100

creating a zip theme

Hi fellow members,
I have a question about creating zip files.
Can i take the zip file gtkansan, made for the keyboard, extract it and add the folder structure for my theme apk's, dump it back in the zip file and then install it?
or is there more to creating an install able theme zip?
Thanks
Hi All, I'm hoping someone is kind enough to lend me a hand with my zip file.
I have used several working zip files and replaced only my files left the structure the same, and always get error 6.
I read that it could be a unix encoding issue and to use notepad+++ ( i only use notepad+++)
So i then started doing all my zip modding in linux.
I still get the error 6.
can some please help?

[TOOLS][script] ROM Tools v2 (Kernel Extractor)(BML15 IMG backup)

ROM Tools v2 ​
Version 2 BETA
v2b (Officially v2)
Linux Script
by iamareebjamal
Automated Android script for extracting boot.img and bml15 partition​
My PC has issues so I can't use it to build mods and scripts, also, I have a very slow internet connection. That's why I don't upload my ROMs. Provided, I build EACH and EVERY one of my mod on my mobile, including those long scripts with repeating commands and making it easy for other guys to use, I could've just created a script with two commands which rendered error if used incorrectly, but I make it noob proof in every way possible so that there are minimum errors from your side and if something gets wrong, you know what it is. Even uploading 5 mb of mod makes it very difficult as I have to reupload if it fails. Writing scripts on mobile is not easy, you'll know if you have done it, it takes hours. Also, these colorful and easy guides are also made on mobile by writing BB codes ONE BY ONE by hand.
I am telling you because a person day before yesterday posted my Amazing Sounds Mod in another forum without my permission. However, he has removed it now. My work is fully open sourced for you to learn and make your own mods. But taking part of my work and posting as yours is not appreciated.
The MOST you can give me is love, prayers and Thanks
Click to expand...
Click to collapse
Out of the time I was absent from XDA(13 hours ) , I was searching for a method of extracting the kernel from your ROM
Imagine, you want to extract boot.img from your ROM but don't know what to do, you don't have internet to download the stock or custom kernel or simply want to extract it?
I did not find anything except the solution of Android Kitchen but what if you want to do it on your android?
As a bi product of this search, I got a lot of knowledge about the partitions used by Android system and the blocks that define them.
I also got basic knowledge about Linux Scripting.
So, I created this script that backs up your boot.img and bml15.img partitions.​
​ boot.img - kernel of your device
bootextractorv2.sh - Backs up your kernel
bml15.img - IMEI partition
bml15extractorv2.sh - Backs up your IMEI partition
Note:- SGY Toolbox also backs up and restores bml15_EFS.img. And that also with a nice user interface, I just created this mod, because I wanted to but I recommend newbies to use SGY Toolbox for backing up IMEI
However, I found no tool able to backup the kernel, so it may be very useful for some members
ChangeLog
Code:
*More Interactive
*More Intelligent
*Added Option to create Odin Flashable Tar package for kernel
*More Convinient
Requirements :​
Root Acess
Busybox
Android device
Hands
Terminal Emulator or Script Manager
(Script Manager recommended)​
Instructions​
Script Manager Method (Easy):-
1. Download Script Manager.
2.Download desired script and place it on sdcard.
3. Open Script Manager and enable browse as root.
4. Go to the downloaded script and click on the green android icon(root) in the pop up window.
5. Click on Run. Follow Instructions and enjoy
Terminal Emulator Method (Hard):
1. Download Terminal Emulator.
2. Download desired script and place it in the root of the sdcard.
(You can place it anywhere else but the directory should not have spaces and you will have to change the commands accordingly)
3. Open Terminal Emulator and type (After every command you have to press enter)
Code:
su
And Grant Root Access
Then, type
Code:
sh /sdcard/bootextractorv2.sh
or
Code:
sh /sdcard/bml15extractorv2.sh
according to the the script you want to run
4. Now, follow the instructions on screen and enjoy
Download bootextractorv2.sh
Download bml15extractorv2.sh​
Credits :
Miscellaneous Google search posts showing how to write Linux Script
Me for writing the script
Rafael.Baugis for source
Ryuinferno for guide
Reserved
I'll test on S5830 and report asap
edit: Script wouldn't run on S5830 with script manager. With terminal emulator it dumps an empty boot.img
daxanh said:
I'll test on S5830 and report asap
edit: Script wouldn't run on S5830 with script manager. With terminal emulator it dumps an empty boot.img
Click to expand...
Click to collapse
kernel partition of s5830 is different
Give me the Partition
And I will make the mod
V2 completed
Uploading ASAP
OP Updated
v2 released
nice work man...thaks a lot
Sent from my GT-S5830i using xda app-developers app
He didn't really mean the love and prayers.
Nabs Zains said:
He didn't really mean the love and prayers.
Click to expand...
Click to collapse
lol
ROFL
You disclosed my secret Nabs
:good: simple & important... all ace_i owner should get this before 'cooking' ur device...
nice tool for kernel backup... :good:
Doesn't work for me, S5830i stock firmware. If I use script manager method, a lot of "not found" messages, and finally the boot folder is empty. I give script manager root permission. And if I use a terminal emulator, the same error messages, finally there is a 5MB boot.img file, but "untouchable". I can not copy in any other folder. If I connect to PC, boot.img is missing. Appears again in the mobile when I disconnet the USB. I can not change file permissions with root explorer....
Also when the script ask if I want to create a zip file for recovery, I select 1 and I get "bad integer, run again"
Thank you
puntillero said:
Doesn't work for me, S5830i stock firmware. If I use script manager method, a lot of "not found" messages, and finally the boot folder is empty. I give script manager root permission. And if I use a terminal emulator, the same error messages, finally there is a 5MB boot.img file, but "untouchable". I can not copy in any other folder. If I connect to PC, boot.img is missing. Appears again in the mobile when I disconnet the USB. I can not change file permissions with root explorer....
Also when the script ask if I want to create a zip file for recovery, I select 1 and I get "bad integer, run again"
Thank you
Click to expand...
Click to collapse
You have busybox?
If no,
You can't run it
Yes, and the script founds it (it says). Finally I zipped boot.img with root explorer and that zip file could be copied to the PC. Guess the file is ok. Thanks.
puntillero said:
Yes, and the script founds it (it says). Finally I zipped boot.img with root explorer and that zip file could be copied to the PC. Guess the file is ok. Thanks.
Click to expand...
Click to collapse
Why you zipped it?
English is not my language. I explained that boot.img was untouchable. I tried to copy to computer and I always got writing errors. Rebooting wasn't useful. Permissions couldn't be changed with root explorer.. The file was there, but couldn't do anything with It. Tried to zip it and it worked, and I copied the zip to my computer..
puntillero said:
English is not my language. I explained that boot.img was untouchable. I tried to copy to computer and I always got writing errors. Rebooting wasn't useful. Permissions couldn't be changed with root explorer.. The file was there, but couldn't do anything with It. Tried to zip it and it worked, and I copied the zip to my computer..
Click to expand...
Click to collapse
Sure that there is problem in busybox applet sync
I don't know why script couldn't detect it
I don't know what the problem was. I installed, not without many problems, the last busybox available, and everything worked ok. Out of curiosity, I compared boot.img file extracted with "problems" and the boot.img extracted now cleanly, and are identical.
Regards
[Q] IMEI backup work on GT-S5570 Galaxy Mini???
Sent from East Borneo Isand use Honey Bear's Phone
S5570 has another partition table
So no
Sent from my GT-I9100 using muffin premium

Categories

Resources