Hello guys!
I´m trying to add a submenu to my Rom. I allready open the apk with APKTool and edited some xmls with notepad++. But now I want to make a new submenu for all Halo settings, but how? Looking at other submenus don´t help!
The submenu xml looks like that at the moment:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/halo_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/halo_settings_header" android:key="halo">
<CheckBoxPreference android:title="@string/halo_hide_title" android:key="halo_hide" android:summary="@string/halo_hide_summary" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/halo_reversed_title" android:key="halo_reversed" android:summary="@string/halo_reversed_summary" android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>
Click to expand...
Click to collapse
and the settings head like this:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:id="@id/wireless_section" android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/ic_settings_wireless" android:id="@id/wifi_settings" android:title="@string/wifi_settings_title" android:fragment="com.android.settings.wifi.WifiSettings" />
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</header>
<header android:icon="@drawable/empty_icon" android:id="@id/wireless_settings" android:title="@string/radio_controls_title" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
<header android:id="@id/device_section" android:title="@string/header_category_device" />
<header android:icon="@drawable/ic_settings_sound" android:id="@id/sound_settings" android:title="@string/sound_settings" android:fragment="com.android.settings.SoundSettings" />
<header android:icon="@drawable/ic_settings_display" android:id="@id/display_settings" android:title="@string/display_settings" android:fragment="com.android.settings.DisplaySettings" />
<header android:icon="@drawable/ic_settings_storage" android:id="@id/storage_settings" android:title="@string/storage_settings" android:fragment="com.android.settings.deviceinfo.Memory" />
<header android:icon="@drawable/ic_settings_battery" android:id="@id/battery_settings" android:title="@string/power_usage_summary_title" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<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" />
<header android:id="@id/manufacturer_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
</header>
<header android:id="@id/customization_section" android:title="@string/header_category_customization" />
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
<header android:icon="@drawable/ic_settings_status_bar" android:id="@id/tool_bar_settings" android:title="@string/tool_bar_settings" android:fragment="com.android.settings.paranoid.Toolbar" />
<header android:icon="@drawable/ic_settings_halo" android:id="@id/settings_halo" android:title="@string/settings_halo" android:fragment="com.android.settings.paranoid.Halo" />
<header android:icon="@drawable/ic_settings_lock_screen" android:id="@id/lock_screen_settings" android:title="@string/lock_screen_settings" android:fragment="com.android.settings.paranoid.Lockscreen" />
<header android:icon="@drawable/ic_settings_advanced" android:id="@id/advanced_settings" android:title="@string/advanced_settings_title">
<intent android:targetPackage="com.cyanogenmod.settings.device" android:action="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" android:targetClass="com.cyanogenmod.settings.device.DeviceSettings" />
</header>
<header android:icon="@drawable/ic_settings_hybrid" android:id="@id/hybrid_settings" android:title="@string/hybrid_settings">
<intent android:targetPackage="com.paranoid.preferences" android:action="android.intent.action.MAIN" android:targetClass="com.paranoid.preferences.MainActivity" />
</header>
<header android:id="@id/personal_section" android:title="@string/header_category_personal" />
<header android:icon="@drawable/ic_settings_location" android:id="@id/location_settings" android:title="@string/location_settings_title" android:fragment="com.android.settings.LocationSettings" />
<header android:icon="@drawable/ic_settings_security" android:id="@id/security_settings" android:title="@string/security_settings_title" android:fragment="com.android.settings.SecuritySettings" />
<header android:icon="@drawable/ic_settings_language" android:id="@id/language_settings" android:title="@string/language_settings" android:fragment="com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android:icon="@drawable/ic_settings_backup" android:id="@id/privacy_settings" android:title="@string/privacy_settings" android:fragment="com.android.settings.PrivacySettings" />
<header android:id="@id/account_settings" android:title="@string/account_settings" />
<header android:icon="@drawable/ic_menu_add" android:id="@id/account_add" android:title="@string/add_account_label">
<intent android:action="android.settings.ADD_ACCOUNT_SETTINGS" />
</header>
<header android:id="@id/system_section" android:title="@string/header_category_system" />
<header android:icon="@drawable/ic_action_permission" android:id="@id/superuser" android:title="@string/superuser" android:fragment="com.koushikdutta.superuser.PolicyNativeFragment" />
<header android:icon="@drawable/ic_settings_date_time" android:id="@id/date_time_settings" android:title="@string/date_and_time_settings_title" android:fragment="com.android.settings.DateTimeSettings" />
<header android:icon="@drawable/ic_settings_accessibility" android:id="@id/accessibility_settings" android:title="@string/accessibility_settings" android:fragment="com.android.settings.AccessibilitySettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_about" android:id="@id/about_settings" android:title="@string/about_settings" android:fragment="com.android.settings.DeviceInfoSettings" />
</preference-headers>
Click to expand...
Click to collapse
I added the needed strings to the strings.xml. But what now?? Pls help me!
iWilliBlecha said:
Hello guys!
I´m trying to add a submenu to my Rom. I allready open the apk with APKTool and edited some xmls with notepad++. But now I want to make a new submenu for all Halo settings, but how? Looking at other submenus don´t help!
The submenu xml looks like that at the moment:
and the settings head like this:
I added the needed strings to the strings.xml. But what now?? Pls help me!
Click to expand...
Click to collapse
Recompile and test (I know this post is old but I'm sick of not seeing replies)
Related
Hi everybody, I have a problem with GOLocker...
I want implement it into my ROM then i copy com.jiubang.goscreenlock-1 in data/app but when i flash the ROM and I boot the phone I have the original lockscreen, why?
EDIT: Solved but now I have another problem, I want change the default settings infact the default setting is that the GoLocker isn't enable then I go to C:\ROMCooking\APKManager\projects\com.jiubang.goscreenlock-1.apk\res\xml and i found lock_setting.xml
Original
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="false" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="true" />
</PreferenceScreen>
Click to expand...
Click to collapse
Edited by me
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="true" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="false" />
</PreferenceScreen>
Click to expand...
Click to collapse
Infact if we see the app the first option is that if we want enable GOLocker than I edited the first line changing false to true and the other 2 options but it's not important...
When I install the app the settings aren't changed, it's possible?
Another question: where is Zombie Art By Jack Larson string?
It's in strings.xml?
Upupupupupupupupupupupupupupupupupupup
When any one call me he heard his sound again like echo
can any one tell me what can i do or any fix
http://bbs.xda.cn/thread-12184557-1-1.html
which file can i edit to enable Noise Suppression
i found settings.apk
so i make an modification
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/volume_category_title" />
<Preference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume">
<intent android:targetPackage="com.android.settings" android:targetClass="com.android.settings.sound.RingerVolumeActivity" />
</Preference>
<CheckBoxPreference android:persistent="false" android:title="@string/silent_mode_title" android:key="miui_silent_or_vibrate" />
<PreferenceCategory android:title="@string/vibrate_category_title" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_in_silent_title" android:key="miui_vibrate_in_silent_key" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_when_ringing_title" android:key="miui_vibrate_in_normal_key" />
<Preference android:title="@string/musicfx_title" android:key="musicfx">
<intent android:targetPackage="com.android.musicfx" android:targetClass="com.android.musicfx.ControlPanelPicker" />
</Preference>
<PreferenceCategory android:title="@string/sound_category_call_ringtone_vibrate_title" android:key="category_calls_and_notification" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/ringtone_title" android:key="ringtone" android:dialogTitle="@string/ringtone_title" android:ringtoneType="ringtone" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/notification_sound_title" android:key="notification_sound" android:dialogTitle="@string/notification_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_received_sound_title" android:key="sms_received_sound" android:dialogTitle="@string/sms_received_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_delivered_sound_title" android:key="sms_delivered_sound" android:dialogTitle="@string/sms_delivered_sound_dialog_title" android:ringtoneType="notification" />
<PreferenceCategory android:title="@string/sound_category_system_title" />
<CheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/haptic_feedback_enable_title" android:key="haptic_feedback" android:defaultValue="true" />
<ListPreference android:entries="@array/haptic_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="haptic_feedback_level" android:dependency="haptic_feedback" android:entryValues="@array/haptic_feedback_level_values" />
<CheckBoxPreference android:persistent="false" android:title="@string/media_feedback_enable_title" android:key="media_feedback" />
<ListPreference android:persistent="false" android:entries="@array/media_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="media_feedback_level" android:dependency="media_feedback" android:entryValues="@array/media_feedback_level_values" />
<ListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:entryValues="@array/emergency_tone_values" />
<Preference android:title="@string/title_dolby_control" android:key="dolby_control" android:summary="@string/dolby_mode_off" android:fragment="com.android.settings.dolby.DolbySettings" />
<Preference android:title="@string/dirac_control" android:key="dirac_control" android:summary="@string/dirac_mode_off">
<intent android:targetPackage="com.miui.player" android:action="com.miui.player.DIRAC_SETTINGS" android:targetClass="com.miui.player.effect.dirac.DiracSettings" />
</Preference>
<PreferenceCategory android:title="@string/dock_settings" android:key="dock_category" />
<PreferenceScreen android:title="@string/dock_audio_settings_title" android:key="dock_audio">
<CheckBoxPreference android:enabled="true" android:title="@string/bluetooth_dock_settings_a2dp" android:key="dock_audio_media_enabled" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/dock_sounds_enable_title" android:key="dock_sounds" android:defaultValue="false" />
<PreferenceCategory android:title="@string/noise_suppression" android:key="noise_suppression" android:defaultValue="true"/>
<ListPreference android:persistent="true" android:entries="@array/phone_call_noise_suppression_title" android:title="@string/phone_call_noise_suppression" android:key="phone_call_noise_suppression" android:entryValues="@array/phone_call_noise_suppression_values" />
</PreferenceScreen>
the original is
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/volume_category_title" />
<Preference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume">
<intent android:targetPackage="com.android.settings" android:targetClass="com.android.settings.sound.RingerVolumeActivity" />
</Preference>
<CheckBoxPreference android:persistent="false" android:title="@string/silent_mode_title" android:key="miui_silent_or_vibrate" />
<PreferenceCategory android:title="@string/vibrate_category_title" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_in_silent_title" android:key="miui_vibrate_in_silent_key" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_when_ringing_title" android:key="miui_vibrate_in_normal_key" />
<Preference android:title="@string/musicfx_title" android:key="musicfx">
<intent android:targetPackage="com.android.musicfx" android:targetClass="com.android.musicfx.ControlPanelPicker" />
</Preference>
<PreferenceCategory android:title="@string/sound_category_call_ringtone_vibrate_title" android:key="category_calls_and_notification" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/ringtone_title" android:key="ringtone" android:dialogTitle="@string/ringtone_title" android:ringtoneType="ringtone" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/notification_sound_title" android:key="notification_sound" android:dialogTitle="@string/notification_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_received_sound_title" android:key="sms_received_sound" android:dialogTitle="@string/sms_received_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_delivered_sound_title" android:key="sms_delivered_sound" android:dialogTitle="@string/sms_delivered_sound_dialog_title" android:ringtoneType="notification" />
<PreferenceCategory android:title="@string/sound_category_system_title" />
<CheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/haptic_feedback_enable_title" android:key="haptic_feedback" android:defaultValue="true" />
<ListPreference android:entries="@array/haptic_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="haptic_feedback_level" android:dependency="haptic_feedback" android:entryValues="@array/haptic_feedback_level_values" />
<CheckBoxPreference android:persistent="false" android:title="@string/media_feedback_enable_title" android:key="media_feedback" />
<ListPreference android:persistent="false" android:entries="@array/media_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="media_feedback_level" android:dependency="media_feedback" android:entryValues="@array/media_feedback_level_values" />
<ListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:entryValues="@array/emergency_tone_values" />
<Preference android:title="@string/title_dolby_control" android:key="dolby_control" android:summary="@string/dolby_mode_off" android:fragment="com.android.settings.dolby.DolbySettings" />
<Preference android:title="@string/dirac_control" android:key="dirac_control" android:summary="@string/dirac_mode_off">
<intent android:targetPackage="com.miui.player" android:action="com.miui.player.DIRAC_SETTINGS" android:targetClass="com.miui.player.effect.dirac.DiracSettings" />
</Preference>
<PreferenceCategory android:title="@string/dock_settings" android:key="dock_category" />
<PreferenceScreen android:title="@string/dock_audio_settings_title" android:key="dock_audio">
<CheckBoxPreference android:enabled="true" android:title="@string/bluetooth_dock_settings_a2dp" android:key="dock_audio_media_enabled" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/dock_sounds_enable_title" android:key="dock_sounds" android:defaultValue="false" />
<PreferenceCategory android:title="@string/noise_suppression" [B]android:key="noise_suppression"[/B] />
<ListPreference android:persistent="[B]false[/B]" android:entries="@array/phone_call_noise_suppression_title" android:title="@string/phone_call_noise_suppression" android:key="phone_call_noise_suppression" android:entryValues="@array/phone_call_noise_suppression_values" />
</PreferenceScreen>
Hello guys .I am back again with a new guide.This time again with settings.
Things Required.
1.Patience.
2.A good text editor.I recommend Notepad++.
3.A bit knowledge about android modding.
Click to expand...
Click to collapse
HERE IS WHAT WE ARE GOING TO DO.
{
"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"
}
Click to expand...
Click to collapse
So Lets start.
Click to expand...
Click to collapse
STEP 1
Decompile your Settings.apk.
Click to expand...
Click to collapse
STEP 2
Open
Code:
smali/com/android/settings/IconPreferenceScreen.smali
Click to expand...
Click to collapse
STEP 3
Delete this in IconPreferenceScreen.smali
Code:
.line 37
const v1, 0x7f030039 <<<< IT MAY DIFFER FROM DEVICE TO DEVICE.
invoke-virtual {p0, v1}, Lcom/android/settings/IconPreferenceScreen;->setLayoutResource(I)V
Click to expand...
Click to collapse
STEP 4
Merge attached files with your Settings.apk
Click to expand...
Click to collapse
STEP 5
Now open settings.xml in
Code:
res/xml/settings.xml
Click to expand...
Click to collapse
STEP 6
Add this to all icon preferences like this in order.
Code:
android:layout="@layout/1" android:summary="@string/1"
FOR EXAMPLE:
FOR WIRELESS AND NETWORKS ADD THIS
Code:
android:layout="@layout/1" android:summary="@string/1"
FOR CALL SETTINGS OR SO ADD THIS
Code:
android:layout="@layout/2" android:summary="@string/2"
Click to expand...
Click to collapse
STEP 7
So it will look like this after modding.
Code:
<com.android.settings.IconPreferenceScreen android:layout="@layout/1" android:summary="1" android:title="@string/call_settings_title" android:key="call_settings" settings:icon="@drawable/ic_settings_call">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.CallFeaturesSetting" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
STEP 8
For better understanding here is my settings.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/settings_label" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.IconPreferenceScreen android:layout="@layout/1" android:summary="san" android:title="@string/radio_controls_title" settings:icon="@drawable/ic_settings_wireless">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/2" android:summary="san" android:title="@string/call_settings_title" android:key="call_settings" settings:icon="@drawable/ic_settings_call">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.CallFeaturesSetting" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/3" android:summary="san" android:title="@string/cm_settings_title" settings:icon="@drawable/ic_cyanogenmod">
<intent android:targetPackage="com.cyanogenmod.cmparts" android:action="android.intent.action.MAIN" android:targetClass="com.cyanogenmod.cmparts.activities.MainActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/4" android:summary="san" android:title="@string/device_settings_title" android:key="device_settings" settings:icon="@drawable/ic_settings_device">
<intent android:action="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/5" android:summary="san" android:title="@string/launcher_settings_title" android:key="launcher_settings" settings:icon="@drawable/ic_settings_launcher">
<intent android:targetPackage="com.android.launcher" android:action="android.intent.action.MAIN" android:targetClass="com.android.launcher.MyLauncherSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/6" android:summary="san" android:title="@string/sound_settings_title" settings:icon="@drawable/ic_settings_sound">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SoundSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/7" android:summary="san" android:title="@string/profile_settings_title" settings:icon="@drawable/ic_settings_profile">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ProfileList" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/8" android:summary="san" android:title="@string/display_settings_title" settings:icon="@drawable/ic_settings_display">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DisplaySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/9" android:summary="san" android:title="@string/security_settings_title" android:key="security_settings" settings:icon="@drawable/ic_settings_security">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SecuritySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/10" android:summary="san" android:title="@string/applications_settings" android:key="applications_settings" settings:icon="@drawable/ic_settings_applications">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ApplicationSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/11" android:summary="san" android:title="@string/sync_settings" android:key="sync_settings" settings:icon="@drawable/ic_settings_sync">
<intent android:action="android.settings.SYNC_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/12" android:summary="san" android:title="@string/privacy_settings" android:key="privacy_settings" settings:icon="@drawable/ic_settings_privacy">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.PrivacySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/13" android:summary="san" android:title="@string/storage_settings" settings:icon="@drawable/ic_settings_storage">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Memory" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/14" android:summary="san" android:title="@string/language_settings" settings:icon="@drawable/ic_settings_language">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.LanguageSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/15" android:summary="san" android:title="@string/voice_input_output_settings" settings:icon="@drawable/ic_settings_speech">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.VoiceInputOutputSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/16" android:summary="san" android:title="@string/accessibility_settings" settings:icon="@drawable/ic_settings_accessibility">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.AccessibilitySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/17" android:summary="san" android:title="@string/dock_settings" android:key="dock_settings" settings:icon="@drawable/ic_settings_dock">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DockSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/18" android:summary="san" android:title="@string/date_and_time_settings_title" settings:icon="@drawable/ic_settings_date_time">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DateTimeSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:layout="@layout/19" android:summary="san" android:title="@string/about_settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DeviceInfoSettings" />
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>
Click to expand...
Click to collapse
STEP 9
Compile back your apk.
Click to expand...
Click to collapse
STEP 10
Move it to system/app with permissions rwrr or install via systemappsinstaller.
Click to expand...
Click to collapse
THANK YOU AND DONT FORGET TO THANK ME TOO.
Click to expand...
Click to collapse
.................
Important Notes;
1.You can change backgrounds in xmlsi.e 1,2,3.....
2.Its much better to mod it yourself raher than requesting others.
Click to expand...
Click to collapse
CREDITS::
san122 [For making it possible]
Aniket Rane [For the idea]
b16h22 [For evo app}
Click to expand...
Click to collapse
Reserved For Your THANKS
san122 said:
Reserved For Your THANKS
Click to expand...
Click to collapse
Great guide. More power
Must try ! Thanks @san122
Sent from my GT-S5360 using xda app-developers app
I have an angular cordova application which has got the html video tag that plays on IOS but not on Android. Play button does not show on android.
html tag is as below:
<video width="320" height="240" controls="controls">
<source src="samplevideolink" type="video/mp4" />
</video>
config.xml of Cordova is as below:
<content src="index.cordova.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*...." />
<allow-intent href="...." />
<allow-intent href="..." />
<platform name="android">
<allow-intent href="market:*" />
<icon src="assets/android/ldpi.png" density="ldpi" />
<icon src="assets/android/mdpi.png" density="mdpi" />
<icon src="assets/android/hdpi.png" density="hdpi" />
<icon src="assets/android/xhdpi.png" density="xhdpi" />
<icon src="assets/android/xxhdpi.png" density="xxhdpi" />
<icon src="assets/android/xxxhdpi.png" density="xxxhdpi" />
</platform>
<platform name="ios">
....
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="23" />
<preference name="BackupWebStorage" value="none" />
Not sure if there is a problem withany configuration specific to Android in Cordova. Is there any plugin specific to Android Cordova need to be installed
Really appreciate your help.
help, I want to disable or hide the button light switch option. is it possible to do that in modifying settings.apk on miui 8. Thanks
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/key_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/screen_key_press" android:key="screen_key_press">
<ListPreference android:entries="@arRay/screen_key_press_action" android:title="@string/app_switch_key" android:key="menu_press" android:dialogTitle="@string/screen_key_press_action" android:entryValues="@arRay/screen_key_press_action_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/screen_key_long_press" android:key="screen_key_long_press">
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/app_switch_key" android:key="menu_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/home_key" android:key="home_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/back_key" android:key="back_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_timeout" android:title="@string/screen_key_long_press_timeout" android:key="screen_key_long_press_timeout" android:dialogTitle="@string/screen_key_long_press_timeout" android:entryValues="@arRay/screen_key_long_press_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/under_keyguard" android:key="under_keyguard">
<CheckBoxPreference android:title="@string/disable_power_key_long_press_under_keyguard" android:key="disable_power_long_press" />
<CheckBoxPreference android:title="@string/pref_volume_wake_title" android:key="pref_volume_wake" android:summary="@string/pref_volume_wake_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/convenience_key_category_title" android:key="convenience_key">
<CheckBoxPreference android:title="@string/fp_nav_center_back_to_home_title" android:key="pref_fingerprint_nav_center_to_home" />
</PreferenceCategory>
<CheckBoxPreference android:title="@string/pref_button_light" android:key="pref_button_light" android:summary="@string/pref_button_light_summary" />
<ListPreference androidersistent="false" android:entries="@arRay/button_light_timeout_entries" android:title="@string/button_light_timeout" android:key="button_light_timeout" android:dependency="pref_button_light" android:dialogTitle="@string/button_light_timeout" android:entryValues="@arRay/button_light_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/status_bar_screen_button_key" android:key="screen_button_category">
<Preference android:title="@string/status_bar_key_position_custom" android:key="screen_button_custom" android:fragment="com.android.settings.screenkey.ScreenKeySettings" />
</PreferenceCategory>
</PreferenceScreen>
I already decompiled the settings.apk and found the xml file key_settings.xml. im wondering which string on the xml file i will delete or modify to disable the menu for button light switch option.