Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apktool adds android:compileSdkVersion="23" android:compileSdkVersionCodename="6.0-2438415" #2331

Closed
mollaxx1 opened this issue Apr 18, 2020 · 3 comments

Comments

@mollaxx1
Copy link

Information

  1. Apktool Version (apktool -version) - 2.4.1. the latest
  2. Operating System (Mac, Linux, Windows) - Mac
  3. APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat

Include stacktrace here

Steps to Reproduce

  1. apktool d xxx.apk
  2. apktool b xxx -o yyy.apk

for every apk i tried , apktool always adds ( android:compileSdkVersion="23" android:compileSdkVersionCodename="6.0-2438415" ) to the tag in AndroidManifest.xml .

even when i change it or delete it , the built apk always comes with the same ( android:compileSdkVersion="23" android:compileSdkVersionCodename="6.0-2438415" )

after some research i found these exact api numbers in 1.apk located in apktool/framework/1.apk

i tried some older versions , but always the same problem

is it normal ? or should i add some args to the commands

thanks

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)

APK

If this APK can be freely shared, please upload/attach a link to it.

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? yes
  2. If you are trying to install a modified apk, did you resign it? no
  3. Are you using the latest apktool version? yes
@Ticklefish
Copy link

I don't think this is a problem. It's been mentioned before (#1909) but, if I understand correctly, it's nothing you need to worry about. As long as your recompiled file installs and runs, then it's all good.

@iBotPeaches
Copy link
Owner

This is intentional. If the value cannot be pulled from existing manifest files (to persist with no change), we fallback to the framework files (1.apk) as these are required build time properties now.

Closing.

@karpiyon
Copy link

This is strange as i specifically specify android:compileSdkVersion="20" but after apktool b... it turn is to "23".
I suspect that version 23 may block app permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants