Help| FC when pushing framework SG2 after sidebar change

Discussion in 'Question & Answers' started by nirh216, Dec 29, 2012.

  1. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    Hi,
    I'm trying to set the alphabet side index in contacts to hebrew chars.
    I'm changing the following files:

    First: in framework-miui-res.apk:
    values-en-rUS -> arrays.xml :

    Code:
    <array name="config_virtualKeyUpPattern" />
        <string-array name="alphabet_table">
            <item>\#</item>
            <item>א</item>
            <item>ב</item>
            <item>ג</item>
            <item>ד</item>
            <item>ה</item>
            <item>ו</item>
            <item>ז</item>
            <item>ח</item>
            <item>ט</item>
            <item>י</item>
            <item>כ</item>
            <item>ל</item>
            <item>מ</item>
            <item>נ</item>
            <item>ס</item>
            <item>ע</item>
            <item>פ</item>
            <item>צ</item>
            <item>ק</item>
            <item>ר</item>
            <item>ש</item>
            <item>ת</item>
            <item></item>
            <item></item>
            <item></item>
            <item></item>
        </string-array>
    Second: framework-res.apk (Only two lines!) :
    values-en-rUS -> Strings.xml :

    Code:
        <string name="fast_scroll_alphabet">" אבגדהוזחטיכלמנסעפצקרשת"</string>
        <string name="fast_scroll_numeric_alphabet">" 0123456789אבגדהוזחטיכלמנסעפצקרשת"</string>
    The steps I take:
    1. Decompile (apktool d framework-XXXX.apk)
    2. Making the above changes.
    3. Recompile (apktool b framework-XXXX)
    4. put "res" folder & resources.arsc from "framework-XXX -> build -> apk" into original framework-XXX.apk
    5. Sign apk's.
    6. pushing to phone (adb push framwork-XXX.apk /system/framework)
    7. All crashing and Settings App is crshing too...

    ** The only build warnings are: "there is no default translation for bla bla bla...".
    *** At the end of build I get Building apk... All OK.

    **** I attached the sign tool I use and the apktool I use:
    http://www.mediafire.com/?h77ex6ay50ayds7


    What the hell am I doing wrong?!....

    Please help me out... :)

    Thanks,
    Nir.

    The only thing
     
  2. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    overwrite apktool.yml by this before recompile...
     
  3. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    WOW! thanks for the very quick reply!
    where is this file path?...
    Where should I put this fix?

    MANY THANKS!!!
     
  4. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    you will see it in decompiled apk folder...
     
  5. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    Yes, I just did..will do the changes and post reply..:)

    Thanks again!!!
     
  6. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    and I assume that this is the change for the framework-res.apk
    version: 1.4.3
    apkFileName: framework-res.apk
    isFrameworkApk: true
    usesFramework:
    ids:
    - 2
    - 3
    - 4
    - 5
    - 6

    Correct?
     
  7. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    framework-res.apk dont need that fix.. just framework-miui-res.apk... and yes its that...
     
  8. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    It's now up and running but MiHome is FC along with almost every app on the phone...:/

    Edit: can you talk with google talk / chat? nirisraelh@gmail.com
     
  9. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    FYI: i'm making the changes in the values-en-rUS folder...
    I still do want English UI but with custom side letter index..:)
     
  10. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

  11. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    hmmm.. just a sec.. will paste logcat..:)
     
  12. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    it's all mixed up and there is like 2000 enteries.. too big to pasebin or here..:/

    What do I need to follow with the like you gave me for the repo?... It's hard to tell from that repo what do I need to change so the damn sidebar will work properly..:)

    isn't a simpler solution? Do I need to wipe cach / dalvik after pushing framework?

    can you upload you apktool + signing tool..?

    Thanks!
     
  13. nirh216

    nirh216Members

    Mar 31, 2011
    28
    0
    11
    well I need to go to sleep... please upload your apktool + signing tool for me..
    I can see that you are MIUI Multilang builder..
    How do you change the alphabet bar for each lang? (and for those langs like hebrew whice have fewer letters than english)?
    tell me your steps please.. maybe I'm doing something wrong here...
    I will try to continue with this tommorow...
    Thanks again for the help and good night for now..:)
     

Share Our Site