Related
In the IRC channel, bigrushdog and myself have created an update script for the xoom. Its a WIP, but we have used it to install themes, apps, and even the current tiamat kernel. Just put the files/folders into the /data or /system folders inside the zip. Flash in recovery. Thanks to bigrushdog we now have a script that does not require busybox. This one will wipe cache and push whatever you put in data or system.
Wipes Cache and Dalvik Cache
Awesome, thanks!
Sorry but what can I do with this
Sent from my Xoom using XDA App
ui_print("This is a generic Xoom Recovery Flasher");
ui_print("Developed by BWCorvus");
ui_print(" ");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Wiping Cache and Dalvik Cache in case you forgot.. ");
format("MTD", "cache");
delete_recursive("/data/dalvik-cache/");
delete_recursive("/data/boot-cache/");
ui_print("Extracting Data Files...");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Extracting System Files...");
show_progress(0.1, 0);
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
show_progress(0.1, 10);
show_progress(0.2, 0);
show_progress(0.2, 10);
run_program("/sbin/busybox", "umount", "/system");
ui_print("All done. Enjoy!");
Click to expand...
Click to collapse
Suggest adding the bolded just for convenience..
This would DEF help those who are not ADB savvy, cool!
fsunoles157 said:
Sorry but what can I do with this
Sent from my Xoom using XDA App
Click to expand...
Click to collapse
Basically this allows you to flash files, instead of pushing them. Good for kernels, themes, apps and one day roms.
do i just flash this zip in recovery? and then what?
fsunoles157 said:
do i just flash this zip in recovery? and then what?
Click to expand...
Click to collapse
You add the files you want to flash, like say BIGDX theme files (framework and bootanimation). Then you flash this in recovery, and it will install the files, over writing the originals. You just need to make sure you put it in the right directory.
sorry and what directory would that be? trying to learn here and if i get you right i will be adding files to this zip?
bwcorvus said:
You add the files you want to flash, like say BIGDX theme files (framework and bootanimation). Then you flash this in recovery, and it will install the files, over writing the originals. You just need to make sure you put it in the right directory.
Click to expand...
Click to collapse
fsunoles157 said:
sorry and what directory would that be? trying to learn here and if i get you right i will be adding files to this zip?
Click to expand...
Click to collapse
Well it would depend on where you want the file to go, that is the directory you put it in. Yes inside the zip. Best thing i can do, is if you wanna pop by the irc channel #xoom on freenode, i could walk you through one.
ok definately how do i get there? i just use xoomforums and xda :-/
bwcorvus said:
Well it would depend on where you want the file to go, that is the directory you put it in. Yes inside the zip. Best thing i can do, is if you wanna pop by the irc channel #xoom on freenode, i could walk you through one.
Click to expand...
Click to collapse
I guess this refer to:
http://webchat.freenode.net/
where it's self explanatory?
bwcorvus said:
In the IRC channel, bigrushdog and myself have created an update script for the xoom. Its a WIP, but we have used it to install themes, apps, and even the current tiamat kernel. Just put the files/folders into the /data or /system folders inside the zip. Flash in recovery. For this to work, you MUST have busybox installed on the xoom.
Original
Added stiffspliff data wipes
Click to expand...
Click to collapse
which zip should we be using? Is the only difference is that the wipe.zip will erase the original file during the flash process? So I need to place an apk file into the system folder within the update.zip to get it to flash.
TheBurgh said:
which zip should we be using? Is the only difference is that the wipe.zip will erase the original file during the flash process? So I need to place an apk file into the system folder within the update.zip to get it to flash.
Click to expand...
Click to collapse
The wipe just has cache wipes, so you can use either. I'll edit it when I get home.
Sent from my PC36100
bwcorvus said:
The wipe just has cache wipes, so you can use either. I'll edit it when I get home.
Sent from my PC36100
Click to expand...
Click to collapse
just copy files/folders you want to install to the correct folders in the update.zip and flash?
TheBurgh said:
just copy files/folders you want to install to the correct folders in the update.zip and flash?
Click to expand...
Click to collapse
That's it man.
Sent from my PC36100
bwcorvus said:
That's it man.
Sent from my PC36100
Click to expand...
Click to collapse
Give it a shot. Thanks
Bump for update
so if your file is within a subfolder in system would you make the same subfolder in the update script (in the appropriate folder of course)? My guess is yes.
EDIT
Yes I got it. But what is the best way to zip it back up. I used winzip and my first try caused the install to abort? The 2nd time I tried it I just moved stuff around in the original update script using winrar and it worked. My guess is winzip f'd it up somehow.
Thanks
kev0153 said:
so if your file is within a subfolder in system would you make the same subfolder in the update script (in the appropriate folder of course)? My guess is yes.
EDIT
Yes I got it. But what is the best way to zip it back up. I used winzip and my first try caused the install to abort? The 2nd time I tried it I just moved stuff around in the original update script using winrar and it worked. My guess is winzip f'd it up somehow.
Thanks
Click to expand...
Click to collapse
I usually just add stuff to the zip. Never actually unzip it. Do not try to rename stuff inside the zip though, always makes it fail.
Sent From My Evo
SO I have done some tireless searching but have not found any the answer, So I figured I would give it a shot here.
JonMayer over in the CM7 thread found the solution to the (at least to me) annoying issue of not being able to adjust call volume. The solution in is here http://forum.xda-developers.com/showpost.php?p=20337874&postcount=3914
I was going to try to make a flashable zip for this so it would be a simple fix instead of having to change the system file. Its really just overlaying a file with 2 value changes. but all of the guides i see on making flashable zips are for apk's and themes and such...Can anyone point me in the right direction??
If you pre-edit the file just take a simple zip like my circle battery mod, and using Windows explorer with jzip (should be built in) you open the zip, make the directory structure exactly as listed and put your file where it belongs. It will replace the file on your phone when you flash it.
So in otherwords under system in the zip you will click it, delete the app folder, right click and add new folder usr, then click that and add new folder keylayout, click that and add the file to that.
kennyglass123 said:
If you pre-edit the file just take a simple zip like my circle battery mod, and using Windows explorer with jzip (should be built in) you open the zip, make the directory structure exactly as listed and put your file where it belongs. It will replace the file on your phone when you flash it.
So in otherwords under system in the zip you will click it, delete the app folder, right click and add new folder usr, then click that and add new folder keylayout, click that and add the file to that.
Click to expand...
Click to collapse
Awesome! That's kind of what I was thinking, but want sure. I am going to give it a shot !
Edit: do I have to resign the zip?
Sent from my SPH-D700 using xda premium
adamdelozier said:
Awesome! That's kind of what I was thinking, but want sure. I am going to give it a shot !
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I make flashables that way all the time. Saves a lot of FC issues.
Just out of curiosity, has anyone seen this/use it? http://forum.xda-developers.com/showthread.php?t=1248486
Sent from my SPH-D700 using xda premium
Ceelos09 said:
Just out of curiosity, has anyone seen this/use it? http://forum.xda-developers.com/showthread.php?t=1248486
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
i will be checking this out tomorrow!
Sent from my SPH-D700 using xda premium
adamdelozier said:
i will be checking this out tomorrow!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
kennyglass123 said:
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
will do. kind of excited to start checking out the development end of things. but with a 7 week old AND a 7 year old, time its pretty short!
Sent from my SPH-D700 using xda premium
adamdelozier said:
will do. kind of excited to start checking out the development end of things. but with a 7 week old AND a 7 year old, time its pretty short!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Family first man! I am happy with my swap method but interested in learning more about the scripts used.
Sent from my SPH-D700 using XDA App
kennyglass123 said:
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
SO, the tool looks good, very simple and gives you both the edify and amend options for the scripter. I think my issue is because I am on CM7 and the files sytsem is MTD, I have not been able to figure out the mountpoint, in order to mount the system folder as R/W. I keep getting status 6 errors and it wont flash. I hjave spent about 2 hours on this this morning and am stumped. I even got the updater script from the CM7 install to see if i could find it there, but all I am seeing is mount ("yaffs2", "MTD", "system", "/system) and that isnt working. The version attached is using the mount script I found here - http://forum.xda-developers.com/showthread.php?t=994940 but in that thread it doesn't show the mount point for the Epic 4G.
Again, all I am trying to accomplish here is to overlay the qwerty.kl file with the one in my zip. having this much trouble with just this small zip, makes me have even MORE appreciation for the ones putting these ROMS together!
I have attached the mess here to see if anyone could take a look and help an aspiring developer out
The mount point for /system on yaffs2 is /dev/block/mtdblock2
So you would do:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system
And to remount as read only when you're done (not sure its necessary?) Replace the rw with ro:
mount -o ro,remount -t yaffs2 /dev/block/mtdblock2 /system
xBTx said:
The mount point for /system on yaffs2 is /dev/block/mtdblock2
So you would do:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system
And to remount as read only when you're done (not sure its necessary?) Replace the rw with ro:
mount -o ro,remount -t yaffs2 /dev/block/mtdblock2 /system
Click to expand...
Click to collapse
Awesome!! I will give that a try now.
adamdelozier said:
Awesome!! I will give that a try now.
Click to expand...
Click to collapse
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
xBTx said:
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
Click to expand...
Click to collapse
I noticed that and was converting it. Thanks again!
Sent from my SPH-D700 using xda premium
adamdelozier said:
I noticed that and was converting it. Thanks again!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
You're very welcome.
xBTx said:
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
Click to expand...
Click to collapse
So I am still getting status 6
Code:
ui_print("Preparing to update");
# mounting system as r/w - ATTENTION - set the the mount point
# to the proper for your device! Example mountr command is
# mounting system for Samsung GT-I5800 aka Galaxy 3
mount("yaffs2", "MTD", "system", "/system");
ui_print("Installing volume control while screen off..");
# copy system content to the system directory on your device
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done! You may now reboot your phone and enjoy the experience ;-P");
Use notepad++ to save the updater script. See if that helps.
xBTx said:
Use notepad++ to save the updater script. See if that helps.
Click to expand...
Click to collapse
When I do that, it saves it as a text file. Is that OK?
Man, this is some frustrating sh*t! Lol!
Sent from my SPH-D700 using xda premium
adamdelozier said:
When I do that, it saves it as a text file. Is that OK?
Man, this is some frustrating sh*t! Lol!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
If you open up your zip and drag the updater script to your desktop, right click and hit "Edit with Notepad++" then you can edit it and save it, and it won't add the extension.
xBTx said:
If you open up your zip and drag the updater script to your desktop, right click and hit "Edit with Notepad++" then you can edit it and save it, and it won't add the extension.
Click to expand...
Click to collapse
Its a no go man. No matter what I do, I get a Status 6 error in CWM. I think I quit for now. I have been screwing around with this on and off for 6 hours! Maybe I am just stupid today!!
I was just doing some more digging. Could it be the update-binary that is screwing it up? The files I am using are from a BML zip???
Edit: I guess not...I just took the update-binary from the CM7 ROM package and still getting that stupid status 6...
How Do I make an updater.script to flash a zip through recovery that flashes framework, system/apps, data/apps, and bootanimations into CM9 alpha5?
deciple said:
How Do I make an updater.script to flash a zip through recovery that flashes framework, system/apps, data/apps, and bootanimations into CM9 alpha5?
Click to expand...
Click to collapse
Just take an existing script like my KGBlues CM9 theme and make all the right directories and put your files in there. Then remove the files from the theme.
Sent from my SPH-D700 using xda premium
What kenny said unless you want to write your own commands to mount system and have it rewrite what your trying to replace. If you know linux coding its not too hard or if you take a look at someone elses updater..and follow the commands you can edit the ui_print to what ever you want . Id say go look at shanes updater script...cuz his will mount everything unmount and wipe caches...I think.
Sent From My SPH-D700 Running Android 4.0
Ok, I looked at booth of their scripts and what do I add for flashing boot animation.zips? Also do I need yo add anything to write to data/app?
Sent from my SPH-D700 using xda premium
deciple said:
Ok, I looked at booth of their scripts and what do I add for flashing boot animation.zips? Also do I need yo add anything to write to data/app?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
If the script says anything like rewrite or has "rw" look at it and duplicate but change the directory such as it may say rw /system/app change the last folder to /system/media.
Sent From My SPH-D700 Running Android 4.0
In my updater script this will mount the system and will replace the /system/framework, /system/app, /system/media.
which is usually for themes the framework-res.apk, the systemui.apk, and the bootanimation.zip.
If you want it to replace /data/app then look at the previous commands and edit the directory to delete your desired app and the next command it will extract it and you need to create that folder and place the app and make sure the command is rewritten to that directory. Hope this helps.
For example you want to add XDA.apk then you would do this.
run_program("/sbin/busybox", "mount", "/data");
delete("/data/app/XDA.apk");
package_extract_dir("data", "/data");
run_program("/sbin/busybox","unmount","/data")
Now its correct sorry I forgot /data is where apps are.
That's pretty cool, thanks, that helps big time.
Sent from my SPH-D700 using xda premium
deciple said:
That's pretty cool, thanks, that helps big time.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Plus if you use the script from my theme it mounts system already.
Sent from my SPH-D700 using xda premium
kennyglass123 said:
Plus if you use the script from my theme it mounts system already.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
That's part if this code
It mounts the directory this case being the /data
Sent From My SPH-D700 Running Android 4.0
so if i wanted to rewrite nv/nvm file what woull it look like?how would i start the script?please help,ty
Test
XDA Premium
................
XDA Premium
i try to make a cwm flashable zip today
see some xda post and finally flashed apk in /data/app
but i don't the script is actually right or not, just know it work
i follow this
http://forum.xda-developers.com/showthread.php?t=1545165
and this
sign+ v1.2.2
http://forum.xda-developers.com/showthread.php?t=997180
1. download the data.zip
2. unzip it and place the apk you want to flash into /data/app
3. edit update-binary file
in META-INF\com\google\android
i add following script
ui_print is the words you want to show in cwm
ui_print(" PLACE YOUR TEXT HERE ");
ui_print("----------------------");
run_program("/sbin/busybox", "mount", "/data");
show_progress(1, 15);
ui_print("Copying files...");
package_extract_dir("data", "/data");
unmount("/data");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Installation complete!");
refer [] AL [] (http://forum.xda-developers.com/showthread.php?t=1545165
)
2 important notes here though in order to avoid problems:
* Each line of the updater-script MUST end with a ";" (no " ") ;
* There HAS TO BE at least one blank line after the last ( ; ) line of code.
4. zip META-INF and data folder to zip file as storage(no compression)
5. use sign+ v1.2.2, it will sign the zip file
6. then you can put it on you phone and flash it
if you want to flash the apk in system/app/
just change the name of folder from data to system
and the script also change "data" to "system"
i don't know the script is 100% correct or not
if it is not please correct me
You know, it would be much easier to simply place the apk in /data/app using a root file explorer... it would save you all the fuss. Unless you're trying to automate something/make a CWM package for release...
Hi,
Like as said FredFS456 it's the simply way.
Or use a "generic" CMW.zip like this:https://rapidshare.com/files/1752806149/CMW_data_app.zip
Put your app in /data/app inside the zip file (with winrar for example) and it's good to flash it...For you,you ask for a CMW.zip just for /data/app...
With right permissions.
In any case you can take another CMW.zip file for another apps or files,in the theme and apps or dev section there is a bunch of CMW.zip that you can take for your use (/system/app-/data/app-/system/framework-etc...),just erase/remplace your files...
I also need a generic CMW zip to replace the framework-res.apk for my gradient mapping fix Anyone got one?
arzbhatia said:
I also need a generic CMW zip to replace the framework-res.apk for my gradient mapping fix Anyone got one?
Click to expand...
Click to collapse
Hi,
Here:https://rapidshare.com/files/288220955/CMW_Framework.zip
According it's just for your request.
But guys...It's so difficult to take any CMW zip file?As I said above there are around depending on what you want...
Just take a zip and modify it what you want...unless you take a zip for /system/app and you want a /system/framework..
At worst take a complete ROM,delete all files in each folder (keep folders) and add what you want in each folders (like system/app-System/framework-etc) and erase all except the "META-INF" folder!
CREDITS:A thanks goes to all those who I took these CMW zip files...
FredFS456 said:
You know, it would be much easier to simply place the apk in /data/app using a root file explorer... it would save you all the fuss. Unless you're trying to automate something/make a CWM package for release...
Click to expand...
Click to collapse
i have a sc-04d galaxy nexus which have a sim lock
after full wipe and flash a new rom (sim lock again) it have not any file explorer
if i have not wifi connection , no PC, i have no way to use the ****domoco apk to unlock sim card
so i make this flashable zip, flash the ****domoco apk and file explorer in the phone
and get the 3g signal
viking37 said:
Hi,
Like as said FredFS456 it's the simply way.
Or use a "generic" CMW.zip like this:https://rapidshare.com/files/1752806149/CMW_data_app.zip
Put your app in /data/app inside the zip file (with winrar for example) and it's good to flash it...For you,you ask for a CMW.zip just for /data/app...
With right permissions.
In any case you can take another CMW.zip file for another apps or files,in the theme and apps or dev section there is a bunch of CMW.zip that you can take for your use (/system/app-/data/app-/system/framework-etc...),just erase/remplace your files...
Click to expand...
Click to collapse
no need to sign the zip again if change the content?
why something need signed a flashable zip?
ygvuhb said:
no need to sign the zip again if change the content?
why something need signed a flashable zip?
Click to expand...
Click to collapse
Hi,
No,I do this when I want a CWM.zip,I never signed the zip and everything is good.
Just be careful what you put in the zip file and what it is intended...
Second question...I don't know...
viking37 said:
Hi,
No,I do this when I want a CWM.zip,I never signed the zip and everything is good.
Just be careful what you put in the zip file and what it is intended...
Second question...I don't know...
Click to expand...
Click to collapse
Hey, sorry to hijack this thread, but could someone make a CWM flashable zip with superuser in the system/app folder? I installed a beta rom, and root doesn't seem to be working properly :/
EDIT: Nevermind, I installed AOKP, gonna play it safe for a while.
hi
if i want to change the file premission
any script i have to add?
Hi guys, im trying to find/create a cwm zip that will install IO file manager, i've downloaded several here on xda but they dont work because their not compatible with edify.
I tried using this application http://forum.xda-developers.com/showthread.php?t=903598 to convert the zip to edify but now when i flash cwm gives me a "status 0" error.
Can any of you guys help me with this?
Thanks in advance.
The script of magic
or you can use this really easy script my friend
try it on it works! plus you can write more staff than apks cause copy everything that is at main system
ui_print("Test Script");
ui_print("By ~:Infeno:~");
show_progress(0.500000, 0);
ui_print("Writing System");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Finishing of copying Apks and etc...");
show_progress(0.100000, 0);
i was wondering how to make a app install to the data partition that makes it a removable app if not wanted by user. Also some apps dont work correctly if installed to the system partition. i remember in ICS xperia play the directory was rom.zip-> data/app or in rom.zip-> /system/etc/product/applications/ but will any of these methods work on GB?
xdarkmario said:
i was wondering how to make a app install to the data partition that makes it a removable app if not wanted by user. Also some apps dont work correctly if installed to the system partition. i remember in ICS xperia play the directory was rom.zip-> data/app or in rom.zip-> /system/etc/product/applications/ but will any of these methods work on GB?
Click to expand...
Click to collapse
Put your apps in zip=>/data/app
and add to updater-script:
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
That should work on any rom ( gb,ics or jb)
You can name folders differently, but you must maintain path
example:
zip=>/myapps/ -all your apk here-
line in updater script should be:
package_extract_dir("myapps", "/data/app");
First name is name of the folder in zip (and it will extract all the subfolders too), second name where it is extracted (subfolders will be copied too)...
Bakisha said:
Put your apps in zip=>/data/app
and add to updater-script:
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
That should work on any rom ( gb,ics or jb)
You can name folders differently, but you must maintain path
example:
zip=>/myapps/ -all your apk here-
line in updater script should be:
package_extract_dir("myapps", "/data/app");
First name is name of the folder in zip (and it will extract all the subfolders too), second name where it is extracted (subfolders will be copied too)...
Click to expand...
Click to collapse
thanks it worked you forgot the run_program("/sbin/busybox", "mount", "/data"); btw
and some if not all to the apps i install using this method force closes but one when i use them, is the 1000, 1000, 0771, 0644 some kind of permission code?
xdarkmario said:
thanks it worked you forgot the run_program("/sbin/busybox", "mount", "/data"); btw
and some if not all to the apps i install using this method force closes but one when i use them, is the 1000, 1000, 0771, 0644 some kind of permission code?
Click to expand...
Click to collapse
Oh yeah, that and
unmount("/data");
at the end of updater-script
Permission is to give ownership to system (1000 is for system), 771 is permission for folder and 644 are for apps in folder
Don't ask me why and how. it's a linux thing... and i'm a windows user
Maybe a picture can explain it better
Btw, i didn't understand, you mean when you install it from zip (in recovery), those apps FC?
i was saying that after i install the rom and boot up the rom and try to launch the apps i installed using the method the apps are installed but when i click on them they FC
xdarkmario said:
i was saying that after i install the rom and boot up the rom and try to launch the apps i installed using the method the apps are installed but when i click on them they FC
Click to expand...
Click to collapse
It should work.
Did you do factory reset (wipe data partition from recovery)?
I mean, on clean install it should work.
Check folder structure. If in zip there are data/app folder and if you are extracting them to data/app , final result will be files extracted to /data/data/app and not data/app
Sent from my R800i using xda app-developers app
Bakisha said:
It should work.
Did you do factory reset (wipe data partition from recovery)?
I mean, on clean install it should work.
Check folder structure. If in zip there are data/app folder and if you are extracting them to data/app , final result will be files extracted to /data/data/app and not data/app
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
i found out that it was the apps, some of them like touchpal do not like being installed automatically and miui borwser cannot be installed as a data app. So pretty much it worked thanks.
xdarkmario said:
i found out that it was the apps, some of them like touchpal do not like being installed automatically and miui borwser cannot be installed as a data app. So pretty much it worked thanks.
Click to expand...
Click to collapse
Ok, good to know. YW
Sent from my R800i using xda app-developers app