After flash system to system/ with TWRP - General Questions and Answers

Hello,
I trying to flash system to phone with TWRP
I use Firmware Stock ROM. unpack it
system.zip -> META-INF -> com -> google -> android:
1. update-binary
2. updater-script
inside (updater-script):
Code:
ui_print("start");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("done");
ui_print("");
ui_print("[email protected]");
I trying to flash it with TWRP.
TWRP -> Install -> select file (zip) -> Swipe to confirm Flash
wait to it's done.
But just stock on boot loop
Thanks for your time

Related

[Resolved] [GUIDE][CWM][GPS]["GPS off-and-on" bug] without root

Hello
I use dungphp's Pyramid HTC WWE 1.35.401.1 - Real 3D [V2.2][RAF 1.9GB] ROM and was not able to change gps.conf with ES Explorer (missing root).
I will share what i've done to solve this problem for me:
1. Downloading Fix Flash player with video streaming from here
2. extracting the ZIP file
3. delete folders: sd-ext and system
4. create folders: system/etc and etc
5. create your own gps.conf.
Mine is:
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
GPS1_CLEANUP_ENABLED=0
Click to expand...
Click to collapse
6. copy gps.conf to the folders: etc and system/etc
7. edit the file: META-INF\com\google\android\updater-script
Should look like this:
ui_print("------------------------------------------------");
ui_print(" UPDATE anythings to the builds ");
ui_print(" From DUNGPHP ");
ui_print("------------------------------------------------");
show_progress(0.500000, 0);
mount("MTD", "system", "/system");
mount("MTD", "etc", "/etc");
delete("/system/etc/gps.conf");
delete("/etc/gps.conf");
package_extract_dir("system","/system");
package_extract_dir("etc","/etc");
set_perm(1000, 1000, 0644, "/system/etc/gps.conf");
set_perm(1000, 1000, 0644, "/etc/gps.conf");
show_progress(0.000000, 0);
unmount("/system");
unmount("/etc");
ui_print("All done !");
Click to expand...
Click to collapse
8. Pack the folders META-INF, etc and system to a zip file (Fix_gps_conf.zip)
9. Copy this zip-file to your sd-card
10. Shut down your device and start CWM
11. Choose Install zip file from SD card and choose your zip
12. When done, reboot

[Q] [Updater Script]Will This Updater Script Work ?

Hi , I want to make a kitkat custom rom so I downloaded a META-INF.zip ... When I edit the Script it Shows The Code
Code:
ui_print("Android KitKat ROM Update 4.4");
ui_print("Starting Installation");
mount("yaffs2", "MTD", "system", "/system");
ui_print("Mounted /system");
ui_print("Copying /system...");
package_extract_dir("system", "/system");
ui_print("Copied /system");
ui_print("Done! Enjoy Your New Android Update");
I Want to know that if I use this script would it be able to install the system folder(Custom Rom) on a phone......
Any help is Welcome....

Unroot my phone in recovery mode

I've just updated a firmware from archos website (OTA972121_8916_V007049.zip)
for the archos 40 titanium.
I reboot in recovery mode, and after plugin the USB, I selected update from ADB. SO I ran
Code:
adb sideload OTA972121_8916_V007049.zip
in cmd, everything seemed to work.
I reboot and now my cell phone doesn't work anymore: i got a bootloop .
I must precise that I performed full adb backups just before. I tried to reset cache and data, didn't worked. My cellphone is already rooted.
I contacted Archos they asked me to return them the phone. Since I rooted the guarantee isn't available anymore, unless I "unroot" it. How to do it?
After searching a while I know there is a way but only for I9001. After extracting it I could open update-script and see pastebin.com/LqyqwwKq, so I edited it to make it work for my phone (the partition name I got it in the official archos firmware update)
Code:
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p4", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:app/Superuser.apk...");
delete("/system/app/Superuser.apk");
set_progress(0.300000);
ui_print(" Deleting SYSTEM:app/XPosedInstaller.apk...");
delete("/system/app/XPosedInstaller.apk");
set_progress(0.400000);
ui_print(" Deleting SYSTEM:app/XPrivacy.apk...");
delete("/system/app/XPrivacy.apk");
set_progress(0.500000);
ui_print(" Deleting SYSTEM:app/GravityBox.apk...");
delete("/system/app/GravityBox.apk");
set_progress(0.600000);
ui_print(" Deleting SYSTEM:app/Busybox.apk...");
delete("/system/app/Busybox.apk");
set_progress(0.700000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Bye Bye!");
set_progress(1.000000);
But is this script correct? Particulary, I'm not sure for GravityBox, XposedInstaller, XPrivacy, Busybox and SU (since when I root it it was w/ Boromir from Framaroot).

[PROBLEM] Unable to flash self-made zip file

Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
Code:
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
Code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system"
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..

custom recovery with file manager for Asus ME181C (K011)

Hi there guys! I'm looking for a custom recovery with a file manager (probably aroma as is most likely the only one), I've been looking for some hours but can't find anything.
The thing is I forgot the pattern and now I can't unlock my tablet... And I don't want to loose anything (no backup). So I've tried flashing an update.zip to delete the ".key" files inside /data/system but it's not working, I can only use fastboot as I don't have access to the adb shell (it's not enabled).
I'd really appreciate either a custom recovery with aroma (that I can flash using fastboot), or to know why when I flash the zip with the commands to delete these files it's not working?
Code:
ui_print("Mounting System");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting Data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Deleting Pattern/ PIN Lock Keys");
delete("/data/system/*.key");
ui_print("Unmounting System");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Unmounting Data");
run_program("/sbin/busybox", "umount", "/data");
This is what I tried:
Code:
sudo fastboot flash data update.zip
Why is it not working?
Thanks!

Categories

Resources