[Q] create an apk file - Galaxy S II Q&A, Help & Troubleshooting

How can I create an apk file of an application installed in my phone... I don't want to back it up, I want to create an apk...plz help

If you want to 'create' an apk-file from an application that is installed on your phone, I believe you it's possible to pull it from the phone via ADB.
http://developer.android.com/guide/developing/tools/adb.html

Locate the apk in /data/app and copy it (needs root)
Use rootexplore or terminal emulator.
^ or pull it with adb.
Sent from my GT-I9100 using XDA Premium App

Related

[Q] Can't DL zip files w/ Root Explorer installed.

I have Root Explorer installed on my phone, but I get file not supported on this device error messages when I try to download zip files. Any idea why I can't do this with this files manager but I can with other file managers?
Sent from my SGH-T959 using XDA App
Maybe its not a supported feature? Astro and Linda have the ability. .. or maybe there is an option to enable it?
Sent from my SGH-T959 using XDA App
It has the ability to create and extract zip files, but I didn't know if it was a matter of having to create an extension or whatever to allow the phone to download zip files. I am using AndroZip until then.

Delete

...
10char
yes unzip the frankin twiz zip file open it and go into the system app folders find the mms.apk and copy it to your sdk tools folder then adb push MMS.apk /system/app from there if it doesnt auto install reboot the phone and see if its back if not use root explorer and install it that way
Got it thank you
KellyLewis3985 said:
yes unzip the frankin twiz zip file open it and go into the system app folders find the mms.apk and copy it to your sdk tools folder then adb push MMS.apk /system/app from there if it doesnt auto install reboot the phone and see if its back if not use root explorer and install it that way
Click to expand...
Click to collapse
Sent from my SGH-T959 using XDA App

Edit Concat Picture

Hi..
I wanted to change the contact images in the framework-res. I've done so far, but when I folded the new framework-res with the mod-tool push, then that too, but he shows me the new image does not accumulate in handy.
I can do or what?
My steps:
1. I replace the corresponding image (PNG format) with 7zip
2. im sending the new framework-res or contact.apk via adb mask controller on my x10i
3. reboot
4. im showing in contacts and the image ist the same as before
looking like a rat i handle it?
"Title: Edit Contact Picture"
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
DynamicRam said:
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
Click to expand...
Click to collapse
the contact image I have is in the framework-res. in the contact.apk another is available.
I am using CM 4.5.7 by Wolf Break
Have you resigned the apk?
Sent from my X10i using XDA App
no, like I do that?
Google it. But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Search "resigning apk files" and read. Theres an old thread somewhere for changing app icons i think that has everything you need to know.
Sent from my X10i using XDA App
Here is the thread
http://forum.xda-developers.com/showthread.php?t=503007
Read this thread and use the OPs modified tool found here:
http://www.mediafire.com/?yw24z5m4yya
Sent from my X10i using XDA App
Thx for this.
Sent from my X10i using XDA Premium App
CMoney87 said:
But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Click to expand...
Click to collapse
System apps don't need to be signed. If you look in framework-res.apk, there's no META-INF directory.
Are you sure you replaced the framework-res.apk file correctly? I posted some info about framework-res.apk here: http://forum.xda-developers.com/showthread.php?p=11193663#post11193663
As always, back up with xRecovery before messing around with framework-res.apk. One mistake and you won't be able to boot.
I think most stock apps actually might not need to be signed, now that i think about it though. You might just need to make sure you remove the unmodified app first (copy it somewhere first for a backup) and then manually put the apk in, set permissions correctly and then reboot. This apk signing trick allows you to modify any app to change shortcut icons or customize anything you want and reinstall it correctly so it should come in handy anyways.
Sent from my X10i using XDA App

Multiple app install: will this work?

Hi
I'm looking for an easy way to batch install all of my already backed up applications on external SD (in *.apk format) after new rom flashing. My phone is rooted (running RR 2.7). what if using a root explorer I just copy all the apk files to data\app and copy some of them to system\app and then reboot the phone? Will all of these application be automatically installed, while apk's copied to data\app will be installed as user apps, and those copied to system\app will install as system apps? Will this work? Is there a problem in this method? If so I may create a CWM based installer that will do this automatically...
I'm talking about 400 apps, about 600MB in total size//
Thanks
How are they backed up? What did you use to do it? I use Titanium Backup. The paid version allows batch operations.
Sent from my SPH-D710 using xda premium
boborone said:
How are they backed up? What did you use to do it? I use Titanium Backup. The paid version allows batch operations.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I used an app called File expert. It can simply find the apk file used in the installation and back it up. I can reinstall the app with the backed up apk. I also tried copying a new apk file to data/app and after restarting the app did install correctly. So I want to use this method to restore all of my apps automatically by creating a CWM zip installation. I need to know if this method is safe and will not cause problems...
Thanks
EB10000 said:
I used an app called File expert. It can simply find the apk file used in the installation and back it up. I can reinstall the app with the backed up apk. I also tried copying a new apk file to data/app and after restarting the app did install correctly. So I want to use this method to restore all of my apps automatically by creating a CWM zip installation. I need to know if this method is safe and will not cause problems...
Thanks
Click to expand...
Click to collapse
No need to do any of that crap and mess around. Just use Titanium Backup Pro (paid version) and you can backup all your apps plus the app data so they keep all their settings etc. Then when you install a new rom you can batch install them all back in couple of clicks.
EB10000 said:
I used an app called File expert. It can simply find the apk file used in the installation and back it up. I can reinstall the app with the backed up apk. I also tried copying a new apk file to data/app and after restarting the app did install correctly. So I want to use this method to restore all of my apps automatically by creating a CWM zip installation. I need to know if this method is safe and will not cause problems...
Thanks
Click to expand...
Click to collapse
Don't know that app. You can define the backup folder in TiBu to reinstall your apps that way. Or iirc Rom Toolbox will take a batch of apps and create a cwm zip file to batch install.
Sent from my SPH-D710 using xda premium
EB10000 said:
I used an app called File expert. It can simply find the apk file used in the installation and back it up. I can reinstall the app with the backed up apk. I also tried copying a new apk file to data/app and after restarting the app did install correctly. So I want to use this method to restore all of my apps automatically by creating a CWM zip installation. I need to know if this method is safe and will not cause problems...
Thanks
Click to expand...
Click to collapse
Using CWM zip installation is actually the best method. It is safe and faster too.
Thanks. I'm familiar with TB and MB. I do not need to restore the app's data. I'm just looking for a way to install all my market apps without actually using the market. I noticed that when you reboot the phone, any new apk file in either system/app or data/app gets installed automatically. So I thought maybe I take a CWM setup file (zip with simple copy to system + data updater-script)' and add all of my backed apk's into the data/app directory then I can install this zip file right after I flash a new rom file. For some reason, CM9 recommends that you do not use TB. I also noticed that dev's use this method to add additional apps to their rom.. I just need to know that this method is ok to use and not cause problems like acquire extra space by creating duplicates of each app (I notice using this method that sometime the original apk I copied was reset to a 0Kb file, and a new apk that starts with the name "com.something.something.apk" is created instead. Is this normal?)
Thanks
boborone said:
Don't know that app. You can define the backup folder in TiBu to reinstall your apps that way. Or iirc Rom Toolbox will take a batch of apps and create a cwm zip file to batch install.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Do you mean this app:
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolbox
???
I already have it (paid version). I couldn't find a way to creat CWM zip file... Am I missing something?
Thx
EB10000 said:
Do you mean this app:
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolbox
???
I already have it (paid version). I couldn't find a way to creat CWM zip file... Am I missing something?
Thx
Click to expand...
Click to collapse
I'll help you create a CWM zip template. I'll upload it in about 3 hrs time as soon as i get to my pc
This is a CWM.zip I created for you.
How to:
1. Open the zip file using 7zip, winrar or similar apps (don't extract it)
2. Copy your users apps to data/app, and copy system apps to system/app
3. Close the zip file.
4. Flash the zip file via CWM recovery.
enjoy.
EB10000 said:
Thanks. I'm familiar with TB and MB. I do not need to restore the app's data. I'm just looking for a way to install all my market apps without actually using the market. I noticed that when you reboot the phone, any new apk file in either system/app or data/app gets installed automatically. So I thought maybe I take a CWM setup file (zip with simple copy to system + data updater-script)' and add all of my backed apk's into the data/app directory then I can install this zip file right after I flash a new rom file. For some reason, CM9 recommends that you do not use TB. I also noticed that dev's use this method to add additional apps to their rom.. I just need to know that this method is ok to use and not cause problems like acquire extra space by creating duplicates of each app (I notice using this method that sometime the original apk I copied was reset to a 0Kb file, and a new apk that starts with the name "com.something.something.apk" is created instead. Is this normal?)
Thanks
Click to expand...
Click to collapse
Don't install all your apps to system. Why would you want to da that?
EB10000 said:
Do you mean this app:
https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolbox
???
I already have it (paid version). I couldn't find a way to creat CWM zip file... Am I missing something?
Thx
Click to expand...
Click to collapse
I thought that might be the one, guess not. I'll ask in another thread.
But this guy was kind enough to make one for you. Ought to slap him a thanks.
Sent from my SPH-D710 using xda premium
---------- Post added at 11:45 AM ---------- Previous post was at 11:42 AM ----------
Jokesy said:
This is a CWM.zip I created for you.
How to:
1. Open the zip file using 7zip, winrar or similar apps (don't extract it)
2. Copy your users apps to data/app, and copy system apps to system/app
3. Close the zip file.
4. Flash the zip file via CWM recovery.
enjoy.
Click to expand...
Click to collapse
Thanks man. Hell I'll even take a bite of that.
Sent from my SPH-D710 using xda premium
Jokesy said:
This is a CWM.zip I created for you.
How to:
1. Open the zip file using 7zip, winrar or similar apps (don't extract it)
2. Copy your users apps to data/app, and copy system apps to system/app
3. Close the zip file.
4. Flash the zip file via CWM recovery.
enjoy.
Click to expand...
Click to collapse
Thanks Mate!
tested it with a few apps and it worked great. Is there a file size limitation to cwm.zip? If I add all my apps the zip files grows to about 350MB
Thx
EB10000 said:
Thanks Mate!
tested it with a few apps and it worked great. Is there a file size limitation to cwm.zip? If I add all my apps the zip files grows to about 350MB
Thx
Click to expand...
Click to collapse
Nah. Just take longer.
Sent from my SPH-D710 using xda premium

Is there a way to pull an apk for an app than came preloaded

There is an app that came with my phone Samsung Galaxy s2 (t989D) running 4.04. I'd like to pull this app and use it on a custom rom. Is there any way to pull the APK off the phone? I know there's ways to pull apks for apps you've downloaded from the market. Would these methods apply for preloaded apps?
Those apps are usually in /system/app.
You can pull them if you're rooted. Using adb pull:
Code:
adb pull /system/app/app.apk
You can also use any file explorer, go to /system/app and copy it.
Root is required, of course.
GermainZ said:
Those apps are usually in /system/app.
You can pull them if you're rooted. Using adb pull:
Code:
adb pull /system/app/app.apk
You can also use any file explorer, go to /system/app and copy it.
Root is required, of course.
Click to expand...
Click to collapse
Cool thanks. After messing around a bit I did figure it out using root explorer. One thing I found along the way is an app called app extractor which can pull individual apks and settings from nandroid back ups . While different than the topic at hand, pretty cool little app!

Categories

Resources