how can i modify package name of decompiled apk? [closed]

那年仲夏 提交于 2019-12-14 03:38:12

问题


I have decompiled a voip calling apk file with Apktool and i tried to change itz package name... But i getting error that unfortunately app stopped`...

What i did that search the package name inside the all files (root dir)and replace every occurrence with new package name by with notepad ++...

Here problem is that app using to communicate their server by with same as package name so it would cause error " unfortunately stoped!!! "

How can i replace only that package name without effecting other name that have same package name Any app available. for package renaming? Thanks in advance


回答1:


The package name of an app has nothing to do with any class names, it's just an entry in the manifest. It's usually the same as the name of one of the packages in the application but it doesn't have to be. Don't do a global search and replace (which may mess things up), just edit the package name in the manifest. Note that activity, receiver, and service names are often specified in the manifest relative to the app package name. If this is the case (they start with a dot), you'll have to change them to absolute class names as well.

If an application gets a "suddenly stopped" error, look at the Logcat output to see what the error was. There's countless reasons an application can crash so it's impossible to guess based on the description you gave.



来源:https://stackoverflow.com/questions/30272244/how-can-i-modify-package-name-of-decompiled-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!