[Q] How to push deodexed app and framework in the phone - LG Optimus 3D

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

Related

Mobile defense as a system app

Is there a mobile defense as a system app update.zip? Whenever I need to reinstall it (ie., wipe, ROM change, etc.), I need to be by the comp which I hate. It would be nice to have a zip file I could just flash.
Thanks
I was thinking the same thing. I was on the MD site looking at the instructions to install it as a system app for added security and clicked a link in the instructions to download the apk. When I looked at the link it was a zip file, not an apk. Does this mean that I can flash it in recovery or what? Is it ok to push a zip file to the system/app folder as stated in the instructions, and will it install properly?
instructions: http://support.mobiledefense.com/viewtopic.php?id=569
APK (zip): http://www.mobiledefense.com/system/indigo/mobiledefense-install.zip
See this thread: http://forum.xda-developers.com/showthread.php?t=689350
djmcnz said:
Why not create one yourself? It's really easy.
Create a zip file and add a system/app directory to it
Put apk in system/app directory in zip
Create META-INF/com/google/android directory in zip
Create a text file with the code below called update-script and put it in this directory
Sign the zip file (see: http://forum.xda-developers.com/showthread.php?t=667923)
Good to go.
Code:
assert compatible_with("0.2") == "true"
assert getprop("ro.product.device") == "passion" || getprop("ro.build.product") == "passion"
show_progress 0.100000 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.100000 10
Click to expand...
Click to collapse
Ok... WOW. I didn't realize it was so easy but am confused with the Create META-INF step. Tell me if this is right:
1) Make a new folder and name it mobiledefenseupdate
2) Add a new folder called system in the above folder
3) Add a new folder called app in the above folder
4) Add a new folder called META-INF in the mobiledefenseupdate folder
5) Add a new folder called com in the above folder
6) Add a new folder called google in the above folder
7) Add a new folder called android in the above folder
8) Add the *.apk to the system -> app folder
9) In the META-INF/com/google/android directory, add a new text file with the code below and name it update-script
And then sign?
hah2110 said:
Ok... WOW. I didn't realize it was so easy but am confused with the Create META-INF step. Tell me if this is right:
1) Make a new folder and name it mobiledefenseupdate
2) Add a new folder called system in the above folder
3) Add a new folder called app in the above folder
4) Add a new folder called META-INF in the mobiledefenseupdate folder
5) Add a new folder called com in the above folder
6) Add a new folder called google in the above folder
7) Add a new folder called android in the above folder
8) Add the *.apk to the system -> app folder
9) In the META-INF/com/google/android directory, add a new text file with the code below and name it update-script
And then sign?
Click to expand...
Click to collapse
Yes that's correct but you can name your update.zip file anything you want.
You will end up with:
Code:
root
-/system
+-/app <- apk's go in here
-/META-INF
+-/com
+-/google
+-/android <- update-script goes in here
Any apps you put in the system/app directory will be installed. Just be aware that your system partition does have a size limit so don't just dump heaps of massive game apk's in there...
And then sign away. The recovery console will check the validity of your signatures and scripts so it's difficult to make an irrecoverable mistake...
Let us know how you get on!
They just finished one up...
http://forum.xda-developers.com/showthread.php?t=689350
dailydR1ver said:
They just finished one up...
http://forum.xda-developers.com/showthread.php?t=689350
Click to expand...
Click to collapse
Lol that was me. Thanks

[Q] Is there a method to undo flashed zip ?

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?

[Q] Is it possible to just flash /system?

I am running a rooted stock tf300t. In CWM-touch-6.0.1.4 I created an image zip. I reboot the tablet and using ES File Explorer I transfer the image file from CWM to my external SD Card. On my computer, I use an unarchiving tool to unpack the .tar file and I am able to see all the files within /system. My question is: Is it possible to remove certain apps from /system/app and then rezip the file and flash it over the current /system folder?
justin.blake said:
I am running a rooted stock tf300t. In CWM-touch-6.0.1.4 I created an image zip. I reboot the tablet and using ES File Explorer I transfer the image file from CWM to my external SD Card. On my computer, I use an unarchiving tool to unpack the .tar file and I am able to see all the files within /system. My question is: Is it possible to remove certain apps from /system/app and then rezip the file and flash it over the current /system folder?
Click to expand...
Click to collapse
Yes of course.
Saving the file
Thanks, is there a certain way I should save it? Would fastboot be better or should I save it onto an sd card and flash it from CWM? If I do it in CWM should I format /system first and then flash it or would it automatically overwrite everything? I'm still pretty new to android and appreciate any and all help.
What exactly are you trying to achieve? Maybe if you explain it we can help you
Fast boot will do you no good.
You can prepare an installer script for flashing with just system apps in it but if you are not that familiar with Android this will be quite a tall order for you to do straight off the bat. I wouldn't format system until you know what you are doing.
flashing system
I work for a company that does MDM but as of now they primarily use iPads. They want to be able to get rid of practically everything except a browser and our own software. I have been successful implementing our software, but with all the other apps we are running into a few problems. I have found that if I go into the app folder and remove all the unnecessary apps, everything runs a lot smoother. It is possible to get rid of practically everything using the file explorer but that is a lot more time consuming than just flashing a system partition that has already been modified.
I have been successful in modifying a cm9 build for a Samsung Galaxy Tab2 and running it. As the picture shows I only have the browser, play store, settings, and SuperSU. For whatever reason, since the Asus is running 4.1.1, the cm10 build isn't as easy to modify and run. Instead I'm trying this route.
justin.blake said:
I work for a company that does MDM but as of now they primarily use iPads. They want to be able to get rid of practically everything except a browser and our own software. I have been successful implementing our software, but with all the other apps we are running into a few problems. I have found that if I go into the app folder and remove all the unnecessary apps, everything runs a lot smoother. It is possible to get rid of practically everything using the file explorer but that is a lot more time consuming than just flashing a system partition that has already been modified.
I have been successful in modifying a cm9 build for a Samsung Galaxy Tab2 and running it. As the picture shows I only have the browser, play store, settings, and SuperSU. For whatever reason, since the Asus is running 4.1.1, the cm10 build isn't as easy to modify and run. Instead I'm trying this route.
Click to expand...
Click to collapse
Ah right.
You could use adb to pull /system/app to some folder. delete what you want. Wipe the system/app folder on the device and then just push back the necessary apks.
Or build a simple installer script to do the same thing.
Excellent, thank you very much for your help.
justin.blake said:
I am running a rooted stock tf300t. In CWM-touch-6.0.1.4 I created an image zip. I reboot the tablet and using ES File Explorer I transfer the image file from CWM to my external SD Card. On my computer, I use an unarchiving tool to unpack the .tar file and I am able to see all the files within /system. My question is: Is it possible to remove certain apps from /system/app and then rezip the file and flash it over the current /system folder?
Click to expand...
Click to collapse
Er yes Kind of but you need to think in terms of linux and ext partitions. I haven't got time right now to go into the details. If you grab a simple installer script, Make sure you have notepad++ installed on Windows and you can see what the script is doing.
Let me see if I have a quick flashable zip I can attach.
I find it easier to connect the tab to my windows laptop and via an adb cmd line prompt type
adb pull /system/app /system/app
Which extracts all the files in /system/app to a folder called /system/app on my hardisk.
You can then put whatever you want back into the flashable zip in the system/app folder and away you go. In your case it's a bit more complex as you want to format the system/app directory first before inserting system/app back on but it's easy enough to show you how.
The file below when flashed from recovery installs the mynet.apk file into /system/app
if you go into
META-INF/com/google/android and open updater-script in notepad++ you'll see the following
show_progress(0.1, 0);
ui_print("Quick system update");
ui_print("");
set_progress(1.000000);
mount("ext4", "EMMC", "/dev/block/mmcblk0p1", "/system");
ui_print("Installing files..");
package_extract_dir("system", "/system");
ui_print("Setting Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
show_progress(0.200000, 10);
unmount("/system");
ui_print("Done. Reboot to enjoy!");
the line in red mounts the system partition and the line in blue does the inserting of the file.
Now if you were to add the following at the beginning before mounting you would wipe the whole system partition.
format("ext4", "EMMC", "/dev/block/mmcblk0p1", "0");
So as long as you inserted all the necessary apps needed to boot and the apps you want to provide you would have a nice lean, bloat free rom.
Hope that makes sense?
Darren

How to make flashable zip with apps?

i am trying everyday new rom and reinstalling all the app, and i am sick of it..
How do i make my own a twrp flashable zip with apps and flash them after flashing a rom?
i tried to search but i didnt find any proper solution.
cipjanin said:
i am trying everyday new rom and reinstalling all the app, and i am sick of it..
How do i make my own a twrp flashable zip with apps and flash them after flashing a rom?
i tried to search but i didnt find any proper solution.
Click to expand...
Click to collapse
for example,take someone ready мод.zip and opening through winrar to put your
mod.zip-open with winrar (the system folder has another folder there and put up your files
(not extract, just open arhive )
and in mod.zip\META-INF\com\google\android\ file updater-script to change for example the rows that show the process
Code:
ui_print(" ");
ui_print(" ");
ui_print("--> mod name");
ui_print("--> for Stock ROMs");
ui_print("--> based on N5 - LRX21O");
ui_print(" ");
ui_print(" ");
ui_print("--> by cipjanin;57128017");
ui_print(" ");
ui_print(" ");
the rest can not be touched,but you can fix if you want for myself ...
Huh? Google Play should reinstall everything for you.
Or use Titanium Backup.
cipjanin said:
i am trying everyday new rom and reinstalling all the app, and i am sick of it..
How do i make my own a twrp flashable zip with apps and flash them after flashing a rom?
i tried to search but i didnt find any proper solution.
Click to expand...
Click to collapse
Titanium Backup, Helium and ADB should do the job
cipjanin said:
How do i make my own a twrp flashable zip with apps and flash them after flashing a rom?
Click to expand...
Click to collapse
Android Flashable Zip Creator
Wakamatsu said:
Android Flashable Zip Creator
Click to expand...
Click to collapse
i found this but n5 isnt there in the list.. and i was afraid to try this..
For others i know about titanium backup and others app..
I wanted to make it more faster...
u know just flash rom and flash another zip with mine apps and done...
I found an app zipme on playstore is seems its good app for making flashable zips
cipjanin said:
i found this but n5 isnt there in the list.. and i was afraid to try this..
Click to expand...
Click to collapse
I was running without google services for a while and used this to flash a file explorer (ROM I was using didn't have one). It works just fine for apps.

Flashable zip not flashing correctly

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(" ");

Categories

Resources