App Cloning Not Working (Tried Dalvik Bytecode and Apk Editor) - Other Tools & General Discussion

Hey guys,
first thing first i am new on the forum so sorry if I post in the wrong place hehe.
I have been wanting to duplicate (clone) apks, as facebook messenger, viber, line and snapchat.
Tried with apk editor and apk editor patch, but when i clone, change named click ok, they say there is a java error, or sometime and header error.
So I tried with Dalvik bytecode, i open the apk click on androidmanisfest.xml and dalvik crashes at that point.:crying:
I am currently on a s5-g900h rooted.
Any help on how to get clones of theses apps would be highly appreciated. :good:

if the byte code editor crashes then use an alternative keyboard

When i clone an app, i forgot to declare library that it use. Some app not use .jar libraries but it has to be built with the main app. .so libraries also have to be token care carefully. Hope it may help you cloning apps.

Related

Decompiling Browser.apk with apktool ERROR

I can compile and decompile the two framework apks without problems.
I cannot for the life of me get any other apk file to decompile with the follow errors...
Does anyone know what is causing this?
Here is video of the error I'm getting for any apk other than frameworks.
http://www.youtube.com/watch?v=4gBmTbntMp4
EDIT: I have figured out what's going on! No longer need help.
cortland1998 said:
I can compile and decompile the two framework apks without problems.
I cannot for the life of me get any other apk file to decompile with the follow errors...
Does anyone know what is causing this?
Click to expand...
Click to collapse
Are you using the correct framework -target?
Not even sure if you need to use a framework target when you compile standard apks.
ante0 said:
Are you using the correct framework -target?
Not even sure if you need to use a framework target when you compile standard apks.
Click to expand...
Click to collapse
I'm not sure what you mean as I'm pretty new with this stuff...
It does mention "Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info."
Every browser with ad blocking will have a list of hosts and it's servers right????? But where is that file.....I searched uc browser, kiwi browser, dolphin etc....but I can't find it at least in one....can anyone help....and how to modify it????

[Q] Edit Package Name

How can I edit the package name of Facebook.apk ?
I want to install two facebook apps in same device
pasindupeiris said:
How can I edit the package name of Facebook.apk ?
I want to install two facebook apps in same device
Click to expand...
Click to collapse
Before you begin you need to install these two apks
1. Apk Editor.apk
2. Apk editor patch.apk
Installing same application twice
Now after downloading these two apks.
First, install Apk Editor and then the Apk editor patch.
Now open Apk editor and browse to the apk of the application you want to install.
Long press the apk and select "Clone".
Now change the name of the apk and press ok.
Now open your regular file manager and install the apk as you would normally
Source: http://swapmyapp.com/how-to/run-multiple-instances-of-one-app/
Google has the best answers!
Don't forget about the Thanks button :silly:
Hey thanks for the reply. I've already tried this method.
But Cant open the clone app. Every time it force closes. :crying:
pasindupeiris said:
Hey thanks for the reply. I've already tried this method.
But Cant open the clone app. Every time it force closes. :crying:
Click to expand...
Click to collapse
Will do some research for you when I'll have some time.
Btw I don't even use one facebook app!!
Newyork! said:
Will do some research for you when I'll have some time.
Btw I don't even use one facebook app!!
Click to expand...
Click to collapse
Thanks mate!
pasindupeiris said:
Thanks mate!
Click to expand...
Click to collapse
Its not that simple.
If you decompile the app and change it's package name it won't work. The reason behind this is because when an app is coded, you specify the package name in the manifest and then use the same or a special package name for storing code.
Libraries are attached to the code via package names and so are custom imports. If none of this is correctly modified then you have no chance at getting this app to work at all.
There is however one approach many don't use around here but it's very complicated and takes time, but in the end you can completely reverse engineer any app and have the source code for a closed source application.
You will need the following things.
Time
Eclipse IDE (I only know how to set it up on that)
Dex2Jar
APKMultiTool (Or any decompiling tool)
Notepad++
JavaViewer (or any programming that let's you view Java code).
And the libraries used in the applications (this is because the libraries sometimes break for some reason? Atleast for me.)
Reply back to me if you want to know how to reverse engineer the app.
TheArc said:
Its not that simple.
If you decompile the app and change it's package name it won't work. The reason behind this is because when an app is coded, you specify the package name in the manifest and then use the same or a special package name for storing code.
Libraries are attached to the code via package names and so are custom imports. If none of this is correctly modified then you have no chance at getting this app to work at all.
There is however one approach many don't use around here but it's very complicated and takes time, but in the end you can completely reverse engineer any app and have the source code for a closed source application.
You will need the following things.
Time
Eclipse IDE (I only know how to set it up on that)
Dex2Jar
APKMultiTool (Or any decompiling tool)
Notepad++
JavaViewer (or any programming that let's you view Java code).
And the libraries used in the applications (this is because the libraries sometimes break for some reason? Atleast for me.)
Reply back to me if you want to know how to reverse engineer the app.
Click to expand...
Click to collapse
So I see that these instructions all over the internet is just bs....
Never tried to have two apps running on one device. Maybe I'll try next time I'm bored
Newyork! said:
So I see that these instructions all over the internet is just bs....
Never tried to have two apps running on one device. Maybe I'll try next time I'm bored
Click to expand...
Click to collapse
Well sometimes it may work it is a step in the instructions. There is just more to the whole process though. Nothing would be that easy if it were people would be having duplicates of apps everywhere [emoji14].
The only duplicate app I've seen so far is Instagram.
TheArc said:
Its not that simple.
If you decompile the app and change it's package name it won't work. The reason behind this is because when an app is coded, you specify the package name in the manifest and then use the same or a special package name for storing code.
Libraries are attached to the code via package names and so are custom imports. If none of this is correctly modified then you have no chance at getting this app to work at all.
There is however one approach many don't use around here but it's very complicated and takes time, but in the end you can completely reverse engineer any app and have the source code for a closed source application.
You will need the following things.
Time
Eclipse IDE (I only know how to set it up on that)
Dex2Jar
APKMultiTool (Or any decompiling tool)
Notepad++
JavaViewer (or any programming that let's you view Java code).
And the libraries used in the applications (this is because the libraries sometimes break for some reason? Atleast for me.)
Reply back to me if you want to know how to reverse engineer the app.
Click to expand...
Click to collapse
I tried to reverse engineer the facebook app. But I couldn't. I'll text you. BDW in UC Browser 9.2.3. I edited package name in AndroidManifest.xml and I could install two UC Broswers
pasindupeiris said:
I tried to reverse engineer the facebook app. But I couldn't. I'll text you. BDW in UC Browser 9.2.3. I edited package name in AndroidManifest.xml and I could install two UC Broswers
Click to expand...
Click to collapse
:good:
BTW if you want two Facebook accounts on your phone you can download a third party app like Seesmic
Newyork! said:
:good:
BTW if you want two Facebook accounts on your phone you can download a third party app like Seesmic
Click to expand...
Click to collapse
But you know any app is not comfortable as Official one :3

[Completed] Facebook messenger app wont start after editing the /res folder

this is my first post in xda forums so bear with me
today i tried to edit some emoji's in the Facebook messenger apk so downloaded an apk from the internet (which i tested to see if it works before i edit it) then i opened the apk with 7zip and changed the emoji's that i didn't like and deleted the META-INF folder then i used a 1 click signing tool to resign the apk file it installed normally but when i open it it sticks at a white page loop and stays there im sure its some kind of security measure from facebook but i cannot figure out how to solve it
thanks in advance
P.S i already did a similer thing with whatsapp and it worked just fine
Abdulla060 said:
this is my first post in xda forums so bear with me
today i tried to edit some emoji's in the Facebook messenger apk so downloaded an apk from the internet (which i tested to see if it works before i edit it) then i opened the apk with 7zip and changed the emoji's that i didn't like and deleted the META-INF folder then i used a 1 click signing tool to resign the apk file it installed normally but when i open it it sticks at a white page loop and stays there im sure its some kind of security measure from facebook but i cannot figure out how to solve it
thanks in advance
P.S i already did a similer thing with whatsapp and it worked just fine
Click to expand...
Click to collapse
Greetings and welcome to assist. Unfortunately facebook is notoriously difficult to mod, make sure the original app is removed, look in your system apps for facebook as most phones come with it preinstalled. If the signatures are different it will not work, also try signing the app with test keys instead
Regards
Sawdoctor

Modifying system apks / resigning

Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
deomaki said:
Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
Click to expand...
Click to collapse
All system apps have to be signed the same way, yes. You can sometimes mod your services.jar to turn off signature verification but that can leave you a bit more open to malware.
When you mod a system app, you just have to make sure you use the original signature in the new version. The only exception to this is if you change anything in the manifest. Then you will need a new signature, which means either signing everything else with that signature or doing the services.jar I mentioned earlier.
Hello Ticklefish,
first of all: Thanks a lot!
To summarize your answer:
1) Modding services.jar is out of the question! Would never have done this anyway...(risky from a malware point of view)
2) In case I modify a system apk WITHOUT altering the manifest.xml I can reuse the old apk signature for my new apk (the whole META-INF folder has to be copied over to the new apk?)
Nothing else has to be adjusted?
I suppose I still can do a zipalign afterwards in that case?
3) In case of modifying the manifest.xml I would have to resign ALL system apks.
All of them or only those that rely on the same framework as the modded apk?
Do I have to resign the framework apk as well?
I am asking, because I will have to mod several apks relying on different frameworks: At least one where I have to alter manifest.xml...
Thanks in advance
Markus
deomaki said:
Hello Ticklefish,
first of all: Thanks a lot!
To summarize your answer:
1) Modding services.jar is out of the question! Would never have done this anyway...(risky from a malware point of view)
2) In case I modify a system apk WITHOUT altering the manifest.xml I can reuse the old apk signature for my new apk (the whole META-INF folder has to be copied over to the new apk?)
Nothing else has to be adjusted?
I suppose I still can do a zipalign afterwards in that case?
3) In case of modifying the manifest.xml I would have to resign ALL system apks.
All of them or only those that rely on the same framework as the modded apk?
Do I have to resign the framework apk as well?
I am asking, because I will have to mod several apks relying on different frameworks: At least one where I have to alter manifest.xml...
Thanks in advance
Markus
Click to expand...
Click to collapse
If you're modifying an APK without changing the manifest, the best method is to use 7zip or similar to open the new APK and drag the modded files over to the original APK. That way you're still using the same META-INF at the same compression ratio.
Or use Tickle My Android (https://forum.xda-developers.com/showthread.php?t=1633333) to do it for you....cough...cough...
You can zipalign afterwards, just remember that any further changes will affect that zipaligning so you'll have to do it again.
As far as resigning the APK goes, all I know is that you have to change every file that uses the same key/signature as the app you resigned so that they all match.
I have to confess that I've never actually done this. I rarely change the manifest myself and, when I do, I disable signature verification. Yes, it makes you more prone to malware but as long as you're careful about what you install you should be okay.
deomaki said:
Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
Click to expand...
Click to collapse
I usually use Mixplorer, (if you use your phone to de/re-compile). Click on compiled apk, select 'explore' and a new tab opens with the contents of the apk. Delete the manifest that was created in recompile, then go to folder with decompiled apk, /original, and long-press to select android manifest xml, and META-INF folder. Choose copy, and paste them into new apk.

APK doesn't install even I did no modification to it

Hi masters,
I wanted to modify an android game named Injsutice gods among us. I used ApkEasyTool to decompile the APK and I didn't modify anything. After decompilation I recompiled the APK without doing any changes to its source. After successfully recompilation I installed the APK in android. The error I get while installing the app is "App is not installed". Can you tell me how to recompile the android app in a proper way and what are the steps to make it run successfully? The application is built for arm64-v8a architecture.
Thank you sir.
Use the original APK file.
jwoegerbauer said:
Use the original APK file.
Click to expand...
Click to collapse
Please read the post again. I am trying to modify the application. I would install modified application. But I got an issue while installing the application which is recompiled from apkeasytool.
I was referring to the title of the thread ...

Categories

Resources