如何修改反编译的apk的包名? [英] how can i modify package name of decompiled apk?

查看:113
本文介绍了如何修改反编译的apk的包名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 Apktool 反编译了一个 voip 调用 apk 文件,我试图更改 itz 包名称...但我收到错误,不幸的是应用程序停止了`...

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

推荐答案

应用程序的包名与任何类名无关,它只是清单中的一个条目.它通常与应用程序中某个包的名称相同,但并非必须如此.不要进行全局搜索和替换(这可能会搞砸),只需在清单中编辑包名称.请注意,活动、接收器和服务名称通常在清单中相对于应用程序包名称指定.如果是这种情况(它们以点开头),您还必须将它们更改为绝对类名.

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.

如果应用程序收到突然停止"错误,请查看 Logcat 输出以了解错误是什么.应用程序崩溃的原因数不胜数,因此无法根据您提供的描述进行猜测.

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.

这篇关于如何修改反编译的apk的包名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆