[BUG]removing/moding line in smali
sac23 opened this issue · comments
sac23 commented
Information
- Apktool Version (
apktool -version
) - - Operating System (Mac, Linux, Windows) -
- APK From? (Playstore, ROM, Other) -
- Java Version (
java --version
) -
Stacktrace/Logcat
newest apktool
windows 11 pro
java version 22
Include stacktrace here
this is what it puts out on smali files just a example so every time u decompile u always get different ui smali
.source "qb/78508661 93c0efc0d7d562447c9c41a565d17c904fa52402deecd31227788b992f7ab282"
### Steps to Reproduce
1. `apktool `
apktool -d framework-res.apk
apktool d SystemUI.apk
### Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(`.apks` that live in `/system/framework` or `/system/priv-app`)
samsung s23 6.1
http://www.mediafire.com/folder/56amv5oe9roo7xx,9v86a96w1u32seq/shared
### APK
If this APK can be freely shared, please upload/attach a link to it.
http://www.mediafire.com/folder/56amv5oe9roo7xx,9v86a96w1u32seq/shared
### Questions to ask before submission
1. Have you tried `apktool d`, `apktool b` without changing anything?
3. If you are trying to install a modified apk, did you resign it?
4. Are you using the latest apktool version?
Connor Tumbleson commented
I'm not understanding this report. Are you saying the disassembled smali code changes between your disassembly attempts?
sac23 commented
sac23 commented
thank u for looking at this this is a new thing that started happening when 6.0 came out
Connor Tumbleson commented
➜ 3556 apktool if framework-res.apk -t 3556
I: Sparsely packed resources detected.
I: Framework installed to: /home/ibotpeaches/.local/share/apktool/framework/1-3556.apk
➜ 3556 apktool d SystemUI.apk -t 3556 -o 1
I: Using Apktool v2.9.2-27-5422bd70-SNAPSHOT on SystemUI.apk with 8 thread(s).
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1-3556.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
➜ 3556 apktool d SystemUI.apk -t 3556 -o 2
I: Using Apktool v2.9.2-27-5422bd70-SNAPSHOT on SystemUI.apk with 8 thread(s).
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1-3556.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
➜ 3556 diff 1 2
➜
➜ 3556 diff -bur 1 2
➜
I am not replicating this. With 2 different disassembles the smali contents are exactly the same.