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.
Related
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
I would like to create an update.zip to install my apps. I am having the hardest time. Anyone have any ideas? I want to be able to flash this after installing a new rom for a few apps, root explorer, titanium backup, etc. I know its possible, but this doesn't work. Am I mounting correctly?
Updater-script:
ui_print("Performing Update...");
ui_print("Mounting mount points...");
mount("MTD", "system", "/system");
mount("MTD", "data", "/data");
mount("MTD", "cache", "/cache");
package_extract_dir("data", "/data/app");
ui_print("Unmounting mount points...");
unmount("/system");
unmount("/data");
unmount("/cache");
ui_print("Update Complete.");
Sent from my HTC Panache using XDA App
Download Gallery3D mod in my sig, it has updater-script version (0.3), use it as reference.
Also, you don't need to mount /system and /cache, if the only thing you want to copy is the apps on /data.
Yeah, thanks. I was messing around with some other things and left that in there.
Thanks for the reference, I will look into it.
Sent from my HTC Panache using XDA App
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
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")
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