[Q] How to create flashable zips - LG Optimus 3D

What is the best way to create flashable zips for our O3D?
I've read some tutorials in xda, I know that files must be put inside replicated folder structure inside the zip (system, data, sdcard, ...).
But what about META-INF?
How to create proper updater-script and update-binary?
I've found App2zip in Play Store, but I'm unsure about compatibility.

After one hour testing with app2zip , i got negative result. I tested on my 2 system app and on my 6 user app. But it doesn't flashed. But one interesting thing is that, we will get update script. With some alterations, i think we can reproduce a flashable one .
I am still working on flashable zips of apps.
Sent from my GT-S6102 using xda premium

Using text editor you can easily creat update script. I ll give one specimen script for you
ui_print("..app is being flashed..");
package_extract_dir("app", "/system/app");
set_perm(0, 0, 0644, "system/app/****.apk");
ui_print:::complete:::;
Here for successful flashing you have to put you apk file in folder named app. Not in system/app/.
Another important thing -delete any extension on update-script after completing text editor task.
The smileys in the above post are just closing brackets.sorry
Sent from my GT-S6102 using xda app-developers app

rahulsnair said:
Using text editor you can easily creat update script. I ll give one specimen script for you
ui_print("..app is being flashed..");
package_extract_dir("app", "/system/app");
set_perm(0, 0, 0644, "system/app/****.apk");
ui_print:::complete:::;
Here for successful flashing you have to put you apk file in folder named app. Not in system/app/.
Another important thing -delete any extension on update-script after completing text editor task.
The smileys in the above post are just closing brackets.sorry
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
Thanks, but I know I can manually edit the files.
But maybe there is a more "automatic" way, using some king of android app or computer program.

daniel.mota said:
Thanks, but I know I can manually edit the files.
But maybe there is a more "automatic" way, using some king of android app or computer program.
Click to expand...
Click to collapse
I think app2zip is the one and only one app that do everything automatically.But the product won't flash.I found two reasons for that.
1. Signing done by app2zip doesnt creat cert.rsa, cert.sf,manifest.mf inside Meta-inf
2. Some error is with the update script.which make /temp/sideload/package.zip errorresulting the task get abort.
But we can make the product of app2zip flashable with our update-script and signing.
Nb:you can sign the app with appsigner(an app available in market) with your own keystore.
Sent from my GT-S6102 using xda app-developers app

By TWRP you can install unsigned zip.
BTW for signing you can use this:
http://forum.xda-developers.com/showthread.php?t=822388

Related

[Q] Downloaded APK files saved as .zip?

Just recently, on two different PCs, whenever I downlaod an APK from XDA-Developers, they are saved as .zip files (saved as "app.zip" instead of "app.apk"). Downloading from other sites works fine.
Is it something with the forums? or with my PCs?
Can the file be unzipped?
Sent from my HTC_A510c using XDA App
Android311 said:
Can the file be unzipped?
Sent from my HTC_A510c using XDA App
Click to expand...
Click to collapse
Yes, the file can be unzipped & the contents are what would usually be in an apk file.
I just rename it to "app.apk" & it will work. Its just that it did not happen before, and now, on two PCs whenever I download an APK, I have to rename it first.
Apk in .zip
All APK's are just zip files in a format that Android understands and can un-zip almost like and be installed like a program. So, i think, you need to just change the .zip extension to .apk
The main question was that, previuosly downlaoded APK's from XDA were fine, now, they are saved as .zip. why?
omar302 said:
The main question was that, previuosly downlaoded APK's from XDA were fine, now, they are saved as .zip. why?
Click to expand...
Click to collapse
Probably because its not illegal I guess... if you were to upload a paid app as an APK u could get in trouble whereas if its in a .zip file then its not considered an illegal file... if you get me... another possibility is that it just takes up less space hope this helps
Sent from my Nexus One using XDA

How to Flash zipped file without custom recovery?

Hi there!
I have U30GT tablet which unfortunely till now didn't have any custom recovery. Some time I want to flash files to the ROM but due to this limitation I need to copy the files manually (easy job) and set the permission (hard job when there's a lot of files).
So is there any other ways that I can automated the task of copying the files and setting the correct permission without using custom recovery?
Many thanks!
Have you tried using a script or bat file to copy and set permissions through adb from your desktop?
Sent from my VS910 4G using xda app-developers app
I.M.famous XMAN said:
Have you tried using a script or bat file to copy and set permissions through adb from your desktop?
Sent from my VS910 4G using xda app-developers app
Click to expand...
Click to collapse
Thanks. But I don't know how to do a script or bat file to be used with adb. Can you write up some guide for it?
I'll see what I can do. No garruntees. But another option is to push the files through adb then use v6 supercharger to fix emissions. Idk. Let me see if I can Whip something up for you.
Sent from my VS910 4G using xda app-developers app
package can be flashed through stock recovery but they are needed to be signed properly with the manufacturer's key
dheeraj (dhlalit11) said:
package can be flashed through stock recovery but they are needed to be signed properly with the manufacturer's key
Click to expand...
Click to collapse
Thanks but I wanna copy files for some tweaks only.
Well I found 1 solution, that is to manually copy the files than use ROM Manager app to fix permission. Also found thread here in XDA about using .bat file to automated the push and set permission but as I very lacking in knowledge in using command, I'll stick to Root Explorer + ROM Manager combo.
you can root device,cat stock recovery.img,and then compile cwm recovery.
Check this website someone is working on getting CLOCKWORK recovery on U30GT
http://www.freaktab.com/showthread.php?1396-Cube-U30GT-H-JB-Finless-1-4-ClockWork-BETA1
Sent from my EVO

[MOD] Email.apk With NO Security

Use this thread http://forum.xda-developers.com/showthread.php?t=1117452
and follow ftc_osiris's directions (thank him in post 5):
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
eclipxe said:
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
Click to expand...
Click to collapse
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Are you looking for the aosp email.apk?
Sent from my SPH-L720 using xda premium
vrundmc said:
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Click to expand...
Click to collapse
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM. (I did not create the script, I just use it )
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExchange.apk
Hope that helps you.
_______
Another note:
After you have performed this once successfully, copy the SecEmail_J.apk and SecExchange.apk from the /system/app folder on the phone to somewhere on your computer for future use.
When you go to flash a new rom, open the .zip file and drop the .apks into the /system/app folder inside the ROM that you want to install. You won't need to run the hack script or do anything special in recovery.
As long as Touchwiz is not updated, those .apk files will be usable in place of the script. (unless you get an uneditable ROM .zip).
If Touchwiz is updated in the future, the answer would be to repeat the hack process above and then get the new versions of the .apk files for future use.
As always, I hope this helps.
Let me know if anyone has difficulty.
ftc_osiris said:
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM.
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
Hope that helps you.
Click to expand...
Click to collapse
Nevermind...it worked! Thanks!!
vrundmc said:
Nevermind...it worked! Thanks!!
Click to expand...
Click to collapse
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Alright, I ADDED THE FILES FOR THE ORIGINAL STOCK ROM!!!!
I had to use 7zip to split the files.
Remove the .zip and the parenthetical at the beginning of the filenames, then highlight both and hit extract. (name them "Exchange_Bypass.7z.001" and "Exchange_Bypass.7z.002" )
ACTUALLY,
(remove_this_and_the_.zip)Exchange_Bypass.7z.001
and
(remove_this_and_the_.zip)Exchange_Bypass.7z.002
work just fine. In other words, leaving the leading parenthetical does not cause a problem.
A pain, I know. But all you have to do is take the extracted files and put them in the "/system/app" folder of the ROM you wish to flash.
Alternatively, if you want to install on your phone (not flash with a ROM), use a root file manager, overwrite the files already in /system/app on your phone, then set the permissions to "rw-r--r--" (I haven't tried this one to be honest, it might be better to use the hack to accomplish this.)
ftc_osiris said:
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Click to expand...
Click to collapse
Here is the second file
ftc_osiris said:
Here is the second file
Click to expand...
Click to collapse
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
I was able to re-root on MDL and install via the batch file.
Sent from my SPH-L720 using xda premium
BrandoKC said:
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
Click to expand...
Click to collapse
I just tested them. They worked for me so I am not sure what to do?
I updated the post above to give the exact names to use.
Exchange_Bypass.7z.001
Exchange_Bypass.7z.002
Actually, all you need to do is remove the .zip portion.
I used the zip on MDL today and had no problems.

[Q] Need help preparing a flashable zip file

Hi,
i currently had some issues with my GPS, and i found this thread with an attached gps.conf file which fixed them.
However, i want to create a flashable zip file for TWRP to ease and automate the installation of the custom file.
I used the cacert-installation zip from http://android.opensomething.org/ as a starting point for my creation. This zip was created by some people i know and they automate the installation of the CaCert.org root certs on android.
However, i set up my own commands in the update-binary (which is essentially a shell script in this zip) and copied the gps.conf as the payload of the zip. But now i have the problem that the flashing fails, and i don't know why.
I would be very happy if someone could look at the zip and my commands in there, and maybe has an idea, why the installation fails.
Thank you very much.
Use a root file explorer and copy that file to etc folder and check permissions,(rw-r-r) though generally this isn't an issue..
Sent from my A0001 using XDA Premium 4 mobile app
The zip file is in the same folder where my other flashable zip files are. It has also the same permissions. I double-checked the directory on my desktop where i created the zip file from, and its contents had exactly the same permissions that the contents of the cacert zip file have.
The syntax of the update-binary file should be correct.
Is there some sort of verbose mode i can activate in TWRP? Some errors like "Extracting zip... ERROR could not open update-binary FAILED" could be very helpful for me.
simonszu said:
The zip file is in the same folder where my other flashable zip files are. It has also the same permissions. I double-checked the directory on my desktop where i created the zip file from, and its contents had exactly the same permissions that the contents of the cacert zip file have.
The syntax of the update-binary file should be correct.
Is there some sort of verbose mode i can activate in TWRP? Some errors like "Extracting zip... ERROR could not open update-binary FAILED" could be very helpful for me.
Click to expand...
Click to collapse
The .zip you provided above is empty.. No files other than meta and system.. I'll build one and upload it..
Sent from my A0001 using XDA Premium 4 mobile app
Here you go..
Thank you very much. How did you create the zip? Just for the records, and for me to learn. I have my android phone for 10 days (was used to iOS before) and i like such actions very much.

Find Files Used by Installed App

Hey, I am currently using an app that has built in backgrounds to make quote cards and memes and such. I want to know how to find the actual background files so I can modify them. How can I find these files? Any help is appreciated!!!
usimg the es file explorer rename the app as appname.zip and extract the app normally. now search for images in it. edit them. and aelect all folders or files in the extracted folder and compress them and rename the zip as appname.apk ans inatall
its done
Sent from my SM-G355H using XDA Free mobile app
Thank you! I'll give it a shot and see how it goes!
So am I just renaming the app.apk file as app.zip then? Then download, extract file, search images, etc. right?
Obviously if the app updates I'm guessing my changes will be overwritten each time?
may be well i donot update my apps.
Sent from my SM-G355H using XDA Free mobile app

Categories

Resources