yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Jayman007:
Thanks to the OP for putting this together.

I grabbed the version 3 from post #194. I see that it is now creating the correct script format.

My question pertains to the mounting...

your script creates a mount command such as

mount("ext4", "/sbin/mount", "/system");

but I am seeing other working scripts using

run_program("/sbin/mount", "/system");
run_program("/sbin/mount", "/data");

then package extract stuff...

run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");

I'm wondering if both methods are valid? Is it not necessary to unmount at the end of the operation?

Also, I was just assuming that my phones system memory was ext4 format but it might not be.. anyone want to conform this for a sg2.

On a final note, it would alleviate much confusion of the OP updated the original post with the latest version as I see many posts of confused folks not able to find it. At the very least maybe add a comment in the OP that the latest version is found in post #194.

Thanks again for the effort.
[G1 Android Development] KemikalElite:
The zip that gets created disappears when it finishes the process. I've already tried changing the heap size.
[G1 Android Development] cj360:
The mutiupload links are down, in a couple of your thread's dane
[G1 Android Development] bouss:
I've put some applications in the folder and tried to make an update.zip. The new zip was made but clockwork doesn't install any of these(the procedure starts and finishes instantly without giving any error message). Do I have to be s-off? HTC desire with cwm 2.5.0.7(or something)
[G1 Android Development] demkantor:
s-off will only matter if you are trying to use fastboot flash

there must be another reason, try amon_ra recovery if your using a g1, its better
[G1 Android Development] abhinav quietly brilliant:
multiupload is not working. so anyone can please upload their update.zip to any other file sharing website such as dropbox or 4shared
[G1 Android Development] zumnao:
+++++++++1 :)

EDIT. OK I found version 3.0. Seems there is no more support on this thread, hope I can manage to succeed.
[G1 Android Development] abhinav quietly brilliant:
hey could you please pm me the link?
[G1 Android Development] cj360:
can u send me the link too?
[G1 Android Development] abhinav quietly brilliant:
where are you zumnao waiting for your pm....!?!

press thanks if i helped you
[G1 Android Development] J C:
Great Work Thumbs up. Thank you and all else who contributed to this project so much for your work. This is great
[G1 Android Development] Peteragent5:
Please upload to Mediafire. Someone?
[G1 Android Development] Peteragent5:
Uploaded to mediafire:

DOWNLOAD

Full Credit to Daneshm90 and Thanks to him!

Did this cause multiupload link is down :D
[G1 Android Development] life:
link is dead.....
[G1 Android Development] sunsqare:
See the post above you, there's mediafire link.
[G1 Android Development] life:
yeah I seen it forgot to come back and edit my post. Actually found a version 3 earlier in the thread

Thanks tho
[G1 Android Development] tazman171:
Link is in post 194, or you can click here:

Version 3 link

:cool:
[G1 Android Development] Gaziaggelos:
hi work this script on other phone as xperia x8?
[G1 Android Development] H89P:
Isn't supported under ICS and 4ext recovery

Is there another way to write this script ?
[G1 Android Development] Dragonety:
I have tried like 10 times to create an apkupdate.zip ..... BUT I CANT!!!

I have extracted a ROM, went to /system /app and i copied ADWlauncher (i am trying to install it in my rom to check the program) then:

1. Create a folder app/ and introduce inside ADWlauncher.apk

2. Open the script program

3.Clean everything

4. Copy directories in (i have tried everything here): system app , SYSTEM app, data app and DATA app ....

5.I create the script

6.Trying to flash in recovery and no working... operation aborted stat 0.

Help please! ;)

PS: i am using I9003
[G1 Android Development] dotzip.:
flashing a single themed apk

sorry for the noob question but can someone please give me a step by step on how to create a update zip file with this tool for my themed calender.apk idk what i am doing wrong i put my apk in the placehere folder chose 1 chose 1 enter SYSTEM enter app enter app after that i am lost.. need it to flash calender>apk to system/app and how to set permissions ???????????????????
[G1 Android Development] osterizerblender:
Thanks for putting this together for us but download link is not working
[G1 Android Development] Peteragent5:
Version 3.0 -

Original post

Download -

MediaFire

Dropbox Link 1

Dropbox Link 2

All credits goes to Daneshm90
[G1 Android Development] MDAman:
I'm not sure if i'm barking up the wrong tree... but great piece of SW.

Anyway i mentioned a little unlovly "thing".

It seems the scriptcreator uses windows-char-coding, which leads to an error status 6 in CWM.

Because windows sets for newline CR|LF instead of UNIX LF which is expected by the CWM interpreter.

Would be great if the noble mind behind this awsome piece of SW could fix this minor "thing".
[G1 Android Development] DarkNiz:
Use notepad++ and select the option, Edit -> EOL Conversion - Unix Format. Remove all Windows character stuff and only use Unix ones.
[G1 Android Development] MDAman:
Yeah... thanks pal. I know how to fix a char. X)

Never the less it would be great, if the tool could do it right in the first place.
[G1 Android Development] kocir:
the link is dead. File does not exists
[G1 Android Development] arnabJ:
Hey where's the download link??:confused:

________________________________________________________________

Press the thanks button.

It wont cost u much but will help me alot in getting recognised.

My Thread(s) & Post(s)

Hrithik Roshan Best Pics App.

[ http://xdaforums.com/showthread.php?p=36204795 ]

Steps to Root and unroot any Samsung Gingerbread mobile.

[ http://xdaforums.com/showthread.php?p=35625955 ]

1st CUSTOM ROM FOR SAMSUNG GT-S5302 IN PROGRESS.

PURELY FROM STOCK.

--------------------------------------

New pokemon Game comin up for Android:

Visit tis post by "t0shir0":

http://xdaforums.com/showthread.php?p=36281005
[G1 Android Development] roscoenr:
look a few post before yours
[G1 Android Development] SnowmanDK:
Why does this link to some crappy video install thing?
[G1 Android Development] wstruction:
Where do you download it?? I hit the download button and it brings me to an ad and when I skip it I get another ad and nothing else
[G1 Android Development] enotar:
Great attempt to do something easy but reading all post there is no much success or maybe instruction are not good?

Personally I tried all ways and it did not work but I am maybe doing something wrong. A sequential menu should be better.

Thank you
[G1 Android Development] Death1792:
iLivid? Hahahahaha.
[G1 Android Development] enotar:
yeah weird to.....
[G1 Android Development] badboy47:
It's so quiet in here.
[G1 Android Development] AFSmiley:
Hi guys

I have a huge problem.

One of the following apps prevents the boot process.

Is it possible to create a script that delete the apps or to replace there with another (update) in the form of update.zip ?.

Safe mode has not helped.

please help me.

One of the following Apps block the boot process on my Smartphone:

whatsapp plus

wanam xposed

ES Dateiexplorer

stille kamera

retrica

WhatsApp+ 2.11.432 (com.whatsapp)

Wanam Xposed 3.2.5 (ma.wanam.xposed)

ES Datei Explorer 3.2.3 (com.estrongs.android.pop)

Stille Kamera 3.5.2 (soft.kinoko.SilentCamera)

Retrica 2.2.3 (com.venticake.retrica)

AFSmiley
[G1 Android Development] demkantor:
Yes there is but may be easier to just delete them through adb shell in recovery
[G1 Android Development] SiberianLeopard:
Holy crap, I didn't know this phone was still alive! Wow! I know this is totally out of place, but, is there a slight small miniscule possibility of this device running ICS? Or did I just miss something completely?
[G1 Android Development] AndyFox2011:
Wrong thread, and if you read through the last two pages of the Banana Sandwhich thread you'll get your answer
[G1 Android Development] EngelP:
DOWNLOAD LAST AMAZIN VERSION :cool:

Thanks all....

Update-Zip-Packager 3.0.zip
[G1 Android Development] Daneshm90:
If they're all going to the same location, u can just put em inside a folder and copy the whole folder over.
[G1 Android Development] franktitude:
Hi

"i got an Java was not found, you will not be able to sign apks or use apktool" error upon running the script.bat file. any idea how can i fix this? thanks
[G1 Android Development] Sulphy:
nice one!!!!! just created my first apk.....!!!!! about to test! :) Thanks
[G1 Android Development] Daneshm90:
Goto Link

Click the giant red "Free Download" button. You're all set :D
[G1 Android Development] lechuckthepirate:
Perfect!

I needed something like this to make my Spanish hard keyboard layout patch, so I don't have to copy the files to system manually by console everytime I flashed a new ROM ...

Made it and it works like a charm:. http://xdaforums.com/showthread.php?t=726075
[G1 Android Development] shiftedx:
So if I was to make an entire custom rom when I'm creating the update script do I have to tell it to copy each folder inside the system folder over to system partition or can I just tell it to copy the contents of the system folder to the system partition and if possible how would I go about doing that?

Also anyone able to get LauncherPro to be pre loaded on a rom? everytime I try to add it to the apps folder I just get no home screen just my notification bar and nothing else.
[G1 Android Development] Daneshm90:
Right, so all u gotta do is create a system folder inside placehere. Then put all ur subfolders or wht not (app,framework).

Then just tell the script to copy system folder to SYSTEM partition.

Heres the syntax of the command incase u want to compare :

copy_dir PACKAGE:system SYSTEM:
[G1 Android Development] shiftedx:
Thank you.. this is such a useful script definitely appreciate your work here, any idea how I can make Launcherpro install instead of ADW? deleting ADW and putting launcherpro in the system/app folder causes nothing to load up after initial setup.
[G1 Android Development] Daneshm90:
I think i know why (keyword think)

The setupwizard after its done looks for com.android.launcher. That doesnt exist as launcherpro is com.fede.launcher hence it doesnt get launched. Have u tried pressing the home button after finishing the setup wizard ?
[G1 Android Development] shiftedx:
yeah I've tried pressing home and rebooting the phone I've also tried installing via adb. So does ADW launcher respond to com.android.launcher? I'm working with CM6 RC1 by the way so maybe part of cyanogens boot script is telling it to look specifically for ADW?
[G1 Android Development] Daneshm90:
Nope.

K can u check ur /data/data folder for com.fede.launcher ? is it even being installed properly ?
[G1 Android Development] shiftedx:
it doesn't seem to be installing properly.. I'm going to try a few more things and see if I can get it to go and I'll post back here. Again thanks for the help and this script haha I'm just now starting to mess with theming android and had not even the slightest clue as to how to make it a flashable zip :p
[G1 Android Development] t_rob76:
i dont suppose this will work for setting permissions like creating an init.d script for swap. I already have that update, but as i delve into my own mods it would be cool to know?
[G1 Android Development] Daneshm90:
Im not sure, but it will set permissions for pretty much any file u tell it to, so if u have the script written and u need to set permissions on it, then this script wud work.
[G1 Android Development] t_rob76:
I think, in this case the update-script needs to set the permissions for the file. this is how i have it written:

show_progress 0.2 0
copy_dir PACKAGE:system SYSTEM:

set_perm 0 0 0700 SYSTEM:etc/init.d/21swapon

show_progress 0.2 0

show_progress 0.2 10
[G1 Android Development] tnpapadakos:
do you have any idea how nice it is to have an update.zip with all my non-system/third-party apps in it to flash all at once?

working with multiple phones? and trying different roms and nightly cm6 updates?

priceless

thanx for your contributions, OP
[G1 Android Development] Daneshm90:
Cool glad u find it as resourceful as i do ;)

K updated the script a little, u can find it in the OP.
[G1 Android Development] kelmar13:
Very noobish question... When I open the script I get a message that say "Java was not found, you will not be able to sign apks or use apktool."

I know I have java installed on my laptop.... what am I missing??? Win7 64bit.

Any ideas?
[G1 Android Development] Daneshm90:
Try this

go start -> run -> cmd -> java

Do u see not found or a bunch of other stuff ?

If u dont see not found then ignore that message.

If u do see not found message, goto java.com and click the "free download button" ;)
[G1 Android Development] kelmar13:
Seeing not found.

Already did the free download button... but will do it again when I get home from work :)
[G1 Android Development] kelmar13:
You have the recommended Java installed (Version 6 Update 21).

??
[G1 Android Development] Daneshm90:
Hmm then java might not have been successful at adding it to your path if u get "java not found" when u type in cmd.

Do this :

Right click my computer

Select properties

Select Advanced system settings

Select Environment Variables

Then from the bottom half ("System Variables")

Scroll down to path and double click it

Now, add the path to your java directory, for reference heres wht my path looks like

c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\OpenLibraries\bin;C:\Users\Danesh\Android\AndroidSdk\tools;[B]C:\Program Files (x86)\Java\jre6\bin[/B]
[G1 Android Development] kelmar13:
Thank you kindly!!! That appears to have solved the problem :)

I would have never have figured that out on my own.
[G1 Android Development] Beast84:
How do we know what permissions to set? I'm trying to make an update.zip to flash my own ringtones but I don't know what to set the permissions to
[G1 Android Development] Daneshm90:
Hmm i dont think u need permissions to set the ringtones.

Either case, if u do

ls -l

in a directory, it'll show u all the files within that directory and the current permissions for those files, then u need to research as to what uid and gid mean. Id suggest google ;)
[G1 Android Development] ondris:
Thnak you for this great tool it works fine.

I have just one question.

If i want to create an update.zip with both framework and app folders how should I proceed?
[G1 Android Development] Daneshm90:
Well u would place ur app folder and framework folder inside placehere folder.

Run the script and choose to create update-script.

Choose copy directories and tell it to copy app from placehere folder to SYSTEM app and framework to SYSTEM framework (the script will guide u through the copy/paste process with examples so dont worry). Then press type8 to finish. Then select 2 to create update.zip. Thats it.
[G1 Android Development] ondris:
OK I get it thank you.

I juste thought that once I set for exemple the app folder i could not add the framework folder to the same script.

Now I know how to do it ;)
[G1 Android Development] avisions:
i still dont get this.

what exactly would i type in the following 3 questions after pressing copy directories?

1.SYSTEM

2. framework

3. framework.

then do

1.SYSTEM

2. app

3. app

is that right? cause i havent a clue. i need both app and framework in an update script. i just dunno what to type.
[G1 Android Development] Daneshm90:
Yup, thats exactly wht u wud type.
[G1 Android Development] shiftedx:
Any chance you could make this optimize multiple .apk at once?

for example point it to system/app and let it do its thing.
[G1 Android Development] Daneshm90:
Well for now u cud use apk manager. Might implement it later.
[G1 Android Development] TmobileDash12:
=X

I'm getting a no java found, even though I set the environment variable. I have the updated java, but still nothing. Help is appreciated :]
[G1 Android Development] Daneshm90:
So if u go start -> cmd -> java -jar

u see something other than "command not found" ???
[G1 Android Development] tobia996:
in my CASE " COMMAND NOT FOUND" but java was installed :'(
[G1 Android Development] Daneshm90:
Yup, i have yet to see where my script doesnt detect java even though its in the path ;)

Heres wht u gotta do, try reinstalling java. If that doesnt work refer to a few posts back where i showed how to add java to ur environmental path. I'll link u to it in a sec.

Here:
[G1 Android Development] tobia996:
now work thx :D
[G1 Android Development] TmobileDash12:
it says it's not recognized.

i'll attach a picture of everything.
[G1 Android Development] Daneshm90:
A few posts above you.
[G1 Android Development] TmobileDash12:
I did set the variables. [see the attached image above]

X.x maybe it's to the wrong directory?
[G1 Android Development] Daneshm90:
Perhaps. Compare my path i posted, make sure the bin directory is in the path.
[G1 Android Development] TmobileDash12:
C:\Program Files (x86)\Java\jre6\bin

that's where java.exe is located.

so i set that as the variable, then i typed run>cmd>java -jar

same result =/

maybe we can to teamview and you can see firsthand what's wrong?
[G1 Android Development] Daneshm90:
Sure pm me your user id and password for teamviewer and i'll get onto it.
[G1 Android Development] jgrimberg1979:
Hello,

I am dying to use this app you made but i cannot get it to work. I was able to fix the java missing error by correcting the path but when i use the script and then create update.zip nothing happens, no zip was created at all? any ideas?
[G1 Android Development] Daneshm90:
Gotta tell me more, how are u creating the zip ? for starters, test by doing this:

1. Download a rom.

2. Extract it to a folder

3. Drag that folder onto Script.bat

4. U shud find a flashable zip in the same location from where u had originally extracted the rom.
[G1 Android Development] jgrimberg1979:
yes by dragging it onto it it worked.

Here is what i am trying to do

I pulled my framework-res.apk and changes some of the drawable items now i am trying to zip it and make it flashable,
[G1 Android Development] Daneshm90:
Right, so wht u shud do is create a folder inside placehere and call it lets say framework

Then tell script to create update-script. Choose copy directories. for partition say SYSTEM, for dir on phone say framework, and for folder from placehere say framework.
[G1 Android Development] TmobileDash12:
yay it worked! thanks for the awesome support :]

when i get my paycheck i'm definitely donating :D
[G1 Android Development] jgrimberg1979:
I guess I am not doing something right. sorry

This may help it you dont mind sparing the time. Anyways in some step how would you go about taking the framework-res.apk and changing some of the drawables. after extracting the entire framework-res.apk contents you end up with 3 folders and 2 files. After i make the adjustments to the folder drawable-hdpi then what do i do with the 5 items that i started out with (now with the adjustments i made)?
[G1 Android Development] Daneshm90:
Ok basically, u extract the apk, make ur changes and rezip the the folders contents into an apk or into a zip and rename .zip to .apk

U can use apk manager if ur new to this concept ;)
[G1 Android Development] TmobileDash12:
I get an error trying to flash the update.zip. i attached a recovery log in pastebin

http://cyanogenmod.pastebin.com/dEEASdyv

=X i hope its not another nooby mistake
[G1 Android Development] jgrimberg1979:
i just tried using the apk manager and i think i may have figure out the issue. It is say 7za is not a recognized command?
[G1 Android Development] Daneshm90:
E:Can't find update script

Can u verify the update-script is there in the meta-inf subfolders ? thnx
[G1 Android Development] Daneshm90:
7za is integrated inside apk manager, wierd ur getting that error :confused:
[G1 Android Development] TmobileDash12:
no it's not =X

but when i look at the original rom [Chromatic]

there is not update-script.

this is confusing X.x

EDIT: nvm i'm an idiot >.>
[G1 Android Development] Daneshm90:
Deep inside the meta-inf subfolders there should be either updater-script or update-script.
[G1 Android Development] jgrimberg1979:
sweet i got it. what happen was a while ago i changed by default command prompt location... i had changed it to c:\
[G1 Android Development] tnpapadakos:
weird how if you make an update script of apps to write to data, you have to type DATA in caps, but if you make one to system, you can do either caps or lowercase

when i make one with data in lowercase, it fails at line 1 when trying to flash the zip...cant mount data:app it says
[G1 Android Development] Daneshm90:
Weird, i didn't know lowercase wud work. i always stuck to upper case for partition convention ;)
[G1 Android Development] HellRazorGod:
Dan ,

When u modify the ROM in placehere and use the create update.zip option . it compiles and signs everything but deletes the google update-script file from the META-INF. It was there in the original ROM zip but not in the created update.zip. Plz verify if this is a bug . Only the SIGNATURE files get created in the META-INF , not the update script .
[G1 Android Development] Daneshm90:
hmm, shudnt happen. ill doublecheck but im sure i didn't script it this way. are u sure ur not by mistake choosing create update-script ?
[G1 Android Development] HellRazorGod:
Ye Bro . Ive tried it for many ROM's now . Im choosing the 2nd option that is create update.zip . :S
[G1 Android Development] Daneshm90:
Ok something is def. wrong on ur end, i tried it over and over and result is same, it just zips and signs. No missing update-script or wht so ever :confused:

Heres the code that runs when u select create update.zip

cls
del update.zip
del newupdate.zip
cls
cd other
echo Zipping
7za a -tzip "../updateold.zip" "../placehere/*" -mx%usrc%
echo Signing
java -Xmx%heapy%m -jar signapk.jar -w testkey.x509.pem testkey.pk8 ../updateold.zip ../update.zip
cd ..
del updateold.zip
goto restart

As u can see it doesnot touch the update-script.
[G1 Android Development] alfa156v:
Hi all,

Maybe someone knows about the update.zip problem?

When i try to create a update.zip the process runs but the update.zip file dissapears.

Any ideas?

Thanks!
[G1 Android Development] Daneshm90:
Is java in ur path?

if u go start -> cmd -> java

do u get command not found?
[G1 Android Development] alfa156v:
That is what i get

C:\>java

Usage: java [-options] class [args...]

(to execute a class)

or java [-options] -jar jarfile [args...]

(to execute a jar file)

where options include:

-client to select the "client" VM

-server to select the "server" VM

-hotspot is a synonym for the "client" VM [deprecated]

The default VM is client.

-cp <class search path of directories and zip/jar files>

-classpath <class search path of directories and zip/jar files>

A ; separated list of directories, JAR archives,

and ZIP archives to search for class files.

-D<name>=<value>

set a system property

-verbose[:class|gc|jni]

enable verbose output

-version print product version and exit

-showversion print product version and continue

-? -help print this help message

-X print help on non-standard options

-ea[:<packagename>...|:<classname>]

-enableassertions[:<packagename>...|:<classname>]

enable assertions

-da[:<packagename>...|:<classname>]

-disableassertions[:<packagename>...|:<classname>]

disable assertions

-esa | -enablesystemassertions

enable system assertions

-dsa | -disablesystemassertions

disable system assertions

C:\>
[G1 Android Development] Daneshm90:
K so java is in path. K wht method are u using to create the update.zip ? for testing can u drag in a folder into Script.bat and see if that method works ? it should create an update.zip in the same location as where u dragged in the folder from.
[G1 Android Development] alfa156v:
I tried and it is the same, update suddenly dissapears a sec after finish.