Guys I'm trying to build a flashable zip for the uninstaller for Xposed using the idea of this http://forum.xda-developers.com/showpost.php?p=58964632&postcount=2262. How ever I'm facing some problem.
Code:
ui_print("########################################");
ui_print("# Xposed Uninstaller #");
ui_print("########################################");
ui_print("");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting System Partition");
ui_print("");
ui_print("");
delete("/system/bin/app_process32");
delete("/system/bin/app_process32_xposed");
delete("/system/bin/dex2oat");
delete("/system/bin/oatdump");
delete("/system/bin/patchoat");
delete("/system/lib/libart.so");
delete("/system/lib/libart-compiler.so");
delete("/system/lib/libart-disassembler.so");
delete("/system/lib/libsigchain.so");
delete("/system/lib/libxposed_art.so");
delete("/system/xposed.prop");
delete("/system/framework/XposedBridge.jar");
ui_print("Deleting Xposed Files");
ui_print("");
ui_print("");
ui_print("Extracting stock files");
ui_print("");
ui_print("");
ui_print("Restoring stock files");
ui_print("");
ui_print("");
ui_print("Cleaning up files");
ui_print("");
ui_print("");
ui_print("Xposed Framework Successfully Disabled!");
ui_print("");
ui_print("");
ui_print("Enjoy!");
ui_print("");
ui_print("");
ui_print("########################################");
ui_print("# From AK1149 from XDA #");
ui_print("########################################");
ui_print("");
ui_print("");
Can anyone help me finish the script?
The extract part will be untar-ing the xposed-original from system folder to their original place.
The restoring part will be renaming the files.
The clean up part will be removing unwanted files
Related
Why ClockworkMod updates on update.zip invalid?
The system can boot?
My script:
ui_print("Welcome to HACKECLAIR JM5 v1.0.4!");
show_progress(0.500000, 0);
ui_print("Formatting cache..");
format("MTD", "cache");
ui_print("Mounting system folder..");
mount("MTD", "system", "/system");
ui_print("Formatting system and framework folders..");
delete_recursive("/system/framework/framework.jar");
delete_recursive("/system/framework/framework.odex");
show_progress(0.200000, 40);
ui_print("over");
unmount("/system");
framework.jar not be removed......................
Hi All,
is there any super wipe script that i can wipe all the thing i have ?
something like this , is it possible ?
format("MTD", "system");
mount("MTD", "system", "/system");
delete_recursive("/system");
delete_recursive("/dbdata");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data");
delete_recursive("/etc");
delete_recursive("/config");
delete_recursive("/acct");
delete_recursive("/proc");
delete_recursive("/vendor");
delete_recursive("/sys");
delete_recursive("/sbin");
delete_recursive("/root");
delete_recursive("/res");
delete_recursive("/mnt");
delete_recursive("/dev");
delete_recursive("/d");
delete_recursive("/config");
delete_recursive("/");
unmount("/system");
hey guys
I want to install all of my apps from a zip package through recovery (a lot faster than installing each via adb). It's fine, but I don't see the apps. I believe this is a permission issue and can't figure it out
the script :
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
unmount("/data");
is this wrong ?
Aloha community,
after 3 years of using an iphone i switched back to android with a new shiny z3 compact aka aries.
while staying in touch with android by developing apps and rooting/flashing a few phone from friends i am a bit out of ideas when it comes to my new phone...
what i did so far:
rooted phone,
backed up ta-partition
opened bootloader
installed cwm-recoverey by doomlord
tried to flash cm 12 (edited update-script to allow 'aries') -> install aborts without error message
tried to flash cm 11 -> black screen after reboot need to refresh boot.img in fast boot and restore android from backup
tried aosp 5.0.2 -> works fine but no detection of SIM, Camera, no root... i will wait for the official release from sony.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Since i want to get rid of the whole sony bloatware (which is a pain to remove manually on the phone) and also don't want to do it every time i need to reboot + want to offer the opportunity to others to install a relatively clean rom i tried to make my own rom based on the cwm backup...
therefore i copied the boot.img from the backup + the extracted system.ext4.tar folder in a new folder.
I removed all apps i didn't want / added others
I copied the META-Inf from the DRM-resoter zip and edited the updates-script.
it now reads:
Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print(" ");
ui_print(" Deleting /system ");
ui_print(" ");
delete("/system/*");
ui_print(" ");
ui_print(" Extracting Files ");
ui_print(" ");
package_extract_dir("system", "/system");
ui_print(" ");
ui_print(" Setting Permissions ");
ui_print(" ");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print(" ");
ui_print(" Unmounting System ");
ui_print(" ");
unmount("/system");
ui_print("------------------------------------------");
ui_print(" Finished ");
ui_print("------------------------------------------");
i stored the folder as a zip and signed it. Now it should be a flashable rom...
when i try to install it with cwm recovery the installation aborts.
the Log says:
Code:
-- Installing: /storage/sdcard1/custom-signed.zip
Finding update package...
I: Update location: /storage/sdcard1/custom-signed.zip
Opening update package...
Installing update...
Installation aborted.
I: using /data/media for /sdacrd/0/clockworkmod/.last_install_path.
I:Can't partition non mmcblk device: /devices/msn_sdcc.2/mmc_host
can someone tell me where i did something wrong?
if anyone likes to have a look at the rom:
Code:
archy.no-ip.org/owncloud/public.php?service=files&t=bf55a79f9d9660641b115db5da352f5f
I hope you guys can help me!
Greetings
i think i could describe my problem better, updated the start post
Hi mates, I need your help, thank you!
I would use my old phone (g900v cdi11 locked bootloader) as a videosurvelliance camera, to do that I need that it can reboot automatically if battery runs out and power appears again. To do that I need to change lpm file inside /system/bin folder, switch off phone, plug the power abd check if script lpm file works, if not edit it and check again. . To do that I have these ideas:
1) flash a rooted LL rom, and use a root file manager and overwhite lpm file, is it that easy and possible?
2) Boot on safestrap (which I've already installed and accessible flashing the KK bootloader with Odin, the version is about 2.7.4, don't remember exactly) and chage from there, but the SS file manager don't see any files, probably it's running not rooted (??), maybe /system not mounted, and I don't know all the Unix command I've to type in console to edit lpm or overwrite it, or eventually with ADB.. it copied but in reality I don't know where, it's not /system/bin.
3) so I need to "flash"/install a .zip file containg the /system/bin/lpm file, but for doing this I need a script, which is actually what I'm asking here
4) Any other ideas? Please remember I have a cid11 g900v, so no root on MM, and some other complications unfortunately.
For the script I've tried to arrange from one SS installation, and I tried to save only these lines, but I'm not sure it will do the job, the idea is to create a zip file with system/bin/lpm file and META-INF/com/google/android/updater-script file:
Code:
ui_print("*************************************");
ui_print("* Change lpm *");
ui_print("*************************************");
ui_print("");
unmount("/system");
ui_print("Writing System Files");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
set_progress(0.600000);
ui_print("Setting Permissions...");
ui_print(" ");
#PERM
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
ui_print("------> Done!");
unmount("/system");
ui_print(" ");
ui_print(" Installation complete ");
ui_print(" ");
ui_print(" ");
What is missing eventually?
Thank you!
By the time I solved flashing every time the whole rom (exploded, edited and repacked in Windows), boot It and wit its installation.
It still interesting to read your suggestions, thank you