Hey can someone take a look at this updater script and see why it keeps giving me a status 6 error when I try to flash. I made sure it was in UNIX format when usig notepad++ and I tried signing the whole .zip with no prevail. I had to attach as .txt
You made sure to take off the .txt right? Great question huh?
EDIT: Oh and I have no freaking idea.
darkierawr said:
You made sure to take off the .txt right? Great question huh?
EDIT: Oh and I have no freaking idea.
Click to expand...
Click to collapse
Yes I did it just wouldn't let me attach without it. And yeah I cannot for the life of me see why this isn't working... ughhhh!!!!
I can't see nothing either... hopefully someone with more knowledge than me comes along...
Sent from my SPH-D700 using Tapatalk
The_Legendary said:
Hey can someone take a look at this updater script and see why it keeps giving me a status 6 error when I try to flash. I made sure it was in UNIX format when usig notepad++ and I tried signing the whole .zip with no prevail. I had to attach as .txt
Click to expand...
Click to collapse
I just checked it out and, regardless of what you said, it's using Windows-style EOL characters, not UNIX-style EOL characters.
Check out my post that covers this extensively, including how to fix it, in benzyniarz1's [Tool][TLC]UpdatezipCreator topic, which you will probably find to be an interesting tool--especially now that he's fixed it to write UNIX-style EOL characters!
Ok well I kid of figured it out, I got the script running but it was an important chunk I took out. This line
assert(package_extract_file("modem/modem_delta_el30.bin", "/tmp/modem_delta.bin"),
write_firmware_image("/tmp/modem_delta.bin", "modem_delta.bin"),
delete("/tmp/modem_delta.bin"));
Click to expand...
Click to collapse
I also tried adding this line that was in the flashable modem zip
# ---- Flash the modem update ----
Click to expand...
Click to collapse
I tried this after the first line of ui_print and still a no go
# ---- Flash the modem update ----
(tried with and without a ui_print here)
assert(package_extract_file("modem/modem_delta_el30.bin", "/tmp/modem_delta.bin"),
write_firmware_image("/tmp/modem_delta.bin", "modem_delta.bin"),
delete("/tmp/modem_delta.bin"));
Click to expand...
Click to collapse
I tried placing it at the beginning and end but still status 6. I take the line out and POOF!! it magically works. Which is odd sense I got that line from the script in the flashable zip. But it doesn't play nice with any other syntax.
Is this for MTD?
Related
Does anyone know to open and modify the xml files found in the rosie.apk. Im using ubuntu and when opening with gedit it just gives me an error. Thanks Glennlh.
Hey Glenn!
I did a quick google, and what seemed to sort it out is "xml copy editor". I would link to it, but the forum won't let me do that as im a new user.
You'll find it in the repos anyways.
Thanks svirre26, ive tryed the app you suggested but still getting an error. This is what I got "Cannot open /home/glenn/Desktop/Rosie/Rosie.apk_FILES/res/layout/add_setting_widget.xml: conversion from encoding failed". Thanks Glennlh.
will, I did this command:
Code:
file AndroidManifest.xml
and it returned:
AndroidManifest.xml: DBase 3 data file (45148 records)
Click to expand...
Click to collapse
I have Ubuntu too and I looked in APT for a "DBase" editor/viewer.
and I found "dbview", which is a terminal application. I tried:
Code:
dbview AndroidManifest.xml
it just went into an infinite loop without returning anything
I tried other xml files in framework-res.apk and also returned nothing !!
Try it with an hex editor, that always worked for me.
If you JUST want to view, use AXMLPrinter2
adwinp said:
If you JUST want to view, use AXMLPrinter2
Click to expand...
Click to collapse
Thanks everyone I can now read them but does anyone know how to convert them back so they can be put back into the apk. Thanks.
Edit: Found the answer, it looks like it isn't possible apparently the whole source code for the apk has to be recompiled.
glennlh said:
Thanks everyone I can now read them but does anyone know how to convert them back so they can be put back into the apk. Thanks.
Edit: Found the answer, it looks like it isn't possible apparently the whole source code for the apk has to be recompiled.
Click to expand...
Click to collapse
Yes.. that's so sad it makes customizing so much complex
Hi all,
Can someone point out what is wrong with this updater script?
vaibhavknockout said:
Hi all,
Can someone point out what is wrong with this updater script?
Click to expand...
Click to collapse
I can tell you what is wrong with this thread, it belongs in Q&A.
Luckily, I took care of that for you.
Secondly, I don't know if there are more mistakes, but this line:
Code:
package_extract_file("boot.img", "/tmp/boot.img");write_raw_image("/tmp/boot.img", "boot");
is for flashing kernel via recovery which is not possible with Xperia phones.
What are you trying to do and what error does recovery give?
iridaki said:
I can tell you what is wrong with this thread, it belongs in Q&A.
Click to expand...
Click to collapse
LOLMAX!
iridaki said:
I can tell you what is wrong with this thread, it belongs in Q&A.
Luckily, I took care of that for you.
Secondly, I don't know if there are more mistakes, but this line:
Code:
package_extract_file("boot.img", "/tmp/boot.img");write_raw_image("/tmp/boot.img", "boot");
is for flashing kernel via recovery which is not possible with Xperia phones.
What are you trying to do and what error does recovery give?
Click to expand...
Click to collapse
Sorry madam for posting this in wrong thread. How stupid of me........I am trying to learn writing updater scripts and I am modifying CM9's script to do that. Recovery gives me Error 6. I am modifying this in notepad++, I had already checked for newline characters. Since I am a newbie in porting and stuff, I don't even know whether I need to make a new update-binary for every change I make in updater-script. I searched for hours on google about this problem but with no sucess. I never felt this miserable...
Sorry again for the wrong section.
vaibhavknockout said:
Sorry madam for posting this in wrong thread. How stupid of me........I am trying to learn writing updater scripts and I am modifying CM9's script to do that. Recovery gives me Error 6. I am modifying this in notepad++, I had already checked for newline characters. Since I am a newbie in porting and stuff, I don't even know whether I need to make a new update-binary for every change I make in updater-script. I searched for hours on google about this problem but with no sucess. I never felt this miserable...
Sorry again for the wrong section.
Click to expand...
Click to collapse
First of all, there is much more to updater-script than you appear to have knowledge of, and I am only saying this to point you to the right direction.
You need to do a little reading in order to really understand what each line does.
Otherwise, chances are, you will not be able to make a bootable ROM.
Update-binary does not need any changing though.
You should not feel miserable, just search and look in the right places.
iridaki said:
First of all, there is much more to updater-script than you appear to have knowledge of, and I am only saying this to point you to the right direction.
You need to do a little reading in order to really understand what each line does.
Otherwise, chances are, you will not be able to make a bootable ROM.
Update-binary does not need any changing though.
You should not feel miserable, just search and look in the right places.
Click to expand...
Click to collapse
I read the link you gave, it is informative indeed. But still doesn't solve my problem. The link is for syntax used in update-scripts. Since I am a Perl programmer by hobby, I do understand quite a lot of those commands in both update-script and updater-script and correct syntax associated with them (mostly based on linux). My questions are -
1. Do we have to write an update-script or an updater-script to flash a zip?
2. Updater-script is associated with an update-binary. What is it's role? Can we copy it from anywhere? If yes, then why is this binary encoded file of different size?
3. Can I write an update-script and use kitchen to convert it to updater-script? If yes, then why is kitchen giving me padded zeroes at the end of updater script?
4. If my build.prop has "ro.product.device="anzu"" and if my updater-script asserts for it using correct syntax, then why on earth is recovery giving me error 6 at the assert step?
5. If I don't have a file (say /system/lib/hw/abc) and if my updater-script calls it (say symlink toolbox /system/lib/hw/abc), then will the updater-script execution fail completely or does it skip it and move forward?
6. How would I know whether I can write boot image in xperia phones or not? Is there any list?
So in sum, I know and have found many guides to write syntax in updater-script and update-script but I couldn't find any guide which could explain all the above question clearly. Since android community (especially at xda) believes in helping out each other, I am astonished by the fact that what is the purpose of keeping this secrecy in instructions on how to make a proper bootable zip or port a ROM. I wanted to learn all this so that I could bridge this gap of knowledge like I did with my Namaste guide.
PS: You have something with colors. You have an elegant way of choosing colors in things as complex as themes and as trivial as fonts. I am a fan.
Ciao,
Vaibhav
vaibhavknockout said:
1. Do we have to write an update-script or an updater-script to flash a zip?
Click to expand...
Click to collapse
update-script is for "Amend Scripting" used in CWM prior to 3.0. update-script (and binary associated) is for "Edify Scripting" used in CWM 3.0 +. Both have different syntax. Basically use updater-script as it is latest.
vaibhavknockout said:
2. Updater-script is associated with an update-binary. What is it's role? Can we copy it from anywhere? If yes, then why is this binary encoded file of different size?
Click to expand...
Click to collapse
As mentioned above! updater script requires update-binary to work as all functions are defined in the binary.
vaibhavknockout said:
3. Can I write an update-script and use kitchen to convert it to updater-script? If yes, then why is kitchen giving me padded zeroes at the end of updater script?
Click to expand...
Click to collapse
Yes, you can! Probably kitchen's converter is messed-up. You can manually remove the zeroes.
vaibhavknockout said:
4. If my build.prop has "ro.product.device="anzu"" and if my updater-script asserts for it using correct syntax, then why on earth is recovery giving me error 6 at the assert step?
Click to expand...
Click to collapse
What error is it giving? Also, make sure to use the correct update-binary as there are different versions floating around.
vaibhavknockout said:
5. If I don't have a file (say /system/lib/hw/abc) and if my updater-script calls it (say symlink toolbox /system/lib/hw/abc), then will the updater-script execution fail completely or does it skip it and move forward?
Click to expand...
Click to collapse
Yet to try!
vaibhavknockout said:
6. How would I know whether I can write boot image in xperia phones or not? Is there any list?
Click to expand...
Click to collapse
boot image cannot be written in recovery for all Xperia phones. Basically boot partition is locked when phone is turned on, in all Xperia phones.
ameer1234567890 said:
update-script is for "Amend Scripting" used in CWM prior to 3.0. update-script (and binary associated) is for "Edify Scripting" used in CWM 3.0 +. Both have different syntax. Basically use updater-script as it is latest.
As mentioned above! updater script requires update-binary to work as all functions are defined in the binary.
Yes, you can! Probably kitchen's converter is messed-up. You can manually remove the zeroes.
What error is it giving? Also, make sure to use the correct update-binary as there are different versions floating around.
Yet to try!
boot image cannot be written in recovery for all Xperia phones. Basically boot partition is locked when phone is turned on, in all Xperia phones.
Click to expand...
Click to collapse
Thanks for answering some of my doubts and clearing the difference between update-script and updater-script. Your pointing my attention towards update-binary and it's importance caused me to read in that direction and ultimately solving it. It turns out that update-binaries are made chipset specific and if we don't use mogami specific update-binary (e.g. from CM9 for xperia arc), then assert check will fail. Hope this will help a lot of people.
PS: And this time I will try and compile another guide (like Namaste guide) to explain making flashable update.zip's, avoiding the commonly followed syntax part and focusing more on importance and functions of each component in the process.
Cheers,
Vaibhav
Main thread + features + install instructions + dev support
http://forum.xda-developers.com/showthread.php?t=2201860
PhilZ Touch is a CWM Advanced Edition that adds all the features you could ever miss in CWM
It is a well proven recovery for many phones
It also adds a full touch interface a completely configurable GUI
Please give your feedback, what works, and any bug you could encounter
Read the features, and check if you are missing something
To take a screen shot, just slide left
Also, do not forget to read about the powerful aroma file manager integration and double tap shortcut
Download links
Last version can be found here:
Nexus 10 (manta)
http://goo.im/devs/philz_touch/CWM_Advanced_Edition
Click to expand...
Click to collapse
Phil3759 said:
Flashing can brick your phone
This will be removed after people report it is booting fine without bricking their phone
Click to expand...
Click to collapse
But... my phone is across the room and isn't even Android. Maybe I should rip the battery out just to be safe though
This sounds pretty cool though.
espionage724 said:
But... my phone is across the room and isn't even Android. Maybe I should rip the battery out just to be safe though
This sounds pretty cool though.
Click to expand...
Click to collapse
I warn people when I release an untested recovery on a given device
Most noobs tend to forget that flashing is not a safe operation. It can always turn into a nightmare
You can check the list of currently supported devices from main thread here: http://forum.xda-developers.com/showthread.php?t=2201860
And browse into the different device support forums
Till now, the warning never became true except when some people flashed the wrong file in their phone
This warning should keep noobs away from testing it
Ah, yeah I have nothing against the warning, glad it's there even The Nexus 10 is a tablet though, not phone
espionage724 said:
Ah, yeah I have nothing against the warning, glad it's there even The Nexus 10 is a tablet though, not phone
Click to expand...
Click to collapse
LoL
It is a generic copy paste message
Well, will you be the first to give a feedback ?
Phil3759 said:
Well, will you be the first to give a feedback ?
Click to expand...
Click to collapse
Sure
I went to bootloader, erased recovery and flashed this one. Rebooted to recovery.
Battery meter at top-right says -1% (my tablet was on Pogo charge for hours prior to flashing). Get an error about being unable to create brightness sys file. During key test, randomly getting constant presses when holding 3 fingers on screen (probably a touchscreen-related issue).
espionage724 said:
Sure
I went to bootloader, erased recovery and flashed this one. Rebooted to recovery.
Battery meter at top-right says -1% (my tablet was on Pogo charge for hours prior to flashing). Get an error about being unable to create brightness sys file. During key test, randomly getting constant presses when holding 3 fingers on screen (probably a touchscreen-related issue).
Click to expand...
Click to collapse
Thank you for the feedback (reached my daily limit for :good
Brightness:
Do you by case know the path for your device brightness file?
Not a big deal though as I can search / look for it in rc files. I used Samsung usual path, but it seems they used a different one for google devices
Battery:
Will check for the battery path used
Touch
It is supposed to be one finger to use
Interesting though...
Can any one run this in adb shell while in recovery
Or you can use the console terminal in aroma file manager while in recovery
Code:
find /sys/. -name '*bright*' >/sdcard/brightness.txt
Then
Code:
find /sys/. -name '*battery*' >/sdcard/battery.txt
And attach the resulting brightness.txt and battery.txt files on sdcard
About multi touch: i will look to allow only slot 0 to ignore second finger
Sent from my GT-I9100 using Tapatalk 2
Forget it. I found path in source
Sent from my GT-I9100 using Tapatalk 2
Ok, still would need battery info it seems
Code:
find /sys/class/power_supply/ -name '*' >/sdcard/battery.txt
And as described above, attach resulting battery.txt file here
Please do this in recovery, not main system
Sent from my GT-I9100 using Tapatalk 2
Phil3759 said:
Ok, still would need battery info it seems
Code:
find /sys/class/power_supply/. -name '*' >/sdcard/battery.txt
And as described above, attach resulting battery.txt file here
Please do this in recovery, not main system
Click to expand...
Click to collapse
see attached - is this what you're looking for?
Ok,
Can you do this now:
Code:
ls-l /class/power_supply/android-battery >/sdcard/battery.txt
And attach the file
Many thanks
Phil3759 said:
Ok,
Can you do this now:
Code:
ls-l /class/power_supply/android-battery >/sdcard/battery.txt
And attach the file
Many thanks
Click to expand...
Click to collapse
Sorry I'm a bit out of sync with you -- but I've attached the one you asked for just before revising your post.
find /sys/class/power_supply/ -name '*' >/sdcard/battery.txt
Result is attached. I'll run the other command in a moment.
Phil3759 said:
Ok,
Can you do this now:
Code:
ls-l /class/power_supply/android-battery >/sdcard/battery.txt
And attach the file
Many thanks
Click to expand...
Click to collapse
OK -- re-learning linux command line as I go (it's been many years!). Good to wake up that part of the brain again...
Had to modify command above: needed a space between ls and -l, and I'm assuming you want "/sys" up front in the fully qualified file name... Assuming that's all good, the new result is attached as battery2.txt
Let me know if this is what you need, or if anything else is needed. I've got some time to squeeze in a few of these today as needed. Also REALLY looking forward to trying this out on my N10 (and would love to see this on the Galaxy Nexus if ever possible!).
Sorry for the time I make you loose
Was at work, on a hurry, typing using tapatalak mess
I am at home and I could test before posting this. The symlinking is a small issue to first traverse folders wthout going into tons of links
Anyway, here's what should find the needed files
Code:
ls -l /sys/class/power_supply/android-battery/* >/sdcard/battery.txt
Thank you for your patience :good::good:
Phil3759 said:
Sorry for the time I make you loose
Was at work, on a hurry, typing using tapatalak mess
I am at home and I could test before posting this. The symlinking is a small issue to first traverse folders wthout going into tons of links
Anyway, here's what should find the needed files
Code:
ls -l /sys/class/power_supply/android-battery/* >/sdcard/battery.txt
Thank you for your patience :good::good:
Click to expand...
Click to collapse
Try the attached...
jonstrong said:
Try the attached...
Click to expand...
Click to collapse
bingo :good:
Code:
/sys/class/power_supply/android-battery/capacity
Phil3759 said:
bingo :good:
Code:
/sys/class/power_supply/android-battery/capacity
Click to expand...
Click to collapse
Great -- let me know if you need anything else -- I'm home today, and can pull some more if needed.
Does this recovery support USB OTG?
I must be in stupid mode today !!
Have been running Galaxy S3 with PhilZ Touch for some time now .... superb :good:
Got a new Nexus 10 last week and want it on there as well ..... stupid bit coming now
Downloaded latest version from this thread - but it shows as "philz_touch_5.00.7-manta.img"
Not a zip or a tar file for Odin ..... what am I missing from under my nose?
Homer
I've been trying to edit the updater script in the latest T-MO AOKP 4.4.2 nightly so i can flash it on my Att S3, but have had no luck. I've searched XDA and Google but have not found the answers i need. Would anyone be willing to give me a detailed guide or point in the right direction of one.
JamFan05 said:
I've been trying to edit the updater script in the latest T-MO AOKP 4.4.2 nightly so i can flash it on my Att S3, but have had no luck. I've searched XDA and Google but have not found the answers i need. Would anyone be willing to give me a detailed guide or point in the right direction of one.
Click to expand...
Click to collapse
Try this. It's been asked before.
If you can't do it send me the updater script and I'll change it for you.
http://forum.xda-developers.com/showthread.php?t=2585870
Sent from my SGH-I747 using xda app-developers app
KorGuy123 said:
Try this. It's been asked before.
If you can't do it send me the updater script and I'll change it for you.
http://forum.xda-developers.com/showthread.php?t=2585870
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Thank you for responding. I am able to edit the file, but it will not allow me to save it over the one I need to replace. I am really trying to learn how to do this on my own. Any suggestions as to what I'm doing wrong?
JamFan05 said:
Thank you for responding. I am able to edit the file, but it will not allow me to save it over the one I need to replace. I am really trying to learn how to do this on my own. Any suggestions as to what I'm doing wrong?
Click to expand...
Click to collapse
Without knowing the error, I have no idea what you're doing wrong.
---------- Post added at 11:32 AM ---------- Previous post was at 11:20 AM ----------
For some reason 7zip doesn't like that zip file. I pulled the updater script and pushed it in with winrar and it zipped fine.
Going to try and flash it now.
---------- Post added at 11:40 AM ---------- Previous post was at 11:32 AM ----------
Got it to flash. Just remove the first two lines.
KorGuy123 said:
Without knowing the error, I have no idea what you're doing wrong.
Click to expand...
Click to collapse
Here are my steps
I open the zip with 7zip, by choosing open archive
Navigate to the Updater-script file and copy it to my desktop
Right click on it and chose edit with Notepad++
Delete everything down to the word mount, and it leaves the first line blank
I click on the X to close the file and it asks me to save it, I save it
I try to copy the edited file back into the zip and it gives me this error -
Error Duplicate Filename
system/media/audio/notifications/Arturus.ogg
system/media/audio/notifications/arturus.ogg
Does this help? Or am I doing it completely wrong. Lol
JamFan05 said:
Here are my steps
I open the zip with 7zip, by choosing open archive
Navigate to the Updater-script file and copy it to my desktop
Right click on it and chose edit with Notepad++
Delete everything down to the word mount, and it leaves the first line blank
I click on the X to close the file and it asks me to save it, I save it
I try to copy the edited file back into the zip and it gives me this error -
Error Duplicate Filename
system/media/audio/notifications/Arturus.ogg
system/media/audio/notifications/arturus.ogg
Does this help? Or am I doing it completely wrong. Lol
Click to expand...
Click to collapse
This is easier...
Open the file in winrar (7zip doesn't like this one)
Go to file and drag it to your desktop. Don't close WinRAR
Open file in notepad++ and delete the first 2 lines (make sure the first line isn't blank) First line should be
show_progress(0.500000, 0);
Click to expand...
Click to collapse
Save file
Drag back to winrar in the folder you found it and it'll overwrite.
Put back on phone and profit!
KorGuy123 said:
This is easier...
Open the file in winrar (7zip doesn't like this one)
Go to file and drag it to your desktop. Don't close WinRAR
Open file in notepad++ and delete the first 2 lines (make sure the first line isn't blank) First line should be
Save file
Drag back to winrar in the folder you found it and it'll overwrite.
Put back on phone and profit!
Click to expand...
Click to collapse
THANK YOU! That worked perfectly, Im now up and running. I just want say that i see you help a lot of people out here in the forums with very good and accurate advice. Thanks again for helping me learn something new.
JamFan05 said:
THANK YOU! That worked perfectly, Im now up and running. I just want say that i see you help a lot of people out here in the forums with very good and accurate advice. Thanks again for helping me learn something new.
Click to expand...
Click to collapse
NP glad to help.
Sent from my SGH-I747 using xda app-developers app
I'm trying to install gapps aroma package as it have ability to select app i wanna install according to my need but it juts makes twrp reboot to recovery and this time it fails to mount some partiotions...then i have to manually boot into recovdery again, is there any option to make aroma package compatible, or i'd have to install any other package??
Found out about gapps-config, so solved now...
kqixs said:
Found out about gapps-config, so solved now...
Click to expand...
Click to collapse
Also crashing here. But how to make that file?
The AndroidGuy said:
Also crashing here. But how to make that file?
Click to expand...
Click to collapse
Just creat a .txt file with that name and follow the instructions, what i did was, copied all the text available and put '#' in fron of the lines i wanted to be ignored during installation, this thing is pretty easy, just read about it and follow the instructions...but still if there would something you'd need help in, you can ask...
kqixs said:
Just creat a .txt file with that name and follow the instructions, what i did was, copied all the text available and put '#' in fron of the lines i wanted to be ignored during installation, this thing is pretty easy, just read about it and follow the instructions...but still if there would something you'd need help in, you can ask...
Click to expand...
Click to collapse
Yeah I did tried. But.. didn't worked can you show some screenshots or any other texts. I'd created but it installed only swypelibs, translate, and search, From super package.
The AndroidGuy said:
Yeah I did tried. But.. didn't worked can you show some screenshots or any other texts. I'd created but it installed only swypelibs, translate, and search, From super package.
Click to expand...
Click to collapse
Here's the file that i use, according to what i need, just remove/put '#' in front of the lines you want to be ignored and the rest will be read and used during installation....
https://drive.google.com/file/d/19-JC0vEKZERTVplAEQMsan-bMH7Ft_bb/view?usp=drivesdk
kqixs said:
Here's the file that i use, according to what i need, just remove/put '#' in front of the lines you want to be ignored and the rest will be read and used during installation....
https://drive.google.com/file/d/19-JC0vEKZERTVplAEQMsan-bMH7Ft_bb/view?usp=drivesdk
Click to expand...
Click to collapse
So where to place this txt file to make it work?