Ver Mensaje Individual
  #2  
Viejo 29/09/14, 14:41:18
Array

[xs_avatar]
Jechus Jechus no está en línea
Usuario muy activo
 
Fecha de registro: ene 2010
Localización: sevilla la Nueva
Mensajes: 1,136
Modelo de smartphone: Note 3
Tu operador: Yoigo
Decompilamos con apkmanager

Nos dirigimos a res/xml/somc_add_display_settings.xml
Editamos con Notepad++ e incluimos las lineas necesarias para que quede de esta manera:

[PHP]<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.sonymobile.settings.preference.CheckBoxPrefer ence android:title="@string/swiqi_strings_swiqi2_txt" android:key="swiqi2" android:summary="@string/swiqi_strings_swiqi_desc_txt" android:defaultValue="true" settings:dependOnSystemProperty="ro.service.swiqi2 .supported" settings:before="first" settings:valueOfSettingsSystem="com.sonymobile.swi qi2_mode" />
<com.sonymobile.settings.preference.CheckBoxPrefer ence android:title="@string/swiqi_strings_swiqi3_txt" android:key="swiqi3" android:summary="@string/swiqi_strings_swiqi_desc_txt" android:defaultValue="true" settings:dependOnSystemProperty="ro.service.swiqi3 .supported" settings:before="first" settings:valueOfSystemProperty="persist.service.sw iqi3.enable" />
<com.sonymobile.settings.preference.IntentPreferen ce android:key="image_enhancer" settings:dependOnIsValidIntent="true" settings:dependOnSystemProperty="ro.service.xrfm.s upported" settings:before="first" settings:hasMetaData="true" settings:valueOfSystemProperty="persist.service.xr fm.mode">
<intent android:targetPackage="com.sonymobile.imageenhance r" android:targetClass="com.sonymobile.imageenhancer. ImageEnhancerSettings" />
</com.sonymobile.settings.preference.IntentPreferenc e>
<com.sonymobile.settings.preference.RemovePreferen ce settings:dependOnSystemProperty="ro.service.xrfm.s upported" settings:targetKey="swiqi3" />
<com.sonymobile.settings.preference.CheckBoxPrefer ence android:title="@string/glove_mode_checkbox_title" android:key="glove_mode" android:summary="@string/glove_mode_checkbox_summary" android:defaultValue="false" settings:dependOnResource="@*android:bool/config_enable_glove_mode" settings:before="brightness" settings:valueOfSystemProperty="persist.sys.touch. glove_mode" settings:valueOfSettingsSystem="com.sonymobile.tou ch.glove_mode" />
<com.sonymobile.settings.preference.IntentPreferen ce android:key="white_balance" settings:dependOnIsValidIntent="true" settings:after="brightness" settings:hasMetaData="true">
<intent android:targetPackage="com.sonymobile.whitebalance " android:action="android.intent.action.MAIN" android:targetClass="com.sonymobile.whitebalance.W hiteBalanceActivity" />
</com.sonymobile.settings.preference.IntentPreferenc e>
<com.sonymobile.settings.preference.RemovePreferen ce settings:targetKey="wallpaper" />
<com.sonymobile.settings.preference.RemovePreferen ce settings:dependOnIsValidIntent="true" settings:targetKey="wifi_display">
<intent android:targetPackage="com.sonymobile.tvout.wifidi splay" android:targetClass="com.sonymobile.tvout.wifidisp lay.WfdStarterActivity" />
</com.sonymobile.settings.preference.RemovePreferenc e>
<com.sonymobile.settings.preference.IntentPreferen ce android:key="intelligent_backlight" settings:dependOnIsValidIntent="true" settings:after="screen_timeout" settings:hasMetaData="true" settings:valueOfSettingsSystem="intelligent_backli ght">
<intent android:targetPackage="com.sonymobile.intelligent. backlight" android:targetClass="com.sonymobile.intelligent.ba cklight.SmartBacklightGuidance" />
</com.sonymobile.settings.preference.IntentPreferenc e>
<com.sonymobile.settings.preference.IntentPreferen ce android:key="intelligent_rotation" settings:dependOnIsValidIntent="true" settings:before="screen_timeout" settings:hasMetaData="true">
<intent android:targetPackage="com.sonymobile.intelligent. rotation" android:targetClass="com.sonymobile.intelligent.ro tation.RotationMainMenu" />
</com.sonymobile.settings.preference.IntentPreferenc e>
<com.sonymobile.settings.preference.RemovePreferen ce settings:dependOnIsValidIntent="true" settings:targetKey="accelerometer">
<intent android:targetPackage="com.sonymobile.intelligent. rotation" android:targetClass="com.sonymobile.intelligent.ro tation.SmartScreenRotationMenu" />
</com.sonymobile.settings.preference.RemovePreferenc e>
</PreferenceScreen>[/PHP]

Ahora vamos a res/xml/xperia_connectivity_settings.xml y editamos a partir de la line 23 para que quede de esta manera

[PHP] <com.sonymobile.settings.preference.IntentPreferen ce android:key="playstation_connectivity" settings:dependOnIsValidIntent="true" settings:hasMetaData="true">
<intent android:targetPackage="com.sony.nfx.service.Wirele ssControllerManagerService" android:targetClass="com.sonymobile.dualshock.mana ger.app.SettingsActivity" />
<intent android:targetPackage="com.sonymobile.dualshockman ager" android:targetClass="com.sonymobile.dualshockmanag er.wizard.DualshockWizardActivity" />
</com.sonymobile.settings.preference.IntentPreferenc e>[/PHP]
------------
A diferencia de otros settings modificados,nosotros vamos a modificar tambien en Values

Vamos a res/values/strings.xml y añadimos las siguientes lineas(siempre las añado las ultimas para que sea facilmente localizable lo modificado)
[PHP]<string name="powersaver_feature_xrealityvivid">Super-vivid mode off</string>
<string name="super_vivid_mode_txt">Super-vivid mode</string>
<string name="super_vivid_mode_desc_txt">Make colors stand out to get super-vivid images</string>
<string name="powersaver_feature_imageenhancement">Image enhancement off</string>
<string name="image_enhancer_txt">Image enhancement</string>
<string name="image_enhancer_off_txt">Off</string>[/PHP]

Y ahora vamos a res/values/public.xml (al final del apartado strings) añadimos estas entradas

[PHP] <public type="string" name="powersaver_feature_xrealityvivid" id="0x7f0b0a0e" />
<public type="string" name="super_vivid_mode_txt" id="0x7f0b0a0f" />
<public type="string" name="super_vivid_mode_desc_txt" id="0x7f0b0a10" />
<public type="string" name="powersaver_feature_imageenhancement" id="0x7f0b0a11" />
<public type="string" name="image_enhancer_txt" id="0x7f0b0a12" />
<public type="string" name="image_enhancer_off_txt" id="0x7f0b0a13" />[/PHP]

Compilamos

Si queremos alcanzar una alta compresion la apk que hemos creado la decompilamos y volvemos a compilar con apkmanager.sin realizar ningun cambio.
Dejo en adjuntos los xml modificados para agregar antes de compilar
Archivos Adjuntos
Tipo de Archivo: rar xmls.rar (73.6 KB, 56 visitas)
__________________
" Desleal, es aquel que se despide cuando el camino se oscurece"

Última edición por Jechus Día 29/09/14 a las 16:00:36.
Responder Con Cita
Los siguientes 4 usuarios han agradecido a Jechus su comentario:
[ Mostrar/Ocultar listado de agradecimientos ]