MULTI MIUI Multi Lang 2.9.21 [JB & ICS]


Status
Not open for further replies.
Was there an update regarding Miui stats? It keeps popping up every now and then. This didn't happen on regular rom?
 
Hi iBotPeaches, I have problem with Vietnamese language. System alert System UI is stopped abruptly and missing status bar. Can you show me how to debug and fix that errors. Thanks a lot!
 
Hi iBotPeaches, I have problem with Vietnamese language. System alert System UI is stopped abruptly and missing status bar. Can you show me how to debug and fix that errors. Thanks a lot!

post a logcat.... when app crashes, press send to MIUI - menu - copy..
 
Thansk you. Here is my log:
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } in com.android.systemui.statusbar.policy.BatteryController@416f5dd0
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:737)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4441)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.util.UnknownFormatConversionException: Conversion: .
at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2304)
at java.util.Formatter$FormatSpecifierParser.parsePrecision(Formatter.java:2372)
at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2346)
at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2281)
at java.util.Formatter.doFormat(Formatter.java:1069)
at java.util.Formatter.format(Formatter.java:1040)
at java.util.Formatter.format(Formatter.java:1009)
at java.lang.String.format(String.java:1998)
at android.content.res.Resources.getString(Resources.java:365)
at android.content.Context.getString(Context.java:299)
at com.android.systemui.statusbar.policy.BatteryController.updateIconView(BatteryController.java:87)
at com.android.systemui.statusbar.policy.BatteryController.onReceive(BatteryController.java:75)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
... 9 more
 
Was there an update regarding Miui stats? It keeps popping up every now and then. This didn't happen on regular rom?
After flash the multilanguage pack (italian) I have the same problem...the notification of "miui stats send" occasionally appears in the status bar...I tried to uncheck the "active reporting" and clear the data of the app and for the moment the notification is not yet appeared...I'll see if it comes back...

Inviato dal mio Galaxy Nexus con Tapatalk 2
 
After flash the multilanguage pack (italian) I have the same problem...the notification of "miui stats send" occasionally appears in the status bar...I tried to uncheck the "active reporting" and clear the data of the app and for the moment the notification is not yet appeared...I'll see if it comes back...

Inviato dal mio Galaxy Nexus con Tapatalk 2
I have found the problem I think. Will test once I get internet at home.

No Update for Mi-one plus.

It was cancelled till boot-loop issue is fixed.
 
  • Like
Reactions: marcoperro74
It was cancelled till boot-loop issue is fixed.

Hi,

I've just decompiled the framework-miui-res.apk and framework-res.apk from miuiandroid_lang_mione_plus-2.9.14.zip:

Code:
e:\firmware\decompile>java -jar apktool.jar d -d -f framework-miui-res.apk framework-miui-res
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Dokumente und Einstellungen\Administrator\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-ru-xhdpi/resource_preview_empty.png
S: Could not decode file, replacing by FALSE value: drawable-ru-xhdpi/resource_preview_bg.png
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
 
e:\firmware\decompile>java -jar apktool.jar d -d -f framework-res.apk framework-res
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: raw-es-ES/nodomain.html
S: Could not decode file, replacing by FALSE value: raw-es-ES/incognito_mode_start_page.html
S: Could not decode file, replacing by FALSE value: raw-es-ES-xlarge/incognito_mode_start_page.html
S: Could not decode file, replacing by FALSE value: raw-hu-xlarge/incognito_mode_start_page.html
S: Could not decode file, replacing by FALSE value: raw-es-ES/loaderror.html
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

Could be that messages the reason of the mione boot loop?
 
There are strings which contain variables %d, sometimes more $1%s etc.

%s = string
%d = int/decimal

If there is more than 1 it goes $1%s, $2%s to know which var is where. Point being, one of yours is wrong. Its trying to inject / not-inject a variable into a string that is wrong. Diff MiuiSystemUI to our REPO (en) and just look for a string that has variables that is different on your XML.

EX It may be

<string name="test"> This is a %s variable </string>

then it your REPO it might be

<string name="test"> This is variable </string>

See the problem? Its missing the variable. Look for missing or extra variables.
 
iBot, it seems that miuiandroid_lang_mione_plus-2.9.14.zip is just corrupted:

Code:
e:\firmware\decompile\test>java -jar apktool.jar d -d AntiSpam.apk AntiSpam.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
e:\firmware\decompile\test>java -jar apktool.jar d -d apktool.jar apktool.jar_out
I: Copying assets and libs...
 
e:\firmware\decompile\test>java -jar apktool.jar d -d ApplicationsProvider.apk ApplicationsProvider.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
e:\firmware\decompile\test>java -jar apktool.jar d -d Backup.apk Backup.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
e:\firmware\decompile\test>java -jar apktool.jar d -d BackupRestoreConfirmation.apk BackupRestoreConfirmation.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
e:\firmware\decompile\test>java -jar apktool.jar d -d Bluetooth.apk Bluetooth.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
Thanks a lot! I'm just look around and diff my xml with your repo and I'm found it
Your code:
Code:
<string name="accessibility_battery_level">Battery %d percent.</string>
And of me:
Code:
<string name="accessibility_battery_level">Đang sạc %d %.</string>

Can't change percent to %??
And now I want recompile that apk to install my phone.
Can you show me a ways to build apk. Current I'm using apktool to build and I get new apk in folder /dist . But when I'm using this apk to copy and replace it in /system/app in my phone and it not work. Please help me or send me a document for building and install apk,

Thanks!
 
It just finished uploading 12 seconds ago, so thats probably why.

@cat_baxter.

Don't use the -d (debug) flag. You don't need that flag at all for decompile/recompile of APKs.
 
Quoting isn't working for me right now, but try to escape the percent sign. Its one of these. I don't remember.

\%%

\%
 
Do you mean corrupted miuiandroid_lang_mione_plus-2.9.14.zip? :)

Awful downloading speed ~3 kb/sec. Like a 2400 Modem....

There is like 5 Goo servers. Just stop the DL and go again.

As for your apktool work. Don't use -d mode. Thats for debugging and its highly experimental and broken.
 
apktool doesn't work ever without -d:

Code:
e:\firmware\decompile\test>java -jar apktool.jar d AntiSpam.apk AntiSpam.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
 
Quoting isn't working for me right now, but try to escape the percent sign. Its one of these. I don't remember.

\%%

\%

Thanks so much! One more question

And now I want recompile that apk to install my phone.
Can you show me a ways to build apk. Current I'm using apktool to build and I get new apk in folder /dist . But when I'm using this apk to copy and replace it in /system/app in my phone and it not work. Please help me or send me a document for building and install apk,

Thanks!
 
apktool doesn't work ever without -d:

Code:
e:\firmware\decompile\test>java -jar apktool.jar d AntiSpam.apk AntiSpam.apk_out
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
        at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)
Very wrong. Use apktool v1.5.0 it has support for ics and higher. Stop using whatever version your on.

You only get magic value errors on older than 1.4.3

Sent from MIUIAndroid Phone.
 
@IBotPeaches - Some strange occurances when trying to build Phone.apk (CRESPO) from the current translation pack (Phone.apk extracted from default build decompiles and builds just fine give or a take a few warnings) however the Phone.apk extracted from 2.9.21 translation pack fails to compile at all.

I'm using the latest 1.50 apktool and latest aapt.exe from yourself...


Multiple error's of this nature:

aapt: warning: string 'gsm_umts_network_preferneces_summary' has no default translation in C:\Phone\res; found: ar cs da de el en es hu iw nl pl ru sk vi

....

brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Username\AppData\Local\Temp\APKTOOL6749398966320634774.tmp, -I, C:\Users\Username\apktool\framework\1.apk, -I, C:\Users\Username\apktool\framework\6.apk, -S, C:\Users\Username\Desktop\completerom\decompiledframework\Phone\res, -M, C:\Users\Username\Desktop\completerom\decompiledframework\Phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Username\AppData\Local\Temp\APKTOOL6749398966320634774.tmp, -I, C:\Users\Username\apktool\framework\1.apk, -I, C:\Users\Username\apktool\framework\6.apk, -S, C:\Users\Username\Desktop\completerom\decompiledframework\Phone\res, -M, C:\Users\Username\Desktop\completerom\decompiledframework\Phone\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more

Any suggestions?
 
Keypad shows both English and Russian Cyrillic chars.Tested on Greek and English.Anyone had the same prob?
I decompiled contacts.apk and found out that the eng-rus image is located within the drawable-UK folder.

On the road using my HOX
 
  • Like
Reactions: ingbrzy
Status
Not open for further replies.