question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid sdkInfo value in apktool.yml

See original GitHub issue

Information

  1. Apktool Version (apktool -version) - 2.4.1
  2. Operating System (Mac, Linux, Windows) - Windows
  3. 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
iBotPeachescommented, Jun 27, 2020

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.

0reactions
iBotPeachescommented, Jun 27, 2020

Thanks, this is because there is a new param compileSdkVersion added into uses-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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found