Related
I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
I think perhaps he means themes? If so, use the search key
Darkrift said:
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
Click to expand...
Click to collapse
If you're thinking what I'm thinking that you are thinking about what he is thinking..
the update-script file in an update.zip isn't a bash script . It sorta looks like one, but it actually contains commands that are interpreted by the recovery program.
sangeet.003 said:
I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Click to expand...
Click to collapse
Assuming you mean update-script in an update.zip update, you will need to either look at existing update-script files for an example of the syntax, or look at the source of the recovery program in the android source
Thanks JesusFreke U got my point...
Bump
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
jonnybueno said:
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
Click to expand...
Click to collapse
update-script can put things into data, yes. Just create a data folder in your zip file and include the relevant lines in the script:
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
Thank you! you sir, are a kind person. I will try this tonight and report my findings afterward!
bringing this thread back from the dead. I need help, if somebody could point to how to use set_permission and why all the symlinking toolbox and busybox (i understand busybox is not part of the regular android package) to other tools already in bin. Also, maybe pointers of what the tools in bin do and if i could remove them after including busybox since they're already in busybox anyway
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
Nope but I think
"delete SYSTEM:app/Mms.apk"
update-script
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
what he said:
delete SYSTEM:app/Mms.apk
delete SYSTEM:app/Mms.odex
if you're really interested just grab any ROM available on xda and started learning the commands .. it's really rather simplistic
right on, thanks guys. i'll download some other roms as well and have a look through.
Maybe someone can halp me with correct command for sript. I need to copy one file (for example photo.ipg) into ext (root) partition whilst flshing update.zip. Files is in update.zip/photo.jpg. I have try put it into system/sd, but after flash files wont copy.
im trying remove certain apps from /data/app then install other apps on the /system/app
but im having trouble in removing apps from /data/app
mount("MTD", "data", "/data");
delete("/data/app/someapp.apk"); ?? not sure about deleting apps, i think this is wrong.
unmount("/data");
Is that the even the correct way to mount it? because that works with the /system
Any help would be greatly appreciated.
Ubuntu only
Wrong section btw, just have to say it. I am on Ubuntu 10.04 LTS and I just use terminal:
Code:
gedit update-script
Once you do that your newly created file will pop up, the put what ever you want in it and save it. The file will be in your home folder. this is what mine looks like:
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
Then create these folders, each one inside of the other:
Code:
META-INF
root of update zip >
Code:
com
>
Code:
google
>
Code:
android
Then place your update-script in the android folder, and also create the system or data folder in root of update.zip
If it's not compressed into a zip file already than you will need to select all the folders, right click and select compress, then compress as zip. After compressing into zip you will need to sign it. I'm not going to get into signing and all that because there is tons of info on xda for signing roms
in other thread and if someone still looking:
update-script syntax - A guide for ROM devs, modders, and themers
Code:
http://forum.xda-developers.com/showthread.php?t=641223
Thanks to TylTru for the gift
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
jm0077 said:
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
Click to expand...
Click to collapse
does /system/keyspa.sh exist?
Does anybody know if it's possible to symlink a directory or link a directory that already exists?
By this I mean, in the update script, normally data/app_s is symlinked to system/app.
Is there a way for me to link to system/app? I have already tried to symlink it, so I may have already answered my question.
I would like to copy additional files into the /data/app/ folder with an update.zip file. My script will successfully add to /system/app/ folder but not /data/app/. I've seen code to delete and then add a whole new /data/app/ folder but I would like to keep whatever is in there already, just add and remove specific files in it. This is what I've been using but it fails. Can this be done?
Code:
show_progress 0.200000 0
delete DATA:app/com.facebook.katana.apk
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
diordnahero said:
I would like to copy additional files into the /data/app/ folder with an update.zip file. My script will successfully add to /system/app/ folder but not /data/app/. I've seen code to delete and then add a whole new /data/app/ folder but I would like to keep whatever is in there already, just add and remove specific files in it. This is what I've been using but it fails. Can this be done?
Code:
show_progress 0.200000 0
delete DATA:app/com.facebook.katana.apk
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
Click to expand...
Click to collapse
While not necessarily my forte, do you happen to be running apps2sd? My guess is that the partition on the SD card hasn't mounted yet, and thus, the file(s) can't be accessed to delete.
yes I am.
Though my update script works to write and delete to /system/.. folders just fine. The update-script files I have looked at delete the whole folder first and then create/copy the new one, then correct permissions. I can't find anything specific to delete/adding individual files though.
diordnahero said:
yes I am.
Though my update script works to write and delete to /system/.. folders just fine. The update-script files I have looked at delete the whole folder first and then create/copy the new one, then correct permissions. I can't find anything specific to delete/adding individual files though.
Click to expand...
Click to collapse
The system folder is not part of apps2sd, so that would make sense.
I'm still thinking this is your issue. I'm wondering if there is a way to mount via an update script?
JsChiSurf said:
The system folder is not part of apps2sd, so that would make sense.
I'm still thinking this is your issue. I'm wondering if there is a way to mount via an update script?
Click to expand...
Click to collapse
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcard when in recovery to do a backup of google ****s.
zippy-man said:
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcard when in recovery to do a backup of google ****s.
Click to expand...
Click to collapse
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
JsChiSurf said:
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
Click to expand...
Click to collapse
yup, I've done that before. Very handy. that'll get the job done
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcar
Click to expand...
Click to collapse
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
Click to expand...
Click to collapse
Yep. You just create whatever script you want and add that to the update script and it will run it. I have used it for many things but have not used a script to mount the sd card.
If you get a hold of the script that cm wrote you could pull out the party that mounts the sd card and use that to write to data if it its located on the sd card.
-------------------------------------
Sent from my HTC Hero
Awsome! Great stuff.
I found this but have not tried it yet as there hasn't been need to update anything lately.
I was experimenting with the framework-res.apk and there i get a folder named anim. So I put some anim files from many ROM's of Galaxy i9000's anim files in i5801 and it works.
So I uploaded it here, If U want, than U can grab it from here.
It's really very cool.
How to :
if you want to use these animations:
1. Download the file in zip format.
2. Just extract the framework-res.apk from the zip file.
3. Now put the framework-res.apk into /sdcard.
4. Now do backup of framework-res.apk and copy it into /sdcard/external_sd or wherever you want.
5. Now put the framework-res.apk in /system/framework using root explorer. Sorry I don't know how to push it using ADB
6. It can only be possible if the phone is rooted.
7. Make sure the /system/framework space is this much enough to copy the file.
8. Now reboot the device and feel the changes.
~_^
Bounce >>>> http://www.multiupload.com/F0I5CR04GM
Flip >>>>>>> http://www.multiupload.com/71OK1YA4XF
Fold >>>>>> http://www.multiupload.com/Z1NZFZFBQ9
Flying >>>>> http://www.multiupload.com/4QMTZVEV4M
Original >>>> http://www.multiupload.com/RUQZ9IBPL1
It will work on any 2.2 Froyo
Nice find Will definately check it out this evening!
Now trying it, the bource version, will report back soon.
EDIT: I Cant boot any more.. JPF
booted. JPF Clean. Works, very nice. Thank you.
Can you upload the original framework-res.apk from jpf?
EDIT1: Dont Need it anymore, reflashed the phone with jpf
EDIT2: After Reflash works without problems!
EDIT3: Original File is also here, sry hevent seen it.
can u make update.zip files? pls
TFS.....
thx
it's working nice with my modded livewallpapers firmware too!
Can you put some screens there?
And can someone inform me if it is a succes on JPF-rom?
Thanks
ilendemli said:
Can you upload the original framework-res.apk from jpf?
EDIT1: Dont Need it anymore, reflashed the phone with jpf
EDIT2: After Reflash works without problems!
EDIT3: Original File is also here, sry hevent seen it.
Click to expand...
Click to collapse
before you copy the framework-res.apk you have to remount system with adb shell:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
and after you can owerwrite the framework-res.apk in system folder with root explorer
i know, that was not the problem, my problem was the custom kernel by gsam
I was wondering: How did you change the framework-res.apk and resigned it without having problems ? I tried to change the battery artwork, and all i get is FC..
Gsam101 said:
I was wondering: How did you change the framework-res.apk and resigned it without having problems ? I tried to change the battery artwork, and all i get is FC..
Click to expand...
Click to collapse
I used just simple method.....
Extract the .apk on my desktop and I do changes on the /res/anim folder.
And that's it !!!..... and i don't think that anybody getting any error due to it.
--------------------------------------------------
Current Device = Samsung GT-i5801
JPF Clean ROM FroYo + JPB Kernel and some perf tweaks.
madhuranand007 said:
I used just simple method.....
Extract the .apk on my desktop and I do changes on the /res/anim folder.
And that's it !!!..... and i don't think that anybody getting any error due to it.
--------------------------------------------------
Current Device = Samsung GT-i5801
JPF Clean ROM FroYo + JPB Kernel and some perf tweaks.
Click to expand...
Click to collapse
nice job
thx
TiBiSMART said:
nice job
thx
Click to expand...
Click to collapse
Thanks TiBi
I have a problem with Root Explorer! It ocurred as:
I copy a file, and I can to paste it in System/framework, but when I try paste it the Root Explorer don´t permit me to paste and says me this message:
"The paste operation failed. Would you like to send diagnostic information to the developer to assist with fixing the problem?"
WHY?
Thx 4 all! =)
fersago said:
I have a problem with Root Explorer! It ocurred as:
I copy a file, and I can to paste it in System/framework, but when I try paste it the Root Explorer don´t permit me to paste and says me this message:
"The paste operation failed. Would you like to send diagnostic information to the developer to assist with fixing the problem?"
WHY?
Thx 4 all! =)
Click to expand...
Click to collapse
"before you copy the framework-res.apk you have to remount system with adb shell:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
and after you can owerwrite the framework-res.apk in system folder with root explorer"
Yaffs2 are u sure? I think system is rfs
Download SGS toolbox or mount /system rw from market and no more problem mounting as rw.
The right command is
busybox mount -o remount,rw /system
Hi! First of all i would like to apologize myself if there is a solution to this issue, but i look around and found nothing...
I want to completely replace JB stock dialer (galaxy i9100) to callrec one without reflashing, only through ADB with the phone on recovery mode.
I´ve read a lot of things about it but i got no success.
I was able to rename several files (apk and odex) under /system/app folder:
SecPhone.apk and SecPhone.odex
SecFactoryPhoneTest.apk (this one is a symlink to /preload/symlink/system/app/SecFactoryPhoneTest.apk)
Phonesky.apk (this one is a symlink to /preload/symlink/system/app/Phonesky.apk)
Phone_Util_U1_EUR_OPEN.apk and Phone_Util_U1_EUR_OPEN.odex
PhoneErrService.apk and PhoneErrService.odex
All these files were renamed to [filename].BAK, including the ones under /preload folder.
After this, i´ve copied callrec Phone.apk to /system/app and /preload folders and reboot the phone but i don´t know why this not work for me.
All these operations were done without recovery mode, i´ve remounted /system and /preload as rw to do this because on recovery mode i could not mount sdcard.... :crying:
Anyone could help me to solve this issue??
Many thanks,
Raphael.
raphaelmg said:
Hi! First of all i would like to apologize myself if there is a solution to this issue, but i look around and found nothing...
I want to completely replace JB stock dialer (galaxy i9100) to callrec one without reflashing, only through ADB with the phone on recovery mode.
I´ve read a lot of things about it but i got no success.
I was able to rename several files (apk and odex) under /system/app folder:
SecPhone.apk and SecPhone.odex
SecFactoryPhoneTest.apk (this one is a symlink to /preload/symlink/system/app/SecFactoryPhoneTest.apk)
Phonesky.apk (this one is a symlink to /preload/symlink/system/app/Phonesky.apk)
Phone_Util_U1_EUR_OPEN.apk and Phone_Util_U1_EUR_OPEN.odex
PhoneErrService.apk and PhoneErrService.odex
All these files were renamed to [filename].BAK, including the ones under /preload folder.
After this, i´ve copied callrec Phone.apk to /system/app and /preload folders and reboot the phone but i don´t know why this not work for me.
All these operations were done without recovery mode, i´ve remounted /system and /preload as rw to do this because on recovery mode i could not mount sdcard.... :crying:
Anyone could help me to solve this issue??
Many thanks,
Raphael.
Click to expand...
Click to collapse
Anyone can give me a path?
Plz help!!