How to install multiple instances of the same .apk - Android Q&A, Help & Troubleshooting

I was tinkering and editing an apk, and i managed to compile it and install it fine and it works and is suited to me. So i was wondering ( not too good with xmls ), is it possible to edit the manifest file to rename the apk so I can install multiple copies ( i.e. have the original unmodified one and the modified one at the same time ). I need this for testing purposes. Which lines do i need to edit exactly so the phone doesn't give me the "installing this application will replace the current..." warning, so I can multiple instances of it?
Hope I'm being clear on what exactly I need, any help is appreciated. Cheers
Edit : Just found a post from this guy on a simillar thread that i couldn't find using search
levenum said:
It is not a simple matter.
APKs are managed by package name, not by file name, but you can't simply change the package name in the manifest of a compiled APK.
Even assuming you manage to do it without messing up the file, which is not a simple task, there will still be code referring to the package name, so the app will crash.
Click to expand...
Click to collapse
So is this true ?

Yes it is, I've tried.

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris

cttttt said:
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
Click to expand...
Click to collapse
Yeah, thought so myself. Used the emu for a while, but It's so damn slow, can't compare it to actual testing. Nvm, I've dropped the matter anyway. Thanks for the reply

Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849

akash45 said:
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
Click to expand...
Click to collapse
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks

prudra said:
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
Click to expand...
Click to collapse
Okay my bad

Related

[Ready to DONATE][Q] How to manually deodex Email.apk and Mobileprint.apk

I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Edit 06/30/2011 : I am ready to donate for the help you could give me
Found the same threads you did.. I am researching this as well.. Will keep you updated if I find anything.
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
mak1 said:
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
Click to expand...
Click to collapse
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
sicopat said:
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
Click to expand...
Click to collapse
i wana know this tooo
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
mak1 said:
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
Click to expand...
Click to collapse
That's the problem, even with the entire framework directory, I am not able to deodex Email.apk and Mobileprint.apk . Seems like if missing Bootclasspath ...
No problem manualy deodexing every other apks ..
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
TAEL said:
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
Click to expand...
Click to collapse
I wonder if it ignores certain errors. If i use baksmali with the -I option, i can get deodexed output, But obviously the APK won't work.
sicopat said:
I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Click to expand...
Click to collapse
I got it done for u method is a bit complicated though
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
ransagy said:
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
Click to expand...
Click to collapse
same here..i guess we just want to learn so please share
thanks
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
thanks already read that
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I also wrote my own deodexing bash script with baksmali/smali/zip. The thing is, Those two APK request java libraries to deodex (java.awt.* and javax.swing.*). I could't find anywhere to get those dependencies from, So if you could share which boot classes you used for satisfying those requirements, it would be great.
Thanks!
I am ready to make a donation for help.
I would like to be able to do it myself
sicopat said:
I am ready to make a donation for help.
I would like to be able to do it myself
Click to expand...
Click to collapse
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
pulser_g2 said:
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
Click to expand...
Click to collapse
Thanks so much Pulser, I am going to try this.
it's Curious we canno't avoid errors.
As promised : donation done
Big thanks
Hi guys, same here with Email.odex...
I'm not be able to deodex it...
Somebody can help me? Thanks!

[Q] How to set livewallpaper auto enabled on fresh flash of ROM?

Hello web masters and developers,
I've got a noob question...
I've got Jusada's ICSunday Final ROM (all credits to Jusada, and of course I've got his permission to do moding), which I modified for my personal needs.
Until now I've added many options that missed in original release (so it's not barebone anymore) like live wallpapers, torch, RE, ScanMedia, battery drain fix and GPS fix, transparent status bar and modified Acheps CM theme (all credits to their developers, u can find the topics here in Ace forum) etc.
There is couple of things I currently cannot resolve and that drives me crazy.
When I make a fresh install of the ROM, it starts with default wallpaper (which I modified too). But since I often use my favorite livewallpaper, i really need it to be set by default from the system. Now, I've got Livewallpaperspicker.apk installed and working. I can put the livewallpaper's apk file in the /system/app and to be installed by default, but how to make it enabled by default instead of the static default_wallpaper.jpeg inside framework_res.apk?
Where in which file I should enable it bu default?
Thank you for your patience, and also excuse me for my bad english, and If I break the rules with this thread!
Regards!
P.S: Excuse me for the stupid thread title, I couldn't figure out a better one...
Obviously no one knows, or it's too difficult to explain for noobs like me... Sad... I search on Google but either I don't search with correct keyword or there are no such thread/topic/lesson...
Sent from my GT-S5830 using xda premium
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
tomsons26 said:
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
Click to expand...
Click to collapse
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
P.S: I've found the file that contains keyword "default_wallpaper_component" in it. It's framework.odex. Now I've got to figure out first how to edit it (with notepad++ there are a bunch of unusable characters) and what exactly to write to enable my favorite_livewallpaper.apk by default. Because it's gonna be normal, pre-installed .apk file (not inside the LiveWallpapers.apk) and I don't know how to call it inside the string... Damned, this is gonna be harder than I thought But... I like to be hard, if there are good people that wont mind to teach me or tip me for the answer)) Thanks
Spoonk said:
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
Click to expand...
Click to collapse
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
tomsons26 said:
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
Click to expand...
Click to collapse
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Spoonk said:
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Click to expand...
Click to collapse
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
tomsons26 said:
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
Click to expand...
Click to collapse
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Spoonk said:
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Click to expand...
Click to collapse
Yes, and xdaAutoTool is better and user friendly

[REQ] XML and Esclipse Tutorial

is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Xmls are usually in simple english with tags like html(though it has no relation with html.I wanted to mean for eg like <preference> </preference> ) if you read the lines you can understand I guess
Sent from my GT-N7000 using xda app-developers app
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
deniel said:
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
Click to expand...
Click to collapse
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
kokzhanjia said:
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
Click to expand...
Click to collapse
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
blazingwolf said:
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
Click to expand...
Click to collapse
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
kokzhanjia said:
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
Click to expand...
Click to collapse
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Refer this website (http://www.w3schools.com/xml/) to get a basic idea of XML.
blazingwolf said:
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
Click to expand...
Click to collapse
I understand decompiling but i cant even open the window to start a normal xml project in esclipse
I hereby support an OFF-Topic thread.

[Q] Edit .apk wirh winRAR possible?

Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
bart1996 said:
Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
Click to expand...
Click to collapse
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Diablo67 said:
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Click to expand...
Click to collapse
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
bart1996 said:
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
Click to expand...
Click to collapse
It only really works for editing images.
Admitting this is a nice way to get banned
Wayne Tech Nexus

Re Create APK File

Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Rierei said:
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Click to expand...
Click to collapse
its an anroid game so animations , graphics etx hard to do so i just want to change dex file of apk , is that possible and how , i just wondwer it
umutt1905 said:
Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
Click to expand...
Click to collapse
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
zelendel said:
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
Click to expand...
Click to collapse
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
umutt1905 said:
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
Click to expand...
Click to collapse
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
zelendel said:
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
Click to expand...
Click to collapse
ok , thanks for warning but im working on hack so asked here. working on money hack and btw i know developers of that game so i have no bad goal to do on servers and already cant if i could get admin permissions. then can you guidance me to recomplng apk , i coudnt find on forums its so complex to find tnx

Categories

Resources