Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,360 Members 54,650 Now Online
XDA Developers Android and Mobile Development Forum

Duplicate an app

Tip us?
 
skylun
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Mar 2014
Default Duplicate an app

Hi all,
so in IOS its pretty easy to duplicate an app.... but i search through the web for duplicating an app on android and i cant find any guides....
Therefore, any way to do that on android devices?
 
EnricoD
Old
#2  
EnricoD's Avatar
Recognized Contributor
Thanks Meter 3696
Posts: 2,119
Join Date: May 2013

 
DONATE TO ME
Quote:
Originally Posted by skylun View Post
Hi all,
so in IOS its pretty easy to duplicate an app.... but i search through the web for duplicating an app on android and i cant find any guides....
Therefore, any way to do that on android devices?
What You mean by "duplicate" an app???
And what is the goal of do that ?
 
skylun
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Mar 2014
Default hi

Quote:
Originally Posted by EnricoD View Post
What You mean by "duplicate" an app???
And what is the goal of do that ?
i mean making 2 same apps in a single device.
My goal is just to play 2 accounts in a single game and in the same device.
 
sewer56lol
Old
#4  
sewer56lol's Avatar
Senior Member
Thanks Meter 534
Posts: 1,504
Join Date: Jun 2012
Location: 54.5970 N, 5.9300 W
Quote:
Originally Posted by skylun View Post
i mean making 2 same apps in a single device.
My goal is just to play 2 accounts in a single game and in the same device.
Simultaneously on 2 different accounts or separately?

I have 3 solutions I can think of:

- To Play Them Separately -
Multi User on Android
Using 2 different backup apps and restoring them to the other when you want to change

- To Play Them Simultaneously -
You would need to decompile the apk of the app you want to clone (pull it from data/app then use something like APK Multi Tools or APKTool) and change the package name under AndroidManifest.xml, recompile, push to /SDcard and install as a normal app. Then you will have a second same app you can use with the other one at any time with it's own data.

Also : Dev/WrongSection

Sent from my Nexus 5 using Tapatalk

 
skylun
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 11
Join Date: Mar 2014
Default hi

Quote:
Originally Posted by sewer56lol View Post
Simultaneously on 2 different accounts or separately?

I have 3 solutions I can think of:

- To Play Them Separately -
Multi User on Android
Using 2 different backup apps and restoring them to the other when you want to change

- To Play Them Simultaneously -
You would need to decompile the apk of the app you want to clone (pull it from data/app then use something like APK Multi Tools or APKTool) and change the package name under AndroidManifest.xml, recompile, push to /SDcard and install as a normal app. Then you will have a second same app you can use with the other one at any time with it's own data.

Also : Dev/WrongSection

Sent from my Nexus 5 using Tapatalk
just did the first one... actually i have been studying on rooting few hours ago and just rooted my phone 10mins ago lol... just done making another profile, but your second option is more convenient than restarting my phone everytime i wanted to switch accounts....
any video guide that i can follow?
 
sewer56lol
Old
#6  
sewer56lol's Avatar
Senior Member
Thanks Meter 534
Posts: 1,504
Join Date: Jun 2012
Location: 54.5970 N, 5.9300 W
Quickly peeking over XDA I found this guide which is quite well explained for people who haven't decompiled an app before:
http://forum.xda-developers.com/show....php?t=2341351

Steps 6-8 are unnecessary hence you're not modifying a System APP but is recommended anyway just for future use (and avoiding any problems - which shouldn't occur anyway).


Your app (assuming it's installed) should be under data/app (from root directory of the device, copy it from there to /sdcard/ and then to PC. (There are many file managers which have root access, ES File manager or Total Commander are recommended)
(Follow guide)
Once you decompile the app (will be under a folder called projects) there should be a AndroidManifest.xml in the root of the decompiled app folder, edit it (I recommend NotePad++ for many reasons, but WordPad/Notepad are still viable), the XML is in human readable format and is generally small so there should be no issues.
Somewhere there should be a package name (these 99% of the time start with com. and often include the developer name after it then the name of the app e.g. com.android.chrome or com.handlerexploit.tweedle), simply modify it to something different, save and go back to the guide to recompile.

After recompiling simply push the app back to the phone and install it through a file manager.

Sent from my Nexus 5 using Tapatalk

---------- Post added at 01:06 PM ---------- Previous post was at 12:58 PM ----------

Also seeing you have not probably used ADB you'd need the drivers for it (as well as USB Debugging enables in phone) for APK multi tool to pull system files if you decide to do Steps 6-8 (although unnecessary).

The tool here : http://www.wugfresh.com/nrt/ has easy to do instructions on installing drivers or if you know what you're doing grab the official driver here ( http://developer.android.com/sdk/win-usb.html ) and install in device manager if your device has no driver installed there. (Do Browse manually and point it to USB_driver directory)

Sent from my Nexus 5 using Tapatalk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Easily Combine Text and Manage Your Android Clipboard with StuffMerge

Android clipboard management has always been impractical without the … more

Pale Moon Browser Ported to Android

Having a wide choice of third party applications is one of the most beautiful things that Android has to … more

Partial Android Wear Source Uploaded to AOSP

2014 is certainly shaping up to be theyear of the wearables. And thanks to its innovative … more

Street Panorama Combines Google Maps and Street View into One App

Google Maps is a must have application forevery amateur world explorer. … more