[HOWTO] Fixing Missing Letters in Alphabetical Index Bar in Contacts - Galaxy S I9000 General

One small (but still annoying) issue in Froyo's Contacts app is the disappearance of some letters in the index bar on the right:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
With some help from WinMerge, I was able to compare and track down the xml file responsible for this inside Contacts.apk. In some builds such as ZSJPD, the index bar extends onto the search bar, allowing every letter to be displayed. In most builds, the index bar starts just below the search bar, and thus is compressed even in normal view.
Fixing this requires the contents of res\layout-finger\contact_list_main.xml, found inside Contacts.apk, to be replaced by:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/listFrame" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include android:id="@id/searchView" layout="@layout/contacts_search_bar" />
<com.nemustech.tiffany.widget.TFSweepActionListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:listSelector="@drawable/list_selector" android:drawSelectorOnTop="false" android:layout_weight="1.0" />
<include layout="@layout/contacts_list_empty" />
</LinearLayout>
<com.sec.android.touchwiz.widget.TwIndexScrollView android:id="@id/indexScrollView" android:layout_width="fill_parent" android:layout_height="fill_parent" touchwiz:twIndexViewHandlePosition="right"
xmlns:touchwiz="http://schemas.android.com/apk/res/touchwiz" />
</FrameLayout>
</LinearLayout>
The above is taken from ZSJPD, with just one edit to the line
Code:
touchwiz:twIndexViewHandlePosition="[B]right[/B]"
In ZSJPD right was replaced with 1
The result:
Attached is an update.zip file for stock DXJPA containing the fixed apk, for installing using Rom Manager. I've not tested it on other Froyo builds so I'm not sure if it is fully compatible with XXJPO etc.
If it's not, hope the above info would allow others to fix this for these other firmware

Reserved for detailed tutorial

ock said:
Attached is an update.zip file for stock DXJPA containing the fixed apk, for installing using Rom Manager. I've not tested it on other Froyo builds so I'm not sure if it is fully compatible with XXJPO etc.
If it's not, hope the above info would allow others to fix this for these other firmware
Click to expand...
Click to collapse
I've tested it on XXJPO and it's working!
EDIT:
I think its not a bug, it's a useful feature zu hide "parts" if its to long...
If i open the softkeyboard, then i become "A-GH-NO-UV-Z" visible and its not a bug... its with system and let you give simply greater jump positions.
The same is visible in the full view. Your fix is scaling the quickjump-bar over the searchfield.

It works on Doc's Froyo V9 BUJP8. It clips over the search contacts box but doesn't effect it in anyway. Pretty much the same effect as the pictures you've posted. Nice work.

Can the list of letters not be editied to "not" include any letters not used? for instance I have no contacts beginning with "X" but its listed and I have 6 beginning with "W" which isnt?

thx for it, works under froyo.
I included it in my sgs tools app.
Btw: app is not translated into german..

madmackem said:
Can the list of letters not be editied to "not" include any letters not used? for instance I have no contacts beginning with "X" but its listed and I have 6 beginning with "W" which isnt?
Click to expand...
Click to collapse
That's a really conclusive idea.....

Code:
<string name="twstr_indexlist">\#ABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
I guess you could just remove X

thanks man. it works great on XXJPA. i was annoyed too by the missing letters.

Kockowan said:
That's a really conclusive idea.....
Click to expand...
Click to collapse
pawitp said:
Code:
<string name="twstr_indexlist">\#ABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
I guess you could just remove X
Click to expand...
Click to collapse
Come on guys you know what I mean, Can it be done automatically, If I add a contact called Xavier I would have to re edit the list. Can it not be auto generated so that only letters in your contact list are present, and if you add new ones it auto updates it?

e apk doesnt work on mine..
trying to install on dxjpa
could someone tell me how could i go about editing the contacts apk myself?
tried the apk manager, but cant seem to compile it back.. m i missing someting??

Thanks! Those hidden letters were really annoying!
Maybe another point: Is it possible to hide the search-bar in contacts? I prefer scrolling down the and so I don't really need it.
Would be great!

Work half way here. Contacts apk became english, first was italian, and if you try to slide on the left after selecting a letter it don't search in the subcategory. Ex: wanna search for john select j then slide on the left and select O. It go on O label. Sry for bad english
Sent from my GT-I9000 using XDA App

Great work, I too found the missing letters an anomaly... You mod has fixed it perfectly!
Know of anyone who has fixed the double capital bug when tap-typing with Swype Froyo?
Sent from my GT-I9000 using XDA App

Fr4gg0r said:
thx for it, works under froyo.
I included it in my sgs tools app.
Btw: app is not translated into german..
Click to expand...
Click to collapse
where is this on the sgs app?

there is another method if you want, just download from market "SGS Tools 4.0" and installi it, open menu and select "Upgrade Stock apps" -> "Modded Contacts app showing all letters"
Enjoy

ale0crysis said:
there is another method if you want, just download from market "SGS Tools 4.0" and installi it, open menu and select "Upgrade Stock apps" -> "Modded Contacts app showing all letters"
Enjoy
Click to expand...
Click to collapse
modded contacts app is not working with froyo JPA

i couldn't get the app to work either, even after reboot.
do i need to manually change something back? there is no undo option in the app?

ale0crysis said:
there is another method if you want, just download from market "SGS Tools 4.0" and installi it, open menu and select "Upgrade Stock apps" -> "Modded Contacts app showing all letters"
Enjoy
Click to expand...
Click to collapse
Works with indian froyo. Thanx
Sent from my GT-I9000 using XDA App

galaxy44 said:
i couldn't get the app to work either, even after reboot.
do i need to manually change something back? there is no undo option in the app?
Click to expand...
Click to collapse
Enter this in a shell
su
busybox mount -o remount,rw /system
busybox cp -f /sdcard/sgstools/Contacts* /system/app/

Related

[Tutorial ] How to change Lock Screen Background on Framework-res.apk

Tools needed :
Apk manager 4.9 (using options for each step )
Notepad++( Hexadecimal editor for *.xml )
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. pull /system/framework/framework-res.apk (option 0)
2. Decompile apk (option 9)
3. add your pic to drawable-hdpi (must be a .png) and resize it as 480x800 ( if not, the picture will be stretched to fit in the resolution ) _ you can rename the file lockscreen_background.png for example
4. open the file res\layout\keyguard_screen_tab_unlock.xml with notepad++, and find the line
Code:
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
change to
Code:
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="@drawable/lockscreen_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
5. compile the apk (option 11)
(when recompile do)
5.1. Hit yes to "system app".
5.2. Hit yes to restoring the files:
6. -Open the "keep" folder and delete resources.arsc and res\layout\keyguard_screen_tab_unlock.xml
7. when it is done, rename unsignedframework-res.apk to framework-res.apk and put it back to /system/framework/ again (you can just drag it to the zip file with 7zip)
Code:
[COLOR="DarkOrange"]=============Lockscreen Note==================
Once you have my theme, no needs to follow my Tuto as i already coded the xml for the lockscreen
You only need a picture 480 x 800
Open my zip file theme with 7zip and drag the picture in :
Framework > framework-res.apk > res > drawable
Then go back and 7zip will ask you to apply the changes on the apk.
All done, enjoy it!
===========================================[/COLOR]
Enjoy it
Thank you
I was wanted to know this tip.
I'll be make my theme apply this tip.
tried to change picture on LeeDroid 3.0.2 and stuck on splash screen
This is cool, but will it have to be changed every time you change your wallpaper? And on a completely unrelated note, do you have a Lion cub as a pet? (looking at the lock screen and one of your home screens)
Ignore.z said:
tried to change picture on LeeDroid 3.0.2 and stuck on splash screen
Click to expand...
Click to collapse
If you are stuck on splash screen, must be something wrong during the compilation of the apk _ did you tried to modify *.png9 files as well ?
Matty Matt said:
This is cool, but will it have to be changed every time you change your wallpaper? And on a completely unrelated note, do you have a Lion cub as a pet? (looking at the lock screen and one of your home screens)
Click to expand...
Click to collapse
Unfortunately, until some dev with free time wants to launch an app' for that, yes, we will need to changed the background _ only the background as the setup @drawable/whatever you named your picture.png doesnt change.
Hope it helps
Something is wrong when i try to open the xml file with N++ ..i've upload my xml file,could you edit it just like u said in step 4??? ty
Yorzua said:
If you are stuck on splash screen, must be something wrong during the compilation of the apk _ did you tried to modify *.png9 files as well ?
Click to expand...
Click to collapse
I only changed picture
aca85 said:
Something is wrong when i try to open the xml file with N++ ..i've upload my xml file,could you edit it just like u said in step 4??? ty
Click to expand...
Click to collapse
Sorry my friend, wrong file
You must edit keyguard_screen_tab_unlock.xml
Try again with the correct file, follow the steps and everything should be fine as it working for me and many people more
Ignore.z said:
I only changed picture
Click to expand...
Click to collapse
I need more infos in order to help you :
did you start from a stock framework.apk ?
did you get any erros during decompile/compile ?
did you change only the picture or did you modify the required xml too ?
Yorzua said:
I need more infos in order to help you :
did you start from a stock framework.apk ?
did you get any erros during decompile/compile ?
did you change only the picture or did you modify the required xml too ?
Click to expand...
Click to collapse
yes, I started from stock apk
i had no errors
i put new picture (lockscreen_background.png) to drawable-hdpi and modify the xml like you write
lockscreen_background.png to drawable folder
Ignore.z said:
yes, I started from stock apk
i had no errors
i put new picture (lockscreen_background.png) to drawable-hdpi and modify the xml like you write
Click to expand...
Click to collapse
Second error :
lockscreen_background.png MUST be placed in drawable and not in drawable-hdpi
Read carefully my post
Please click on the thanks button for this one
Thanks a lot, it help me a lot
It's awesome! Thanks the information.
Sent from my HTC Desire using XDA App
Yorzua said:
Second error :
lockscreen_background.png MUST be placed in drawable and not in drawable-hdpi
Read carefully my post
Please click on the thanks button for this one
Click to expand...
Click to collapse
still not working
Ignore.z said:
still not working
Click to expand...
Click to collapse
i helped you three times on three posts and no one thanks from you...
it is working perfectly for everyone _ start to thanks people for their help and maybe i will help you modding directly your file for you
Thanks for the hint Do you know maybe some more (I am building a theme just like you)?
Do you know KBanause's threat http://forum.xda-developers.com/showthread.php?p=9978779#post9978779? Maybe he could add your howto to the collection.
affmalg said:
Thanks for the hint Do you know maybe some more (I am building a theme just like you)?
Do you know KBanause's threat http://forum.xda-developers.com/showthread.php?p=9978779#post9978779? Maybe he could add your howto to the collection.
Click to expand...
Click to collapse
I thanked you on your theme thread
i knew already and thaked too the great tuto of Kbanause which i recomend for those who want to start theming.
KBanause Guide for Android 2.3
I am preparing a new tuto which could be add to it :
[Tutorial]How to edit smali files
If you like my work, please hit the thanks button here
Apk manager 4.9 and Notepad++
Apk manager 4.9 and Notepad++ ==> links for download added on the first post
works great, good tutorial
thanxxxx cron999

【Mod】【GB】 Remove ATT tethering warning message

I removed the tethering warning from settings.apk and am posting the instructions.
" A Tethering/Mobile Hotspot plan is required to use this service. Please go to att.com/myWireless or dail *611 if you do not already have this service provisioned. "
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Decompile Settings.apk
edit xml "Settings.apk\res\values\strings.xml"
3rd last line "<string name="wifi_ap_message">Tethering/Mobile Hotspot.. STUPID FRIGGIN MESSAGE</string>
Recompile
I used apk manager
copy file to 'projects' folder
run bat script
option 10
find framework-res.apk from same build and drag to 'apk manager' cmd window
press enter
edit xml
recompile option 11
y for system app
y for add files
dont need to delete any
press enter
Winning!
of course you must still remove "tethering manager-2.apk" from system/app
here is kk4 already done!
copy to system/app
reboot to recovery
wipe cache and delvik
reboot
see the other settings mod : [Mod 2][GB] Remove "Software Update" (ATT) from settings.apk
i fail to undetstand what is this doing in dev section. decompiling an apk and editing a string is development? you can also use one thread for all "mods" instead of posting one for each
and i phail to understand why you question my posts so often...
do you still have a captivate?
TRusselo said:
and i phail to understand why you question my posts so often...
do you still have a captivate?
Click to expand...
Click to collapse
i wish i could like this post.
great little fix. every bit helps
oh, and hes just jealous, is all
biggem001 said:
i wish i could like this post.
great little fix. every bit helps
oh, and hes just jealous, is all
Click to expand...
Click to collapse
you could always press "thanks"
and can "rate thread" however many stars you think it deserves.
at the top of the thread by the title on the right is a spot to rate the thread, in the brown bar.
These 30 second things would probably be better served and create less clutter if they were all in one thread.
its just 2 things, that would be better "found" by "searching" better this way.
2 things, one time. dont need everyone coming down on this.
you can really tell who is stuck at home with the wife and kids on a saturday night...
MikeyMike01 said:
These 30 second things would probably be better served and create less clutter if they were all in one thread.
Click to expand...
Click to collapse
+1 and specially when these different "mod" threads are created by somone who has always followed xda rules
TRusselo said:
and i phail to understand why you question my posts so often...
do you still have a captivate?
Click to expand...
Click to collapse
nope i dont have a captivate. going by xda rules am i not allowed to post in this section?
TRusselo said:
I removed the tethering warning from settings.apk and am posting the instructions.
" A Tethering/Mobile Hotspot plan is required to use this service. Please go to att.com/myWireless or dail *611 if you do not already have this service provisioned. "
View attachment 796351
Decompile Settings.apk
edit xml "Settings.apk\res\values\strings.xml"
3rd last line "<string name="wifi_ap_message">Tethering/Mobile Hotspot.. STUPID FRIGGIN MESSAGE</string>
Recompile
I used apk manager
copy file to 'projects' folder
run bat script
option 10
find framework-res.apk from same build and drag to 'apk manager' cmd window
press enter
edit xml
recompile option 11
y for system app
y for add files
dont need to delete any
press enter
Winning!
of course you must still remove "tethering manager-2.apk" from system/app
here is kk4 already done!
copy to system/app
reboot to recovery
wipe cache and delvik
reboot
Click to expand...
Click to collapse
i prefer to edit the wifi_access_points.xml and wifi_ap_settings.xml ,it's better way
if you are going to tease... you might as well finish the job.. but hey we are all here for learning..
so I see at Settings.apk\res\xml the 2 files you mentioned
wifi_access_points.xml and wifi_ap_settings.xml
opened in editor..
hmm what do we have...
in wifi_ap_settings.xml i see
Code:
<PreferenceCategory android:layout="@xml/wifi_ap_message" />
and xml/wifi_ap_message.xml , points to '@string/wifi_ap_message' which was the line I edited .. so chagne to what? @null ??
next file.. wifi access points?? dont see what you would change there....
think you may have meant 'tether_prefs.xml'
it also has the line
Code:
<PreferenceCategory android:layout="@xml/wifi_ap_message" />
so once again... change to what? @null ??
I still prefer my method as it allows Customization .... oohh....
but thank you for making me look into that!
TRusselo said:
if you are going to tease... you might as well finish the job.. but hey we are all here for learning..
so I see at Settings.apk\res\xml the 2 files you mentioned
wifi_access_points.xml and wifi_ap_settings.xml
opened in editor..
hmm what do we have...
in wifi_ap_settings.xml i see
Code:
<PreferenceCategory android:layout="@xml/wifi_ap_message" />
and xml/wifi_ap_message.xml , points to '@string/wifi_ap_message' which was the line I edited .. so chagne to what? @null ??
next file.. wifi access points?? dont see what you would change there....
think you may have meant 'tether_prefs.xml'
it also has the line
Code:
<PreferenceCategory android:layout="@xml/wifi_ap_message" />
so once again... change to what? @null ??
I still prefer my method as it allows Customization .... oohh....
but thank you for making me look into that!
Click to expand...
Click to collapse
i just edit two files and i have tested it before
i think you can understand
remove the .txt
q659503934 said:
i just edit two files and i have tested it before
i think you can understand
remove the .txt
Click to expand...
Click to collapse
ok... ummin wifi_ap_settings you deleted the whole line:
" <PreferenceCategory android:layout="@xml/wifi_ap_message" /> "
but in wifi_access_points.xml you changed nothing..... and dont see anything useful to change
and the tethering message is still in tether_prefs.xml...
your job is only half done buddy~
TRusselo said:
ok... ummin wifi_ap_settings you deleted the whole line:
" <PreferenceCategory android:layout="@xml/wifi_ap_message" /> "
but in wifi_access_points.xml you changed nothing..... and dont see anything useful to change
and the tethering message is still in tether_prefs.xml...
your job is only half done buddy~
Click to expand...
Click to collapse
sorry about that i uploaded the wrong file.it's tether_prefs.xml not wifi_access_points.xml
open the tether_prefs.xml and del this code in line 4
<PreferenceCategory android:layout="@xml/wifi_ap_message" />
see? isnt this fun?
bump to match other thread.

[TUTORIAL] How to enable cost saving option in conversations.apk

Hello everyone!
In this tutorial i will show you how to enable the hidden cost saving feature on your Xperia device!
What does this features?
It's actually an embed feature of the Xperia conversations.apk but it's hidden by default, at least on some versions of roms (conversations.apk extracted from Global & Greek FTF files have this option enabled by default).
What does, is to convert certain letters. This way, when you writing for example a message in greek or in polish, instead of having 70 characters per message, you will have 160, so you will not have to spend extra money.
Pretty cool, nah?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
Let's see now how to make it:
Requirements:
You must know how to decompile/compile and sign and apk.
Notepad++
The Conversations apk (deoxeded).
Procedure:
1. Decompile the Conversations.apk
2. Navigate to res/ values/ bools.xml and open the file using Notepad++
3. As you can see the following values are set to false by default.
<bool name="character_conversion">false</bool>
<bool name="character_conversion_visibility">false</bool>
Click to expand...
Click to collapse
Set them to true
<bool name="character_conversion">true</bool>
<bool name="character_conversion_visibility">true</bool>
Click to expand...
Click to collapse
4. Now save the file and exit.
5. Next thing to do is navigate to res/ xml / default_settings.xml ; Open the file using Notepad++
6. As you can see the following values are set to false by default.
<setting key="character-conversion" runtime="true">false</setting>
<setting key="character-conversion-visibility" runtime="false">false</setting>
Click to expand...
Click to collapse
Set them to true
<setting key="character-conversion" runtime="true">true</setting>
<setting key="character-conversion-visibility" runtime="false">true</setting>
Click to expand...
Click to collapse
7. Now save the file and exit.
8. Recompile your apk
9. Sign the apk
10. Enjoy!
Gonna use it in my rom
Thanks
great!
but i think it is only useful for letter-based language, not for the others like Chinese...
cuz when it over 70l it still turn to 2 pieces of sms...
Congrats
You are on portal now
can i use it for arabic language???
I don't use Sony's messaging app, but I would like to see an xposed module for this
Nice...
I tried like this:
From this post: http://forum.xda-developers.com/showpost.php?p=39147343&postcount=1
Went to:
/Data/Data/com.sonyerricsson.conversations/shared_prefs
Edit the file:
com.sonyericsson.conversations_preferences.xml
Changed the
<boolean name="semc_pref_key_character_conversation" value="false" to "true"
Until know never show the warning and the number of SMS that i have wrote and sent...
Works in the same, right?
@DaRk-L0rD
Is in bool.xml of Conversations.apk the option to disable by default "Delivery Report"?
Lc1975 said:
Nice...
I tried like this:
From this post: http://forum.xda-developers.com/showpost.php?p=39147343&postcount=1
Went to:
/Data/Data/com.sonyerricsson.conversations/shared_prefs
Edit the file:
com.sonyericsson.conversations_preferences.xml
Changed the
<boolean name="semc_pref_key_character_conversation" value="false" to "true"
Until know never show the warning and the number of SMS that i have wrote and sent...
Works in the same, right?
Click to expand...
Click to collapse
Its nothing happen...?
Sent from my LT26ii using XDA Premium 4 mobile app
If someone doesn't want to play with apktool, there is simpler way:
Go to /data/data/com.sonyerricsson.conversations/shared_prefs/com.sonyerricsson.conversations_preferences.xml
At the end of that file add the following line, so it should look like this:
Code:
<boolean name="character-conversion-visibility" value="true" />
</map>
And now character conversion option appears in the settings.
Works for me....
Sorry to write it but why for God's sake someone have to decompile conversations.apk to do so? All you have to do is turn off spell-check in Language and Input settings, then use only ASCII characters (english alphabet) when typing the message. That way you won't be limited to use only 70 characters, I'm doing it this way myself.
@kontini yes mate, it's there
@Lc1975 works this way too but do you have the option in the Settings this way?
@eLGi what if someone wants to have both? Also who builds rom maybe just wants to add this feature too!
No option in the settings....
For me a (real newbie) what i did was more simple...
Would it be the same to extract the conversations.apk from a Global or Greek FTF files and replace with it the current conversation.apk file ?
removed
make it withe overlay
hi
i extract a rom from z1 and where's i found com.sonyericsson.conversations-res.apk in /system/vendor/overlay and moded it like activate all option
it's attached you copy it to /system/vendor/overlay and you change permission to rw-r-r-- and reboot il wil work perfectly it work for 4.3 and 4.4
here is screenshot
see my TUTO here

[GUIDE]How to enable Multiuser support on Xperia 4.2+ Smartphones

Hello Mates!
Here is a Simple Guide to Enable multiuser support on Xperia 4.2+
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here wo Go.
Requirements:-
Basic knowledge of Reverse engineering (apktool and baksmali)
Notepad++ or any other text editor
Time and mind
Step 1:-
Decompile framework-res.apk
Step 2:-
Now Go to res/values/bools.xml
Here search for
Code:
<bool name="config_enableLockScreenRotation">false</bool>
Step 3:-
Change the boolean value to true
Save xml file
Step 4:-
Now Go to res/values/integers.xml
Here Search For
Code:
<integer name="config_multiuserMaximumUsers">1</integer>
Step 5:-
Chnage the Integer value to 3
Save xml file
Step 6:-
Now go to res\layout-port\keyguard_host_view.xml
Look for this FrameLayout
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
</FrameLayout>
Add this Line before </FrameLayout>
Code:
<include layout="@layout/amnix_multi_user_selector" />
Now It will look like this
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
[COLOR="Red"]<include layout="@layout/amnix_multi_user_selector" />[/COLOR]
</FrameLayout>
Save and close keyguard_host_view.xml
Step 7:-
Now download res.zip from attachments and paste the xml file to res\layout-port\
Step 8:-
Recompile framework-res.apk
Step 9:-
Now Decompile Settings.apk
Step 10:-
Go to res/xml/settings_headers.xml
Step 11:-
Search for this line
Code:
android:fragment="com.android.settings.users.UserSettings"
Step 12:-
Beside this line, you will find a android:id="@id/user_settings header
change the android:id to android:id="@id/amnix"
Step 13:-
Now add this line to res/values/ids.xml
Code:
<item type="id" name="amnix">false</item>
Step 14:-
Recompile back Settings.apk
Step 15:-
Push new compiled settings and framework to system to adb or mannually
Step 16:-
If its work then Press Thanks Here
If it doesn't or you need any help post in same thread
Cheers
Enjoy
-AmniX​
good
:good:
working on Xperia SP
AmniX said:
Hello Mates!
Here is a Simple Guide to Enable multiuser support on Xperia 4.2+
Here wo Go.
Requirements:-
Basic knowledge of Reverse engineering (apktool and baksmali)
Notepad++ or any other text editor
Time and mind
Step 1:-
Decompile framework-res.apk
Step 2:-
Now Go to res/values/bools.xml
Here search for
Code:
<bool name="config_enableLockScreenRotation">false</bool>
Step 3:-
Change the boolean value to true
Save xml file
Step 4:-
Now Go to res/values/integers.xml
Here Search For
Code:
<integer name="config_multiuserMaximumUsers">1</integer>
Step 5:-
Chnage the Integer value to 3
Save xml file
Step 6:-
Now go to res\layout-port\keyguard_host_view.xml
Look for this FrameLayout
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
</FrameLayout>
Add this Line before </FrameLayout>
Code:
<include layout="@layout/amnix_multi_user_selector" />
Now It will look like this
Code:
<FrameLayout androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" androidprv:layout_childType="widgets">
<include androidprv:layout_gravity="center" androidprv:id="@id/app_widget_container" androidprv:layout_width="fill_parent" androidprv:layout_height="fill_parent" layout="@layout/keyguard_widget_pager" />
[COLOR="Red"]<include layout="@layout/amnix_multi_user_selector" />[/COLOR]
</FrameLayout>
Save and close keyguard_host_view.xml
Step 7:-
Now download res.zip from attachments and paste the xml file to res\layout-port\
Step 8:-
Recompile framework-res.apk
Step 9:-
Now Decompile Settings.apk
Step 10:-
Go to res/xml/settings_headers.xml
Step 11:-
Search for this line
Code:
android:fragment="com.android.settings.users.UserSettings"
Step 12:-
Beside this line, you will find a android:id="@id/multiuser header
change the android:id to android:id="@id/amnix"
Step 13:-
Now add this line to res/values/ids.xml
Code:
<item type="id" name="amnix">false</item>
Step 14:-
Recompile back Settings.apk
Step 15:-
Push new compiled settings and framework to system to adb or mannually
Step 16:-
If its work then Press Thanks Here
If it doesn't or you need any help post in same thread
Cheers
Enjoy
-AmniX​
Click to expand...
Click to collapse
Pls 4.1.2 port pls pls..
Xperia s2
yakupTR said:
Pls 4.1.2 port pls pls..
Xperia s2
Click to expand...
Click to collapse
Stop quoting the whole op!
Its so annoying
Cant port to 4.1.2, it does not support multiusers!
4.2 has multiusers but hidded in xperia so we can only enable it
Any way of having an option to rename the users?
hi i cant decompile 4.3 framework of sony
which tool did u use for decompile/..i m using apktool
ansebovi said:
hi i cant decompile 4.3 framework of sony
which tool did u use for decompile/..i m using apktool
Click to expand...
Click to collapse
Try with this one, It works for me
http://forum.xda-developers.com/showthread.php?t=2639400
I'm having a little problem here with my settings.apk. There is a phantom Icon below Users. If i click it settings force closes. I've already modified my settings.apk with a few lines that enable smart call handling from this thread: http://forum.xda-developers.com/showthread.php?t=2667184
What can be wrong? This is my framework and my settings.apk MY phone is a C6903 running the 136 build number, deodexed with superuser mod
I made it with Advanced APK Tool and Notepad++ and here is the flashable zip with the framework AND settings: https://www.mediafire.com/?kx58zcqexwnmse5
Oh! and Simple Home app force closes too, installed on system o as a regular app it doesnt work
Thanks.
@cachanilla86 ty bro its working...
@AmniX bro i found this line in settings/res/xml/settings_header...
<header android:icon="@drawable/ic_settings_multiuser" android:id="@id/user_settings" android:title="@string/user_settings_title" android:fragment="com.android.settings.users.UserSettings" />
but there is no android:id="@id/multiuser" what can i do?
should i add it or am i missing something?
ansebovi said:
@cachanilla86 ty bro its working...
@AmniX bro i found this line in settings/res/xml/settings_header...
<header android:icon="@drawable/ic_settings_multiuser" android:id="@id/user_settings" android:title="@string/user_settings_title" android:fragment="com.android.settings.users.UserSettings" />
but there is no android:id="@id/multiuser" what can i do?
should i add it or am i missing something?
Click to expand...
Click to collapse
Its Same! Change android:id="@id/user_settings to android:id="@id/amnix
AmniX said:
Its Same! Change android:id="@id/user_settings to android:id="@id/amnix
Click to expand...
Click to collapse
ty bro...grt works like charm :good:
but see my screenshot....the icons block date...anyway to adjust that>?
ansebovi said:
ty bro...grt works like charm :good:
but see my screenshot....the icons block date...anyway to adjust that>?
Click to expand...
Click to collapse
As multiuser is only for tablets so Mobile UI is not designed for Phones. Rotate your Device While Switching User's For Clear date in Statusbar.
Layout is overlapping it but there is no any other place to place multiuser Chnager on lockscreen.
AmniX said:
As multiuser is only for tablets so Mobile UI is not designed for Phones. Rotate your Device While Switching User's For Clear date in Statusbar.
Layout is overlapping it but there is no any other place to place multiuser Chnager on lockscreen.
Click to expand...
Click to collapse
do u know how to reduce size of icons,patternview...maybe that can help...i know where is the layout...\res\layout\keyguard_pattern_view. but i dont know how to edit size
Great! :good:
thanks for this Sir :good:
gonna try this..
just a question sir, if Im using a lower DPI in my Z right nwo, is there a possibility that the icons will overlap the time and date in the lockscreen? thanks btw
thanks.this guide missing some code lines, please add these.
i dont why every times i created new user my phone auto reboot.
And i can't choose another user not owner to login
Modified mine Now it doesn't cover up the widget area of the lockscreen. Also moved the remove widget drop spot from top to bottom so I could still delete the lockscreen widgets
Well written mate!! Congrats!!!
devilmaycry2020 said:
thanks.this guide missing some code lines, please add these.
i dont why every times i created new user my phone auto reboot.
And i can't choose another user not owner to login
Click to expand...
Click to collapse
+1
.
AmniX said:
As multiuser is only for tablets so Mobile UI is not designed for Phones. Rotate your Device While Switching User's For Clear date in Statusbar.
Layout is overlapping it but there is no any other place to place multiuser Chnager on lockscreen.
Click to expand...
Click to collapse
@AmniX bro nice work...
But i got one problem...I did all steps as u mentioned on my xperia m but when i log into my new account android.process.media force stops and then phone restarts...
Pls help
xposed frameworK
hI,
iTS SO EASY TO ACTIVATE THE MODULE IN XPOSED FRAMEWORK...
PERFECTLY WORKING IN MY XPERIA Z - EXISTENZ ULTRA 7.0.0

[Q] How to move setting button beside jelly clock?

Hello xda member.. i want to put my setting button and clear button beside jelly clock.. how to do it? i hope someone can help me..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
just move the lines for settings button and clear button into the same layout as the header
for example in my layout for the header I have the clear button and brightness slider and its icon within the header - but please dont just copy and paste what I have written in the code below as it will not work as you dont have the smali and the references - but you can see in the bit I have marked in red the clear button code for my status bar
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
[COLOR="Red"] <TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />[/COLOR]
<include layout="@layout/qp_brightness" />
</LinearLayout>
marcussmith2626 said:
just move the lines for settings button and clear button into the same layout as the header
for example in my layout for the header I have the clear button and brightness slider and its icon within the header - but please dont just copy and paste what I have written in the code below as it will not work as you dont have the smali and the references - but you can see in the bit I have marked in red the clear button code for my status bar
Click to expand...
Click to collapse
owh i understand... thanks sir..
marcussmith2626 said:
just move the lines for settings button and clear button into the same layout as the header
Click to expand...
Click to collapse
Sir.. i got new problem here...
as you can see there is 'clear' text at the
clear button.. can i know how to remove 'clear' text at my clear button?
EpullSalvatrucha said:
Sir.. i got new problem here...
as you can see there is 'clear' text at the
clear button.. can i know how to remove 'clear' text at my clear button?
Click to expand...
Click to collapse
will have something to do with the string most likely - either remove the line for the @ string part for your line for the clear button or in strings.xml make the entry blank - play around with it
or could be styles.xml
marcussmith2626 said:
will have something to do with the string most likely - either remove the line for the @ string part for your line for the clear button or in strings.xml make the entry blank - play around with it
Click to expand...
Click to collapse
i make it blank like
<String = . . . . ">clear</string>
to
<String = . . . . "></string>
but it still there..
EpullSalvatrucha said:
i make it blank like
<String = . . . . ">clear</string>
to
<String = . . . . "></string>
but it still there..
Click to expand...
Click to collapse
you can try removing the @ string part from the line in status_bar_expanded.xml
so you remove
Code:
android:text= [user=936943]@string[/user]/status_bar_clear_all_button"
or it might be something in styles.xml
you can try guide 3
http://forum.xda-developers.com/showthread.php?t=1953934
this is something you will need to play around with and keep testing until you find the right area
marcussmith2626 said:
you can try removing the @ string part from the line in status_bar_expanded.xml
so you remove
Code:
android:text= [user=936943]@string[/user]/status_bar_clear_all_button"
or it might be something in styles.xml
you can try guide 3
http://forum.xda-developers.com/showthread.php?t=1953934
this is something you will need to play around with and keep testing until you find the right area
Click to expand...
Click to collapse
i tried sir.. delete string.. delete style.. delete status bar expanded.. but it failed.. even i tried delete public id in statusbarservice.smali.. but i got failed too(fc).. (status_bar_clear_all_button)

Resources