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

Problem compiling MIUI v6 System-APKs #806

Closed
iBotPeaches opened this issue Mar 18, 2015 · 6 comments
Closed

Problem compiling MIUI v6 System-APKs #806

iBotPeaches opened this issue Mar 18, 2015 · 6 comments

Comments

@iBotPeaches
Copy link
Owner

Original issue 697 created by subbershnoote on 2014-11-06T09:57:47.000Z:

What steps will reproduce the problem?

  1. Decompile an APK from latest MIUI v6 for Xiaomi Mi2s aries.
  2. keep it unchanged or change something (doesnt care)
  3. Recompile ( ERROR )!

What is the expected output? What do you see instead?

I expect the compilation to work, but I get following error:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_5372673428512891488.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 500090, --version-name, MIUI_V6_小米内置版_20141027_b2, -F, /tmp/APKTOOL5113948002093632877.tmp, -0, arsc, -I, /root/apktool/framework/1.apk, -I, /root/apktool/framework/8.apk, -S, /mnt/hgfs/R/test/Email/res, -M, /mnt/hgfs/R/test/Email/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_5372673428512891488.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 500090, --version-name, MIUI_V6_小米内置版_20141027_b2, -F, /tmp/APKTOOL5113948002093632877.tmp, -0, arsc, -I, /root/apktool/framework/1.apk, -I, /root/apktool/framework/8.apk, -S, /mnt/hgfs/R/test/Email/res, -M, /mnt/hgfs/R/test/Email/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_5372673428512891488.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 19, --version-code, 500090, --version-name, MIUI_V6_小米内置版_20141027_b2, -F, /tmp/APKTOOL5113948002093632877.tmp, -0, arsc, -I, /root/apktool/framework/1.apk, -I, /root/apktool/framework/8.apk, -S, /mnt/hgfs/R/test/Email/res, -M, /mnt/hgfs/R/test/Email/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
... 6 more

Erroc occurs on most System APKs of MIUI v6 for Mi2, but not on all!

What version of the product are you using? On what operating system?
Im using latest apktool.jar, built it myself using git clone yesterday !

Tested on:
Ubuntu 14.04 x64 java version "1.7.0_65"
Ubuntu 14.04 x32 java version "1.7.0_65"
Windows 8.1 x64

Please provide any additional information below.

@iBotPeaches
Copy link
Owner Author

Comment #1 originally posted by connor.tumbleson on 2014-11-06T22:31:34.000Z:

Please upload a bundle of MIUI frameworks and associated apks. I can't verify / test what I don't have :)

@iBotPeaches
Copy link
Owner Author

Comment #2 originally posted by subbershnoote on 2014-11-07T07:37:08.000Z:

I install following as framework:
miui.apk
MiuiFramework.apk
framework-res.apk
framework-ext-res.apk

@iBotPeaches
Copy link
Owner Author

Comment #3 originally posted by subbershnoote on 2014-11-07T07:38:40.000Z:

AMAPNetworkLocation recompiling works !!!
AntiSpam.apk recompiling throws the ERROR
Email.apk recompiling throws the ERROR

@iBotPeaches
Copy link
Owner Author

Comment #4 originally posted by subbershnoote on 2014-11-07T08:00:15.000Z:

I think I got another hint, it seems that all APK to a specific filesize (~ 350 kb) work!
Bigger APKs get the compilation error ...

My java command is java -jar /usr/local/bin/apktool.jar b -f APKFILE

@iBotPeaches
Copy link
Owner Author

Comment #5 originally posted by subbershnoote on 2014-11-12T13:26:08.000Z:

Do you have an idea what could cause the problem ?

@iBotPeaches
Copy link
Owner Author

Closing MIUI bugs.

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

1 participant