Modify APP: Here comes the car
Modification Content: Start the boot page for the first time, modify the middle point material, modify the style
Prior to modification: White was not selected, blue was selected, and the spacing was 5 dip.
After modification: red is not selected, black is selected, spacing is 0.
The front and back screenshots are as follows:
Modification process:
1. Decompilation of apk using apktool
The apktool installation is based on the official website: https://ibotpeaches.github.io/Apktool/install/
Specific operation:
0. Make sure you use java 1.8 or more first
1. Download the running script and rename it apktool. bat. Download address (official website): https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/windows/apktool.bat
2. Download the latest apktool and rename it apktool.jar at https://bitbucket.org/iBotPeaches/apktool/downloads/
3. Put it in a folder and double-click to run apktool.bat to output usage
4. Decompiled apk, command format: apktool d [APK file name]
Apktool v2.4.0 - a tool for reengineering Android apk fileswith smali v2.2.6 and baksmali v2.2.6 Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com> Updated by Connor Tumbleson <connor.tumbleson@gmail.com> usage: apktool -advance,--advanced prints advance information. -version,--version prints the version then exits usage: apktool if|install-framework [options] <framework.apk> -p,--frame-path <dir> Stores framework files into <dir>. -t,--tag <tag> Tag frameworks using <tag>. usage: apktool d[ecode] [options] <file_apk> -f,--force Force delete destination directory. -o,--output <dir> The name of folder that gets written. Default is apk.ou t -p,--frame-path <dir> Uses framework files located in <dir>. -r,--no-res Do not decode resources. -s,--no-src Do not decode sources. -t,--frame-tag <tag> Uses framework files tagged by <tag>. usage: apktool b[uild] [options] <app_path> -f,--force-all Skip changes detection and build all files. -o,--output <dir> The name of apk that gets written. Default is dist/name .apk -p,--frame-path <dir> Uses framework files located in <dir>. For additional info, see: http://ibotpeaches.github.io/Apktool/ For smali/baksmali info, see: https://github.com/JesusFreke/smali C:\Users\Administrator>cd C:\Users\apk Located folder C:\Users\apk Located folder>apktool d chelaile.apk I: Using Apktool 2.4.0 on chelaile.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... S: WARNING: Could not write to (C:\Users\Administrator\AppData\Local\apktool\framework), using C:\Users\Administrator\AppData\Local\Temp\ instead... S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable I: Loading resource table from file: C:\Users\Administrator\AppData\Local\Temp\1.apk I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Baksmaling classes2.dex... I: Baksmaling classes3.dex... I: Baksmaling classes4.dex... I: Baksmaling assets/AdDex.3.1.0.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files...
Get the folder chelaile, which has the following files:
II. Finding and Modifying
Here it's purely sensory.
Android Manifesr.xml Find <category android: name="android.intent.category.LAUNCHER"/>
Guess that the startup page should be SplashActivity as the object of this modification
=> SplashActivity.smali finds sget p1, Ldev/xesam/chelaile/core/R $layout; - > cll_act_splash:I
Guess the corresponding layout file is cll_act_splash
=> cll_act_splash.xml found that the custom component GuideView was used, and the default setting was go. In smali file, invoke-virtual {v0, v1}, Ldev/xesam/chelaile/app/module/func/GuideView; - > setVisibility (I) V, further guess is that it will appear only after the first boot.
=> GuideView.smali finds sget p2, Ldev/xesam/chelaile/core/R $layout; - > cll_act_guide:I, guess the corresponding layout file is cll_act_guide.xml
=> The three ImageView s in cll_act_guide.xml should be three points.
According to android:src="@drawable/indicate_dot", the corresponding material is obtained and saved directly.
Delete android:padding="5.0dip" (because the changes here cause other elements in the page to change in display)
3. Repackaging
Command format: apktool b [folder you just got] - o [output file name]
C:\Users\apk Located folder>apktool b chelaile -o newcll.apk
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_assets folder into assets.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (C:\Users\Administrator\AppData\Local\apktool\framework), using C:\Users\Administrator\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: warning: string 'cll_aboard_user_contribution_empty_desc' has no default translation.
W: warning: string 'rc_voice_dialog_cancel_send' has no default translation.
W: warning: string 'rc_voice_dialog_swipe' has no default translation.
W: warning: string 'rc_voice_dialog_time_short' has no default translation.
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
There are some warning, but it's not a big problem. The first time I use it, I don't have much trouble with him.
I got an apk here, but it can't be used. I need a signature to install it properly.
IV. Re-signature
Resigned with Auto-sign, here refers to a blog, the original link: https://blog.csdn.net/sxk874890728/article/details/80486223
Download and unzip Auto-sign, and get the following files under the auto-sign folder
Copy the newcll.apk from the previous step into the decompressed auto-sign folder and execute the command:
java -jar signapk.jar testkey.x509.pem testkey.pk8 newcll.apk cll_signed.apk
You get the final installable apk