Electrify 2 (XT881) 4.1.2 deodex and debloat script - Motorola Droid RAZR

Hi all XT881 owners.
Here are my works for E2
Stock 4.1.2 deodex (/framework and /app folders)
4.1.2 debloat script (aroma based)View attachment Debloat_Electrify_2.zip
1 - these are 2 archives that contain fully deodexed apk-s and jar-s.
I'll provide full tutorial how to apply these files via adb.
Also, maybe, I'll compile zip installation pack.
2 - the simple aroma installer based script which removes the bloatware from the stock
Code:
ui_print("Mounting System");
mount("ext3", "EMMC", "dev/block/mmcblk1p20", "/system");
ui_print("Cleaning /app folder");
delete("/system/app/AcousticWarning.apk");
delete("/system/app/AcousticWarning.odex");
delete("/system/app/AmazonAppstore.apk");
delete("/system/app/amazonmp3.apk");
delete("/system/app/AmazonMshop.apk");
delete("/system/app/BlurUpdater.apk");
delete("/system/app/BlurUpdater.odex");
delete("/system/app/Books.apk");
delete("/system/app/CityID-release.apk");
delete("/system/app/Cmas.apk");
delete("/system/app/Cmas.odex");
delete("/system/app/com.mobitv.client.uscctv.apk");
delete("/system/app/ContactIce.apk");
delete("/system/app/ContactIce.odex");
delete("/system/app/DockComm.apk");
delete("/system/app/DockComm.odex");
delete("/system/app/DockService.apk");
delete("/system/app/DockService.odex");
delete("/system/app/Facebook.apk");
delete("/system/app/GameloftPortal.apk");
delete("/system/app/IMDB.apk");
delete("/system/app/KindleForAndroid-3.8.2.4-NoLibs.apk");
delete("/system/app/LetsGolf3_Motorola_Electrify2_NONIGP_USCC_EN_SP_GLLive_107.apk");
delete("/system/app/Magazines.apk");
delete("/system/app/MobilePosse_USCellular.apk");
delete("/system/app/MotoDockHelperService.apk");
delete("/system/app/MotoDockHelperService.odex");
delete("/system/app/MotoCare.apk");
delete("/system/app/MotoCare.odex");
delete("/system/app/MotoCareInt.apk");
delete("/system/app/MotoCareInt.odex");
delete("/system/app/MotoSignatureApp.apk");
delete("/system/app/OnlineAlbum.apk");
delete("/system/app/OnlineAlbum.odex");
delete("/system/app/PlusOne.apk");
delete("/system/app/PortalApp.apk");
delete("/system/app/PortalApp.odex");
delete("/system/app/slackerradio_3.2.1075_USC000.apk");
delete("/system/app/TEDC_1.2.0.26.apk");
delete("/system/app/tn70-android-uscc-7141069.apk");
delete("/system/app/TRDAndroid31.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/USCellular_WiFiNow.apk");
delete("/system/app/USCPhone.apk");
delete("/system/app/USCPhone.odex");
delete("/system/app/USCSettings.apk");
delete("/system/app/USCSettings.odex");
delete("/system/app/VSuiteApp.apk");
delete("/system/app/Zappos.apk");
ui_print("Cleaning /etc folder");
delete("/system/etc/amazon-kindle.properties");
delete("/system/etc/amzn.apps.ref");
delete("/system/etc/amzn.mshop.properties");
delete("/system/etc/Audible.param");
delete("/system/etc/zappos.conf");
unmount("/system");
ui_print("The script finished to debloat your phone");

Здаров.
Так форум же для xt910 и xt912...
Я не против, могут удалить просто.
Привет с родного края

PsyClip-R said:
Hi all XT881 owners.
Here are my works for E2
Stock 4.1.2 deodex (/framework and /app folders)
4.1.2 debloat script (aroma based)View attachment 2282740
1 - these are 2 archives that contain fully deodexed apk-s and jar-s.
I'll provide full tutorial how to apply these files via adb.
Also, maybe, I'll compile zip installation pack.
2 - the simple aroma installer based script which removes the bloatware from the stock
Code:
ui_print("Mounting System");
mount("ext3", "EMMC", "dev/block/mmcblk1p20", "/system");
ui_print("Cleaning /app folder");
delete("/system/app/AcousticWarning.apk");
delete("/system/app/AcousticWarning.odex");
delete("/system/app/AmazonAppstore.apk");
delete("/system/app/amazonmp3.apk");
delete("/system/app/AmazonMshop.apk");
delete("/system/app/BlurUpdater.apk");
delete("/system/app/BlurUpdater.odex");
delete("/system/app/Books.apk");
delete("/system/app/CityID-release.apk");
delete("/system/app/Cmas.apk");
delete("/system/app/Cmas.odex");
delete("/system/app/com.mobitv.client.uscctv.apk");
delete("/system/app/ContactIce.apk");
delete("/system/app/ContactIce.odex");
delete("/system/app/DockComm.apk");
delete("/system/app/DockComm.odex");
delete("/system/app/DockService.apk");
delete("/system/app/DockService.odex");
delete("/system/app/Facebook.apk");
delete("/system/app/GameloftPortal.apk");
delete("/system/app/IMDB.apk");
delete("/system/app/KindleForAndroid-3.8.2.4-NoLibs.apk");
delete("/system/app/LetsGolf3_Motorola_Electrify2_NONIGP_USCC_EN_SP_GLLive_107.apk");
delete("/system/app/Magazines.apk");
delete("/system/app/MobilePosse_USCellular.apk");
delete("/system/app/MotoDockHelperService.apk");
delete("/system/app/MotoDockHelperService.odex");
delete("/system/app/MotoCare.apk");
delete("/system/app/MotoCare.odex");
delete("/system/app/MotoCareInt.apk");
delete("/system/app/MotoCareInt.odex");
delete("/system/app/MotoSignatureApp.apk");
delete("/system/app/OnlineAlbum.apk");
delete("/system/app/OnlineAlbum.odex");
delete("/system/app/PlusOne.apk");
delete("/system/app/PortalApp.apk");
delete("/system/app/PortalApp.odex");
delete("/system/app/slackerradio_3.2.1075_USC000.apk");
delete("/system/app/TEDC_1.2.0.26.apk");
delete("/system/app/tn70-android-uscc-7141069.apk");
delete("/system/app/TRDAndroid31.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/USCellular_WiFiNow.apk");
delete("/system/app/USCPhone.apk");
delete("/system/app/USCPhone.odex");
delete("/system/app/USCSettings.apk");
delete("/system/app/USCSettings.odex");
delete("/system/app/VSuiteApp.apk");
delete("/system/app/Zappos.apk");
ui_print("Cleaning /etc folder");
delete("/system/etc/amazon-kindle.properties");
delete("/system/etc/amzn.apps.ref");
delete("/system/etc/amzn.mshop.properties");
delete("/system/etc/Audible.param");
delete("/system/etc/zappos.conf");
unmount("/system");
ui_print("The script finished to debloat your phone");
Click to expand...
Click to collapse
How to apply this im having 4.1.2 is that needed to root, pls help me

anvaralicp said:
How to apply this im having 4.1.2 is that needed to root, pls help me
Click to expand...
Click to collapse
root
Boot Menu Manager (BMM)
reboot to BMM recovery
install zip and choose the file from /ext partition
reboot normally

I thought this section was for the xt912 and xt910. Didn't know we shared a section with that phone.

can u provide the links for root and bbm

Link
anvaralicp said:
can u provide the links for root and bbm
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=55633518&postcount=3

Related

[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

[SOLVED] How to integrate zips while building a custom rom

Hello xda..I have been working on a custom rom based on 6.0.1 from the past few days and want to integrate xposed framework, supersu and some other mods in it but all are flashable zip files. My question here is how do you actually integrate the contents of .zip files in rom instead of manually flashing the file through recovery? I am looking forward for to your answer guys. Thank you
Fix:
Code:
package_extract_dir("root", "/tmp");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/supersu.zip");
Add that to your updater script. Make a folder in the root of your zip (where u have system, metainf folder and boot.img) called "root" inside that folder make another called "supersu" inside that folder put SuperSu zip in it and rename the zip to "supersu"
For xposed or other zips just do the same thing.
Replace supersu with the name of the zip... Another alternative would be to use AROMA installer.
Solved
Fix found guys. Thanks to my developer friend ShinySide..
KingRaheel said:
Hello xda..I have been working on a custom rom based on 6.0.1 from the past few days and want to integrate xposed framework, supersu and some other mods in it but all are flashable zip files. My question here is how do you actually integrate the contents of .zip files in rom instead of manually flashing the file through recovery? I am looking forward for to your answer guys. Thank you
Fix:
Code:
package_extract_dir("root", "/tmp");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/supersu.zip");
Add that to your updater script. Make a folder in the root of your zip (where u have system, metainf folder and boot.img) called "root" inside that folder make another called "supersu" inside that folder put SuperSu zip in it and rename the zip to "supersu"
For xposed or other zips just do the same thing.
Replace supersu with the name of the zip... Another alternative would be to use AROMA installer.
Click to expand...
Click to collapse
This works well for zips where the updater-script is dummy.....
what about the zips like A-Gapps and Arya-Sound mod...where their is a actual working updater-script....
this code doesn't work in this situation....

[Q][GAPPS] How to include GAPPS in ROM?

Hello community!
I was wondering if anybody can help me integrate GAPPS in a ROM.
Some ROMS have them inbuilt and don't require a seperate GAPPS installation.
So yeah, is it possible and if yes, what is the procedure?
Device is Note 8 (N950F).
ROM I'm working on currently is stock based but debloated.
Thanks in advance!
SaadatM said:
Hello community!
I was wondering if anybody can help me integrate GAPPS in a ROM.
Some ROMS have them inbuilt and don't require a seperate GAPPS installation.
So yeah, is it possible and if yes, what is the procedure?
Device is Note 8 (N950F).
ROM I'm working on currently is stock based but debloated.
Thanks in advance!
Click to expand...
Click to collapse
Hi ....
first flash gapps after flashing your stock debloated rom and after booting find what apps and files are added by using sort options according to time desending in any file manager like mix and include those files in the same folders in your stock rom........Thats it......
Note: You dont have to update your update-script afterwards.....
Hope this helps
Add this code in the end of your updater script and rename your gapps file to gapps and place it inside your meta-inf folder
Code:
ui_print("Installing GAPPS...");
package_extract_dir("META-INF/gapps", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "unzip", "/tmp/install/bin/gapps/gapps.zip", "META-INF/com/google/android/*", "-d", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "sh", "/tmp/install/bin/gapps/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/install/bin/gapps/gapps.zip");
Trex2017 said:
Add this code in the end of your updater script and rename your gapps file to gapps and place it inside your meta-inf folder
Code:
ui_print("Installing GAPPS...");
package_extract_dir("META-INF/gapps", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "unzip", "/tmp/install/bin/gapps/gapps.zip", "META-INF/com/google/android/*", "-d", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "sh", "/tmp/install/bin/gapps/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/install/bin/gapps/gapps.zip");
Click to expand...
Click to collapse
Thanks, exactly what I was looking for!
Trex2017 said:
Add this code in the end of your updater script and rename your gapps file to gapps and place it inside your meta-inf folder
Code:
ui_print("Installing GAPPS...");
package_extract_dir("META-INF/gapps", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "unzip", "/tmp/install/bin/gapps/gapps.zip", "META-INF/com/google/android/*", "-d", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "sh", "/tmp/install/bin/gapps/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/install/bin/gapps/gapps.zip");
Click to expand...
Click to collapse
Hi, I would like to ask putting gapps-config in the same meta-inf folder will work or not??
MrMoon said:
Hi, I would like to ask putting gapps-config in the same meta-inf folder will work or not??
Click to expand...
Click to collapse
yes , but you have to grep and change all paths to the cnfg file i other files
Can you tell me how you add play store in ROM while editing. I want to do this all step in Android Oreo 8.1 Please help me.
Zip file is corrupt error pops up when I try flashing.
Didn't work
Little more help, please.
Trex2017 said:
Add this code in the end of your updater script and rename your gapps file to gapps and place it inside your meta-inf folder
Code:
ui_print("Installing GAPPS...");
package_extract_dir("META-INF/gapps", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "unzip", "/tmp/install/bin/gapps/gapps.zip", "META-INF/com/google/android/*", "-d", "/tmp/install/bin/gapps");
run_program("/sbin/busybox", "sh", "/tmp/install/bin/gapps/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/install/bin/gapps/gapps.zip");
Click to expand...
Click to collapse
hey there pal, I have unpacked the whole ROM package and then I've replaced all the stock apks with the google ones. But once I repack and I install the zip, Android Setup crashes.
I'm on Android 11. Any help?
I would really appreciate it.

Categories

Resources