Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP rafik23

28th August 2014, 02:39 PM   |  #1  
rafik23's Avatar
OP Senior Member
annaba
Thanks Meter: 51
 
179 posts
Join Date:Joined: May 2011
hi,
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 :
Quote:

Code:
<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 :
Quote:

Code:
<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 com.phone-res.apk 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 http://forum.xda-developers.com/show....php?t=2703113 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 :
Quote:

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

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

and must be changed to
Quote:

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

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

bools.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <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>
    
</resources>
public.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <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" />
</resources>
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, 5 views)
Last edited by rafik23; 28th August 2014 at 07:08 PM.
The Following User Says Thank You to rafik23 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
collection apk's, mod system apk, xperia modding
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes