[SHARE][TUTORIAL][HOWTO]disabling/Enabling option for system APP

185 posts
Thanks Meter: 53
By rafik23, Senior Member on 28th August 2014, 01:39 PM
Post Reply Subscribe to Thread Email Thread
in different customization of the same device for region or operator , we find some option in system configuration enabled in some and other no then we can do it by changing variable value in application files in system by decompiling and recompiling after modifying ( bools or arrays...etc ) it take a lot of time
so customization Sony has choose to make a little files for a region customization or enabling or disabling option in system app without modifying the original app file by using {real_application_name}-res.apk what will be adding in /system/vendor/overlay
in 4.0.4 and before sony ericsson used /system/etc/customization/ folder for enabling and parameterizing apps, so in JB 4.2 and 4.3or 4.4 these files are incompatible only 4.3 and 4.4 are compatible (attached files)
for JB 4.2
4.3 and 4.4

How to use ??
example :
for enabling data traffic notification and status icon in status bar we must change in or semcphone.apk phone.apk this line after decompiling Phone.apk or SemcPhone.apk in res/value/bools/xml we find a default value of application :

<bool name="data_connection_except_mms_can_clear_icon">true</bool>
    <bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
    <bool name="data_connection_except_mms_show_icon_when_enabled">false</bool>

they must be change to :

<bool name="data_connection_except_mms_can_clear_icon">false</bool> -----> icon always visible can't be removed
    <bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
    <bool name="data_connection_except_mms_show_icon_when_enabled">true</bool>

then it can be inserted in and injected in system/vendor/overlay and rebooting after that the options are activated.

just know what value to want be activated in the main application apk

Another exemple :
in this post to have mod for activating low cost in conversations.apk but with decompiling main apk conversations.apk but the simple one is using -res.apk
default value are :

<bool name="character_conversion">false</bool>

<bool name="character_conversion_visibility">false</bool>

and must be changed to

<bool name="character_conversion">true</bool>
 <bool name="character_conversion_visibility">true</bool>

then modifing com.sonyericsson.conversations-res.apk
after decomiling
we have
|-------> bools.xml -------------> to be modified
|-------> public.xml ---------------important contains all variable defined


<?xml version="1.0" encoding="utf-8"?>
    <bool name="three_digit_number_linkify">true</bool>
    <bool name="delivery_report">true</bool>
    <bool name="mms_retrieval_during_roaming_visibility">true</bool>
    <bool name="character_conversion">true</bool>
    <bool name="character_conversion_visibility">true</bool>
<?xml version="1.0" encoding="utf-8"?>
    <public type="bool" name="three_digit_number_linkify" id="0x7f020000" />
    <public type="bool" name="delivery_report" id="0x7f020001" />
    <public type="bool" name="mms_retrieval_during_roaming_visibility" id="0x7f020002" />
    <public type="bool" name="character_conversion" id="0x7f020003" />
    <public type="bool" name="character_conversion_visibility" id="0x7f020004" />
        <public type="bool" name="enable_send_empty_message" id="0x7f020005" />
    <public type="integer" name="max_recipients" id="0x7f030000" />
    <public type="integer" name="mms_max_size" id="0x7f030001" />
    <public type="integer" name="sms_max_segments" id="0x7f030002" />
    <public type="integer" name="mms_trigger_sms_segments" id="0x7f030003" />
and recompile , push it in system/vendor/overlay and done.
Attached Files
File Type: rar overlay 4.2.rar - [Click for QR Code] (91.7 KB, 1 views)
File Type: rar overlay -4.3-4.4.rar - [Click for QR Code] (143.1 KB, 9 views)
Last edited by rafik23; 28th August 2014 at 06:08 PM.
The Following User Says Thank You to rafik23 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

collection apk's, mod system apk, xperia modding
Previous Thread Next Thread
Thread Tools
Display Modes