Hi there, I have to android phones and I found an app on the store that doesn't appear for my second phone (xperia ray and Desire S).
So I extracted the apk from my /data/app/ fodler but of course I still can't install it on my other phone.
I guess this is something to do with the AndroidManifest.xml, so here are the questions :
- What tool I can use to extract, compile apk's ?
- What tool can I use to mod my apk so it launches on my 2nd phone ?
Thanks
you can use apk tool to decompile the apk. then you can edit the whole apk using eclipse. to be able to install an apk from system/app you have to put the apk into the same spot and restart the phone.
Dataslycer said:
you can use apk tool to decompile the apk. then you can edit the whole apk using eclipse. to be able to install an apk from system/app you have to put the apk into the same spot and restart the phone.
Click to expand...
Click to collapse
Thanks, so the device compatibility list is generated when compiling from Eclipse ?
You are unlikely to be able to get the apk working on an incompatible phone. The reason for the incompatibility is likely to be that the phone lacks certain necessary features (e.g. CPU type or version of android) so can't run. Unless you intend to reprogram the app to run on reduced features you are better off asking the app dev to add support for the 2nd phone.
Both phones have exact same features : 1Ghz 7x30 and adreno 205 GPU.
Both on GB and planned to get ICS...
Both on the latest MIUI GB release
Is there an option to make it unavailable/available for some specific devices when compiling ? in the XML ?
Related
It seems that this is the first time I start a new thread.
Hi, all. I want to know how to install two versions of one same application at the same time.
As a matter of fact, I want to install Opera Mini 4.2 China Version and Opera Mini 4.2 Internaional Version at the time. But...Since Opera Mini 5 makes it difficult to describe the question, here takes HelloWorld.apk as an example.
Well, there are two versions of the application "HelloWorld": 1.0 and 1.1. (This is just an example)
I have installed HelloWorld 1.0 on my phone, and when I try to install HelloWorld 1.1, the 1.0 version will be replaced. But...I want to have both of them installed on my phone. That is to say, there will be two "HelloWorld" icons in the app drawer.
I use APKTool to extract the com.hello.world.apk into some "text" files, including an AndroidManifest.xml and a lot of *.smali files. In the AndroidManifest.xml, I saw this:
<manifest package="com.hello.world" versionCode="100" versionName="1.0">
I chaged the value "com.hello.world" to "com.goodbye.world". Then I re-build the apk file and transferred it to my phone.
I installed the modified package, it was successfully installed and I see two "HelloWorld" icons in my app drawer!
I try to launch the HelloWorld 1.0, it succeeds.
I try to launch the HelloWorld 1.1, it FCs immediately.
Well, this is my situation. How can I make both of them launch-able in my phone? Is it possible? What should I modify apart from "package" filed in AndroidManifest.xml?
Thanks a lot.
~~~~
wzyboy
wzyboy said:
It seems that this is the first time I start a new thread.
Hi, all. I want to know how to install two versions of one same application at the same time.
As a matter of fact, I want to install Opera Mini 4.2 China Version and Opera Mini 4.2 Internaional Version at the time. But...Since Opera Mini 5 makes it difficult to describe the question, here takes HelloWorld.apk as an example.
Well, there are two versions of the application "HelloWorld": 1.0 and 1.1. (This is just an example)
I have installed HelloWorld 1.0 on my phone, and when I try to install HelloWorld 1.1, the 1.0 version will be replaced. But...I want to have both of them installed on my phone. That is to say, there will be two "HelloWorld" icons in the app drawer.
I use APKTool to extract the com.hello.world.apk into some "text" files, including an AndroidManifest.xml and a lot of *.smali files. In the AndroidManifest.xml, I saw this:
<manifest package="com.hello.world" versionCode="100" versionName="1.0">
I chaged the value "com.hello.world" to "com.goodbye.world". Then I re-build the apk file and transferred it to my phone.
I installed the modified package, it was successfully installed and I see two "HelloWorld" icons in my app drawer!
I try to launch the HelloWorld 1.0, it succeeds.
I try to launch the HelloWorld 1.1, it FCs immediately.
Well, this is my situation. How can I make both of them launch-able in my phone? Is it possible? What should I modify apart from "package" filed in AndroidManifest.xml?
Thanks a lot.
~~~~
wzyboy
Click to expand...
Click to collapse
Well I'm not an android programmer but if I'm understanding you correctly you did the following (in the order I'm listing them):
1) Installed helloworld 1.1 (which over-wrote v1.0)
2) Opened the APK for helloworld 1.0 and made the manifest change
3) Installed the modded helloworld 1.0 on your phone
From a programmer point of view (just not with Android), if you followed the above scenario what is happening is HW1.1 installs it's files which are updated versions of the previous one (why else install an update). When you modded the HW1.0 you only changed the name and nothing else.
What is happening is when you go to install the modded version it's overwriting the newer files with the older ones since the phone is assuming the modded app is an entirely new program and allows the process to occur. This is why the modded one works and the 1.1 won't since the files it needs are the wrong version.
The only option of really have is to mod the actual program to look for different filenames, but without the source code to that app, that isn't going to happen.
Basically you need to have version 1.1 use the default files, and with the modded 1.0 you need to tell the software to "look" for the updated filenames (just don't forget to rename the actual files too).
Short of all that, as far as I know your SOL.
Rayvenhawk said:
Well I'm not an android programmer but if I'm understanding you correctly you did the following (in the order I'm listing them):
1) Installed helloworld 1.1 (which over-wrote v1.0)
2) Opened the APK for helloworld 1.0 and made the manifest change
3) Installed the modded helloworld 1.0 on your phone
From a programmer point of view (just not with Android), if you followed the above scenario what is happening is HW1.1 installs it's files which are updated versions of the previous one (why else install an update). When you modded the HW1.0 you only changed the name and nothing else.
What is happening is when you go to install the modded version it's overwriting the newer files with the older ones since the phone is assuming the modded app is an entirely new program and allows the process to occur. This is why the modded one works and the 1.1 won't since the files it needs are the wrong version.
The only option of really have is to mod the actual program to look for different filenames, but without the source code to that app, that isn't going to happen.
Basically you need to have version 1.1 use the default files, and with the modded 1.0 you need to tell the software to "look" for the updated filenames (just don't forget to rename the actual files too).
Short of all that, as far as I know your SOL.
Click to expand...
Click to collapse
Great thanks to your reply. But...
Android uses .apk files to install and run the application. When installing an apk file, the package installer just copys the apk file to /data/app directory and "register" the program in the system. The apk itself will not be "extracted" or anything else. That is to say, an apk file can be installed, and also can be run.
On the other hand, the apk will generate some files in /data/data directory when running. I am considering that it was these file that made the modded version FCs. I will try to look into these files to see will this works...
English is my second language, hoping that I did not made many grammar misktaks...
+1 on this topic. It's been a year and a half since the last reply and I've done a bit of searching online to find no answers. I anyone have some feedback on this? I'd ultimately like to use this to install two Google voice applications. I actually have an app from a blacked out version with a different icon. But if I install it it will overwrite the original Google voice app
cowboyaryk said:
+1 on this topic. It's been a year and a half since the last reply and I've done a bit of searching online to find no answers. I anyone have some feedback on this? I'd ultimately like to use this to install two Google voice applications. I actually have an app from a blacked out version with a different icon. But if I install it it will overwrite the original Google voice app
Click to expand...
Click to collapse
You are one hell of an archaeologist
Sent from My Samsung Galaxy S2 running Paranoidandroid Rom.What else if not?=P
I'd also like to know if that's possible. Even if it were possible, and an updated version of helloworld is relaeased (Say, HelloWorld v1.2), which version would it replace? Would it replace the (original) HelloWorld 1.1 or the (modded)HelloWorld 1.0?
Yes. Titanium backup. Profiles. These are the keywords.
lambstone said:
Yes. Titanium backup. Profiles. These are the keywords.
Click to expand...
Click to collapse
any idea how i would use TB and "profiles" to do it? sounds like you know from experience
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
lufc said:
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Click to expand...
Click to collapse
thanks cheif i'm not the one who posted this almost two years ago
bbsrailfan said:
I'd also like to know if that's possible. Even if it were possible, and an updated version of helloworld is relaeased (Say, HelloWorld v1.2), which version would it replace? Would it replace the (original) HelloWorld 1.1 or the (modded)HelloWorld 1.0?
Click to expand...
Click to collapse
It would replace the only legitimate version found, the unmodded one. The point of modding the APK is to make Android see it as a completely different app, and not think of one as an update to the other.
dstruct2k said:
It would replace the only legitimate version found, the unmodded one. The point of modding the APK is to make Android see it as a completely different app, and not think of one as an update to the other.
Click to expand...
Click to collapse
do how do you mod the apk? change the filename? i'm sure theres more to it than that
lambstone said:
Yes. Titanium backup. Profiles. These are the keywords.
Click to expand...
Click to collapse
that feature on tibu is for switching DATA profiles basically so two or people can play the same game or whatever and keep they're progress separate like having multiple saved games. its not for switching versions of an app
I've tried to googling how to install multiple same applications in one device,but i didn't found anything how to do that simply...there are lot of stuff using ant and ruby script,but don't understand with that..so anyone figured out how to install multiple same apps with simply method? because i want to install operamini 7.5,but I've already instaled version 6.5...
sorry for my bad english
Need to install Galaxy S4 gallery on custom rom which has S4 gallary apk
Need help to install two versions of Gallary S4 and S5 Gallary can someone help...since I like the spiral option very good in S4 gallary which I miss and I like few features of Gallary from S5....in Ozcan rom on S4 i19500...please help
Necro, sorry. I have the same question. I have a copy of the old ifunny app and want both the new and the old, I would also like to run two versions of the same game (one with a nodded apk for unlimited coins and etc and one stock) I wouldn't mind if they shared data but if there's a way to make it where the asks do not share days that would be cool too.
Possible solution
Hi there,
While searching for a solution I found this thread and as it is one of the first results in google I thought to share what I found (didn't try yet) :
http://android.stackexchange.com/questions/19935/how-to-keep-two-versions-of-an-app-installed
It's first answer has a guide how to run two versions of same app throigh modifying onee of them with apktool.
Greets
Gachmuret said:
Hi there,
While searching for a solution I found this thread and as it is one of the first results in google I thought to share what I found (didn't try yet) :
http://android.stackexchange.com/questions/19935/how-to-keep-two-versions-of-an-app-installed
It's first answer has a guide how to run two versions of same app throigh modifying onee of them with apktool.
Greets
Click to expand...
Click to collapse
Hi
I would also like to do this for Google earth app I want to have both version 7.1.3 and 8.0.1 because the earlier version has more features but the latest looks more beautiful so I read the instructions from that link but it is way too complicated for a noob user like me plus judging from the last message it seems it hasn't been resolved so isn't there an app or xposed mod that does this automatically ?
The most anticipated app for HoneyComb 3.2 is out.
I modified the build.prop so u can replace.it with your current one to appear as xoom in market.
This will help you to download all the apps for.honeycomb when u are done just replace the modified build.prop with your
Original one.
Thats all you will need just root explorer like es file manager
Now lets Enjoy Honeycomb
Does it run even? Google body is a native HC app and use apis that only exist in HC.
Sure you can download it but will it run?
Right, so I'm attempting to port Xperia Sola skin to my Motorola Defy+. (Gingerbread to Gingerbread).
I've got some questions:
1. I've found out that .sin files must be extracted with Xperia ROM manager tool and with unyaffs.exe. The latter app cannot be used, and frankly I've had experience with such console apps.
Is there any other app out there that I'm missing?
Is the source released so that I won't bother with .sin/.img files?
2. I've noticed that some Xperia apps (I've got my hands on the music one) cannot be ported since they have some sort of protection (?) Am I being wrong?... If not, how can I "crack" it?
3. If there are other .apk files such as the topbar file - does it also have any protection?...
Many thanks,
Alex.
EDIT: This source: http://developer.sonymobile.com/dow...re/open-source-archive-for-build-6-0-b-3-184/
I've searched through it but didn't found out system/app folder.
Maybe I'm used to Motorolas and speaking a different language?...
heres my first advice
ask questions in the q and a forum
Hi all
I have a little problem here. I was using telcel jb rom but 3g didnt worked for me and now i know why.
Mexico operators doesnt work with 3g on 2100 Mhz (my operator works in this frequency), and they've disabled it somehow for mexico.
In ZAF (south africa) JB 3g works fine for me, but doesn't have my language and i can't figure out a way to "translate" it. I tried modifying the apps puting inside them in the values folder the folder for pt-BR, but the apps doesn't work after re-compiling.
I really upset with this all. Somebody could help me on this?
I ask 2 things:
- Is there anyway to change the system network's operating frequency? how can i do it?
- Is there anyway to put my language inside ZAF jb apps? they have values for pt-PT but not for pt-BR. The files for pt-BR i take from the mexico jb apps (decompile with dependencies, lg-res.apk, recompile after put the values folder from mexico in zaf apps)
shucrut said:
Hi all
I have a little problem here. I was using telcel jb rom but 3g didnt worked for me and now i know why.
Mexico operators doesnt work with 3g on 2100 Mhz (my operator works in this frequency), and they've disabled it somehow for mexico.
In ZAF (south africa) JB 3g works fine for me, but doesn't have my language and i can't figure out a way to "translate" it. I tried modifying the apps puting inside them in the values folder the folder for pt-BR, but the apps doesn't work after re-compiling.
I really upset with this all. Somebody could help me on this?
I ask 2 things:
- Is there anyway to change the system network's operating frequency? how can i do it?
- Is there anyway to put my language inside ZAF jb apps? they have values for pt-PT but not for pt-BR. The files for pt-BR i take from the mexico jb apps (decompile with dependencies, lg-res.apk, recompile after put the values folder from mexico in zaf apps)
Click to expand...
Click to collapse
I can help you about how to add languages to apk. I guess you got compile error while rebuild apk back right? That because some string format in strings.xml are incorrect. I think it apktool bug. The problem is percent (%) character. It's used to format number. If you want % character in the text, you must use %% to escape it and it give you % in output text.
You must correct all error that display in apktool output while rebuild it back. And to make it works you should edit following apk
- LGSystemSetting.apk
- LGSystemUI.apk
- LGHome3.apk
- and what ever apps that you want to add your language to.
So... It's easier to just replace that apk from Mexico rom into ZAF rom.
Thanks for replying artit. I got some errors rebuilding the apks, but I installed lg-res framework with apktool and after this, i got them to compiling.
But i pushed them to my phone and the system became messed up. The status bar didnt show up (i edited LGsystemUI.apk), home didnt show up, settings, lockscreen, nothing, just the lockscreen wallpaper. I edited them, add my language but just this.
I tried replacing the apps from mexico but the phone don't boot when i replace some apps like installservice apk
One question: Do i have to be on a deodexed ROM to edited apps work? if yes, i found my problem, cause i take the apps from my stock rom odexed
shucrut said:
Hi all
I have a little problem here. I was using telcel jb rom but 3g didnt worked for me and now i know why.
Mexico operators doesnt work with 3g on 2100 Mhz (my operator works in this frequency), and they've disabled it somehow for mexico.
In ZAF (south africa) JB 3g works fine for me, but doesn't have my language and i can't figure out a way to "translate" it. I tried modifying the apps puting inside them in the values folder the folder for pt-BR, but the apps doesn't work after re-compiling.
I really upset with this all. Somebody could help me on this?
I ask 2 things:
- Is there anyway to change the system network's operating frequency? how can i do it?
- Is there anyway to put my language inside ZAF jb apps? they have values for pt-PT but not for pt-BR. The files for pt-BR i take from the mexico jb apps (decompile with dependencies, lg-res.apk, recompile after put the values folder from mexico in zaf apps)
Click to expand...
Click to collapse
You can do following http://forum.xda-developers.com/showthread.php?t=2230966
I didn't really read your post but if you can't access the 4g of one company because it's on another frequency then sorry you cannot change it as the chip is set to run at specific frequencies... Very sorry
Sent from my LG-P769 using xda app-developers app
shucrut said:
Thanks for replying artit. I got some errors rebuilding the apks, but I installed lg-res framework with apktool and after this, i got them to compiling.
But i pushed them to my phone and the system became messed up. The status bar didnt show up (i edited LGsystemUI.apk), home didnt show up, settings, lockscreen, nothing, just the lockscreen wallpaper. I edited them, add my language but just this.
I tried replacing the apps from mexico but the phone don't boot when i replace some apps like installservice apk
One question: Do i have to be on a deodexed ROM to edited apps work? if yes, i found my problem, cause i take the apps from my stock rom odexed
Click to expand...
Click to collapse
You can try Lelus method, it much easier than rebuild apk ,
For odexed file, I think you need to deodex apk first. But to make new apk work you must copy
- META-INF folder
- AndroidManifest.xml
from original apk to new apk. And for LG stock rom apk, you cannot modify AndroidManifest.xml file. If you modify it, that apk will not work. You should zipalign apk after rebuilt but it not necessary.
Maybe you can use apk from Jelly Cream rom, it's deodexed and has pt-BR, I add all language from Mexico & Thailand rom to Europe V20H. But I modified some framework and some config in apk. If you're still not success with this I'll reverse all changes and rebuild that apk for you. I plan to add new language to Jelly cream rom this weekend.
MoonMaster345 said:
I didn't really read your post but if you can't access the 4g of one company because it's on another frequency then sorry you cannot change it as the chip is set to run at specific frequencies... Very sorry
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
I don't think so. You can flash new baseband to alter usable frequency. And you can change phone frequency for 2G/3G in hidden menu.
artit said:
You can try Lelus method, it much easier than rebuild apk ,
For odexed file, I think you need to deodex apk first. But to make new apk work you must copy
- META-INF folder
- AndroidManifest.xml
from original apk to new apk. And for LG stock rom apk, you cannot modify AndroidManifest.xml file. If you modify it, that apk will not work. You should zipalign apk after rebuilt but it not necessary.
Maybe you can use apk from Jelly Cream rom, it's deodexed and has pt-BR, I add all language from Mexico & Thailand rom to Europe V20H. But I modified some framework and some config in apk. If you're still not success with this I'll reverse all changes and rebuild that apk for you. I plan to add new language to Jelly cream rom this weekend.
I don't think so. You can flash new baseband to alter usable frequency. And you can change phone frequency for 2G/3G in hidden menu.
Click to expand...
Click to collapse
Thanks again artit. I tried lelus method, didnt work, so im trying decompile/recompile apks, bot not much luck
I deodexed all apks and framework and pushed to my phone after removing the .odex files
Im stucked at lgsettings.apk, i can decompile it by installing lg-res.apk into apkmultitools, but goterrorwhen trying to recompile it. If you want to i post the error log
I also tried using jellycream apps, but my only try was replacing all apps so got bootloop. I will try replacing just the necessary ones - lgsettings, systemui, lghome, camera, installservice
Dears....this post because since one week I'm struggling with decompiling and re-compiling the framework-res.apk for my LEWA rom on TCL Idol X+ s960 MTK6592.
Below some background:
1. I'm able to decompile the framework-res.apk without errors
2. Even without any modification I re-compile it with following steps:
a. Using apktool v2.0 and putting resources.asrc into decompiled folder then "apktool b fremwork-res" without any error (just getting warning: unable to find sources)
b. By copying the original META-INF and AndroidManifest into the new apk
3. When I put the new framework (again without any modifications, but just DE and RE compiled) into flashable zip of LEWA rom and flash it via TWRP, I get always the phoe freezing at boot logo.
I really do not have any clue on what I'm mistaking during this process.....anyone with some idea?...
THANK YOU IN ADVANCE!....
popo72 said:
Dears....this post because since one week I'm struggling with decompiling and re-compiling the framework-res.apk for my LEWA rom on TCL Idol X+ s960 MTK6592.
Below some background:
1. I'm able to decompile the framework-res.apk without errors
2. Even without any modification I re-compile it with following steps:
a. Using apktool v2.0 and putting resources.asrc into decompiled folder then "apktool b fremwork-res" without any error (just getting warning: unable to find sources)
b. By copying the original META-INF and AndroidManifest into the new apk
3. When I put the new framework (again without any modifications, but just DE and RE compiled) into flashable zip of LEWA rom and flash it via TWRP, I get always the phoe freezing at boot logo.
I really do not have any clue on what I'm mistaking during this process.....anyone with some idea?...
THANK YOU IN ADVANCE!....
Click to expand...
Click to collapse
Your best bet would be to run a logcat after you install. To be honest you will most likely have to build your own APK tool as MTK devices dont use the standard android setup so the apktool will not work on it.
zelendel said:
Your best bet would be to run a logcat after you install. To be honest you will most likely have to build your own APK tool as MTK devices dont use the standard android setup so the apktool will not work on it.
Click to expand...
Click to collapse
First of all really thank you for the quick feedback! Actually I had the suspect that MTK roms are different and this because in order to correctly (or at least without error) decompiling framework-res.apk, I had to load with apktool IF not only the framework-res.apk but also the Lewa-res.apk and the Mediatek-res.apk.
If it is needed to create a different apktool, I'm wondering how all the custom roms I see on network based on MTK devices are managed....I will have better investigation on it....
popo72 said:
First of all really thank you for the quick feedback! Actually I had the suspect that MTK roms are different and this because in order to correctly (or at least without error) decompiling framework-res.apk, I had to load with apktool IF not only the framework-res.apk but also the Lewa-res.apk and the Mediatek-res.apk.
If it is needed to create a different apktool, I'm wondering how all the custom roms I see on network based on MTK devices are managed....I will have better investigation on it....
Click to expand...
Click to collapse
You also have to install the system ui apk as well. Most of them are dirty hacks by using winzip to open the apk and then change the images out. MTK devices are not really a big thing on this site as they are still not main stream or even widely developed on. Most people avoid MTK devices.
zelendel said:
You also have to install the system ui apk as well. Most of them are dirty hacks by using winzip to open the apk and then change the images out. MTK devices are not really a big thing on this site as they are still not main stream or even widely developed on. Most people avoid MTK devices.
Click to expand...
Click to collapse
That I didn't know....so I have to also install SystemUI....great suggestion...:good:....I will try it hoping this is the missing part!....Yes...I know...MTK are very painful...I'm just realizing this....
Hi @popo72
Can you help me for this device i have some issues to have sounds working with speaker...
Thx in advance
Regards
Dexx
Hi...could you better explain your problem?
popo72 said:
Hi...could you better explain your problem?
Click to expand...
Click to collapse
Hi Popo72.
I have TCL S960 and try to port ROM everything seems to be working only the speaker.
I cannot listen music or watch movie and the phone cannot ring.
This is the issue.
Thx
Envoyé de mon MI 2 en utilisant Tapatalk