Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a60d5cd3 authored by Sam Mortimer's avatar Sam Mortimer Committed by Steve Kondik
Browse files

Frameworks: Redirect appops strings to string references

Based on strings in:

Author: Steve Kondik <shade@chemlab.org>
Date:   Tue Feb 25 13:11:12 2014 +0100
Relocate and cleanup new app ops features and PGify it
Change-Id: I4eb65f6f88c2f2aecdf054ffd52c31c4d5866900

Change-Id: Iba9a45838ee8eb7f5cb6ec6d29776574c86e84b6
parent 9c8d4b1d
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
@@ -40,4 +40,68 @@
        <item>com.google.android.gsf|com.google.android.talk</item>
    </string-array>

    <!-- Do not translate. App ops request strings -->
    <string-array name="app_ops_labels" translatable="false">
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_use_vibrate</item>
        <item>@string/app_ops_read_contacts</item>
        <item>@string/app_ops_modify_contacts</item>
        <item>@string/app_ops_read_call_log</item>
        <item>@string/app_ops_modify_call_log</item>
        <item>@string/app_ops_read_calendar</item>
        <item>@string/app_ops_modify_calendar</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_post_notification</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_make_phone_call</item>
        <item>@string/app_ops_read_sms</item>
        <item>@string/app_ops_write_sms</item>
        <item>@string/app_ops_receive_sms</item>
        <item>@string/app_ops_receive_sms</item>
        <item>@string/app_ops_receive_sms</item>
        <item>@string/app_ops_receive_sms</item>
        <item>@string/app_ops_send_sms</item>
        <item>@string/app_ops_read_sms</item>
        <item>@string/app_ops_write_sms</item>
        <item>@string/app_ops_modify_settings</item>
        <item>@string/app_ops_draw_on_top</item>
        <item>@string/app_ops_access_notifications</item>
        <item>@string/app_ops_access_camera</item>
        <item>@string/app_ops_record_audio</item>
        <item>@string/app_ops_play_audio</item>
        <item>@string/app_ops_read_clipboard</item>
        <item>@string/app_ops_modify_clipboard</item>
        <item>@string/app_ops_use_media_buttons</item>
        <item>@string/app_ops_use_audio_focus</item>
        <item>@string/app_ops_use_master_volume</item>
        <item>@string/app_ops_use_voice_volume</item>
        <item>@string/app_ops_use_ring_volume</item>
        <item>@string/app_ops_use_media_volume</item>
        <item>@string/app_ops_use_alarm_volume</item>
        <item>@string/app_ops_use_notification_volume</item>
        <item>@string/app_ops_use_bluetooth_volume</item>
        <item>@string/app_ops_keep_device_awake</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_access_location</item>
        <item>@string/app_ops_get_usage_stats</item>
        <item>@string/app_ops_mute_unmute_microphone</item>
        <item>@string/app_ops_toast_window</item>
        <item>@string/app_ops_project_media</item>
        <item>@string/app_ops_activate_vpn</item>
        <item>@string/app_ops_toggle_wifi</item>
        <item>@string/app_ops_toggle_bluetooth</item>
        <item>@string/app_ops_send_mms</item>
        <item>@string/app_ops_read_mms</item>
        <item>@string/app_ops_write_mms</item>
        <item>@string/app_ops_auto_start</item>
        <item>@string/app_ops_toggle_nfc</item>
        <item>@string/app_ops_delete_sms</item>
        <item>@string/app_ops_delete_mms</item>
        <item>@string/app_ops_delete_contacts</item>
        <item>@string/app_ops_delete_call_log</item>
        <item>@string/app_ops_toggle_mobile_data</item>
    </string-array>

</resources>
+53 −0
Original line number Diff line number Diff line
@@ -108,4 +108,57 @@
    <string name="adb_both_active_notification_title">ADB over USB &amp; network enabled</string>
    <!-- ADB notification message-->
    <string name="adb_active_generic_notification_message">Touch to disable debugging.</string>

    <!-- App ops requests -->
    <string name="app_ops_access_camera">access the camera</string>
    <string name="app_ops_access_location">access your location</string>
    <string name="app_ops_access_notifications">read your notifications</string>
    <string name="app_ops_activate_vpn">activate a VPN</string>
    <string name="app_ops_auto_start">start at power up</string>
    <string name="app_ops_delete_call_log">delete your call log</string>
    <string name="app_ops_delete_contacts">delete your contacts</string>
    <string name="app_ops_delete_mms">delete your MMS messages</string>
    <string name="app_ops_delete_sms">delete your SMS messages</string>
    <string name="app_ops_draw_on_top">draw windows on top</string>
    <string name="app_ops_get_usage_stats">get app usage stats</string>
    <string name="app_ops_keep_device_awake">keep your device awake</string>
    <string name="app_ops_make_phone_call">make a phone call</string>
    <string name="app_ops_modify_calendar">update your calendar</string>
    <string name="app_ops_modify_call_log">update the call log</string>
    <string name="app_ops_modify_clipboard">modify the clipboard</string>
    <string name="app_ops_modify_contacts">update your contacts</string>
    <string name="app_ops_modify_settings">update system settings</string>
    <string name="app_ops_mute_unmute_microphone">mute/unmute the microphone</string>
    <string name="app_ops_play_audio">play audio</string>
    <string name="app_ops_post_notification">post a notification</string>
    <string name="app_ops_project_media">project media</string>
    <string name="app_ops_read_calendar">read your calendar</string>
    <string name="app_ops_read_call_log">read the call log</string>
    <string name="app_ops_read_clipboard">read the clipboard</string>
    <string name="app_ops_read_contacts">read your contacts</string>
    <string name="app_ops_read_mms">read your MMS messages</string>
    <string name="app_ops_read_sms">read your SMS messages</string>
    <string name="app_ops_receive_sms">receive an SMS message</string>
    <string name="app_ops_record_audio">record audio</string>
    <string name="app_ops_send_mms">send an MMS message</string>
    <string name="app_ops_send_sms">send an SMS message</string>
    <string name="app_ops_start_at_bootup">start at power up</string>
    <string name="app_ops_toast_window">display toast messages</string>
    <string name="app_ops_toggle_bluetooth">toggle Bluetooth</string>
    <string name="app_ops_toggle_mobile_data">toggle mobile data</string>
    <string name="app_ops_toggle_nfc">toggle NFC</string>
    <string name="app_ops_toggle_wifi">toggle WiFi</string>
    <string name="app_ops_use_alarm_volume">control alarm volume</string>
    <string name="app_ops_use_audio_focus">control the audio focus</string>
    <string name="app_ops_use_bluetooth_volume">control the Bluetooth volume</string>
    <string name="app_ops_use_master_volume">control the master volume</string>
    <string name="app_ops_use_media_buttons">use the media buttons</string>
    <string name="app_ops_use_media_volume">control the media volume</string>
    <string name="app_ops_use_notification_volume">control the notification volume</string>
    <string name="app_ops_use_ring_volume">control the ringtone volume</string>
    <string name="app_ops_use_vibrate">use haptic feedback</string>
    <string name="app_ops_use_voice_volume">control the voice call volume</string>
    <string name="app_ops_write_mms">write an MMS message</string>
    <string name="app_ops_write_sms">write an SMS message</string>

</resources>
+0 −64
Original line number Diff line number Diff line
@@ -2019,70 +2019,6 @@
    <!-- Configuration to sending and receiving Mms when mobile data is disable.-->
    <bool name="config_enable_mms_with_mobile_data_off">false</bool>

    <!-- User display names for app ops codes -->
    <string-array name="app_ops_labels">
        <item>Trying to access location</item>
        <item>Trying to access location</item>
        <item>Trying to access location</item>
        <item>Trying to use vibrate</item>
        <item>Trying to read contacts</item>
        <item>Trying to write contacts</item>
        <item>Trying to read call log</item>
        <item>Trying to write call log</item>
        <item>Trying to read calendar</item>
        <item>Trying to modify calendar</item>
        <item>Trying to access location</item>
        <item>Trying to post notification</item>
        <item>Trying to access location</item>
        <item>Trying to make phone call</item>
        <item>Trying to read SMS</item>
        <item>Trying to write SMS</item>
        <item>Trying to receive SMS</item>
        <item>Trying to receive emergency SMS</item>
        <item>Trying to receive MMS</item>
        <item>Trying to receive WAP push</item>
        <item>Trying to send SMS</item>
        <item>Trying to read ICC SMS</item>
        <item>Trying to write ICC SMS</item>
        <item>Trying to modify settings</item>
        <item>Trying to draw on top</item>
        <item>Trying to access notifications</item>
        <item>Trying to access Camera</item>
        <item>Trying to record audio</item>
        <item>Trying to play audio</item>
        <item>Trying to read clipboard</item>
        <item>Trying to modify clipboard</item>
        <item>Trying to use media buttons</item>
        <item>Trying to use audio focus</item>
        <item>Trying to use master volume</item>
        <item>Trying to use voice volume</item>
        <item>Trying to use ring volume</item>
        <item>Trying to use media volume</item>
        <item>Trying to use alarm volume</item>
        <item>Trying to use notification volume</item>
        <item>Trying to use bluetooth volume</item>
        <item>Trying to Keep device awake</item>
        <item>Trying to access location</item>
        <item>Trying to access location</item>
        <item>Trying to get usage stats</item>
        <item>Trying to mute microphone</item>
        <item>Trying to toast window</item>
        <item>Trying to project media</item>
        <item>Trying to activate vpn</item>
        <item>Trying to turn on/off Wifi</item>
        <item>Trying to trun on/off bluetooth</item>
        <item>Trying to send MMS</item>
        <item>Trying to read MMS</item>
        <item>Trying to write MMS</item>
        <item>Trying to start at bootup</item>
        <item>Trying to turn on/off NFC</item>
        <item>Trying to delete SMS</item>
        <item>Trying to delete MMS</item>
        <item>Trying to delete contacts</item>
        <item>Trying to delete call log</item>
        <item>Trying to turn on mobile data</item>
    </string-array>

    <!-- Configuartion to set zen mode when silent mode is on -->
    <bool name="config_setZenModeWhenSilentModeOn">false</bool>