Application Duplication (Cloning) - Android

Hi everybody.
For my work I need to have more istances of the same app (one of this is Instagram) because I use more than one account. So I try to duplicte Instagram apk. To do this I know that I must change apk package name, so I take the apk, decompiled with APKtool, than edited AndroidManifest with new Package Name, edited all the file under /res and /smali following the new name, and change the folder structure unerd /smali to the new packlage name.
After that I build new APK, signed it and try to install, but, when i open the new app it show me an error.
Anybody here can help me?

Try to logcat your error?
Maybe it's better to use multiple titanium backups...
Sent from my Galaxy Nexus using Tapatalk 2

mDroidd said:
Maybe it's better to use multiple titanium backups...
Click to expand...
Click to collapse
There's a way to automate the loading of different backups, for example using a shortcut?

ehm maybe it could be the DataProfiles option of TB, but I'm not sure and never tested...
You could also make a script that automates packaging (for new backup) of the data folder, switching and extract/replacing.
Sent from my Galaxy Nexus using Tapatalk 2

check the database
you also need to debug the database if application is using any database

Related

modifying system APK's for the atrix?

hey all, i'm starting to get into modding my atrix and i have some questions about modifying the system APK's. i've already deodexed /system/app and /system/framework with xUltimate. i'm using APK Manager in linux to decompile the APK's that i want to mod.
the problem comes when i compile the new APK and upload it to /system/app. the stock APK's are signed seemingly with a specific signature that the phone is looking for. APK Manager says to not sign the APK's that you intend to install to /system, but if you do choose to sign it, the certs that are used are not what the atrix is expecting. when i look for errors in logcat, its indicating that the package changed and that its trying to look for the matching cert within /data/secure.
how does one modify these system APK's, and keep the original signature intact? it looks like the manifest contains a sha1-digest signature of each file, which makes just copying/pasting the META-INF into the new APK not an option.
thanks in advance!
What I do is decompile to change xml's etc and then recompile without signing and then just drag the edited files from the new APK to the old one.
Sent from my MB860 using XDA
so does that mean it doesn't really matter that the sha1 signatures of the changed files dont get updated in the manifest?
is there not an agreed-upon method to do this that doesn't seem so "hacky" ?
Sent from my MB860 using XDA
I'm not sure mate. That's the way I found out how to do it and I've done translations and a few themes and framework-res systemui and settings have worked fine doing it the way I do it.
Sent from my MB860 using XDA

[Q] Zip to APK issue

I just download MMOJ game, and wanted to make some changes for fun. I changed file extension from .APK to .Zip, unzip the file, modfied a .lua file, zip the files, and changed the extension back to .apk. Then, I tried to install the game, and then I receive "Parsing Error". What did I do wrong? As you can tell, I don't have a good programming skill, so when providing answers, please be as detail as possible, so any new comers can understand the explanation and solutions.
Thank you.
You need to find a program to properly de/recompile for you, search out apktool as one of many options, there will surely be instructions as well in you searches
Sent from my Nexus 4 using Tapatalk 2
demkantor said:
You need to find a program to properly de/recompile for you, search out apktool as one of many options, there will surely be instructions as well in you searches
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the reply. Because many people said that I can change .apk to zip and back to .apk, I thought de/recompile program was unnecessary. I will try a program. Any recommendation? Preferably free?
Depending on what you do yes you can unzip do somethings then rezip, but for most changes it needs to be decompiled, I usually use apktool, initially made by brut.all but has been updated by others, right now I believe version 3 is the latest
Sent from my Nexus 4 using Tapatalk 2
demkantor said:
Depending on what you do yes you can unzip do somethings then rezip, but for most changes it needs to be decompiled, I usually use apktool, initially made by brut.all but has been updated by others, right now I believe version 3 is the latest
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
I tried apktool, but after extracting the folder AndroidApktool in C:\ and put the .apk file I want to modify along with framework-res.apk, AndroidApktool.exe does not start. It gives an error. Is my PC language setting as Korean a problem, do you think?
Once changed from a zip to an apk after being modified.the apk usually needs to be resigned before attempting to reinstall again.
Sent from my SGH-T889 using Tapatalk 4
Um, did you open cmd/terminal and tell it to decompile?
apktool d xxx.apk
Or what do you mean by it doesn't start?
Sent from my Nexus 4 using Tapatalk 2
hasbrobot said:
Once changed from a zip to an apk after being modified.the apk usually needs to be resigned before attempting to reinstall again.
Sent from my SGH-T889 using Tapatalk 4
Click to expand...
Click to collapse
Does that mean if I can get a program that re-signs the .apk, I can install the modified .apk?
demkantor said:
Um, did you open cmd/terminal and tell it to decompile?
apktool d xxx.apk
Or what do you mean by it doesn't start?
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
No, I did not use the command line apktool d xxx.apk. I may have to read how-to.txt to understand how to execute the file. Because apktool was an executable file, I thought double clicking would start the program with graphical user interface waiting for further input from the user.
u can unzip apk to .zip, but not rebuild file .zip to apk if you're not use tool. It'll not compiler.

Requesting stock notes app APK

I guess it's called "Richnote." I'm wondering if someone could export that APK and upload it somewhere so that I can try and get it running on a Galaxy S4. I found http://koolwap.in/games_app/dld.php...ba/comlgeapprichnote-30200111-v32.htm&ext=apk, but the phone just says "application not installed." I have a notes backup from an old E970 that I'd like to view, but I obviously can't with the GS4 (the format is .rnt, whatever that is), and I don't have any other LG device to view them from.
Here it is.
I extracted the app from my phone using Stock 4.1.2
Its called Rich Note
Here is the
PHP:
[URL="http://www.mediafire.com/download/x483o5gtq3o8a8c/com.lge.app.richnote.apk"]link[/URL]
I have this one. Copy to system app and set permissions. Doesn't work with kitkat in ART mode.
https://app.box.com/s/qfxao2m9rcctp2b03eom
Thanks guys!
Unfortunately, for both of those APKs, the phone just says application not installed.
It won't install as a normal app. You need to copy it with a root explorer to system apps, set permissions and reboot.
Sent from my LG Optimus G using xda app-developers app
Try this app it opens the notes I made with the lg notebook app.
https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer&hl=en
adfurgerson said:
It won't install as a normal app. You need to copy it with a root explorer to system apps, set permissions and reboot.
Sent from my LG Optimus G using xda app-developers app
Try this app it opens the notes I made with the lg notebook app.
https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer&hl=en
Click to expand...
Click to collapse
That probably explains it. The phone currently isn't rooted.
Regarding Perfect Viewer, it's unable to find the "backup.rnt" file that Richnote made during the export, even if I tell something like ES File Explorer to open that file with Perfect Viewer.
So there's no way to install that app without rooting?
So I rooted, copied one of the two APKs that were posted here into /system/app, changed the permissions to match the other APKs that I saw, rebooted, and nothing new showed up. Do these APKs need a matching OPEX file? Both of the Richnote APKs do this.
besweeet said:
So I rooted, copied one of the two APKs that were posted here into /system/app, changed the permissions to match the other APKs that I saw, rebooted, and nothing new showed up. Do these APKs need a matching OPEX file? Both of the Richnote APKs do this.
Click to expand...
Click to collapse
The one I posted shows up as "notebook" in app drawer and it doesn't have an odex file. Not sure if that would keep it from working on an odexd ROM. It is a modded apk. and I am pretty sure I found in a Samsung forum.
Oh...and googling .rnt it says it is files for CNC machines, but there are some free programs to open them.
adfurgerson said:
The one I posted shows up as "notebook" in app drawer and it doesn't have an odex file. Not sure if that would keep it from working on an odexd ROM. It is a modded apk. and I am pretty sure I found in a Samsung forum.
Oh...and googling .rnt it says it is files for CNC machines, but there are some free programs to open them.
Click to expand...
Click to collapse
Ah... I'm really confused, then. I tried putting some random APKs in /system/app and they ended up showing up after a reboot, so I'm not sure what's happening with the APKs that you guys posted.
I might just go to a T-Mobile store to open up my Richnotes backup and email all of the text to myself.
This is where I got it from downloaded the zip and pulled app from it. Does it look like the same note app you are trying to get?
http://forum.xda-developers.com/showthread.php?t=1938414
adfurgerson said:
This is where I got it from downloaded the zip and pulled app from it. Does it look like the same note app you are trying to get?
http://forum.xda-developers.com/showthread.php?t=1938414
Click to expand...
Click to collapse
I'm not sure what it looked like before (I barely used the phone), but I don't think that that's it.
I think I skipped out on your APK (the first two that I mentioned, one was from Alex_XV6700, the second was RichNote_a003.apk from a stock AT&T ROM for the E970). I put it in /system/apps, and the app works, but it's a different app overall, unfortunately. Thanks anyway.
I think the idea of going to a store to get the notes would be the easiest.

[Q] How to take a Backup of all AndroidManifest.xml's?

Hello, everyone.
Is there any way to take a backup of all AndroidManifests.xml on an Android Device?
ALL Free Apps
ALL Paid Apps
ALL System Apps
And where can you find them on the ES-File Explorer or any other File Explorer?
The app „Android System Information" can actually view all AndroidManifests.xml - System/Paid and Free apps. Every single one.
If an app is able to Display them, there must be a way to backup them or copy them to another folder.
Thanks in Advance.
It most likely workes like an archive veiwer. All those files are stored into the apks. You will have to decompile each apk
Android Installation Packages
zelendel said:
It most likely workes like an archive veiwer. All those files are stored into the apks. You will have to decompile each apk
Click to expand...
Click to collapse
INSIDE of the APK's?
Don't think so...
AndoridManifest includes things like
API Version
App Version
Installation Date and Time (also with seconds)
Some Metadata
Package Name
etc.
Hannah Stern said:
INSIDE of the APK's?
Don't think so...
AndoridManifest includes things like
API Version
App Version
Installation Date and Time (also with seconds)
Some Metadata
Package Name
etc.
Click to expand...
Click to collapse
I am aware of just what it is. They are stored inside the apk. Just unzip one and you will see it, might need to decompile it to read it though.
zelendel said:
I am aware of just what it is. They are stored inside the apk. Just unzip one and you will see it, might need to decompile it to read it though.
Click to expand...
Click to collapse
Are the AndroidManifests also included in an ADB-Backup of one or multiple apps?
Hannah Stern said:
Are the AndroidManifests also included in an ADB-Backup of one or multiple apps?
Click to expand...
Click to collapse
In a way as they back up the whole apk. If you are just wanting those files you will have to rip each one apart. No way around it.

Install multiple APK with one APK

Need your help folks..
So I have 4 APK and I want to merge them into 1 APK for installation, but when installing it will be back into 4 different application. Is there any way to do this? Thanks
This should be possible in theory, It could be done by decompiling the app and merging them all together and creating different app-drawer references in there. But this creates a few problems regarding deleting one of the apps, once you delete 1 you delete all. The same story goes for updating them, if you want to update an app you should rebuild the whole crazy app configuration. You might be better of creating an ADB script or even a pm (package manager) script to automate installing apps.
meLodiazz said:
Need your help folks..
So I have 4 APK and I want to merge them into 1 APK for installation, but when installing it will be back into 4 different application. Is there any way to do this? Thanks
Click to expand...
Click to collapse
try this http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849

Categories

Resources