I've succesfully created an update.zip to install apps to system/app, but can't create other one to install to data/app.
I've tried with this update-script:
show_progress 0.1 0
copy_dir PACKAGE:data DATA:
set_perm_recursive 0 0 0755 0644 DATA:app
show_progress 0.1 10
Click to expand...
Click to collapse
I don't know where is the problem.
Now i'm using 2.5.0.7 ClockworkMod recovery, AuraxTSense v8.0
My goal is to create an universal update.zip with some of my apps to use with different roms.
Edit:
It worked well after a fresh ROM install, but after the first boot can't apply the zip. Is it possible to make it work?
Related
I need to copy a single file using an update-script (update.zip's script)
I know that command to copy a dir is
Code:
copy_dir
But if i want to copy only a single file how can i do?
Exit93 said:
I need to copy a single file using an update-script (update.zip's script)
I know that command to copy a dir is
Code:
copy_dir
But if i want to copy only a single file how can i do?
Click to expand...
Click to collapse
put only a single file in the dir? not sure i get your problem, the script should copy everything from the update.zip to the flash memory, why would there be a need to copy a single file?
Kendon is right. Just
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
is needed to copy a single file into the system directory. That script is from one to install WaveSecure to ROM. All it does is copy the contents of the system folder (which is a folder called app, to that location on the system partition of the phone. As there is only one file in the folder app, that file is added or overwritten. Nothing else is changed.
No, i need to copy only one file form SYSTEM to DATA
Then format SYSTEM and recopy that file from DATA to SYSTEM
How can i do?
Exit93 said:
No, i need to copy only one file form SYSTEM to DATA
Then format SYSTEM and recopy that file from DATA to SYSTEM
How can i do?
Click to expand...
Click to collapse
i don't think this is possible with update-script, as it wasn't made for this purpose. care to elaborate what your main goal is, maybe we can find other ways?
kendong2 said:
i don't think this is possible with update-script, as it wasn't made for this purpose. care to elaborate what your main goal is, maybe we can find other ways?
Click to expand...
Click to collapse
I have to format system partition but i have to preserve /system/init.rc file
Deleting all system's subdirs doesn't work
I've been reading through but not been able to find the way of creating the zip file that everyone distributes. What should the file structure be? Can someone point me in the location of this please?
e.g. I want to update framework-res.apk in /system/framework. Do I just create /system/framework in a zip? Do I need to have anything in META-INF/com/google/android/update-script? I've tried just editing existing zips and replacing with my file but when I apply the zip it fails. I've even tried signing the zips too.
It's probably me just missing something! Thanks.
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 10
Thanks, I have this in the update-script already. It just doesn't seem to apply the zip though. Am I going about the process wrong?
What recovery are you using? Is your zip signed?
I signed the zip with Desire Tools and the sign rom process. Using clockwork mod recovery to flash the zip.
Should be fine. What is the error your getting? Are you sure your update-script doesn't have an extention?
I got it to work by using windows zip in the end. It seems OS X zip utilities weren't working properly. Thanks for your help!
Have a look here:
http://forum.xda-developers.com/showthread.php?t=641223
Hello Doc, and congratulations for the ROM
That is the guide I'm using the script I wrote is right?
Sorry but I do not understand English very well ....
Use:
copy_dir PACKAGE:system SYSTEM:
to copy to system.
And
copy_dir PACKAGE:data DATA:
to copy to data
Ok, now I feel
Thanks
Edit : Nothing, it hangs during installation. Perhaps it is better leave it alone ..
Thanks anyway
The only rom I can restore from backup or install from zip is CyanogenMod-6.1.
LeeDrOiD_V2.3b_A2SD - instals fine but freeze on boot
Today I tried to install Pays-Desire-Froyo-Sense_v2.2 and I got this:
E:Can't symlink /system/xbin/bb
E:Failure at line 43:
symlink /system/xbin SYSTEM:xbin/bb
Any other rom I try and I end up with this error:
E; can't chown/mod /system/bin (no such file or directory)
E:Failure at line 6: set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin
Installation aborted.
AuraxTSense_8.2_Official_OTA_2.2_FRF91_A2SD+
pinky-desire-1.8_signed
r9-bravo-desire-modacocustomrom-withadditions-a2sd-signed
2.10.405.2-initd-rooted-stock-v2
Before I could install any rom I wanted until now and all was working fine. I must mess up something trying to create apps2ext.
I have tried:
different ROMS
wiping cache, dalvik, battery etc every time
formating SD
different SD
Fixing ext
Using ClockworkMod and RA-desire-v2.0.0 [GSM]
Run out of ideas now ...what else can I do ?
Well according to your sig you have N1 table, all the sense rom's won't fit on there. Don't know for the others but for leedroid you need the stock bravo layout (the rest probably needs the same).
Thanks. Sorted.
Hi,
I'm having some issues with installing gapps on the latest CM10. I tried flashing directly after the ROM without rebooting and also with a reboot. Either way its not working. First method creates many bugs also. For example the lockscreen is simply gone. When I turn on the display its going straight to the homescreen. What am I doing wrong? CM9 works perfectly fine.
Which CM10 do you use? I used the one by benjamingwynn (the latest, 10/22 build) with this gapps: http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-stripped.zip
And I successfully installed it, the Play was there and had no problem with the lockscreen. And I flashed it after I had my first boot.
But if it's still not working, then try this gapps, it's the newest:
http://goo.im/gapps/gapps-jb-20121011-signed.zip
Thanks, but I think I already tried this one. Downloading anyway. Hopefully it works.
Hi!
I am using benjamingwynn20121029
Tried almost all gapps available.
Nothing is working at all.
Tried flashing either way, tried to install playstore apk, it doesn't work,
then i tried to move it to system/app, The disk isnt read/writable (wondering how to do it, there's no option in the file managers)
I'm stuck without gapps :| help please.
---------- Post added at 07:26 PM ---------- Previous post was at 07:19 PM ----------
thetroglo said:
Hi,
I'm having some issues with installing gapps on the latest CM10. I tried flashing directly after the ROM without rebooting and also with a reboot. Either way its not working. First method creates many bugs also. For example the lockscreen is simply gone. When I turn on the display its going straight to the homescreen. What am I doing wrong? CM9 works perfectly fine.
Click to expand...
Click to collapse
Having the exact same problem :/
What worked for me (Speed Droid JB v1.1)
The problem is that with CM10, the WFS' /system partition is already pretty full and can't fit even the 'stripped' gapps. Mine had like 7MB left.
Here's how I it installed on my CM10 based Speed Droid JB V1.1 for WFS:
- Install ROM as usual, with INT2EXT+ or whatever you like
- Reboot
- Connect Phone to USB
- Open console on computer for ADB
Code:
> adb shell
> mount | grep /system
/dev/block/mtdblock3 /system yaffs2 rw,relatime 0 0
(yay, it's mounted read-write)
> df /system
(Free number is MB you have available)
> cd /system/media/audio/notifications
(deleted all .ogg files that were larger than 100KB)
> cd /system/media/audio/ringtones
(deleted all .ogg files that were larger than 100KB)
> cd /system/media
(deleted bootanimation.zip, it was more than 3MB.. you can replace it with your own later)
> df /system
(enough free space now?)
After that, I had about 15MB free on /system, so I could install the 'super-stripped' gapps from http://goo.im/devs/tilal6991/gapps (http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-super-stripped.zip) in recovery.
Other tips involve installing TitaniumBackup APK from SDCARD and deleting unwanted stuff.
Hope that helps.
./litemaster
litemaster said:
The problem is that with CM10, the WFS' /system partition is already pretty full and can't fit even the 'stripped' gapps. Mine had like 7MB left.
Here's how I it installed on my CM10 based Speed Droid JB V1.1 for WFS:
- Install ROM as usual, with INT2EXT+ or whatever you like
- Reboot
- Connect Phone to USB
- Open console on computer for ADB
Code:
> adb shell
> mount | grep /system
/dev/block/mtdblock3 /system yaffs2 rw,relatime 0 0
(yay, it's mounted read-write)
> df /system
(Free number is MB you have available)
> cd /system/media/audio/notifications
(deleted all .ogg files that were larger than 100KB)
> cd /system/media/audio/ringtones
(deleted all .ogg files that were larger than 100KB)
> cd /system/media
(deleted bootanimation.zip, it was more than 3MB.. you can replace it with your own later)
> df /system
(enough free space now?)
After that, I had about 15MB free on /system, so I could install the 'super-stripped' gapps from http://goo.im/devs/tilal6991/gapps (http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-super-stripped.zip) in recovery.
Other tips involve installing TitaniumBackup APK from SDCARD and deleting unwanted stuff.
Hope that helps.
./litemaster
Click to expand...
Click to collapse
Links broken, could someone suggest where to find an alternative?