Recompiling Framework-miui-res.apk

Discussion in 'Question & Answers' started by helion, Nov 29, 2012.

  1. 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:
    And edit res/values/arrays.xml and add a ONLY line:


    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
     
  2. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    apktool.yml:

    version: 1.4.3
    apkFileName: framework-miui-res.apk
    isFrameworkApk: true
    usesFramework:
    ids:
    - 1
    - 2
    - 3
    - 4
    - 5
     
  3. That's mi apktool.yml now

    Output of compilation

    But the modded.apk still smaller than original

    I'm going to download that apktool version
     
  4. With Apktool 1.4.3 gives me that:
     
  5. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas
    Because it couldn't find those frameworks. You have to install them.
     
  6. I have that installed, I need any other?
     
  7. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    3, 4, 5 missing
     
  8. Oh, I've noticed that, where did I get that? There aren't more .apk in /system/framework
     

Share Our Site