Invalid sdkInfo value in apktool.yml
See original GitHub issueInformation
- Apktool Version (
apktool -version
) - 2.4.1 - Operating System (Mac, Linux, Windows) - Windows
- APK From? (Playstore, ROM, Other) - Other
APK
https://drive.google.com/file/d/1TpWgjy5O3BU5SEcYokkoYiP3GziVLKpd/view?usp=sharing
Problem
After decoding the attached APK, the sdkInfo
property in apktool.yml
file is set to null
.
However, both AndroidManifest.xml
and aapt dump badging
show proper values.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Apktool - Documentation
I: Decoding resources... I: Loading resource table from file: 1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name= ...
Read more >How does Android system find sdk info in app that installed on ...
The following command will print out the xmltree of the android manifest inside an apk file: aapt dump xmltree file.apk AndroidManifest.xml.
Read more >[TOOL] Tickle My Android - Decompile & Recompile With Ease
Open apktool.yml and delete all lines named res/drawable... under ... '1' renameManifestPackage: null sdkInfo: minSdkVersion: '28' ...
Read more >Debian Bug report logs - #850501 diffoscope: apktool.yml file ...
apk │ +apkFileName: 2.apk │ compressionType: false │ doNotCompress: │ - arsc │ isFrameworkApk: false │ packageInfo: null │ sdkInfo: │ ...
Read more >Android – How to increment versionCode using APKTool
open apktool.yml , increment versionCode and save ... ids: - 1 sdkInfo: minSdkVersion: '16' targetSdkVersion: '21' packageInfo: forced-package-id: '127' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like with latest aapt/aapt2 I don’t see this property used, so unsure what part of compile time it is used for. Must be some support library/gradle checks.
I’ve made a note to check again when I finish up newest binaries, but this doesn’t appear to have a flag at aapt2/aapt1 level. PR linked above.
Thanks, this is because there is a new param
compileSdkVersion
added intouses-sdk
. The system nulls out all if it encounters bad data.I’ll do some tests and push up a fix.
https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
opinion - it seems to basically act as “max”, which they deprecated.