Help| FC when pushing framework SG2 after sidebar change


Mar 31, 2011
28
0
11
#1
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
 
Mar 31, 2011
28
0
11
#6
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?
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,874
21,011
322
#7
framework-res.apk dont need that fix.. just framework-miui-res.apk... and yes its that...
 
Mar 31, 2011
28
0
11
#12
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!
 
Mar 31, 2011
28
0
11
#13
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..:)