HELLO ,,,,
If I flash zip through recovery mode....and there is error or I don not like effect,,,,,
Is there a method to undo or reserve this ?
same thing im tryin to know
u have to flash your rom again or the backup u created of ur rom
im tryin to reverse this by flashing an other zip file.
give u news when i get it.
abizerl123 said:
same thing im tryin to know
u have to flash your rom again or the backup u created of ur rom
im tryin to reverse this by flashing an other zip file.
give u news when i get it.
Click to expand...
Click to collapse
what did you flashed first? say that first
make a backup before flashing.
if you don't like the effect, restore the backup.
eslam hassan said:
HELLO ,,,,
If I flash zip through recovery mode....and there is error or I don not like effect,,,,,
Is there a method to undo or reserve this ?
Click to expand...
Click to collapse
if you have modded the framework-res.apk or any other that you have modded consider that as x.apk copy the x.apk from the firmware from which u modded it......and make a folder copy meat inf from any cwm flashable zip of any theme or app from galaxy fit's forums....and do another folder called system and open it and create a folder called app and paste the x.apk and add the two folders ( met inf and system) to zip file ...and sign the zip and flash it via cwm..............
Aspire said:
make a backup before flashing.
if you don't like the effect, restore the backup.
Click to expand...
Click to collapse
what programe allow you to backup rom ?
how time to backup & restore rom ?
clockwork recovery mod.
http://forum.xda-developers.com/showthread.php?t=1339640
i havent flashed it but thinkin of doin it without root and i didnt get what u said abt the framework res stuff
thnx
SOLUTION
HERE S THE solution
let I explain you with rooting example
For root ~updater script
format("MTD", "system"); #mount("MTD", "system", "/system"); package_extract_dir("system", "
/system"); set_perm(0, 0, 04755, "/system/xbin/sqlite3"); set_perm(0, 0, 04755, "/system/xbin/su-v1"); set_perm(0, 0, 04755, "/system/xbin/su-v2"); set_perm(0, 0, 04755, "/system/xbin/su-v3"); set_perm(0, 0, 04755, "/system/xbin/su"); set_perm(0, 0, 04755, "/system/xbin/sh"); set_perm(0, 0, 04755, "/system/xbin/busybox"); #unmount("/system");
And for undo this
delete("/system/xbin/sqlite3"); delete("/system/xbin/su-v1"); delete("/system/xbin/su-v2"); delete("/system/xbin/su-v3"); delete("/system/xbin/su"); delete("/system/xbin/sh"); delete("/system/xbin/busybox"); delete("/system/app/Superuser.apk");
you could also do this:
open the downloaded zip file using an archive manager.
open /system and make a list of all the files included.
check your phone for those files using Root Explorer. If they exist, copy to SD Card.
Flash ZIP.
you don't like the effect? copy the backed up files into their respective directories. delete all those files that didn't exist before.(added by the zip)
I've tried to keep these instructions as simple as possible. Still if you have any doubts, PM me?
Related
im trying to make one for this:
http://forum.xda-developers.com/showthread.php?t=2078587
I followed this tutorial:
http://forum.xda-developers.com/showthread.php?t=1721680
I attached what I've done.. I dont understand why it doesn't do anything
Google 'how to make cwm flashable zip' and get this: http://forum.xda-developers.com/showthread.php?t=1721680
cschmitt said:
Google 'how to make cwm flashable zip' and get this: http://forum.xda-developers.com/showthread.php?t=1721680
Click to expand...
Click to collapse
oh thanks
Its scary you have a mod topic but couldn't Google for an answer...
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
PJcastaldo said:
Its scary you have a mod topic but couldn't Google for an answer...
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
because i tried a tutorial and it didn't work.. so I was hoping someone could just help me out but the link that was posted was different and much more straight forward however that too did not work
The problem would be that on Skyrocket the /system partition is mmcblk0p24 not mmcblk0p2.
Damn lucky you didn't brick when flashing this, because mmcblk0p2 in one of the secondary bootloaders!
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("Enjoy! ALL OF YOU WATER HAS BEEN EVAPORATED!!!!");
ui_print("Project Evaporation By Guitarboarder28");
A safer method for mounting system is to mount it using the generic partition name, which is more cross-device independent because you aren't mounting a specific block device (mmcblk0p24 isn't the /system partition on every device.)
You also might need to set the correct permission on system apps or other executables in the package.
Code:
ui_print("Flash something...");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
cschmitt said:
The problem would be that on Skyrocket the /system partition is mmcblk0p24 not mmcblk0p2.
Damn lucky you didn't brick when flashing this, because mmcblk0p2 in one of the secondary bootloaders!
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("Enjoy! ALL OF YOU WATER HAS BEEN EVAPORATED!!!!");
ui_print("Project Evaporation By Guitarboarder28");
Click to expand...
Click to collapse
oh boy lol that would have sucked. Thank you for the help
So this should work right?
when I try to flash it immediately fails
Guitarboarder28 said:
So this should work right?
when I try to flash it immediately fails
Click to expand...
Click to collapse
seccontacts.apk cant be a folder, you r trying to inject something into an apk, but your method is wrong, the apk should be already modded and added to the zip with the correct paths setup in the zip and the updater script.
just add the ogg file in the apk, add the apk in the zip into the system/app folder
so did you ever finish the zip?
Hi guys, I successfully deodexed app and framework of the ported ICS (thenks so much xbsall). The problem is that i don't know how to push deodexed app and framework in the phone. Can u help me?
You can use adb .
Or
Pick any flashable *.zip .
Unzip , take the META-INF folder and go to (META-INF/com/google/android) and open the " updater-script" as text and delete all the text .
Then add this :-
Code:
run_program("/sbin/busybox", "mount", "/system");
delete("system/app");
delete("system/framework");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
Save it .
Then great a folder name it with "my rom" or any thing you like and put the META-INF folder in that folder . (Now you have "my rom/META-INF")
Great a folder name it "system" in the "my rom" folder (my rom/system) .
Great two folders "framework" and "app" put them in system folder (my rom/system/app) ,, (my rom/system/framework) .
Copy the deodexed framework files to the "framework" folder ,, and the deodexed apps into "app" folder .
Now make a zip contain the "system" and "META-INF" folders .
This will be a flashabe zip .
By the way ,, how did you deodexed them ?? I tried every thing but always fail with errors .
Sent From LG-P880
Try Use THANKS Button If I Helped
R: [Q] How to push deodexed app and framework in the phone
Thanks I when i go home i tell u how to deodex rom
Inviato dal mio LG-SU760 con Tapatalk 2
R: [Q] How to push deodexed app and framework in the phone
Can un tell me the metod to push them whit adbpush? I will try both the metod
Inviato dal mio LG-SU760 con Tapatalk 2
with adb is much easier just use cammands ,, but .. I do not use it
I don't know about adb because it needs PC and I'm too lazy to open my PC and typing ,, I do all with my phone
OS_Hacking said:
You can use adb .
Or
Pick any flashable *.zip .
Unzip , take the META-INF folder and go to (META-INF/com/google/android) and open the " updater-script" as text and delete all the text .
Then add this :-
Code:
run_program("/sbin/busybox", "mount", "/system");
delete("system/app");
delete("system/framework");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
Save it .
Then great a folder name it with "my rom" or any thing you like and put the META-INF folder in that folder . (Now you have "my rom/META-INF")
Great a folder name it "system" in the "my rom" folder (my rom/system) .
Great two folders "framework" and "app" put them in system folder (my rom/system/app) ,, (my rom/system/framework) .
Copy the deodexed framework files to the "framework" folder ,, and the deodexed apps into "app" folder .
Now make a zip contain the "system" and "META-INF" folders .
This will be a flashabe zip .
By the way ,, how did you deodexed them ?? I tried every thing but always fail with errors .
Sent From LG-P880
Try Use THANKS Button If I Helped
Click to expand...
Click to collapse
Hi osHacking, i tried to flash the zip but appear error, it says:
E:Error in /sdcard/myrom.zip
(Status 6)
*verifying filesystems
verifyng partition sizes
error flashing zip
Ok, I flashed the zip, but when ends to flash i go to system/apps and the odex file is there! why? U can deodex file whit xdaDEOTool U can download it from here http://forum.xda-developers.com/showthread.php?t=1053227
I am triying to do my script for putting in data the apps so the paid apps you have you can unistall and update from market when ever you want.
Structure:
data
META_INF
In data it the APK with i want to test.
META-INF is the updater-script i do to made it work:
Code:
ui_print("Starting Script....");
ui_print("Installing APK....");
ui_print("Allmost done....");
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
package_extract_dir("data", "/data/");
unmount("/data");
ui_print("Script made by werty100....");
ui_print("Thanks for using it...");
Now its wokrs but it doesnt install the app how can I do
A lot of thanks
Working
Know I have cheked it and its works, it was becouse the structure.
Hello
I'm in a bit of trouble because TWRP won't restore my backups. It fails during 65% of the /data partition. There are two separate backups from September and November and none of them work. MD5 Hashes check out OK though
The problem is I need to get the apps and their settings back. There are some important things on there.
I've already unpacked the data.ext4.win000 file using cygwin and found out that there is an app that has cached over 300,000 files which I don't need. Maybe that could be part of the problem, maybe not, I can't figure it out since I don't get any error other than "failed"
What I would like to try next is zip the unpacked /data folder containing /data /Fly-On /local and /misc into a flashable .zip and flash it using adb sidload.
I've found an update-script that could possibly work but currently I am reluctant to use it because I don't see any /misc in there and cygwin did not unpack any folder called "/app"
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data");
package_extract_dir("sdcard", "/sdcard");
run_program("/sbin/busybox", "umount", "/data");
Anyone ever done something like this and willing to share the experience?
Some hints or clues would be greatly appreciated...
I've never seen a line like
package_extract_dir("sdcard", "/sdcard");
before. Should be something like data instead if I'm not mistaken. But I'm not a dev, so somebody else should help here...
Also, wrong section. This belongs to Q&A.
Hey op I'm sorry you've ran into this problem but this might be a really long stretch but you could try to restore the apps and data from the nandroid backup using titanium...
~PsyCl0ne
Sent from my ONEPLUS One using XDA Free mobile app
I've searched and searched for this and can't find any related thread that has solved my problem. So please forgive me if I'm asking this question without having found the answer on my own.
I'm trying to create a flashable zip. The file is clearing-cache-v3.sh and I want it pushed to /system/etc/init.d/clearing-cache-v3.sh. I want to make the file executable after it's pushed to that directory. In the zip file I already have these two folders:
META-INF
system
Within that system folder I placed the file I'm pushing in this zip as /system/etc/init.d/clearing-cache-v3.sh. Below is the updater-script.
Code:
ui_print("");
ui_print("Clear DNS Cache");
show_progress(0.500000, 0);
ui_print("");
ui_print("*******************");
ui_print("*******************");
ui_print("Clearing DNS Cache");
ui_print("*******************");
ui_print("*******************");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/etc/init.d/clearing-cache-v3.sh");
run_program("/system/etc/init.d/clearing-cache-v3.sh");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("");
ui_print("All Done!");
show_progress(0.100000, 0);
The problem I'm having is that the file isn't being pushed to /system/etc/init.d. It's just not going there. When I flash this file it doesn't give me an error or anything either. It's just not pushing the file to where it belongs. What am I doing wrong?
You have the placing wrong. You gave meta-inf folder and system folder, inside that system folder in the zip should be /etc/init.d what you have by putting a system folder inside the other system folder is what's wrong.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
You have the placing wrong. You gave meta-inf folder and system folder, inside that system folder in the zip should be /etc/init.d what you have by putting a system folder inside the other system folder is what's wrong.
Click to expand...
Click to collapse
What do you mean? I have the meta-inf folder and system folder in the zip. Attached is the file that I've been having issues with. Can you expound on what you mean about what I did wrong.
Forget what I said before, the way you worded it confused me. It doesn't flash correctly because you forgot that you have to end the updater script with an empty line.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Forget what I said before, the way you worded it confused me. It doesn't flash correctly because you forgot that you have to end the updater script with an empty line.
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
I tried to add a blank line at the end of the updater script and then I saved it, recreated the zip, and flashed and it still made no difference. In fact, if I add a blank line at the end of the file, save it, then reopen the updater-script, that blank line is gone. Why is that?
Could be what you're using to make it. Try something else, but if it is getting rid of that blank line when you save it its not going to work.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Could be what you're using to make it. Try something else, but if it is getting rid of that blank line when you save it its not going to work.
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
I just used a different text editor to put the line at the end. This time when I flashed it it said "Error executing updater binary". Prior to this I wasn't getting any errors.
Sorry I really don't know what to tell you, maybe start from scratch?
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Sorry I really don't know what to tell you, maybe start from scratch?
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
Figured it out. I took the updater-script from another zip file that I've flashed recently that I knew worked and modified that. Below is the final updater script that worked perfectly for me:
Code:
ui_print(" Flashing Google Services fix... ");
ui_print(" ");
show_progress(0.99, 30);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/etc/init.d/FixGSv3.sh");
show_progress(1.0, 1);
unmount("/system");
ui_print("----------------------------------------------");
ui_print("| Done!!! |");
ui_print("----------------------------------------------");
ui_print(" ");