[Q] Two versions of one app installed at the same time? - Android Q&A, Help & Troubleshooting

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 ?

Related

Android 2.x on Emulator with Market?

I know this has been asked around the place quite a bit, but I haven't read an answer on xda and this place seems to be the best place to get answers, so I'm going to ask it...
Is it possible to run up Android 2.1 or 2.2 on the emulator with the market? I've got 1.5 and 1.6 running fine but haven't worked out how to get 2.x working. It's really bugging me that I can't find a good answer as to whether or not it is possible.
And if not, can someone tell me why?
Thanks in advance!
BTW: my first post!
Crunched said:
I know this has been asked around the place quite a bit, but I haven't read an answer on xda and this place seems to be the best place to get answers, so I'm going to ask it...
Is it possible to run up Android 2.1 or 2.2 on the emulator with the market? I've got 1.5 and 1.6 running fine but haven't worked out how to get 2.x working. It's really bugging me that I can't find a good answer as to whether or not it is possible.
And if not, can someone tell me why?
Thanks in advance!
BTW: my first post!
Click to expand...
Click to collapse
I have same problem with you, still waiting for market that running on latest sdk(android 2.0 and higher)
anyone wanna help us?
AVD 2.2 with Market, su and busybox
I made a Android 2.2 system.img with market,
su and busybox for Android SDK AVD, that you can download here: http://www.ehalm.at/avd-2.2-market.php?l=en
There is also an installation guide.
Please read them through so does the Market correct.
This video will explain again how to make the market work:
AVD 4.3 with Play Store, SuperSU and more.
New version with Android 4.3 available!
Android 4.3 system.img with Play Store, SuperSU (root) and more for Android SDK AVD (Android Virtual Device).
Google Apps (Google Play Store, Google Sync, Gmail, ...) included.
Rooted, SuperSU and BusyBox included.
ES File Explorer (can be used as root-explorer) and Titanium Backup included.
Here you can download it: http://www.ehalm.at/avd-4.3-gapps.php?l=en

[Q] New to modding apk's

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 ?

[App][Jellybean] Google Play Store

Temporarily Unavailable
Hello again everyone! I have another marketplace option for everyone on your nook colors! I extracted the Jellybean (as the title suggests) market apk and resized it for the 7" display.
WARNING! This will replace your current system market application! SO backup with Clockworkmod Recovery first!
Installation: Nothing special here I set it up so you just put it anywhere you want (dosent have to be in the system directory. I have mine on my SD card) and it will install just fine.
Hope you guys enjoy!
Any chance of a comparison shot?
Sure Ill post one as soon as I can. The main differneces are it adds magazines, tv shows, and a few new settings.
WEM97 said:
Hello again everyone! I have another marketplace option for everyone on your nook colors! I extracted the Jellybean (as the title suggests) market apk and ported it over to the nook color and resized it for the 7" display.
WARNING! This will replace your current system market application! SO backup with Clockworkmod Recovery first!
Installation: Nothing special here I set it up so you just put it anywhere you want (dosent have to be in the system directory. I have mine on my SD card) and it will install just fine.
Hope you guys enjoy!
Click to expand...
Click to collapse
Care to explain how you went about "Porting it over to the nook color and resizing it for the 7" display?" I took your apk file, along with the one posted 4 threads down from this post that just so happens to have the exact same name, LINK, one at random Play Store version 3.7.11 from an AOSP Jelly Bean ROM, and compared them all. Lo and behold, they are all 100% identical.
Code:
=============================
First folder name: C:\Users\GMPOWER\JB_Play_Store\
Second folder name: C:\Users\GMPOWER\JB_Play_Store_1\
Third folder name: C:\Users\GMPOWER\JB_Play_Store_2\
Report type:All (Matching and Differences)
Files:
Identical Files: 3630 3630 3630
Directories:
(recursive)
Identical Directories: 377 377 377
You claim to have "ported it over to the nook color and resized it for the 7" display," and to have "...set it up so you just put it anywhere you want..." to install it. So I ask once again, what did you do to accomplish this, when the file is identical to another one posted only 4 threads down from this one, and one picked at random from an AOSP ROM. It is looking like you are trying to take some credit for something that you had no hand in doing.
Sorry for the confusion, but when I said ported I meant I pulled the file from the Google Update.zip for my Galaxy Nexus and I basically changed the sizing of the apk and installed it on my nook color. Sorry for the confussion. I edited my explaination.
I just visited your link and I hadnt even noticed the post! Im sorry if there was some confussion.
WEM97 said:
Sorry for the confusion, but when I said ported I meant I pulled the file from the Google Update.zip for my Galaxy Nexus and I basically changed the sizing of the apk and installed it on my nook color. Sorry for the confussion. I edited my explaination.
Click to expand...
Click to collapse
But you shouldn't have to "change the sizing of the apk". The play store app is universal, just like most to all Android apps are. I could take the Jellybean Play Store from my Optimus V and put it on my Nook and it would work fine, and vice versa, just as any other app would. No modifications. It's how Android works.
Tapatalkin' it from my Optimus V
Thank you Captain Obvious! Yes I know that and as I explained, I resized it so everything is slightly smaller to fit the big screen better and fit more on it.
just so everyone knows....the Jelly Bean play store post that I posted is the official JB Play Store pulled from AOSP and NOT tinkered with by anyone....
I personally think that is a safer option than the apk that someone fiddled with.
plasticarmyman said:
just so everyone knows....the Jelly Bean play store post that I posted is the official JB Play Store pulled from AOSP and NOT tinkered with by anyone....
I personally think that is a safer option than the apk that someone fiddled with.
Click to expand...
Click to collapse
I am going to close this, for a couple reasons...
1) The link is gone now anyway; no point to this thread
2) What was previously posted as "modded" was not actually modded
3) Because it is the same as everything else, we only need one JB Market thread..
Closed

[Q] Download older versions of Apps ? (Qualified apk site)

Hi everyone. I'm new on android so this issue confuses my mind. If i have to download an older version of an application, how can i find an older version of it. For instance the newest version of "A" application is 2.2.1. But i want to do downgrade/download the older version for instance 2.1.0. How can i get it? From apk sites or such like that?
If so what is the widest and best apk sites for this to download ??
Thanks for your replies...
contact the app developer and ask for it is probably the easiest/quickest route
slaphead20 said:
contact the app developer and ask for it is probably the easiest/quickest route
Click to expand...
Click to collapse
Thanks for your reply firstly. But i asked this question as a general knowledge. Before my new android phone, i was using the iOS and i know how to do it. (i knew the .ipa sources and methods) Also i did it sometimes. But in android i dont know any quality apk sources for instance for older versions of some base applications (that has receive lots of updates) whatsapp, instagram, facebook etc...
Many of the apk sites will be no more than Warez sites .
Google is always your best source of apks bearing in mind the above .
Possibly a search or an ask on XDA .
Old versions is not something normally asked for .
jje
all the apps on play store have email contacts, so I would just email them direct
Safsata said:
Hi everyone. I'm new on android so this issue confuses my mind. If i have to download an older version of an application, how can i find an older version of it. For instance the newest version of "A" application is 2.2.1. But i want to do downgrade/download the older version for instance 2.1.0. How can i get it? From apk sites or such like that?
If so what is the widest and best apk sites for this to download ??
Thanks for your replies...
Click to expand...
Click to collapse
Try to check at AndroidDrawer.com
Its more reliable due to the md5 checksum.
alx

How to apply missing (stock) apks?

Hi there,
just installed Lollipop 5.1.1 on my GT-S8500 from here. It works really great and impressivly smooth!
Due to being very slim it misses some stock apks like calendar provider. I already asked within thread and also the OP - no response yet.
Is there rule of thumb / basic rule where to grab such apks from to late install them into own ROM?
Many thanks in advance!
Bye
At least for them ROM mentioned here I identified its origin by accident (opening an stock APK in ES Explorer showed the original ROM so I could google for it).
Is there another way to find out about origin of stock apks?

Categories

Resources