[Q] How to make updater-script? - Android Q&A, Help & Troubleshooting

hi DEV....
I want to make the updater-script for my update.zip.
how the script is correct. if I want to do this:
1. create a folder "backupApp" in sdcard
2. copy "/system/app/browser.apk" to "sdcard/backupApp/browser.apk"
3. Delete "/system/app/browser.apk".
I want to uninstall browser.apk of the system.
thanks.

For 2 it should be like this
First you need to mount system hence the foll command
run_program("/sbin/busybox", "mount", "/system");
Then for copying it
run_program("/sbin/busybox", "cp", "/system/app/browser.apk", /sdcard/backupApp/browser.apk");
And for 3
delete("/system/app/browser.apk");
This should be it if i am not wrong

but, on the sdcard, nothing folder "backupApp", how to make it?

run_program("mkdir", "/sdcard/XYZ");
Sent from my Elder Wand

iamareebjamal said:
run_program("mkdir", "/sdcard/XYZ");
Sent from my Elder Wand
Click to expand...
Click to collapse
Thanks, I will try that.

Related

error flashing custom rom using dsixda

Hi... I am trying to cook my rom with DSIXDA cygwin
but when I Build Rom and try flashing it with CWM:
first try flashing
1. ROM I get the error "mount expects 4 args got 3
ok I know what it means...
so I copy 'mtd-update-binary' to /META-INF/com/google/android as "update-binary".
2nd try flashing
I got Error Status 0
so I copy 'emmc-update-binary' to /META-INF/com/google/android as "update-binary".
3rd try flashing
I got error status 7
try copy another file and rename it to update binary
4th try flashing
error status 7
or maybe my updater scipt is wrong
I really dont have a clue right now...
Rebuild your updater script....and if you cooking a stock rom.....
U shouldn't need to change the updater-script.....oh and if your using the kitchen....use the check for update-script errors (you need to convert edify to amend first)
Edit: and if your getting status 7....that is an issue with system/build.prop and status 0 is you didn't sign correctly
mdfaisal said:
Hi... I am trying to cook my rom with DSIXDA cygwin
but when I Build Rom and try flashing it with CWM:
first try flashing
1. ROM I get the error "mount expects 4 args got 3
ok I know what it means...
so I copy 'mtd-update-binary' to /META-INF/com/google/android as "update-binary".
..
Click to expand...
Click to collapse
I think you got the first thing itself wrong.
Btw, which device?
Checking the updater-script:
You neee to input four arguments here perhaps:
mount("MTD", "userdata", "/data");
akshaybz said:
I think you got the first thing itself wrong.
Btw, which device?
Checking the updater-script:
You neee to input four arguments here perhaps:
mount("MTD", "userdata", "/data");
Click to expand...
Click to collapse
Maybe
mount("ext4", "EMMC", "userdata", "/data");
Herpderp Defy.
Holding on to what I haven't gooooooooooooooooooot
xmc wildchild22 said:
Rebuild your updater script....and if you cooking a stock rom.....
U shouldn't need to change the updater-script.....oh and if your using the kitchen....use the check for update-script errors (you need to convert edify to amend first)
Edit: and if your getting status 7....that is an issue with system/build.prop and status 0 is you didn't sign correctly
Click to expand...
Click to collapse
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
EmoBoiix3 said:
Maybe
mount("ext4", "EMMC", "userdata", "/data");
Herpderp Defy.
Holding on to what I haven't gooooooooooooooooooot
Click to expand...
Click to collapse
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
mdfaisal said:
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
Click to expand...
Click to collapse
What device do you have and is it emmc or mtd?
私のEVO 3Dから送信される。
dastin1015 said:
What device do you have and is it emmc or mtd?
私のEVO 3Dから送信される。
Click to expand...
Click to collapse
LG optimus black...
in previous (that works) updater script i thinks it's an EMMC
Maybe not "userdata" , but probably "dev/block/*insert data partition number code here*"
Herpderp Defy.
guys I think I solved the problems
I change this following script:
from:
mount("MTD", "userdata", "/data");
to:
mount("ext4", "EMMC", "userdata", "/data");
and from:
mount("MTD", "system", "/system");
to
mount("ext4", "EMMC", "system", "/system");
and delete
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
I hope it works fine...
mdfaisal said:
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
Click to expand...
Click to collapse
Ha I got "mount expects 3 args got 2" back to the drawing board.
Sent from my powered Shooter E3D with Infection of AnthraX Jamz by wolf.

[Q] Stock 1.4.0~1.4.2 image?

Hey - I'm looking for a stock, unrooted image of the original BN software. I'd like to restore the image via CWM as mine is screwed up with GApps - a factory reset does not get rid of it.
Thanks!
Just for the gapps there is no need to flash images. btw you don't mention for what model if 8GB or 16GB.
Here's a trick that might work... the gapps zip (most of well done zips) contains a script named updater-script within META-INF >> com >> google >> android >> updater-script which contains the following code:
* Uncompress the gapps zip e.g: gapps-gb-20110828-signed.zip in another folder to get access to updater-script file
ui_print("GApps 20110828");
ui_print(" For Android 2.3.5");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Deleting old APKs...");
delete("/system/app/Books.apk",
"/system/app/BooksPhone.apk",
"/system/app/CarHomeLauncher.apk",
"/system/app/CarHomeGoogle.apk",
"/system/app/FOTAKill.apk",
"/system/app/GenieWidget.apk",
"/system/app/Gmail.apk",
"/system/app/GoogleBackupTransport.apk",
"/system/app/GoogleCalendarSyncAdapter.apk",
"/system/app/GoogleContactsSyncAdapter.apk",
"/system/app/GoogleFeedback.apk",
"/system/app/GooglePartnerSetup.apk",
"/system/app/GoogleQuickSearchBox.apk",
"/system/app/GoogleServicesFramework.apk",
"/system/app/googlevoice.apk",
"/system/app/kickback.apk",
"/system/app/LatinImeTutorial.apk",
"/system/app/Maps.apk",
"/system/app/MarketUpdater.apk",
"/system/app/MediaUploader.apk",
"/system/app/NetworkLocation.apk",
"/system/app/OneTimeInitializer.apk",
"/system/app/SetupWizard.apk",
"/system/app/Provision.apk",
"/system/app/QuickSearchBox.apk",
"/system/app/soundback.apk",
"/system/app/Street.apk",
"/system/app/Talk.apk",
"/system/app/Talk2.apk",
"/system/app/talkback.apk",
"/system/app/Vending.apk",
"/system/app/VoiceSearch.apk",
"/system/app/YouTube.apk",
"/system/etc/permissions/com.google.android.maps.xml",
"/system/etc/permissions/features.xml",
"/system/framework/com.google.android.maps.jar",
"/system/lib/libmicrobes_jni.so",
"/system/lib/libtalk_jni.so",
"/system/lib/libvoicesearch.so");
ui_print("Copying new APKs...");
package_extract_dir("system", "/system");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Click to expand...
Click to collapse
You could modify it with Notepad or Notepad++(Highly recommended) and for example remove the line "/system/app/YouTube.apk", if you have it installed and don't want the script "delete" it because it is under ui_print("Deleting old APKs..."); section so it will delete all the apps stated after that piece of code.
Then you could remove this part:
ui_print("Copying new APKs...");
package_extract_dir("system", "/system");
Click to expand...
Click to collapse
Because you are modifying the code to be your uninstaller so no apk's will be installed. Once done save changes and replace the original file with your modified by drag and dropping it while you have gapps-gb-20110828-signed.zip opened with WinRAR or 7ZIP.
One more and obvious thing is that you must delete the system folder of the gapps-gb-20110828-signed.zip file or leave the system folder empty (probably is better to keep system folder but empty)
~ Veronica
Sent from XDA premium using my Nook Tablet
lavero.burgos said:
Just for the gapps there is no need to flash images. btw you don't mention for what model if 8GB or 16GB.
Here's a trick that might work... the gapps zip (most of well done zips) contains a script named updater-script within ....
I'LL CONTINUE THIS POST SOON
~ Veronica
Sent from XDA premium using my Nook Tablet
Click to expand...
Click to collapse
I think I fixed the issue, but I'd like to see the rest of your post
PS - 16GB
[EDIT] Ok, I totally fixed it thanks to a couple of users! Here's what I did:
I used cobrato's 1.4.1 zip which I flashed via CWM - this got rid of the Google Setup Wizard, but added extras I did not want. Then I used Indirects One Click Unroot, which performed a factory software install. So now I'm back to 1.4.2 and COMPLETELY stock.
Time to back up this image! That being said, I would sure help some folks if we had totally stock, unrooted images that can be installed via CWM.
Finished my post...
~ Veronica

Flashable Batch of Apps from CWM

Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
its easy,but system partition have a size limit
i've tried making it but keep getting a "status 0 aborted" error.
What is the system size limit?
Will it help if i delete some big apps from system like maps and swype? I already have almost 50mb free on sys partition.
Can you give me the dummy file to test. preferably both for /data/app and /system/app
broadways said:
Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
Click to expand...
Click to collapse
you need to sign the zip via zip signer (search in themes and apps) and write an updator script (google it)
i dont think size matters much because many rom zips contain only a /system folder
system folder has only 1limitation
the total memory is 222 mb so be carefull about that
your apps should not exceed this size
I got it working... Here is the code for anyone who needs it... found @ META-INF\com\google\android\updater-script file
Code:
ui_print("Partitions mount");
#Properly unmounting to avoid issues
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
#Then mounting
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("System folder application installation");
package_extract_dir("system", "/system");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Finish");
With this code, anyone can load multiple apps from flash in 5 seconds.
There's another problem. While installing apps @ system/app works fine with the above script, a different script for installing apps @ data/app doesn't work at all. I have created a thread for this issue at the following link below:
http://forum.xda-developers.com/showthread.php?p=35698853
broadways said:
Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
Click to expand...
Click to collapse
I think its better to make a backup using CWM and restore only data.
copy the zip from my signature (stock deadexed)
its for flashing bunch of apps to our device
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ sent using busybox command via Cytherea phone ~
Spoiler
LESSON 1: dont ask for ETA's, the mod-wanna-be-guy will report it
---------- Post added at 02:24 PM ---------- Previous post was at 02:23 PM ----------
add or delete any apps from app folder..
dont forget to delete framework folder as u not need it..
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ sent using busybox command via Cytherea phone ~
Spoiler
LESSON 1: dont ask for ETA's, the mod-wanna-be-guy will report it

[Guide][Tool]How To Make Flashable Zips For Xperia Devices

..::Hey Guys i'm Back With My New Tool/Guide On How To Make a Flashable Zip::..
..::About Tool/Guide::..
1)This Will Learn U How to Make a Zip
2)This Will Help Dev,Themers & NOOBS Making There Own Zips Fast And Easily
3)Including Auto Set/Fix For Permissions
..::Requirements::..
1)Files U Need To Put In Zip
2)CWM Recovery To Flash Zips
3)7Zip/Winrar/Winzip
4)NotePad++
5)Flashable Zip Tool
..::Steps::..
Download Flashable Zip Tool:Download From Here
Extract The Folder (Flashable Zip Tool) Anywhere in Ur Desktop
Open Flashable Zip Maker[Don't Extract]
Now U will Find/See 4 Folders:data,META-INF,preload,system
Lets Start With System Folder
First Open system Inside The Zip
Copy Ur Apk/Jar/so/xml File To The Right Place"
/system/app - All The System Apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk,android.policy.jar
/system/etc - vold.fstab,.xml files
/system/media - (Bootanimation)(System Sounds)
/system/lib - libraries (*.so)
/system/fonts -(fonts)
Second Edit Updater-Script
in Flashable Zip Maker Folder u Will Find A File Called Updater-Script
Edit Using NotePad++ (U can Edit Some Lines I but Like (Your Name),(Your Mod Name)
Now After Editing Copy and Go to META-INF>com>google>android (Inside Flashable Zip Maker.Zip)
Delete Updater-Script And Past Yours
Now Ur Zip Is Ready To Sign Copy-Past To Put-Zip-To-Sign-Here Folder''
And Open ZIP_Auto-Signer.bat
Ur Zip Will Be Ready To Flash Go To Finished "Folder" U Will Find a Zip Called signed.zip
Rename to What Ever U Want
Third How To install
Copy To Ur Sd-Card
Turn Of Ur Devices
Flash In CWM Recovery
Done U Now Made And Installed UR New Flashable Zip
Liked If Yes Don't Forget To Press Thanx
​
Reseved
Hey Guys This is a Great Tool Did any one try
P.s This is My First one
And if a want to flash an app, but not a system app?
Inviato dal mio Xperia U con Tapatalk 2
alematt said:
And if a want to flash an app, but not a system app?
Inviato dal mio Xperia U con Tapatalk 2
Click to expand...
Click to collapse
but it in data folder
try ur self plz
but the apk in data>data folder
then sign the apk
Press thanks if i helped
Hey any one tried
Sent from my MT27i using xda app-developers app
dont work
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx
hamidreza2010 said:
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx
Click to expand...
Click to collapse
in data folder make another folder called data
it should be like this
data>data>(ur app)
Mtakween said:
in data folder make another folder called data
it should be like this
data>data>(ur app)
Click to expand...
Click to collapse
tnx
i maked it but not work too
what is my wrong?
how to sign the apk file?
or are needed to sing apk file?
hamidreza2010 said:
tnx
i maked it but not work too
what is my wrong?
how to sign the apk file?
or are needed to sing apk file?
Click to expand...
Click to collapse
no the name of apk file should be like when u take it from data>data folder or i won't work
it is like that com.bla bal bla
ok try this should work
Mtakween said:
no the name of apk file should be like when u take it from data>data folder or i won't work
it is like that com.bla bal bla
ok try this should work
Click to expand...
Click to collapse
tnx man
but im not english man
i dont undrestant
please say the easy way
or say simple example
thanx
hamidreza2010 said:
tnx man
but im not english man
i dont undrestant
please say the easy way
or say simple example
thanx
Click to expand...
Click to collapse
The start of ur name is Hamid this is an Arabian name
Do u know Arabic
Sent from my MT27i using xda app-developers app
Mtakween said:
The start of ur name is Hamid this is an Arabian name
Do u know Arabic
Sent from my MT27i using xda app-developers app
Click to expand...
Click to collapse
ha ha ha ha ha
no freind im not arabian
please help me brother
i very love your program and i love to make a flashable zip
---------- Post added at 03:45 PM ---------- Previous post was at 03:35 PM ----------
i want to make the apk file (not system files) in flazhable zip
please say what should i do.
please say compelete
thanx
hamidreza2010 said:
ha ha ha ha ha
no freind in not arabian
please help me brother
i very love your program and i love to make a flashable zip
---------- Post added at 03:45 PM ---------- Previous post was at 03:35 PM ----------
i want to make the apk file (not system files) in flazhable zip
please say what should i do.
please say compelet
thanx
Click to expand...
Click to collapse
U want to make as system app
Or normal
As I. See no need to make a flash-able zip if u won't make a system app
Sent from my MT27i using xda app-developers app
Mtakween said:
U want to make as system app
Or normal
As I. See no need to make a flash-able zip if u won't make a system app
Sent from my MT27i using xda app-developers app
Click to expand...
Click to collapse
ooooooooooooh
i want to make a flashable zip from the normal apk like es fila manager
how do i make it?
cant make with your programm
Hi, thank you for this Guide...
I have some questions...
If i want to update e.g. Google Play app with this script, how should I name the file? In my phone /system/apk/ is Phonesky.apk and you wrote that the name of the application should be com.SOMETHING, in this case com.android.vending.
And my second question is, can i delete unwanted apps? What i need to add to script?
Thank You
Ja_som said:
Hi, thank you for this Guide...
I have some questions...
If i want to update e.g. Google Play app with this script, how should I name the file? In my phone /system/apk/ is Phonesky.apk and you wrote that the name of the application should be com.SOMETHING, in this case com.android.vending.
And my second question is, can i delete unwanted apps? What i need to add to script?
Thank You
Click to expand...
Click to collapse
For system apps no need
Copy it as it is
Sent from my MT27i using xda app-developers app
I'm sorry, I don't understand your reply...
What copy as is? What no need?
So name should be Phonesky.apk, and app will be replaced, right?
I want to delete unwanted apps... Therefore, I ask if you can advise me what to embed to script.
Ja_som said:
I'm sorry, I don't understand your reply...
What copy as is? What no need?
So name should be Phonesky.apk, and app will be replaced, right?
I want to delete unwanted apps... Therefore, I ask if you can advise me what to embed to script.
Click to expand...
Click to collapse
Yes it will be replaced
This is right it will work of you done it like that
About unwanted apps
See jb fixes
By soulhackereborn
Sent from my MT27i using xda app-developers app
I know which apps i can delete, but i want delete them in "one click"...
HERE on XDA is script to delete unwanted apps... I would like to combine it with your script... Can I simply copied it after ...Extracting... part of your script?
Something like this?
ui_print(" ");
ui_print("|==================================|");
ui_print("| Flashable Zip Tool |");
ui_print("|==================================|");
ui_print("| by: Mtakween |");
ui_print("|==================================|");
run_program("/sbin/sleep", "3s");
ui_print(" Your Mod Name ");
ui_print("By: (Your Name) ");
ui_print("------------------------------------");
ui_print("...Installing busybox... ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Mounting...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/preload");
run_program("/sbin/busybox", "mount", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Extracting...");
package_extract_dir("system", "/system");
package_extract_dir("preload", "/preload");
package_extract_dir("data", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("Useless system app removal");
delete("/system/app/APPNAME1.apk");
delete("/system/app/APPNAME2.apk");
ui_print(" ");
ui_print("Useless stuff cleaning finish");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Symlinking...");
package_extract_file("create_preload_symlinks", "/tmp/create_preload_symlinks");
set_perm(0, 0, 0777, "/tmp/create_preload_symlinks");
run_program("/tmp/create_preload_symlinks");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Setting permissions...");
package_extract_file("fix_permissions.sh", "/tmp/fix_permissions.sh");
set_perm(0, 0, 0755, "/tmp/fix_permissions.sh");
run_program("/tmp/fix_permissions.sh");
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Unmounting...");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/preload");
run_program("/sbin/busybox", "umount", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Deleting temporary files...");
delete("/tmp/busybox");
delete("/tmp/create_preload_symlinks");
delete("/tmp/fix_permissions.sh");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("....Completed successfully!....");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" Don't Forget To Press Thanks ");
ui_print(" ");
ui_print("------------------------------------");
Click to expand...
Click to collapse
---------- Post added at 09:08 PM ---------- Previous post was at 08:44 PM ----------
hamidreza2010 said:
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx
Click to expand...
Click to collapse
1. rename you apk to com.estrongs.android.pop.apk
2. copy it to /data/app/ (create app folder) in Flashable Zip Maker[Don't Extract].zip
3. edit script updater-script[Edit Then But In Signed Zip]
4. rename to updater-script
5. copy and replace script in Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
6. copy Flashable Zip Maker[Don't Extract].zip to Put-Zip-To-Sign-Here folder
7. run ZIP_Auto-Signer.bat
8. enjoy you flashable zip in Finished folder
But i don't know why you want to do it this way... You want to make preinstalled nonsystem app?
If helped don't forget to press Thanx also for Mtakween for his script

[Q] Include user app into flasheable ROM zip.

Hello guys! Hope you can help me with this.
I want to include some apps in my rom, but this app CANT be in the normal /system/app I want that they install as usar app every time i flash. It upose -i read it- that i should create a folder called "data" in the Root of my ROM. So i will have 3 folders: /META-INF/ /system/ and /data/
Along with this i have to edit with notepad++ the updater-script in the directory META-INF\com\google\android and add just below the line package_extract_dir("system", "/system"); the following:
format("yaffs2", "MTD", "userdata");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
And save the file. So i just have to put the .apk files in the /data/ and they will appear like *****in' magic every time i flash... But no, is not working .
Where is the error or what is the right wat to do it? Thanks
And yeah, english is not my native language
mauriciognr said:
Hello guys! Hope you can help me with this.
I want to include some apps in my rom, but this app CANT be in the normal /system/app I want that they install as usar app every time i flash. It upose -i read it- that i should create a folder called "data" in the Root of my ROM. So i will have 3 folders: /META-INF/ /system/ and /data/
Along with this i have to edit with notepad++ the updater-script in the directory META-INF\com\google\android and add just below the line package_extract_dir("system", "/system"); the following:
format("yaffs2", "MTD", "userdata");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
And save the file. So i just have to put the .apk files in the /data/ and they will appear like *****in' magic every time i flash... But no, is not working .
Where is the error or what is the right wat to do it? Thanks
And yeah, english is not my native language
Click to expand...
Click to collapse
If you want the app to be a system app, have you tried extracting the library files in the .apk? Open the .apk using WinRAR (an .apk is real
y like a .zip file) and open the folder 'lib' (if there is one). The folder within should be called something like 'armv7a' or 'armv6'. If your device is an ARMv6 device (search it up) the app may be incompatible with your device if there is no matching 'armv6' folder. If there is, open the folder and extract the .so file(s) and put them under /system/lib/ on your device, either with a root file browser, or with a .zip via CWM, Anyways, what app are you trying to install
?
Codename13 said:
If you want the app to be a system app, have you tried extracting the library files in the .apk? Open the .apk using WinRAR (an .apk is real
y like a .zip file) and open the folder 'lib' (if there is one). The folder within should be called something like 'armv7a' or 'armv6'. If your device is an ARMv6 device (search it up) the app may be incompatible with your device if there is no matching 'armv6' folder. If there is, open the folder and extract the .so file(s) and put them under /system/lib/ on your device, either with a root file browser, or with a .zip via CWM, Anyways, what app are you trying to install
?
Click to expand...
Click to collapse
Thanks for reply, but I already know that and already did it. Due to my phone have REALLY little rom memory. So my dream was to allow some apps to be instaled along with the rom.zip but as a user app. Im sick and tired already have almost a week like 6 hours day making my mod of a rom and now that is ready and sexy i cant "transfer the data folder from de rom.zip to data. Thanks for replay.
Have you looked into dsixda's kitchen? It will load your ROM and add in the bits needed to do what you want. The only downside is it isn't really updated anymore. You could also find a mod that flashes user apps in your phone's respective forum, then open it up and look at the updater-script.
Sent from a Toasted Devil
netwokz said:
Have you looked into dsixda's kitchen? It will load your ROM and add in the bits needed to do what you want. The only downside is it isn't really updated anymore. You could also find a mod that flashes user apps in your phone's respective forum, then open it up and look at the updater-script.
Click to expand...
Click to collapse
Now here I am with identical problem. In my case,
A. There is no forum with other mods for the TV Stick I am coding.
B. Dxixda's Kitchen chocked up with the AMLOGIC Kernel and refused to help further.
So here's my problem that, I have been breaking my head on this for a week now.
I have a TV Stick with android ICS 4.0.4, and has "yafss2" format. I have attached the mountpoint info, partition info and my updater script.
I am trying to mount the /Data Partition so that I can copy a test APK to /Data/App folder for now. Eventually I need to copy other stuff like app data to /data/data.
Although edify script requires the format
mount(type, device, mountpoint);
I need to do
mount("yafss2","MTD", "/dev/block/mtdblock7", "/data");
for some reason, otherwise the AMLOGIC Recovery gives error of missing parameter.
Anyway, even after following that format, its not working.
The subsequent "package_extract_dir" operation is not successful and I can see the files are not getting copied.
I'd dearly appreciate any pointers and advice.
may be you should set the permission on the /data instead of on the /system/app in you updater script.
hope this can help....
tepar said:
may be you should set the permission on the /data instead of on the /system/app in you updater script.
hope this can help....
Click to expand...
Click to collapse
I should have commented out that statement. I realized it after I posted. No it doesn't really matter anyway. The files didn't get copied to there's no permissions to set.

Categories

Resources