Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Daneshm90
Old
(Last edited by Daneshm90; 8th September 2010 at 02:54 AM.)
#1  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Lightbulb Update.zip 2.0 Modifier/Creator [Script] Drag/Drop Support [Windows]

This script has 2 main uses:

1. Modify an update.zip
2. Create an update.zip

For #1 - You just extract the contents of an update.zip into the placehere folder, modify its contents, and run the script stating to create an update.zip

For #2 - So far these are the options i have in there for create the update-script

1. Copy directories
2. Copy files
3. Create Symlinks
4. Delete file
5. Delete directory
6. Flash boot image
7. Set permissions for file
8. Set permissions for directory

New Features in 2.0 :
- Set java heap size / compression level for zip
- New drag/drop mode.
>>> - If you drag a folder onto the script's icon (as in Script.bat) it will compress the contents of the folder into a zip and sign it.
>>> - If u drag a zip onto the script's icon (as in Script.bat) it will sign the zip for you.

So this script guides u as u select each option, and adds the appropriate command to the update-script file. Then u exit that sub-menu and create update.zip

Heres a video for a better explanation:



This script is a result of me constantly wanting to modify roms before i flash them & users who are unaware/lost as to creating/modifying update.zips.

Download : [Windows]

Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
The Following 40 Users Say Thank You to Daneshm90 For This Useful Post: [ Click to Expand ]
 
Ohgami_Ichiro
Old
#2  
Ohgami_Ichiro's Avatar
Senior Member
Thanks Meter 326
Posts: 546
Join Date: Jun 2010
Location: Tacoma

 
DONATE TO ME
Awesome Gotta try it out.
 
marsevern
Old
#3  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Jun 2010
I tried using this to just push a single app into /system/app just to see if it would work, but when I try to flash from recovery I get E:Syntax error in update script

when I open my update script it reads thus:

Code:
package_extract_file("LearnPython_1.1.1.apk", "/system/app/Python.apk")
Do you know what the issue might be?
 
Daneshm90
Old
(Last edited by Daneshm90; 4th July 2010 at 03:33 AM.)
#4  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by marsevern View Post
I tried using this to just push a single app into /system/app just to see if it would work, but when I try to flash from recovery I get E:Syntax error in update script

when I open my update script it reads thus:

Code:
package_extract_file("LearnPython_1.1.1.apk", "/system/app/Python.apk")
Do you know what the issue might be?
Hmm thats wierd. Can u try placing the file inside a folder withing the placehere folder? N then try it. Tell me if tht works, in meantime ill try a example, perhaps the new changes i made broke something

K i figured it out, i forgot to place a ; after the line. Try placing it and then flashing. Ill fix it.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
marsevern
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Jun 2010
update-script is now

Code:
package_extract_file("LearnPython_1.1.1.apk", "/system/app/Python.apk");
but I still get a syntax error

Edit: I had also tried putting it in a placeholder file, but that didn't help either, even with the added semicolon
 
Daneshm90
Old
#6  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Hmm so something seems wrong with my package_extract_file syntax

Even though ive compared it to online update-script samples. Regardless, for now use the copy directories option instead.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
Daneshm90
Old
#7  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by marsevern View Post
update-script is now

Code:
package_extract_file("LearnPython_1.1.1.apk", "/system/app/Python.apk");
but I still get a syntax error

Edit: I had also tried putting it in a placeholder file, but that didn't help either, even with the added semicolon
Retry, cuz i just did it and it works fine.

Created a folder app inside placehere folder
placed my apk inside it
Ran the script, chose option 1
Then chose option 1
Then typed DATA
Then typed app
Then typed app
Then typed 9
Then typed 2
Then flashed the update.zip

Letter Casing matters, if it says SYSTEM or DATA , do that dont do data or system.

Btw, first clear out using the script. So when u run it. type y to clear ur previous work.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
The Following User Says Thank You to Daneshm90 For This Useful Post: [ Click to Expand ]
 
Daneshm90
Old
#8  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by marsevern View Post
update-script is now

Code:
package_extract_file("LearnPython_1.1.1.apk", "/system/app/Python.apk");
but I still get a syntax error

Edit: I had also tried putting it in a placeholder file, but that didn't help either, even with the added semicolon
K i uploaded a fixed one. No file option for now just directory. And added a push to sdcard option. I think wht u were doing was putting it inside a folder and still using the file option.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
marsevern
Old
#9  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Jun 2010
Yay, it works now. Thank you for creating this and for helping me.
 
Daneshm90
Old
#10  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by marsevern View Post
Yay, it works now. Thank you for creating this and for helping me.
Cool, glad to help. Let me know if i can make it more user-friendly
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link

 
Post Reply+
Tags
script, updated
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...