Replies: 19 comments 2 replies
-
I have same issue. Also after compile the app and open it is crashing. |
Beta Was this translation helpful? Give feedback.
-
Not sure how we regressed here. I have a test that ensures |
Beta Was this translation helpful? Give feedback.
-
I'm using the latest aapt.exe from build-tools v28.0.3. I can confirm that the compileSDK is changed to 23. Is there any tag to force the version? |
Beta Was this translation helpful? Give feedback.
-
Same problem here, compileSdk changed from "9" to "6.0-2438415" with apkTool 2.3.4 or 2.4.0. |
Beta Was this translation helpful? Give feedback.
-
Facing same issue. |
Beta Was this translation helpful? Give feedback.
-
Same exact issue, |
Beta Was this translation helpful? Give feedback.
-
I have the same problem and it doesn't work properly after compiling the app |
Beta Was this translation helpful? Give feedback.
-
Reasons and solutions ? |
Beta Was this translation helpful? Give feedback.
-
I have found that the version used ("6.0-2438415") is taken from the version of the framwork apk (1.apk).
I don't know why all last version of apkTool have a framework with this version but if I use another framwork (take from an emulator device). It will use the version of this framework. And I don't know if it is better to take the version of the framwork or keep the version of original apk. |
Beta Was this translation helpful? Give feedback.
-
I just want to raise awareness of this issue because i am facing the same and it causes my App to immediately crash after rebuilding it. Is there any proposal on how it could be fixed? |
Beta Was this translation helpful? Give feedback.
-
Old
Rebuilt
Indeed changed (aapt1). Let me try aapt2.
Nope, still busted. Marking as bug. |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this issue? |
Beta Was this translation helpful? Give feedback.
-
Not that I see. Still open and waiting to be worked on. |
Beta Was this translation helpful? Give feedback.
-
It seem this issue happened on Mac |
Beta Was this translation helpful? Give feedback.
-
I took a look at this and debating closing as no-fix. Apktool by nature is using different build tools to rebuild the application. Forging aapt/aapt2 to lie about the build tool version, even though it may be built with different/newer tools just seems wrong. Removing "bug", adding "feature". |
Beta Was this translation helpful? Give feedback.
-
This issue seems still exist in 2.6.1 |
Beta Was this translation helpful? Give feedback.
-
Looks like a new aapt2 feature came out that allows you to skip adding this metadata entirely - #3204 |
Beta Was this translation helpful? Give feedback.
-
Have a PR up that simply removes:
This seems like best approach. Its a simple aapt2 flag and prevents Apktool changing the value - it just removes it. Since the alternative is continuing to patch aapt2 to store an old value and re-use it requires effort - this seems like the best path. However, if folks feel that they should have a modified value vs no value. I'll keep it open for a few days to gather feedback. |
Beta Was this translation helpful? Give feedback.
-
This should be resolved in upcoming release. This is how it works now:
aapt2 only. |
Beta Was this translation helpful? Give feedback.
-
Information issue #1852 #1909
After decompiling and recompiling with apktool, the contents of the AndroidManifest.xml file are changed as follows.
0. 2.3.3 version works as normal.
apktool -version
) - 2.3.4 & 2.4.0Steps to Reproduce
AndroidManifest.xml -> android:compileSdkVersion="23"
compileSdkVersion changed
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.
sample_compilesdkversion.zip
Questions to ask before submission
apktool d
,apktool b
without changing anything? Yes.Beta Was this translation helpful? Give feedback.
All reactions