-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[BUG] Decode and build apk but crashed when launch it #3710
Comments
Well thats odd. If you use it with |
yes, if I use it with |
@iBotPeaches has any new discoveries |
@iBotPeaches I have found that cause, here: // In case we have no resources. We should store the minSdk we pulled from the source opcode api level
if (!mApkInfo.hasResources() && mMinSdkVersion > 0) {
mApkInfo.setSdkInfoField("minSdkVersion", Integer.toString(mMinSdkVersion));
} Add a condition likes: // In case we have no resources. We should store the minSdk we pulled from the source opcode api level
if (!(mApkInfo.hasResources() && mConfig.forceDecodeManifest == Config.FORCE_DECODE_MANIFEST_FULL)
&& mMinSdkVersion > 0) {
mApkInfo.setSdkInfoField("minSdkVersion", Integer.toString(mMinSdkVersion));
} If not decode manifest, we can not get minSdkVersion. So build the dex with incorrect minSdkVersion(dex version). |
@wangnianwu - You are welcome to open a PR with some reasoning. Its tough to follow samples in issues as it might not reflect the present state / context of code around it. |
Information
apktool -version
) - latestjava --version
) - java 11.0.16Stacktrace/Logcat
Steps to Reproduce
apktool d
andapktool b
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.
app-debug.apk.zip
please remove the suffix '.zip' from this file name, it's a demo apk.
Questions to ask before submission
apktool d
,apktool b
without changing anything?yes
yes, install it successfuly, but crashed when launch
yes, clone the latest source code and build it.
The text was updated successfully, but these errors were encountered: