- Nov 29, 2012
- 5
- 21
Hi, I have a HTC Pyramid, I'm using a JB ROM with MIUI 2.11.23 and I'm trying to translate it.
I've added the valuesxx to all sys apks, but the desired lang does not appear in the Language settings.
So, I'm trying to recompile Framework-miui-res
I've done that using aapt and ApkTool.jar from here:
So in apktool/framework I have now
Well, I decompile framework-miui-res:
Saved the file and recompile framework-miui-res
I'm scared with that "Could not find sources", What's missing here?
If I push the file to the phone, clear chache and dalvik, it bootlops
Regards and thanks all
I've added the valuesxx to all sys apks, but the desired lang does not appear in the Language settings.
So, I'm trying to recompile Framework-miui-res
I've done that using aapt and ApkTool.jar from here:
E:\MIUI\manual>ls
aapt.exe com.htc.resources.apk framework-res.apk
apktool.jar framework-miui-res.apk
E:\MIUI\manual>E:\MIUI\manual>java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\Christian\apktool\framework\1.apk
E:\MIUI\manual>java -jar apktool.jar if framework-miui-res.apk
I: Framework installed to: C:\Users\Christian\apktool\framework\6.apk
E:\MIUI\manual>java -jar apktool.jar if com.htc.resources.apk
I: Framework installed to: C:\Users\Christian\apktool\framework\2.apk
So in apktool/framework I have now
804K Nov 29 18:47 1.apk
1.6M Nov 29 18:47 2.apk
252K Nov 29 18:47 6.apk
Well, I decompile framework-miui-res:
And edit res/values/arrays.xml and add a ONLY line:E:\MIUI\manual>java -jar apktool.jar d framework-miui-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Christian\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
<string-array name="supported_locale">
<item>zh_CN</item>
<item>zh_TW</item>
<item>en_US</item>
<item>ru_RU</item>
<item>uk_UA</item>
<item>es_ES</item>
</string-array>
Saved the file and recompile framework-miui-res
E:\MIUI\manual>java -jar apktool.jar b framework-miui-res modded.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'christmas_dad' has no default translation in E:\MIUI\manu
al\framework-miui-res\res; found: en_GB en_US es_ES
aapt: warning: string 'description_modifiedtime' has no default translation in E
:\MIUI\manual\framework-miui-res\res; found: en_GB en_US es_ES
aapt: warning: string 'perm_use_pin_security' has no default translation in E:\M
IUI\manual\framework-miui-res\res; found: en_GB en_US es_ES
I: Building apk file...
I'm scared with that "Could not find sources", What's missing here?
If I push the file to the phone, clear chache and dalvik, it bootlops
Regards and thanks all