Related
Hello, I have searched everywhere and cant find the answer to my question. I wanted to replace a file using CWM .zip how in the heck do I do that? Most of all I just wanted to learn how to do it as well...
Thanks,
Chad
Well to begin with you can take an existing zip with the file path you need, delete everything in the folders not touching the META-inf folder at all, those are the install instructions, and put the file you want to flash in the correct folder. I think thats how everyone starts out.
studacris said:
Well to begin with you can take an existing zip with the file path you need, delete everything in the folders not touching the META-inf folder at all, those are the install instructions, and put the file you want to flash in the correct folder. I think thats how everyone starts out.
Click to expand...
Click to collapse
but your update-script has to match what you are flashing via cwm. if you take a rom zip and just pop in a few files in place of the whole rom structures, your flash will fail because your update-script is looking for specific structures.
Oxicottin said:
Hello, I have searched everywhere and cant find the answer to my question. I wanted to replace a file using CWM .zip how in the heck do I do that? Most of all I just wanted to learn how to do it as well...
Thanks,
Chad
Click to expand...
Click to collapse
One way would be to use: Update Zip creator/modifier (Requires Windows)
yeah it would be bad mojo if you used a wipe rom zips META INFO to make an update zip.....
Thanks a million everyone......
Sorry for being late to the party again.. Here goes my attempt at an explanation though:
Essentially, a CWM flashable zip is just a zip file with the file system replicated in it. So for example, if you wanted to add swype, and you know Swype.apk would regularly go in /system/app, then you would create a blank folder called 'system', and another folder inside system called 'app', and put your Swype.apk inside that. (/system/app/Swype.apk)
After that, all that's left is to build an update script. So, from your root directory (where your system folder is), you would make another directory called META-INF, with a folder inside called 'com', another one inside that called 'google', and finally one called 'android' inside that (/META-INF/com/google/android), you put a text file in there called 'update-script' that tells recovery what you want to do (in this case, copy swype over to the corresponding directory on the file system).
http://forum.xda-developers.com/showthread.php?t=641223
^There's a guide for how to make those. You can also pick apart any rom you find in the dev section and check out the update script for reference.
After that, it's just a matter of zipping up all the contents in your root directory, then signing the zip with testsign.jar
modest_mandroid said:
Sorry for being late to the party again.. Here goes my attempt at an explanation though:
Essentially, a CWM flashable zip is just a zip file with the file system replicated in it. So for example, if you wanted to add swype, and you know Swype.apk would regularly go in /system/app, then you would create a blank folder called 'system', and another folder inside system called 'app', and put your Swype.apk inside that. (/system/app/Swype.apk)
After that, all that's left is to build an update script. So, from your root directory (where your system folder is), you would make another directory called META-INF, with a folder inside called 'com', another one inside that called 'google', and finally one called 'android' inside that (/META-INF/com/google/android), you put a text file in there called 'update-script' that tells recovery what you want to do (in this case, copy swype over to the corresponding directory on the file system).
http://forum.xda-developers.com/showthread.php?t=641223
^There's a guide for how to make those. You can also pick apart any rom you find in the dev section and check out the update script for reference.
After that, it's just a matter of zipping up all the contents in your root directory, then signing the zip with testsign.jar
Click to expand...
Click to collapse
Is there a way from the CWM interface to do the same with a backup you create? I noticed backups are not in the same format, they are usually .img, .tar, and an md5 file?
Ok, so the story behind this mini-tutorial is that I upgrade their phones periodically, as part of the upgrade process I have to wipe the phones and a nandroid backup doesn't always work.
Titanium Back Up is another option, But sometime i really would like to extract the .apk files from the Apps downloaded from Market.
Hence, I had to figure out a way to extract the .apk files from my phone so I could install them on theirs.
Here's how it's done:
There are two ways of extracting .apk files from your device:
Using a file manager like "EStrongs File Manager" or "ASTRO File Manger" (downloadable from the Market), or
Manually extracting .apk files through the Android SDK.
Method #1 - Using a file managerPrerequisite: Rooted device
Using ES File Manager
1) Open ES File Manager
2) Click on the menu button of your device
3) Click on "Manager"
4) Click on "App Manager"
5) Long press on app you want to extract
6) Click on "backup"
7) Extracted .apk files will be placed on the "backups" directory of your sd card
Using ASTRO
1) Open ASTRO File Manager
2) Click on the menu button of your device
3) Click on "tools"
4) Click on "Application Manager/Backup"
5) Choose apps to backup and click on "backup" to finish
6) Extracted .apk files will be placed on the "backups" directory of your sd card
Method #2 - Using the Android SDK
Prerequisites:
- Rooted phone
- Android SDK
- Android USB driver
To extract a .apk file from your device using the Android SDK:
1) Plug your “Rooted” Android device into your computer via the included USB cable.
2) From your adb command line (usually C:\android-sdk-windows\tools\) type “adb shell“ and press enter
3) Switch to root user, type “su“ and press enter
4) type “cd data/app“ and press enter
5) List all the installed apk files, type “ls“ and press enter (find the one you want to extract)
In another command window, pull one of the files on to your computer by typing:
“adb pull /data/app/application.apk name.apk” and press enter
Example:
“adb pull data/app/com.mauri.aplikeishon.apk aplikeishon.apk”
You can find the extracted .apk files in the /tools/ directory of your SDK (usually C:\android-sdk-windows\tools\)
Man the Sensation General forum is on fire with good post right now, this is the third one I have read in 45 minutes. I would have hit the thanks button but I am out of thanks right now. I just hope people do not use this for piracy.
That will be really useful for me, but wouldn't it be easier to use App2zip?
T-Macgnolia said:
Man the Sensation General forum is on fire with good post right now, this is the third one I have read in 45 minutes. I would have hit the thanks button but I am out of thanks right now. I just hope people do not use this for piracy.
Click to expand...
Click to collapse
Yeah hope so.. :angel: :angel:
ridder215215 said:
That will be really useful for me, but wouldn't it be easier to use App2zip?
Click to expand...
Click to collapse
Depends on ur choice and need boss..!! There are 100 ways to do a thing and i have mentioned three, and u mentioned 4th :victory:
This is my post!
This is MY POST! Some credit and a link to the original post would be the right thing to do. What a ****!
mauweb.net/3.0/en/technology/17-android/100-icon-androidextracting-apk-files-from-your-android .html
Super-Android said:
Ok, so the story behind this mini-tutorial is that I upgrade their phones periodically, as part of the upgrade process I have to wipe the phones and a nandroid backup doesn't always work.
Titanium Back Up is another option, But sometime i really would like to extract the .apk files from the Apps downloaded from Market.
Hence, I had to figure out a way to extract the .apk files from my phone so I could install them on theirs.
Here's how it's done:
There are two ways of extracting .apk files from your device:
Using a file manager like "EStrongs File Manager" or "ASTRO File Manger" (downloadable from the Market), or
Manually extracting .apk files through the Android SDK.
Method #1 - Using a file managerPrerequisite: Rooted device
Using ES File Manager
1) Open ES File Manager
2) Click on the menu button of your device
3) Click on "Manager"
4) Click on "App Manager"
5) Long press on app you want to extract
6) Click on "backup"
7) Extracted .apk files will be placed on the "backups" directory of your sd card
Using ASTRO
1) Open ASTRO File Manager
2) Click on the menu button of your device
3) Click on "tools"
4) Click on "Application Manager/Backup"
5) Choose apps to backup and click on "backup" to finish
6) Extracted .apk files will be placed on the "backups" directory of your sd card
Method #2 - Using the Android SDK
Prerequisites:
- Rooted phone
- Android SDK
- Android USB driver
To extract a .apk file from your device using the Android SDK:
1) Plug your “Rooted” Android device into your computer via the included USB cable.
2) From your adb command line (usually C:\android-sdk-windows\tools\) type “adb shell“ and press enter
3) Switch to root user, type “su“ and press enter
4) type “cd data/app“ and press enter
5) List all the installed apk files, type “ls“ and press enter (find the one you want to extract)
In another command window, pull one of the files on to your computer by typing:
“adb pull /data/app/application.apk name.apk” and press enter
Example:
“adb pull data/app/com.mauri.aplikeishon.apk aplikeishon.apk”
You can find the extracted .apk files in the /tools/ directory of your SDK (usually C:\android-sdk-windows\tools\)
Click to expand...
Click to collapse
maurinet said:
This is MY POST! Some credit and a link to the original post would be the right thing to do. What a ****!
mauweb.net/3.0/en/technology/17-android/100-icon-androidextracting-apk-files-from-your-android .html
Click to expand...
Click to collapse
thanks for informing this ..and it was reported
OP has been notified.
Cheers big-ears!
Easier Method
Why not just use a root file manager and navigate to the file and copy it?
root>data>app
- tom
or just use Titanium Backup... haha
Some backup apps like Android Assistant also allows to create .apk from installed apps
https://play.google.com/store/apps/...wxLDEsImNvbS5hZHZhbmNlZHByb2Nlc3NtYW5hZ2VyIl0.
tnx dude
it was helpful for unrooted phones.
"Share apps" also do this
Mobogenie
Well years have passed and android has now embarked on the L journey but I recently saw this post and remembered i too had the need to backup the apps on my phone so I used a function of the desktop version of the mobogenie software.:good:
You can use my this tool to extract apk file
https://play.google.com/store/apps/details?id=com.andatsoft.myapk.fwa
Its very light and fast.
How to extract apk files in Android
Here's how I extract apk files in android:
1. Download and install APK Extractor in your device. It is free, and is compatible in almost all of the Android devices. Another plus point is it does not even require root or anything to work.
2. After you have it installed, launch it. There you will see a list of apps which are in your device, which include the apps you’ve installed later, along with the system apps. Long press any app you want to extract (you can select multiple or all apps at once), and click on the extract option you see in the top. You will also have the option to share via Bluetooth or messaging.
3. You’re done, you will see the extracted apps as AppName_AppPackage_AppVersionName_AppVersionCode.apk, which will be saved in the path /sdcard/ExtractedApks/ by default.
Related Posts
Source: http://appslova.com/how-to-extract-apk-files-in-android/
:cyclops:
Hi, I'm trying translate lenovo-res.apk for my lenovo a850 but I still can't do it. I always get only bootloop. I try apktool, kitchen, jBart... I'm trying it many days. Can anyone help me? Thanks
Tedruart said:
Hi, I'm trying translate lenovo-res.apk for my lenovo a850 but I still can't do it. I always get only bootloop. I try apktool, kitchen, jBart... I'm trying it many days. Can anyone help me? Thanks
Click to expand...
Click to collapse
I have the same problem on Lenovo P770....
I can help. Try the following steps:
1. Make a full backup of your device!
2. Get the lenovo-res.apk file onto your PC. Copy it to a safe place as a backup.
3. Download an archive manager (WinRAR, 7zip), and open it.
4. While in the archiver, navigate to the directory where the lenovo-res.apk file is located (not the backup one!).
5. Extract lenovo-res.apk to an empty folder of your choice (name suggestion - "lenovo-res modding").
6. Go back to your regular file explorer and open the folder you just extracted the files to. Open and modify what you like.
7. Now, open up your archiver program again, and navigate to the directory inside the lenovo-res.apk file where the files you modified belong (for example, lenovo-res.apk\res\drawable-mdpi).
8. Back in your regular file explorer, select and drag the modified files from the file explorer window into the archiver window. Drop the files in the archiver window.
9. Hit "Yes" or "OK" if asked if you're sure.
10. Repeat steps 6-9 as many times as necessary.
11. When done, close the archiver window to finalize the changes.
12, Now, you can ADB push the modded lenovo-res.apk file to your device, but don't replace the one on your system with the push! You will get a bootloop!
13. Instead, push it to your external sdcard (for example, /mnt/sdcard).
14. On your device, open up your file explorer app (I use ES File Explorer), and navigate to where you pushed the lenovo-res.apk. Copy it, and paste it directly into the directory where the system file is (for example, /system/framework).
15. If the paste succeeds, you did it. Your device will hot reboot itself after the replacement, and will then boot up using the new lenovo-res.apk.
16. Done!
If the above steps are helpful, please, please click the Thanks button below!
:good:
Thanks, but this will not help me. Because I need give to lenovo-res.apk new slovak and czech translates (folders values-sk and values-cs). If I unzip the apk file, as you wrote, there is no all subdirectories in "res" directory, where language files are.
All Subdirectories in "res" directory are creates only when you use JBart or Apktool:
color\
drawable\
drawable-hdpi\
layout\
values\
values-in\
values-ms\
values-ru\
values-vi\
values-zh-rCN\
If you will use 7ZIP, there are only:
color\
drawable\
drawable-hdpi\
layout\
I need to add values-sk and values-cs subdirectories. Normaly I use jBart or Apktool, make lenovo-res.apk file, no errors. Then install ROM file, but phone will stop on bootloop. On all other apk files procedure with jBart/Apktool works well, except lenovo-res.apk not.
I do not know how to compile this one apk. Please help me. Thanks.
I know this is a little bit off topic..Kindly help.. am trying to locate the systemUI apk on my lenovo k80m.. cant seem to find it in priv- app or app folders.
these apps are work 100% (I've only tried on G8 XXV firmware) :
1.Dialer (After install the Contact, it automatically turn into s5 skin , I guest )
2.Contact
3.Music
4.File manager
5.S voice
6.Launcher (My favorite app :victory but can't change the wallpaper in the launcher ( just open the gallery and change )
And gotta be update more
Instruction :
1 Go to this thread :http://forum.xda-developers.com/galaxy-grand-2/themes-apps/ultimate-s5-mod-one-stop-s5-mod-t2846377 and download the link of the zip ( just copy and paste ).
2. Extract the zip and copy the "app" and "priv-app" into any file in your Grand 2.
3.Install any kind of root file manager (I recommend the Root explorer , it's easy to use )
TO INSTALL THESE APPS, YOU MUST FOLLOW THE INSTRUCTION BELOW, ALL OFF THESE APP MUST SET THE PERMISSIONS TO WORK :
1. For the Dialer and Contact, open the Root explorer, safely backup your "SecContact_Osup.apk (and .odex)" and the " SecContactProvider.apk (and .odex)" . This is my way : copy those file to another file. After that, delete all of those file. Then copy the "SecContact.apk" and the "SecContactProvider.apk" in the zip to your "priv-app" file. After reboot, you'll have both the Dialer and Contact with S5 theme
2.For the Music app, do the same thing to backup the "MusicCommonUtility.apk ( and .odex too)" , "MusicLiveShare2.apk" (and odex) and the "MusicPlayerWT.apk" ( and odex). Then delete all of those and copy only the "SamsungMusic_20.apk" to the "app" file. Reboot
3.Just do the same thing for the File manager ( bakup the apk and odex then delete it and copy the app in the zip).
4. For the S voice, backup the apk, delete it, download the apk below, then copy to the "app" file and reboot.
5. Backup the and and odex of the "SecLauncher3", delete it, copy "TouchwizHome.apk" into "priv-app" and reboot. For themechooser, install the "ThemeChooser.apk" as a normal apk.
To have theme, go to this thread : http://forum.xda-developers.com/showthread.php?t=2711245
If have any bugs, just let me know.
If it work for you, hit the "thanks" button
I'm gonna post the "TouchwizHome", "ThemeChooser", "S Voice" later, just install the other apps
Sent from my SM-G7102 using XDA Free mobile app
thanhdatnguyen said:
I'm gonna post the "TouchwizHome", "ThemeChooser", "S Voice" later, just install the other apps
Sent from my SM-G7102 using XDA Free mobile app
Click to expand...
Click to collapse
A new safer package was added. No need to extract anymore.
Please delete this thread !!!
This is NOT my work I'm only posting a link to the original thread. Fully working! The keyboard is weird but kind of cool.
How I installed. I downloaded every file, I wanted to try it all. then extracted them all to the same folder. Then I copied the priv-app folder into System root/system using FX Explorer (you need root) any root Explorer will do the trick. After that just reboot. With the launcher you can use icon packs as well!
http://forum.xda-developers.com/showthread.php?t=3244542
Don't forget to thank @entrysky for all his hard work.
Mentions that CWM or TWRP Recoveries are needed?
I just extracted the zips then copied the priv-app into System using a root explorer and rebooted. Worked for me, I'm guessing flashfire might work but could take longer to do.
Hope this helps.
englishmale said:
I just extracted the zips then copied the priv-app into System using a root explorer and rebooted. Worked for me, I'm guessing flashfire might work but could take longer to do.
Click to expand...
Click to collapse
Still not quite sure exactly what you are doing here. Each Zip has it's own priv-app folder. What exactly are you combining before putting it into the system folder?
FYI: Flashing zips in order with Flashfire didn't work.
I extracted each one into the same folder, so all the apps ended up in the same priv-app folder as seen in this pic. Then I copied the priv-app folder.
Here is a step by step guide with pictures.
1) download the files.
2) get RAR from Google play. https://play.google.com/store/apps/details?id=com.rarlab.rar
3) open RAR and go to where you download the files, select all the files you want (see first PIC)
4) click the extract button and tick overwrite without prompt. (See PIC 2) then click OK.
5) using a root explorer open the files you just extracted i use FX
6) open the system folder (see PIC 3)
7) copy priv-app (see PIC 4+5)
8) go to your system(ROOT) (see PIC 6)
9) scroll down to the system folder then open it (see PIC 7)
10) in FX there is a padlock at the top to allow read/write click this (see PIC 8, 9 and 10)
11) Go to clipboard then paste select merge/overwrite (see PIC 11 and 12)
12) Long press the middle button on the back of your phone in the middle of volume up/down and select reboot.
13) click thanks
@mase123987 done a step by step guide for you with pictures. Hope it helps
englishmale said:
@mase123987 done a step by step guide for you with pictures. Hope it helps
Click to expand...
Click to collapse
Very much appreciate the effort! Unfortunately, even though I followed your directions perfectly, I still don't have any of the apps. I'm not sure if using flashfire to flash the files previously screwed something up.
That's strange? Did you download 1-4 as these are the main files you need. As you can see its worked for me. Have you tried to fix permissions?
Thank you for sharing. BTW, have you tried BB HUB? also, what about permissions? Maybe I missed but you didnt mentioned anything about it.
I've used the hub its quite handy having all your notifications in one place, also the password keeper is very handy for storing and generating passwords.
Permissions need to be 644 there are apps which will fix it all automatically for you or you can do it manual set to read/write then read and read. See PIC
I have copied resources, productivity edge, services, launcher and hub, but nothing works. Changed permissions for folders and files.. I took only priv folders from zips and coppied to system..
That's strange, i can't be the only one it works for? Did you download the BlackBerry exchange services fixed?
englishmale said:
That's strange, i can't be the only one it works for? Did you download the BlackBerry exchange services fixed?
Click to expand...
Click to collapse
priv folder in fixed zip is empty, no apk inside... btw I extradited it on PC, then transferred to sd.
Strange? I've zipped what I used and uploaded it to my Google drive there is also 2 apps in the app folder I didn't bother with these t.b.h. I've only just noticed them lol. Try extracting the zip the copy app and pri-app into your root system folder let me know if it works? You might have a corrupt download or 2.
Here's the link:
https://drive.google.com/file/d/0B2sMKdcrmUR1TXJ6YWZXTVZ6c00/view?usp=docslist_api
http://forums.crackberry.com/androi...-any-android-device-no-root-required-1059855/
if anyone is still interested in BB apps