Android reverse learning (2) vscode for double opening and icon modification

Android reverse learning (2) vscode for double opening and icon modification

write in front

This should actually be my first favorite assignment, but it was already too late when I finished my last blog. If I continue to type on the mechanical keyboard and disturb my roommates, I’m afraid I won’t be able to see the sun tomorrow, so I decided to divide it into two articles. Blog to learn

Note: I hope that my blog can be learned no matter which one I start from, so I will repeatedly mention a lot of the previous content in each of my blogs, so please forgive me if you feel that my blog is very wordy.

1. Environmental preparation

As usual, I still use Linux system (ubuntu 22.04), vscode, and xdroid. The main plug-ins are the same as last time. I won’t talk about how to configure the software here. Please see the previous blog for details.

2. Realize double opening

1. What is double opening?

Dual-opening is to install and run two identical softwares at the same time in an Android machine. There are many ways to achieve dual-opening. Here we will talk about the simplest one which is to modify the package name so that the system thinks they are two different softwares. This The implementation method is also very simple, we only need to modify the package name under the corresponding file

2. Start replacing the package name

First, we open the AndroidManifest.xml file. Anyone who has learned about android development knows this file. Here is a brief introduction to the apk application, such as the name, icon, etc. We first need to modify the package name. The package name is in this position.

20230903161950

Then we look for the package name on the left side of vscode, and replace all com.zj.wuaipojie with com.zj.dongbeiwangshi (Northeast past events)

20230903162241

Then we also need to replace Lcom/zj/wuaipojie in smali with Lcom/zj/dongbeiwangshi

20230903162547

A total of 1453 places in 99 files need to be modified.

Then we also need to modify the structure of the package, that is, the previous structure is com.zj.wuaipojie, and the file directory is changed to com.zj.dongbeiwangshi

20230903162939

Then we right-click apktool.yml to repackage, sign and install it. There will be two bugs here. Please note that the specific method is in the previous blog.

Then we will find that there are two wuaipojie

20230903163524

One of the package names has been changed to dongbeiwangshi

20230903163625

There is no problem with normal operation (the operation method is also in the previous blog, this is a xdroid bug)

2. Modify the software name and icon

Above we have completed the double opening, here we start to modify the package name and icon

What needs to be modified are these two places

20230903163939

Or modify app_name, see @string, we will find this string.xml under value to modify

20230903164150

Then we found this thing in the icon

20230903164330

We find a png image on the Internet to replace it, so that it looks much more pleasing to the eye

20230903165115

Then we can see this when we package and install

20230903170103

If you find that there is still no change after installation, you can uninstall the previous software first.

I hope this blog can help you, and good luck with your studies! ! !

Guess you like

Origin blog.csdn.net/qq_52380836/article/details/132652173