Own bloatkill script ended with error - Galaxy S 5 Q&A, Help & Troubleshooting

Hello,
I made my own bloatkill script, but when I flashed it an error appeared.
Here are the errors:
On TWRP 3.2 : error executing updater binary
On TWRP 2.7.8 error executing updater binary
On latest Philz Recovery: update update-binary (error: 11)
When somebody tell me how to add data, i can add the bloatkill.zip and the recovery log.
Here's a part of the log with the error:
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Prozess Updater endete mit Meldung: 11
I:Legacy property environment disabled.
Fehler beim Installieren von ZIP '/external_sd/Neuer Ordner/bloatkill (1).zip'
Partitions-Informationen werden aktualisiert...
Iata backup size is 7810MB, free: 3045MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...Fertig

Here's the updater-script:
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/Books/Books.apk");
delete("/system/app/Chrome/Chrome.apk");
delete("/system/app/Drive/Drive.apk");
delete("/system/app/Dropbox/Dropbox.apk");
delete("/system/app/GeoLookout/GeoLookout.apk");
delete("/system/app/Gmail"/Gmail2.apk");
delete("/system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk");
delete("/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk");
delete("/system/app/Hangouts/Hangouts.apk");
delete("/system/app/Maps/Maps.apk");
delete("/system/app/Music2/Music2.apk");
elete("/system/app/Newsstand/Newsstand.apk);
delete("/system/app/Photos/Photos.apk");
delete("/system/app/PlusOne/PlusOne.apk");
delete("/system/app/SBrowser_4_Latest/SBrowser_4_Latest.apk);
delete("/system/app/SecMemoDL/SecMemoDL.apk");
delete("/system/app/SmartRemote_KL/SmartRemote_KL.apk");
delete("/system/app/SamsungIME");
elete("/system/app/Videos/Videos.apk);
delete("/system/priv-app/S-Voice_Android_phone/S-Voice_Android_phone.apk");
delete("/system/priv-app/SecMyFiles2014/SecMyFiles2014.apk");
delete("/system/priv-app/SFinder_v4/SFinder_v4.apk");
delete("/system/priv-app/TouchWizHome/TouchWizHome.apk");
delete("/system/priv-app/VoiceNote/VoiceNote.apk");
ui_print(" ");
ui_print("Copy Apps")
package_extract_dir("system", "/system");
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");

Thread closed as oer op request

Related

update.zip: how to mount /data for G3?

hi,
i've been trying and searching for several hours to change some things within the /data partition. but it seems that i even didn't succeed in mounting the partition correctly. commands i've tried (for new edify updater-script):
Code:
run_program("/sbin/mount", "-o", "rw", "/dev/block/stl7", "/data");
run_program("/system/bin/mount", "-o", "rw", "/dev/block/stl7", "/data");
mount("MTD", "userdata", "/data");
mount("MTD", "data", "/data");
mount("BML", "data", "/data");
mount("rfs", "/dev/block/stl7", "/data");
run_program("mount", "rfs", "/dev/block/stl7", "/data");
nothing seems to work on my galaxy3 v2.1. in order to write stuff to /data i've tried package_extract_dir("data", "/data"); and also run_program("echo", "123", ">", "/data/sometestfile");
mounting /system and extracting files to /system works but i'm not able to access or write to /data
thanks for any input.

Any tool or program to check the syntex of an update-script?

The title says it all. Im just wondering if theres a program or plugin or anything to let me check the update script without the hassle of putting it on the phone and trying to install it.
Thanks in advance
EDIT for MOAR info.
I just make simple boot animations. I pulled this script from a theme install, and it worked fine.
ui_print("YOU ARE INSTALLING A BIGDX SERENITY THEME");
mount("MTD", "system", "/system");
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
show_progress(0.100000, 10);
mount("MTD", "sdcard", "/sdcard");
package_extract_dir("sdcard", "/sdcard");
unmount("/sdcard");
unmount("/system");
ui_print("INSTALL OF BIGDX THEME COMPLETE!");
I tried to change it to this
ui_print("YOU ARE INSTALLING A BOOT ANIMATION");
mount("MTD", "system", "/system");
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
show_progress(0.100000, 10);
unmount("/system");
ui_print("INSTALL OF BOOT ANIMATION COMPLETE!")
And im not sure why but its giving me hell, and I just want a way to trial/error without having to zip it all back up and install it.
Also, do I have to include the updater-binary? Thaat came in the original theme install

[Q] update.zip Edify data2system problem

Hi,
I would like to add a form update.zip system / app folder in a couple of new apk.
Trying:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/userdata");
package_extract_dir("system", "/system");
unmount("/userdata");
show_progress(.000000, 5);
ui_print("end");
structure:
-META-INF
-com
-google
-android
-update-binary
-update-script
-system
-app
-first.apk
-second.apk
clockworkmod go-> update.zip, run, no errors, end.
Go start the phone, browse rootexplorer, and nothing the apk app folder.
please help me.
heimdallr75 said:
Hi,
I would like to add a form update.zip system / app folder in a couple of new apk.
Trying:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/userdata");
package_extract_dir("system", "/system");
unmount("/userdata");
show_progress(.000000, 5);
ui_print("end");
structure:
-META-INF
-com
-google
-android
-update-binary
-update-script
-system
-app
-first.apk
-second.apk
clockworkmod go-> update.zip, run, no errors, end.
Go start the phone, browse rootexplorer, and nothing the apk app folder.
please help me.
Click to expand...
Click to collapse
You need to replace 'system' with 'data',
So rename the 'system' folder to 'data' and then code your updater-script like this:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
unmount("/data");
show_progress(.000000, 5);
ui_print("end");
Hope it helps,
Jack
JackG256 said:
You need to replace 'system' with 'data',
So rename the 'system' folder to 'data' and then code your updater-script like this:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
unmount("/data");
show_progress(.000000, 5);
ui_print("end");
Hope it helps,
Jack
Click to expand...
Click to collapse
Thx Jack!
but correct working script:
Code:
mount("MTD", "userdata", "/system");
package_extract_dir("system", "/system");
unmount("/system");
its work
heimdallr75 said:
Thx Jack!
but correct working script:
Code:
mount("MTD", "userdata", "/system");
package_extract_dir("system", "/system");
unmount("/system");
its work
Click to expand...
Click to collapse
Oh I see now what are u trying to. Yes that is the correct way. Good idea.
Veronica
Sent from my GT540 using XDA App

[Q]Modding the SU Binary Flashable for CM7

Hi Guys, for starters I have a CM7 Mirage-kang Build for NC, now been having some issues with Superuser lately and found out that it has problems with the SU Binary, so I went to their website and downloaded the SU Binary Flashables from 3.0.3.2 to the latest 3.1.1 and went ahead and checked the zips before flashing.
While checking the updater script of SU Binary I found out that it puts the SU Binary into "/system/bin" rather that "/system/xbin". So went ahead and edited the Flashable in order for the SU Binary to be put into "/system/xbin".
Now question is do I still need to do a symlink from "/system/xbin" to "/system/bin" for CM7? Because I'm not sure how CM handles App request for the Su Binary.
Posted here is the original and my edited updater script of Su Binary 3.0.3.2.
Original Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:bin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/bin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:xbin/su symbolic link...");
symlink("/system/bin/su", "/system/xbin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Edited Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:xbin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/xbin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:bin/su symbolic link...");
symlink("/system/xbin/su", "/system/bin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Credit:
Thanks to ChainsDD for providg FAQs and Flashable Zips for SU Binaries.
UPDATE
Turns out CM7 doesn't have symlinks for SU Binary in "/system/bin/" so don't need one.

[Q&A][SM-G903F] Permissions problem

Hello community,
i have question about permission as my script does not want to execute and hope you will be able to resolve my problem. Thank you so much
Here is the script:
set_progress(0.0);
ui_print(" ");
ui_print("*************************************");
ui_print("S5 Neo 3MinitBattery Lollipop Remover");
ui_print("Made by wilmans2m");
ui_print("************************************");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/cache") == "/cache", unmount("/cache"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
ui_print("Mounting Partitions...");
package_extract_file("/tmp/busybox", "/tmp/busybox");
set_perm(0, 0, 755, "/tmp/busybox");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
run_program("/tmp/busybox", "mount", "/cache");
set_progress(0.02);
ui_print("--> Removing 3MinitBattery mod");
package_extract_dir("system", "/system");
delete_recursive("/data/app/com.three.minit.minitbatterysettings-1");
delete_recursive("/data/app/com.three.minitbatteryresources-2");
set_progress(0.6);
ui_print("Wiping cache, dalvik, system");
format("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/CACHE", "0", "/cache");
run_program("/sbin/sleep", "2");
delete_recursive("/cache");
run_program("/sbin/sh", "-c", "rm -fR /data/dalvik-cache");
set_progress(0.8);
run_program("/tmp/busybox", "umount", "/system");
run_program("/tmp/busybox", "umount", "/data");
run_program("/tmp/busybox", "umount", "/cache");
ui_print(" ");
ui_print("Remove complete");
ui_print(" ");
set_progress(0.999992);
run_program("/sbin/reboot")

Categories

Resources