CWM Recovery Batch install issues - Galaxy S II Q&A, Help & Troubleshooting

Hey all,
I created a little zip to be flashed in cwm recovery, It works great in almost every way, except some apps in /data/app and system/app in the zip do not get installed at all or are corrupted (both happen with diff apps). I've tried reflashing the same zip, repackaging it, and even installing the apks manually. Nothing works except installing the apks manually.
I've deduced that before packaging, the apks are fine. And because I've repacked it twice, and have had complete success packaging other flashable zips, I feel something is happening in CWM recovery, or maybe my updater script doesn't install to the directories the right way.
Is there a better way to batch install via recovery? Or something I'm missing in my script? Or is it not reliable to install apks via flashable zip?
This is how I do it.
In my zip I have:
Code:
/system
/app
/***.apk
/***.apk
/data
/app
/***.apk
/***.apk
/META-INF
/com
/google
/android
/update-binary
/updater-script
This is my updater script (modified from a remover script)
Code:
ui_print("---------------------------");
ui_print("SGS2 Batch Installer");
ui_print("and Bloatware Remover v0.2");
ui_print("---------------------------");
ui_print("Deleting useless bloatware ...");
delete("/system/app/AnalogClock.apk");
delete("/system/app/BuddiesNow.apk");
delete("/system/app/ChocoEUKor.apk");
delete("/system/app/Days.apk");
delete("/system/app/Dlna.apk");
delete("/system/app/DualClock.apk");
delete("/system/app/EmailWidget.apk");
delete("/system/app/GameHub.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/Kies.apk");
delete("/system/app/KiesAir.apk");
delete("/system/app/kieswifi.apk");
delete("/system/app/Kobo.apk");
delete("/system/app/Microbesgl.apk");
delete("/system/app/MiniDiary.apk");
delete("/system/app/MtpApplication.apk");
delete("/system/app/MusicHub_U1.apk");
delete("/system/app/MusicPlayer.apk");
delete("/system/app/PhotoRetouching.apk");
delete("/system/app/PolarisOffice.apk");
delete("/system/app/PressReader.apk");
delete("/system/app/Protips.apk");
delete("/system/app/ReadersHub.apk");
delete("/system/app/SamsungApps.apk");
delete("/system/app/SamsungAppsUNA3.apk");
delete("/system/app/SamsungAppsUNAService.apk");
delete("/system/app/SamsungIM.apk");
delete("/system/app/SamsungWidget_News.apk");
delete("/system/app/SamsungWidget_ProgramMonitor.apk");
delete("/system/app/SamsungWidget_StockClock.apk");
delete("/system/app/SamsungWidget_WeatherClock.apk");
delete("/system/app/SecretWallpaper1.apk");
delete("/system/app/SecretWallpaper2.apk");
delete("/system/app/SevenEngine.apk");
delete("/system/app/SnsAccountFb.apk");
delete("/system/app/SnsAccountLi.apk");
delete("/system/app/SnsAccountMs.apk");
delete("/system/app/SnsAccountTw.apk");
delete("/system/app/SnsDisclaimer.apk");
delete("/system/app/SnsImageCache.apk");
delete("/system/app/SnsProvider.apk");
delete("/system/app/SocialHub.apk");
delete("/system/app/Talk.apk");
delete("/system/app/Talk2.apk");
delete("/system/app/TouchWiz30Launcher.apk");
delete("/system/app/Vending.apk");
delete("/system/app/VideoEditor.apk");
delete("/system/app/VideoPlayer.apk");
delete("/system/app/VoiceToGo.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/Zinio.apk");
delete("/system/app/AnalogClock.odex");
delete("/system/app/BuddiesNow.odex");
delete("/system/app/ChocoEUKor.odex");
delete("/system/app/Days.odex");
delete("/system/app/Dlna.odex");
delete("/system/app/DualClock.odex");
delete("/system/app/EmailWidget.odex");
delete("/system/app/GameHub.odex");
delete("/system/app/GenieWidget.odex");
delete("/system/app/Kies.odex");
delete("/system/app/KiesAir.odex");
delete("/system/app/kieswifi.odex");
delete("/system/app/Kobo.odex");
delete("/system/app/Microbesgl.odex");
delete("/system/app/MiniDiary.odex");
delete("/system/app/MtpApplication.odex");
delete("/system/app/MusicHub_U1.odex");
delete("/system/app/MusicPlayer.odex");
delete("/system/app/PhotoRetouching.odex");
delete("/system/app/PressReader.odex");
delete("/system/app/Protips.odex");
delete("/system/app/ReadersHub.odex");
delete("/system/app/SamsungApps.odex");
delete("/system/app/SamsungAppsUNA3.odex");
delete("/system/app/SamsungAppsUNAService.odex");
delete("/system/app/SamsungIM.odex");
delete("/system/app/SamsungWidget_News.odex");
delete("/system/app/SamsungWidget_ProgramMonitor.odex");
delete("/system/app/SamsungWidget_StockClock.odex");
delete("/system/app/SamsungWidget_WeatherClock.odex");
delete("/system/app/SecretWallpaper1.odex");
delete("/system/app/SecretWallpaper2.odex");
delete("/system/app/SevenEngine.odex");
delete("/system/app/SnsAccountFb.odex");
delete("/system/app/SnsAccountLi.odex");
delete("/system/app/SnsAccountMs.odex");
delete("/system/app/SnsAccountTw.odex");
delete("/system/app/SnsDisclaimer.odex");
delete("/system/app/SnsImageCache.odex");
delete("/system/app/SnsProvider.odex");
delete("/system/app/SocialHub.odex");
delete("/system/app/Talk.odex");
delete("/system/app/Talk2.odex");
delete("/system/app/TouchWiz30Launcher.odex");
delete("/system/app/Vending.odex");
delete("/system/app/VideoEditor.odex");
delete("/system/app/VideoPlayer.odex");
delete("/system/app/VoiceSearch.odex");
delete("/system/app/VoiceToGo.odex");
delete("/system/app/YouTube.odex");
delete("/system/app/Zinio.odex");
ui_print(" ");
ui_print("Batch Installing!");
ui_print(" ");
ui_print("Extracting /system...");
package_extract_dir("system", "/system");
ui_print(" ");
ui_print("Extracting /sdcard...");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print("Extracting /data...");
unmount("/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
package_extract_dir("data", "/data");
unmount("/data");
ui_print("Done! Reboot that sh**!");
Anybody have any thoughts?
Thank you!
Endor

Related

[Q] update.zip problems

I'm trying to make a zip to remove the stuff I remove every time and install Titanium Backup, but I keep getting error 6 when I try to flash it. I did sign it, and it was written using Notepad++.
Directory Structure:
data
-app
--com.keramidas.TitaniumBackup-1.apk
--com.keramidas.TitaniumBackupPro-1.apk
META-INF
-com
--google
---android
----update-binary
----updater-script
-CERT.RSA
-CERT.SF
-MANIFEST.MF
updater-script:
show_progress 0.1 0
ui_print(" ===============================================");
ui_print(" | Removing Sense |");
ui_print(" ===============================================");
mount("MTD", "system", "/system");
delete("/system/app/com.htc.FMRRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsdWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/HtcAddProgramWidget.apk");
delete("/system/app/HtcAutoRotateWidget.apk");
delete("/system/app/HtcBackgroundDataWidget.apk");
delete("/system/app/htcbookmarkwidget3d.apk");
delete("/system/app/HtcCalculatorWidget.apk");
delete("/system/app/htccalendarwidget3d.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreaderWidget.apk");
delete("/system/app/htcmailwidgets3d.apk");
delete("/system/app/HtcPhotoGridWidget3D.apk");
delete("/system/app/HtcPhotoWidget.apk");
delete("/system/app/HtcPowerStripWidget.apk");
delete("/system/app/HtcProfileWidget.apk");
delete("/system/app/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingswidget.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/Stock.apk");
ui_print(" ===============================================");
ui_print(" | Removing Sense Lockscreen |");
ui_print(" ===============================================");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/HtcLockScreen.apk");
delete("/system/app/Idlescreen_Base.apk");
delete("/system/app/idlescreen_photo.apk");
delete("/system/app/idlescreen_shortcut.apk");
delete("/system/app/IdleScreen_Stock.apk");
delete("/system/app/IdleScreen_Weather.apk");.apk");
ui_print(" ===============================================");
ui_print(" | Removing Bloatware |");
ui_print(" ===============================================");
delete("/system/app/AppSharing.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/Protips.apk");
delete("/system/app/Swype.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/MyReportAgent.apk");
unmount("/system");
ui_print(" ===============================================");
ui_print(" | Installing Titanium Backup |");
ui_print(" ===============================================");
mount("MTD", "data", "/data");
copy_dir PACKAGE:data DATA:
unmount("/data");
dementio said:
I'm trying to make a zip to remove the stuff I remove every time and install Titanium Backup, but I keep getting error 6 when I try to flash it. I did sign it, and it was written using Notepad++.
Directory Structure:
data
-app
--com.keramidas.TitaniumBackup-1.apk
--com.keramidas.TitaniumBackupPro-1.apk
META-INF
-com
--google
---android
----update-binary
----updater-script
-CERT.RSA
-CERT.SF
-MANIFEST.MF
updater-script:
show_progress 0.1 0
mount("MTD", "system", "/system");
mount("MTD", "data", "/data");
copy_dir PACKAGE:data DATA:
unmount("/data");
Click to expand...
Click to collapse
the script looks like a great method and its wonderful to see people putting together their own scripts.
i'm assuming you wrote that updater-script file and understand the different components. if you don't, please ask and i can provide more detail.
critique: off the top of my head, two things catch my attention.
1) copy_dir command ends with a : instead of a ; and it appears to be the amend command, not the edify version of the command. edify version of the command would be: package_extract_dir("data", "/data");
2) in the latest version of the update-binary, i think it requires 4 args instead of 3 args for the mount command. also our file system is not MTD as supplied in the 3 args version of the mount command given above. edify version for api 3 used by the latest update-binary should be: mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
here is a great post which outlines some of these changes and how to execute commands under edify: [TUT]Edify Installation Script Syntax's
for advanced troubleshooting, when the custom recovery throws an error, like the error 6 you mention above, via adb check out the /tmp/recovery.log file as this will provide detail around the error and usually a line number to narrow down the issue. i usually access the tmp/recovery.log file via adb shell then cat /tmp/recovery.log .
also, if you're interested, i have a php script on my custom EVO 3D stock app custom site which creates a custom removal .zip file to be loaded through recovery. if you create your own, you can see my updater-script syntax and also my update-binary (latest version). feel free to use them as i enjoy giving back to the community!
hope that helps! good luck!
Nice. Thanks
I didn't realize there were different syntaxes for the different versions, when I was researching, I was looking at several different sites.
Sent from my PG86100 using xda premium
dementio said:
Nice. Thanks
I didn't realize there were different syntaxes for the different versions, when I was researching, I was looking at several different sites.
Click to expand...
Click to collapse
Nice. You're definitely on the right path.
Only a few tweaks to the syntax and you should be all set. The two main versions of update(r)-script code are amend and edify. Edify being the latest and most recent version, you'll want to stick with that for the EVO 3D and probably most android devices/custom recovery's going forward.
Hope you post up your script when you're done!
I will once I figure out this line 1 expected eof error
Sent from my PG86100 using xda premium
dementio said:
updater-script:
show_progress 0.1 0
Click to expand...
Click to collapse
dementio said:
I will once I figure out this line 1 expected eof error
Click to expand...
Click to collapse
i'm assuming the line one error is relating to the command you issue on line 1 of the updater-script file you posted above, i.e. no changes have been made to the first line since you posted.
if you refer to the guide i linked to above, it gives a proper example of the show_progress command under edify syntax. the show_progress command quoted in your original post is using amend syntax.
amend syntax: show_progress 0.1 0
edify syntax: show_progress(0.1, 10);
hope that helps!
joeykrim said:
also, if you're interested, i have a php script on my custom EVO 3D stock app custom site which creates a custom removal .zip file to be loaded through recovery. if you create your own, you can see my updater-script syntax and also my update-binary (latest version). feel free to use them as i enjoy giving back to the community!
Click to expand...
Click to collapse
Wow, nice tool, and bookmarked
joeykrim said:
i'm assuming the line one error is relating to the command you issue on line 1 of the updater-script file you posted above, i.e. no changes have been made to the first line since you posted.
if you refer to the guide i linked to above, it gives a proper example of the show_progress command under edify syntax. the show_progress command quoted in your original post is using amend syntax.
amend syntax: show_progress 0.1 0
edify syntax: show_progress(0.1, 10);
hope that helps!
Click to expand...
Click to collapse
I noticed that, but still got the same error, even after I took that line out
dementio said:
I noticed that, but still got the same error, even after I took that line out
Click to expand...
Click to collapse
the only other idea which comes to mind for EOF on first line would be the type of text editor being used as windows and unix text files are setup differently with return/new line characters.
best method on windows is to use notepad++ and make sure under the settings for new files it is set to use unix standard instead of windows.
i prefer editing the file on a unix/linux machine and if in windows, i'd run a VM.
if you wanted to eliminate that possibility, feel free to grab one of my updater-script files which are known to be working correctly and make sure to use a proper text editor which will maintain the file integrity.
hope that helps!
FINALLY, here's the completed script. It completely? removes Sense, the stock lockscreen (I use Hidden Lock), and a bunch of apps that I never use, and installs Titanium Backup Premium so I can restore everything else. The progress bar doesn't actually work, but it runs so quick I don't really care.
Code:
show_progress(0.1, 10);
ui_print(" ===============================================");
ui_print(" | Removing Sense |");
ui_print(" ===============================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
delete("/system/app/com.htc.FMRRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsdWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/HtcAddProgramWidget.apk");
delete("/system/app/HtcAutoRotateWidget.apk");
delete("/system/app/HtcBackgroundDataWidget.apk");
delete("/system/app/htcbookmarkwidget3d.apk");
delete("/system/app/HtcCalculatorWidget.apk");
delete("/system/app/htccalendarwidget3d.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreaderWidget.apk");
delete("/system/app/htcmailwidgets3d.apk");
delete("/system/app/HtcPhotoGridWidget3D.apk");
delete("/system/app/HtcPhotoWidget.apk");
delete("/system/app/HtcPowerStripWidget.apk");
delete("/system/app/HtcProfileWidget.apk");
delete("/system/app/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingswidget.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/Stock.apk");
ui_print(" ===============================================");
ui_print(" | Removing Sense Lockscreen |");
ui_print(" ===============================================");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/HtcLockScreen.apk");
delete("/system/app/Idlescreen_Base.apk");
delete("/system/app/idlescreen_photo.apk");
delete("/system/app/idlescreen_shortcut.apk");
delete("/system/app/IdleScreen_Stock.apk");
delete("/system/app/IdleScreen_Weather.apk");
ui_print(" ===============================================");
ui_print(" | Removing Bloatware |");
ui_print(" ===============================================");
delete("/system/app/AppSharing.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/Protips.apk");
delete("/system/app/Swype.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/vtt-sprint.apk");
delete("/system/app/WeatherAgentService.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/WeatherProvider.apk");
delete("/system/app/WeatherSyncProvider.apk");
unmount("/system");
ui_print(" ===============================================");
ui_print(" | Installing Titanium Backup |");
ui_print(" ===============================================");
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
unmount("/data");

Can't install own flashable .zip, what am I doing wrong?

Hi! I followed (step by step) this Guide to make a flashable zip of some wallpapers for my phones: http://forum.xda-developers.com/showthread.php?t=1545165
But when I try to install it, CWM just says "installation aborted"...I was trying to make a .zip for some wallpapers but the folder name was too long (system/etc/customization/bla bla bla bla)and I tought to start by installing a small app (A QR code reader). This is my updater script:
ui_print(" QR droid ");
ui_print(" test zip ");
ui_print("cachanilla86");
mount("MTD", "system", "/system");
show_progress(0.100000, 40);
ui_print(" almost done ");
show_progress(0.100000, 40);
package_extract_dir("system", "/system/app");
unmount("/system/");
show_progress(1.000000, 10);
ui_print(" finished,now reboot ")
--BLANK LINE--
And in the main folder was "system/app" and inside of app the apk itself.
What's wrong here? I don't get it...its because i'm signing the zip with an older version of APK tool?
Thanks for reading.
just download sample.zip here http://forum.xda-developers.com/showthread.php?t=1721680
and drag&drop your files in the zip to: example /system/etc/customization/blah3x..
Try this bro.
mount("yaffs2", "MTD", "system", "/system");
ui_print("Installing");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/lib/libgsl.so"); just an example
unmount("/system");
You're signing the zip? What for? It doesn't need to be signed, just have the right update-binary.
Thanks fellas, I'll try again tonight

[Q]Help with Updater-Script Commands

Hey guys... i'm trying to make a zip file that installs all the apps that i want and restore theirs data. the problem is that i need to mount internal SDcard i can't find the way. i have only found commands for other phones, and i don't know if this works for this phone.
so far i have this:
Code:
ui_print("-------------------------------------");
show_progress(0.500000, 0);
ui_print("");
ui_print("Mounting Partitions");
ui_print("");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Pack de APKs, by Pelpa87");
ui_print("");
ui_print("-------------------------------------");
delete("");
delete("");
ui_print("");
ui_print("Installing");
package_extract_dir("data", "/data");
ui_print("");
ui_print("Setting Permisions");
set_perm(0, 0, 0644, "/system/app/XXXX.apk");
ui_print("");
ui_print("Unmounting Partitions");
unmount("/data");
ui_print("");
ui_print("Finish!");
ui_print("Enjoy :)");
ui_print("");
ui_print("-------------------------------------");
show_progress(1.000000, 0);
i want something like this: run_program("/sbin/busybox", "mount", "/data"); for mounting /Sdcard(0) but i can't find it.
EDIT: OK, in fact, what i really need is wich block and wich is the mounting point of the internal SD...i can't find it anywhere...in systems it's says its /dev/fuse but that won't work in CWR.
excuse my noobness
i'm trying to learn
Titanium backup does this already. You are re-inventing the wheel, well the apps and data part, not sure about the rooting part, use mobile odin to do the flashing?
Kangburra said:
Titanium backup does this already. You are re-inventing the wheel, well the apps and data part, not sure about the rooting part, use mobile odin to do the flashing?
Click to expand...
Click to collapse
yeah, i know that. i'm not trying to re-invent nothing at all...i'm just want to do something else, but i need this first...
Could try XDA.com Android hacking .
jje

[HELP] updater-script error

Hello,
i have Alcatel Idol3 6045Y. Alcatel is owned by TCL which made a IDOL3 I806 for china. Hardware vise the devices looks identical. There ar ealso Us and other version 6045I and 6045O. The difference is maybe only the radio files.
SO i managed to get the i806 rom to work flawlesly on my 6045Y by only flashing system and persist from i806 and kernel from my 6045Y.
But for users with 6045I or 6045O they cannot flash the rom (af course with their kernel). they got this message.
HERE IS THE THREAD
i suggest there is something wrong in the mounting, but the script continues to flash the system. And also I would like to check all the symlinks on my computer, but dont know how because the symlinks are pointing to directories which are not present in the system folder in the zip file.
HERE IS THE ERROR MESSAGE
Code:
mount : failed to mount /dev/block/bootdevice/by-name system at /system: Device or resource busy
copy system data...
symlink: some symlink failed
E:Error executing updater binary in zip 'external_s/6045-i806-DCZ1.0.zip'
HERE IS THE SCRIPT
Code:
ui_print(" ");
ui_print("Formatting system...");
show_progress(0.100000, 0);
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/persist", "0", "/persist");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/persist", "/persist");
ui_print("Copy system data...");
show_progress(0.300000,0);
package_extract_dir("system", "/system");
package_extract_dir("persist", "/persist");
symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9306/wcd9306_mbhc.bin");
symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9306/wcd9306_anc.bin");
symlink("/data/misc/wifi/WCNSS_qcom_cfg.ini", "/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini");
symlink("/data/rfs/apq/gnss", "/system/rfs/apq/gnss/readwrite");
symlink("/data/rfs/mdm/adsp", "/system/rfs/mdm/adsp/readwrite");
symlink("/data/rfs/mdm/mpss", "/system/rfs/mdm/mpss/readwrite");
symlink("/data/rfs/mdm/sparrow", "/system/rfs/mdm/sparrow/readwrite");
symlink("/data/rfs/msm/adsp", "/system/rfs/msm/adsp/readwrite");
symlink("/data/rfs/msm/mpss", "/system/rfs/msm/mpss/readwrite");
symlink("/data/rfs/shared", "/system/rfs/apq/gnss/shared",
"/system/rfs/mdm/adsp/shared", "/system/rfs/mdm/mpss/shared",
"/system/rfs/mdm/sparrow/shared", "/system/rfs/msm/adsp/shared",
"/system/rfs/msm/mpss/shared");
symlink("/data/tombstones/lpass", "/system/rfs/mdm/adsp/ramdumps",
"/system/rfs/msm/adsp/ramdumps");
symlink("/data/tombstones/modem", "/system/rfs/apq/gnss/ramdumps",
"/system/rfs/mdm/mpss/ramdumps",
"/system/rfs/msm/mpss/ramdumps");
symlink("/data/tombstones/sparrow", "/system/rfs/mdm/sparrow/ramdumps");
symlink("/firmware", "/system/rfs/apq/gnss/readonly/firmware",
"/system/rfs/mdm/adsp/readonly/firmware",
"/system/rfs/mdm/mpss/readonly/firmware",
"/system/rfs/mdm/sparrow/readonly/firmware",
"/system/rfs/msm/adsp/readonly/firmware",
"/system/rfs/msm/mpss/readonly/firmware");
symlink("/firmware/image/dxhdcp2.b00", "/system/etc/firmware/dxhdcp2.b00");
symlink("/firmware/image/dxhdcp2.b01", "/system/etc/firmware/dxhdcp2.b01");
symlink("/firmware/image/dxhdcp2.b02", "/system/etc/firmware/dxhdcp2.b02");
symlink("/firmware/image/dxhdcp2.b03", "/system/etc/firmware/dxhdcp2.b03");
symlink("/firmware/image/dxhdcp2.mdt", "/system/etc/firmware/dxhdcp2.mdt");
symlink("/persist/Synaptics_fw_update.img", "/system/etc/firmware/Synaptics_fw_update.img");
symlink("/persist/WCNSS_tct_wlan_nv.bin", "/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin");
symlink("/persist/WCNSS_wlan_dictionary.dat", "/system/etc/firmware/wlan/prima/WCNSS_wlan_dictionary.dat");
symlink("/persist/ft_fw.bin", "/system/etc/firmware/ft_fw.bin");
I will be very greatfull for any help.

Remove/Delete Bloatwares In Just Couple of Seconds Makeing Own Zip File :) .(Android)

What is this?
It's a zip file Containing some files.. You can make your own zip file which can remove bloatware apps (found in system/app partition) from stock or Custom recovery. It can remove more than 50+ apps within 2-3 seconds.
Why do You need it?
Assume you have flashed a new Custom/Stock rom. In any rom there are useless apps which consume memory and ram .and you dont know about them sometimes it makes device lagi and hanged.work slower
What Will You Do? Or Normal People Do
You now have to go through the pain of removing dozens of apps from system/app which you might not need. eg: some people hardly use google maps/swype/youtube/email/weather.apk or those several apps/widgets found in stock rom Or Any Custom Rom.
Okay fine, What else do I need to know The system partition contains important apps required for android. if you remove an app which is essential for android then your device might get stuck in bootloop. So know what
you're doing before trying this mod.
Advantage Of This:
1. Device gets much smoother
2. Less lags or no lags
3. Games will not hang and apps load faster
4. More Free Ram
5. More Internal Free
6. Device Will Boot up Fast
7. Battery Dosen't Drain Faster
8. Chances for hanging device will less
What you'll need: (Root Requiered)
1) Winrar
2) Notepad++
Customizing your "updater-script" file:
1) Download MyOwn.zip
2) Open it
3) Browse over to META-INF\com\google\android\
4) Extract the file "updater-script" to desktop
and open it with notepad++
5) As you can see in files that it deletes a number of apps from system/app in a row. This list is mine(not for
you) so you have to edit it according to your
liking. I ll upload list of useless apps soon from android 4.4.4 to 7.1.1 For Most of The Devices which you can delete
Select apps from lists according to your version. and edit in updater-script
For eg: If you want to delete swype.apk and youtube.apk(meaning swype keyboard and youtube) then edit and write
delete ("/system/app/swype.apk");
delete ("/system/app/youtube.apk);
text with these lines and so update-script will look like this:
ui_print("Useless stuff cleaning start");
ui_print(" ");
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(" ");
ui_print("Useless system app removal");
delete("/system/app/Swype.apk");
delete("/system/app/YouTube.apk");
ui_print(" ");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount",
"/system");
run_program("/sbin/busybox", "umount",
"/cache");
run_program("/sbin/busybox", "umount",
"/data");
ui_print(" ");
ui_print("Finish");
6) Once you have finished editing delete rows
in updater-script to your liking then hit save
button(ctlr+s) on notepad++
7) Drag drop your custom "updater-script" file
back inside META-INF\com\google\android\
folder in MyOwn.zip .winrar automatically update the zip file and Do not touch update-binary.
8) Your custom zip is ready. You can use this everytime when you flash your device with new rom.
Instruction of use:
1) Place your custom zip on root of sd
card (root means outside; not within any folder
of sd card)
3) Switch off you android device
4) Start your device in recovery mode
5) Select "apply zip from sd card"
6) Select your created zip fiile
7) Select Yes
8) Reboot
Yeahhhhhhh!! Enjoy Your Faster Device Ever
If u r using this comment and suggestions are needed.
Thaank You:good::good:
Please Press Thanks Button If It Helps

Categories

Resources