Monday, November 13, 2017

How to change package name from Android app using Android phone?

1-decomple the apk you wanna change package name using apk tool

2-goto decompled folder and change package name from AndroidManifest.xml eg. com.original.app to my.modified.application
using xml editor anyway  this is an example of package name i showing in this tutorial and AndroidManifest.xml file will be found in root dir of decompled folder

3-check every line from AndroidManifest.xml using xml editor and if found change com.original.app to my.modified.application

4-goto smali folder in decompled folder and there will be some folder as package name Eg, com/original/app and rename them as my/modified/application
folder name depend on package name
if package name org.pkg.name
then you've to rename org/pkg/name to my/modified/application hope you understand what I trying to say

5-navigate to my/modified/application folder in cause I've  changed com/original/app to my/modified/application and edit all file using droidedit.apk

6- open these file one by one with droidedit and tap on search icon

in find field write Lcom/original/app

in replace field write Lmy/modified/application

and mark on wrap around

and finally touch on replace all

do it all every file in that folder


7-open apktool.yml from decompled folder using a txt editor i use es note editor of es file manager so i suggest it
             
                     change
apkFileName: original app.apk to
apkFileName: my modified.apk

cur_package: com.original.app
to
cur_package: my.modified.application

orig_package: com.original.app
to
orig_package: my.modified.application

then save it now you are done
 just recomple apk using apk tool and sign it using zip signer or apk editor



0 comments:

Post a Comment