Signing Files No Longer Works... - G1 Q&A, Help & Troubleshooting

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

Related

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?

[?] 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

[Q] [HELP]Creating update packages for {GOT,Open}Recovery

Hi!
I have tried to create my own update for Milestone, unfortunately I can't get it to work. I copied the test updates from OpenRecovery and edited the update-script but it did not work.
I copied over test-update-or.zip and unpacked it, then I threw my stuff into the system and modified the bash script in META-INF. The whole thing look like this:
And when I try to apply this, I get:
Code:
(...) Using default updater...
E:Error in /sdcard/OpenRecovery/updates/moj-update.zip
(Status 4)
Installation aborted
What am I doing wrong?
Quintasan said:
Hi!
I have tried to create my own update for Milestone, unfortunately I can't get it to work. I copied the test updates from OpenRecovery and edited the update-script but it did not work.
I copied over test-update-or.zip and unpacked it, then I threw my stuff into the system and modified the bash script in META-INF. The whole thing look like this:
And when I try to apply this, I get:
Code:
(...) Using default updater...
E:Error in /sdcard/OpenRecovery/updates/moj-update.zip
(Status 4)
Installation aborted
What am I doing wrong?
Click to expand...
Click to collapse
You should apply it as a nandroid restore through the nandroid menu!? Anyone?
vladstercr said:
You should apply it as a nandroid restore through the nandroid menu!? Anyone?
Click to expand...
Click to collapse
Sir, do you realise that I'm trying to create an UPDATE package, not a NANDROID BACKUP?
Quintasan said:
Sir, do you realise that I'm trying to create an UPDATE package, not a NANDROID BACKUP?
Click to expand...
Click to collapse
Yes... But thats the same error I got when I tried to restore a nandroid backup through "apply update"
Thats why I said that...
Quintasan said:
Hi!
I have tried to create my own update for Milestone, unfortunately I can't get it to work. I copied the test updates from OpenRecovery and edited the update-script but it did not work.
I copied over test-update-or.zip and unpacked it, then I threw my stuff into the system and modified the bash script in META-INF. The whole thing look like this:
And when I try to apply this, I get:
Code:
(...) Using default updater...
E:Error in /sdcard/OpenRecovery/updates/moj-update.zip
(Status 4)
Installation aborted
What am I doing wrong?
Click to expand...
Click to collapse
attach your update.zip file so we can have alook will make it easier for helping
Here you go, thanks in advance
bumping form the depths of hell and because I'm too lazy to keep note of what changes I do each reflash
ok well first of all your directory structure doesnt seem good , meta-inf and other folders needs to be in the root of the zip file .
I suggest you grab latest CM6 by kabaldan and copy what hes doing and replace files .
good luck

[Q] need help

i got a new captivate got it rooted and decided to install AXURA_RC1_CE i backed up everything before then decide to install Perception Build 5 so i did a factory reset clear the cache and ran the rom but it wouldnt boot so i tried to restore the phone and it wouldnt work i try to run AXURA_RC1_CE and i get this
Deleting files...
Deleting files...
Deleting files...
Deleting files...
Copying files...
Copying files...
copying files...
Copying files...
E:Can't symlink /system/xbin/su
E:Failure at line 16:
symlink /system/bin/su SYSTEM:xbin/su
also says
sdext wont mount
i need help idk what to!!!!!!
Flash this http://forum.xda-developers.com/showthread.php?t=731989 then re-install the rom, also don't post your help me questions in the dev section.
Use odin to restore your phone and you can get better help if you post in the correct forum: Q&A
Sent from my SAMSUNG-SGH-I897 using XDA App
thanks guys and sorry
Moved to Q&A.

[Q] help

i got a new captivate got it rooted and decided to install AXURA_RC1_CE i backed up everything before then decide to install Perception Build 5 so i did a factory reset clear the cache and ran the rom but it wouldnt boot so i tried to restore the phone and it wouldnt work i try to run AXURA_RC1_CE and i get this
Deleting files...
Deleting files...
Deleting files...
Deleting files...
Copying files...
Copying files...
copying files...
Copying files...
E:Can't symlink /system/xbin/su
E:Failure at line 16:
symlink /system/bin/su SYSTEM:xbin/su
also says
sdext wont mount
i need help idk what to!!!!!!
eddy101918 said:
i got a new captivate got it rooted and decided to install AXURA_RC1_CE i backed up everything before then decide to install Perception Build 5 so i did a factory reset clear the cache and ran the rom but it wouldnt boot so i tried to restore the phone and it wouldnt work i try to run AXURA_RC1_CE and i get this
Deleting files...
Deleting files...
Deleting files...
Deleting files...
Copying files...
Copying files...
copying files...
Copying files...
E:Can't symlink /system/xbin/su
E:Failure at line 16:
symlink /system/bin/su SYSTEM:xbin/su
also says
sdext wont mount
i need help idk what to!!!!!!
Click to expand...
Click to collapse
Flash stock using odin
Sent from my SAMSUNG-SGH-I897 using XDA App
from cwm lagfix edition there should be an advanced ulk choice. halfway down there will be lagfix options. hit that and select disable lagfix. that should fix the sdext problem. not sure about the other issue will research tho.

Categories

Resources