Help please - Hero CDMA Q&A, Help & Troubleshooting

i get failure at line 9 symlink dumpstate SYSTEM: bin/dumpcrash on both of these wtf am i doing wrong? i've been flashing roms and wanted an easy way to get the apps that are usually left out i like and the rosie i like with any rom.
http://www.4shared.com/file/ZqqLR1uw/sdotapps-signed.html
http://www.4shared.com/file/hTObX773/sdotrosie-signed.html

i'll take a look for you. downloading now. i know i've created a few of these myself, but i'm very limited, hopefully it will be something simple!
EDIT:
You have to update your update-script in the META-INF folder.
This is from my customization zip.
Code:
assert compatible_with("0.2") == "true"
assert getprop("ro.product.device") == "heroc"
show_progress 0.1 0
delete SYSTEM:app/htcbookmarkwidget.apk
delete SYSTEM:app/com.htc.TwitterWidget.apk
delete SYSTEM:app/com.htc.MusicWidget.apk
delete SYSTEM:app/HtcTwitter.apk
delete SYSTEM:app/Flickr.apk
delete SYSTEM:app/LiveWallpapers.apk
delete SYSTEM:app/Sprint_Nscar.apk
delete SYSTEM:app/Sprint_Core.apk
delete SYSTEM:app/HtcLockScreen.apk
delete SYSTEM:app/Calculator.apk
delete SYSTEM:app/Browser.apk
delete SYSTEM:app/Sprint_Navigation.apk
delete SYSTEM:media/bootanimation.zip
show_progress 0.1 10
show_progress 0.2 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 10
My update script adds my theme, customized bootscreen, some other JChiSurf's mods and removes those apps listed.
I think you should be able to combine your two zips into one if you'd like.

riggsandroid said:
i'll take a look for you. downloading now. i know i've created a few of these myself, but i'm very limited, hopefully it will be something simple!
EDIT:
You have to update your update-script in the META-INF folder.
This is from my customization zip.
Code:
assert compatible_with("0.2") == "true"
assert getprop("ro.product.device") == "heroc"
show_progress 0.1 0
delete SYSTEM:app/htcbookmarkwidget.apk
delete SYSTEM:app/com.htc.TwitterWidget.apk
delete SYSTEM:app/com.htc.MusicWidget.apk
delete SYSTEM:app/HtcTwitter.apk
delete SYSTEM:app/Flickr.apk
delete SYSTEM:app/LiveWallpapers.apk
delete SYSTEM:app/Sprint_Nscar.apk
delete SYSTEM:app/Sprint_Core.apk
delete SYSTEM:app/HtcLockScreen.apk
delete SYSTEM:app/Calculator.apk
delete SYSTEM:app/Browser.apk
delete SYSTEM:app/Sprint_Navigation.apk
delete SYSTEM:media/bootanimation.zip
show_progress 0.1 10
show_progress 0.2 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 10
My update script adds my theme, customized bootscreen, some other JChiSurf's mods and removes those apps listed.
I think you should be able to combine your two zips into one if you'd like.
Click to expand...
Click to collapse
thanks man, i shouldnt have borrowed an update script and not looked at it. grrr at me. yea i know i can combine the two but i may not what the rosie sometimes lol. thanks again
edit: i may pm you... i see what you did with your update script and me likey but not that smarty lol.

sdotcarlisle said:
thanks man, i shouldnt have borrowed an update script and not looked at it. grrr at me. yea i know i can combine the two but i may not what the rosie sometimes lol. thanks again
edit: i may pm you... i see what you did with your update script and me likey but not that smarty lol.
Click to expand...
Click to collapse
alright, well i'm usually flying by the seat of my pants and just learn as i go, after many mistakes, but if i can be of any help, i'll try.
will be at work for another hour or so, and then will be back on later tonight, depending on the mrs.

riggsandroid said:
alright, well i'm usually flying by the seat of my pants and just learn as i go, after many mistakes, but if i can be of any help, i'll try.
will be at work for another hour or so, and then will be back on later tonight, depending on the mrs.
Click to expand...
Click to collapse
Right on thanks again.

Related

Signing Files No Longer Works...

So I usually customize any roms with my package of ringtones and a few apps, thats never been a problem. However now, anytime I try and customize anything and flash it, I get this error when trying to flash the update:
Code:
E: Can't chown/mod /data/app (No such file or directory)
E: Failure at line 79: set_perm 1000 1000 0771 DATA:app
Installation aborted
My guess was that there was a new set of test keys to use when signing files? Any help would be greatly appreciated. I've noticed this problem with most of the 2.0 AOSP builds, but now I'm trying to accomplish it with Cyanogen's 4.2.6.
do you have apps2sd setup?
it probably wont work if the new ROM sets it up on the flash (dude im drunk now lmao) pm me if you still need help, i can help tomorrow when im sober
Yes I have it setup, I'm not on a new flash or anything, just upgrading. The ROM itself works fine, and my additions usually do too (this is the first time the problem has ever occurred).
tehseano said:
Yes I have it setup, I'm not on a new flash or anything, just upgrading. The ROM itself works fine, and my additions usually do too (this is the first time the problem has ever occurred).
Click to expand...
Click to collapse
Ya i know but some of the 2.0 ROM's have big trouble with the apps2sd setup
E: Can't chown/mod /data/app (No such file or directory)
leads me to believe that something is wrong with the symlinks
tehseano said:
Code:
E: Can't chown/mod /data/app (No such file or directory)
E: Failure at line 79: set_perm 1000 1000 0771 DATA:app
Installation aborted
Click to expand...
Click to collapse
i think this is self explained.
if u unpack a custom rom with an empty data/app folder and repack it with any zip-program. this empty folder gets deleted. if u place a 0kb-file in it, like the "placeholder" in cyanogens roms, the folder wont be deleted.
kingchris said:
i think this is self explained.
if u unpack a custom rom with an empty data/app folder and repack it with any zip-program. this empty folder gets deleted. if u place a 0kb-file in it, like the "placeholder" in cyanogens roms, the folder wont be deleted.
Click to expand...
Click to collapse
ty, didnt think about that!
DOES ANYONE KNOW HOW TO PORT THEMES IF the signing doenst work

Almost Done - Rom building questions

1. Additional apps in /data/app/ will not install. I've read that this has to do with the update-script. I've based mine off Fresh and unofficial Modaco 1.3 and believe my script to be fine but here it is anyway.
Code:
show_progress 0.1 0
delete_recursive DATA:dalvik-cache/
delete_recursive DATA:boot-cache/
format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez
set_perm 0 0 0755 SYSTEM:etc/bluez
set_perm 0 3003 02755 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 0 04755 SYSTEM:bin/su
delete DATA:app
delete DATA:init.sh
delete DATA:local
delete DATA:dalvik-cache
copy_dir PACKAGE:data DATA:
set_perm 1000 10000771 DATA:app
show_progress 0.1 10
show_progress 0.2 0
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10
2. Is there anything extra I need to add to the rom to get wifi tethering working once the /data/app actually does work? I remember when root first occured wifi tether wouldn't work on the stock rom.
3. What do I need to do so people have already done apps2sd do not experience any FC issues?
4. I have png optimized many apks (ie framework-res, com.htc.resources). I took it a step further and recompressed them but the recompressed versions caused the phone to stay stuck on boot HTC logo. I tried a rom with original framework apks and a few recompressed apks from system and they suffered FC.
I am using Ubuntu 9.10 (Karmic)'s built in archiver for these compressions. I may try transferring them to Win7 and use 7zip but I don't see why that should make a difference. A zip is a zip right?
Hope to hear something back soon even though it's christmas eve. I'd like this rom to be my xmas gift to this forum.
Please help someone?
theresthatguy said:
1. Additional apps in /data/app/ will not install. I've read that this has to do with the update-script. I've based mine off Fresh and unofficial Modaco 1.3 and believe my script to be fine but here it is anyway.
Click to expand...
Click to collapse
That update script looks very familiar. Everything looks fine in your script. It should be copying /data/app over just fine.
2. Is there anything extra I need to add to the rom to get wifi tethering working once the /data/app actually does work? I remember when root first occured wifi tether wouldn't work on the stock rom.
Click to expand...
Click to collapse
That was just a matter of wifi tether not supporting our phones at first. You don't need to do anything special.
3. What do I need to do so people have already done apps2sd do not experience any FC issues?
Click to expand...
Click to collapse
If you are using my boot.img or unofficial modaco's boot.img and you have the script in /system/bin/a2sd then you don't need to do anything extra. You already have the commands in the update script to prevent FC's. Just an FYI that my boot.img has changes beyond the stock one.
4. I have png optimized many apks (ie framework-res, com.htc.resources). I took it a step further and recompressed them but the recompressed versions caused the phone to stay stuck on boot HTC logo. I tried a rom with original framework apks and a few recompressed apks from system and they suffered FC.
Click to expand...
Click to collapse
I'm a little confused by what you are asking here. But the /framework/ files can be very sensitive to compressing and zipaligning. If you are receiving FC's after doing it then they were just likely pushed past their breaking point.
I hope that helps you. Good luck!
Hey flipz thanks for the reply.
1. I wonder why the /data/apps aren't copying if they should be?
2. Cool, good to know
3. I have added that apps2sd script to my boot image but I can't figure how to get it back together. Keeping same error. Maybe I'll borrow yours if that's okay until I can figure it out.
4. Im using ubuntu and was dragging and dropping tyrant new pngs into the apks. I decided to recompress and zipalign any apk that I "optimized". This caused the frameworks to not let the phone boot. So I replaced those with my backup non-recompressed versions that's when I found out all the other apks were force closing.
I guess I'm asking if theirs a specific procedure for rezipping an apk.
Some good info here. I've been wanting to learn how to make apps and roms and have been bookmarking threads like this. Thanks to everyone for being so helpful.
FWIW - I'm not using Ubuntu, but FileRoller 2.28.1 on Slackware works fine to extract and compress zips. It's just a front end for gzip.
Look at your content or path for the FC issues. It's not the compressor program you're using on the .apks.
incogneato said:
FWIW - I'm not using Ubuntu, but FileRoller 2.28.1 on Slackware works fine to extract and compress zips. It's just a front end for gzip.
Look at your content or path for the FC issues. It's not the compressor program you're using on the .apks.
Click to expand...
Click to collapse
Okay so I have the optimized non-recompressed versions of apks let's say maps for example. Then I decide to extract it, compress it for smaller file. Now as the new compressed version if FCs. Doesn't make sense to me?
Are you re-signing the apks ?
theresthatguy said:
Okay so I have the optimized non-recompressed versions of apks let's say maps for example. Then I decide to extract it, compress it for smaller file. Now as the new compressed version if FCs. Doesn't make sense to me?
Click to expand...
Click to collapse
obelisk79 said:
Are you re-signing the apks ?
Click to expand...
Click to collapse
^this.
Also, maybe I'm missing something, but using the standard *.zip function in file roller the only options available are password/encrypt. How exactly are you trying to change the compression?

Why does my apk signing not work?

I'm using the auto-sign here:
http://forum.xda-developers.com/showthread.php?t=646962&highlight=sign
I modified framework-res.apk (changed 3 png files), signed it, and replaced the apk in the update.zip from: http://forum.xda-developers.com/showthread.php?t=687935
I get the following error when flashing the zip:
Code:
Verifying update package...
E:Wrong digest:
system/framework/framework-res.apk
E:Verification failed
What am I doing wrong here?
delete the META-INF folder before signing.
arkavat said:
delete the META-INF folder before signing.
Click to expand...
Click to collapse
Tried it. Still no go. =\
I think the APK needs to use the same signature as the update.zip when signing... at least that's what I read from somewhere.
Hmm, well, sheet.
Q&A section Paul! cmon!
lol just busting your balls but that is strange... dxi's idea sounds correct though since there is a "verification" error
dsixda said:
I think the APK needs to use the same signature as the update.zip when signing... at least that's what I read from somewhere.
Click to expand...
Click to collapse
Nope... that's why a rom can contain signed files from many sources.
@Paul: did you decode -> replace -> encode -> sign or insert into zip -> resign?
Oh, and I assume is an Eclair version?
JHaste said:
Q&A section Paul! cmon!
lol just busting your balls but that is strange... dxi's idea sounds correct though since there is a "verification" error
Click to expand...
Click to collapse
I could have sworn I posted in the Themes & Apps section last night. But after it posted, I figured I'd leave it since I can't delete my posts anyway like on other boards.
djmcnz said:
Nope... that's why a rom can contain signed files from many sources.
@Paul: did you decode -> replace -> encode -> sign or insert into zip -> resign?
Oh, and I assume is an Eclair version?
Click to expand...
Click to collapse
Not sure what you mean by decode/encode. I replaced the png files, signed the framework apk, and replaced the framework apk in the update.zip from Docrambone.
Paul22000 said:
Not sure what you mean by decode/encode. I replaced the png files, signed the framework apk, and replaced the framework apk in the update.zip from Docrambone.
Click to expand...
Click to collapse
Did you re-sign the update.zip after adding the APK back to it?
dsixda said:
Did you re-sign the update.zip after adding the APK back to it?
Click to expand...
Click to collapse
No. The auto-sign says it will sign the only apk in the folder, so it wouldn't even see the update.zip.
Paul22000 said:
No. The auto-sign says it will sign the only apk in the folder, so it wouldn't even see the update.zip.
Click to expand...
Click to collapse
Hmmm ok, so now I am confused, I thought we had to sign the update.zip each time it changes.
If you can get it working, let us know what you did..
MOD EDIT - Moved to Q&A
Paul22000 said:
No. The auto-sign says it will sign the only apk in the folder, so it wouldn't even see the update.zip.
Click to expand...
Click to collapse
Ahh... yes, you need to sign the zip as well...
Code:
java -jar signapk.jar <your_cert.x509.pem> <your_key.pk8> <input_file_name.zip> <output_file_name.zip>
If you're using test keys it will be...
Code:
java -jar signapk.jar testkey.x509.pem testkey.pk8 <input_file_name.zip> <output_file_name.zip>
If you run this in the same directory that you ran signapk.bat in then this will work as well.
So your procedure:
Edit apk
Delete META-INF folder
Re-sign apk
Add re-signed apk to update.zip package
Sign update.zip package as above
EDIT: Oh, are you reusing an existing update.zip file?? No, don't do that. Perhaps reuse the script but just create a new zip and replicate the required directory structure, drop your files in (including the script) and sign it. If you must reuse the zip then delete all of the certificate files in the meta-inf directory but don't delete the folder structure where the update-script lives.
Paul22000 said:
I'm using the auto-sign here:
http://forum.xda-developers.com/showthread.php?t=646962&highlight=sign
I modified framework-res.apk (changed 3 png files), signed it, and replaced the apk in the update.zip from: http://forum.xda-developers.com/showthread.php?t=687935
I get the following error when flashing the zip:
Code:
Verifying update package...
E:Wrong digest:
system/framework/framework-res.apk
E:Verification failed
What am I doing wrong here?
Click to expand...
Click to collapse
i don't know if you figured it out yet...but send me your zip and I will take a look at it
ogdobber said:
i don't know if you figured it out yet...but send me your zip and I will take a look at it
Click to expand...
Click to collapse
Here's my non-working zip
Paul22000 said:
Here's my non-working zip
Click to expand...
Click to collapse
Insufficient build information in the update script file and a syntax error.
Try this:
Code:
assert compatible_with("0.2") == "true"
assert getprop("ro.product.device") == "passion" || getprop("ro.build.product") == "passion"
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
djmcnz said:
Try this:
Click to expand...
Click to collapse
Try what? What do I do with that code?
If you want to cheat, here's a modified and signed version.
I can't test it because I'm not using Froyo but it all looks okay.
Paul22000 said:
Try what? What do I do with that code?
Click to expand...
Click to collapse
Insufficient build information in the update script file and a syntax error.
No?
I mean, you do recognise this line: copy_dir PACKAGE:system SYSTEM: from your update.zip? Or is that somebody else's original zip? It's a wonder it ever worked. Nevertheless, have a look inside the one I attached and you'll see what I mean... /META-INF/com/google/android/update-script
djmcnz said:
If you want to cheat, here's a modified and signed version.
I can't test it because I'm not using Froyo but it all looks okay.
Click to expand...
Click to collapse
Aren't the frameworks different from 2.1u1 to 2.2? I'm almost sure they'd be different with all the changes in FroYo.
djmcnz said:
Insufficient build information in the update script file and a syntax error.
No?
Click to expand...
Click to collapse
You're speaking Greek to me.

[Q] Can anyone spot where I'm going wrong

Ok I need some help with update-script for a theme I have in metamorph format. I'm really lost with this don't know how to do it the correct way. I keep getting can't find update-script when I flash through recovery. If anyone can please help me or poke me in the right direction that would be nice.
I always follow this guide to create update zip file:
http://www.londatiga.net/it/how-to-create-android-update-zip-package/
But remember, when you create "update-script" file, make sure you:
1. put an extra line in its end
2. all line breaks must be in Unix format
To sign the zip package, either you may use the way in the tutorial, or you can use ZipSigner on your Android to sign a zip.
Can you spot where I'm going wrong.
show_progress 0.1 0
delete SYSTEM:app/Facebook.apk
delete SYSTEM:app/GenieWidget.apk
delete SYSTEM:app/GoogleSearch.apk
delete SYSTEM:app/ADWLauncher.apk
delete SYSTEM:app/Contacts.apk
delete SYSTEM:app/Music.apk
delete SYSTEM:app/LatinIME.apk
delete SYSTEM:app/Browser.apk
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 50
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.2 600
copy_dir PACKAGE:sdcard SDCARD:
show_progress 0.3 100
If the error you're getting says it can't find the update script, the error is likely to be the name or location of the script, and not the script content...
Sent from my Nexus One using XDA App
danger-rat said:
If the error you're getting says it can't find the update script, the error is likely to be the name or location of the script, and not the script content...
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
right ok this is the structure:-
update.zip
META-INF=
com
CERT.RSA
CERT.SF
MANIFEST.MF
com=
google
google=
android
android=
update-script
Is there any thing wrong?
Do you have the update binary in the android folder?
Sent from my Nexus One using XDA App
Thank you for your help. I've found out what was the problem was, it was me being a fool and making a beginners mistake. Too little sleep and rushing to get it ready for gingerbread. Well thats what I'm saying and i'm going to stick to it
Everything was perfect from the start just me double zipping the update folder, how stupid do I feel? Very

Making flashable zip help!

Hello, I am trying to make a flashable zip that replaces framework-res.apk in CM9. I have searched and read a bunch of other threads on this, but they all seem to be out of date and none of them actually address the update-binary. Whenever I flash my zip, it aborts due to "error 4" or sometimes "error 0." I have been just copying and pasting the update-binary from other zips, but it seems to give me these errors.
I've attached the .zip in case someone wants to look at it. I'm almost positive my script is solid. Thanks
Script (written in notepad++):
ui_print("Modified framework for CM9 nightly 04/02/2012");
ui_print("by korockinout13");
show_progress(1, 1.5);
ui_print("Installing now...");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm(0,0,0644, "/system/framework/framework-res.apk");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("Happy didling!!!");
Try taking out the commas between the 0 0 0644 (per this).
jmtheiss said:
Try taking out the commas between the 0 0 0644 (per this).
Click to expand...
Click to collapse
That guide isn't in edify though, so those guidelines are out of date. I also think that the script would fail once it got to that step, but mine fails instantly and nothing from the script shows up at all.
in notepad ++ is it a UNIX file or Dos/Windows?
do you have a update binary compatible with ICS ? (this one took me a whole night)
sometimes its just best to start with someone elses script, erase everything and start yours, working these files on windows can be a pain.
I have also used D4 update zip maker to proof my scripts and re-save them in correct format, when i run into odd issues.
korockinout13 said:
That guide isn't in edify though, so those guidelines are out of date. I also think that the script would fail once it got to that step, but mine fails instantly and nothing from the script shows up at all.
Click to expand...
Click to collapse
cwm usually proof reads the script to make sure there are no errors and it can complete the task before it starts. if you have an error at the end of the script, nothing will happen.
error 4 isnt familiar but 0 is.
TRusselo said:
in notepad ++ is it a UNIX file or Dos/Windows?
do you have a update binary compatible with ICS ? (this one took me a whole night)
sometimes its just best to start with someone elses script, erase everything and start yours, working these files on windows can be a pain.
I have also used D4 update zip maker to proof my scripts and re-save them in correct format, when i run into odd issues.
Click to expand...
Click to collapse
Under the edit menu, for EOL conversion, I chose UNIX format after I read an article somewhere. I think that's the right place?
For the update-binary, I used one from Glitch, CM9, and also another framework.zip but it seems to fail.
I agree, I'll try using somebody else's again
Edit: Well, apparently the command for unmount is umount! I still get the same status 4 error though. I got it to work eventually by copying somebody else's script, but I have no freaking clue how it was in any way different from mine.
Click sig links at the bottom of my sig and you will find a cwm flash pack creator.

Categories

Resources