VirtualBox 中的 lineageOS,点击 Developer options (打算打开调试功能),GUI 重启

================ VirtualBox 中的 lineageOS,点击 Developer options (打算打开调试功能),GUI 重启


grep "About phone" -R . --exclude-dir=out --exclude-dir='\.git' --exclude-dir=cts --exclude-dir=prebuilts
---------------------------------------------
关键字:
【 Developer options 】
【 Root access 】
【 Android debugging 】【 Enable the Android Debug Bridge (ADB) interface 】【 Allow USB debugging? 】【 Always allow from this computer 】
【 Debugging notify 】【Display a notification when USB or network debugging is enabled 】

【 About phone 】
【 System profiles 】
---------------------------------------------

---------------------------------------------
vim packages/apps/Settings/res/values/cm_strings.xml
---------------------------------------------
    <!-- Setting checkbox title for root access -->
    <string name="root_access">Root access</string>
    <string name="root_access_warning_title">Allow root access?</string>
    <string name="root_access_warning_message">Allowing apps to request root access is very dangerous and could compromise the security of your system!</string>
    <string name="root_access_none">Disabled</string>
    <string name="root_access_apps">Apps only</string>
    <string name="root_access_adb">ADB only</string>
    <string name="root_access_all">Apps and ADB</string>

    <!-- Android debugging -->
    <string name="enable_adb_cm">Android debugging</string>
    <string name="enable_adb_summary_cm">Enable the Android Debug Bridge (ADB) interface</string>

    <!-- Android debugging notification -->
    <string name="adb_notify">Debugging notify</string>
    <string name="adb_notify_summary">Display a notification when USB or network debugging is enabled</string>
---------------------------------------------

---------------------------------------------
vim frameworks/base/packages/SystemUI/res/values/strings.xml
---------------------------------------------
    <!-- Title of confirmation dialog for USB debugging -->
    <string name="usb_debugging_title">Allow USB debugging?</string>

    <!-- Message of confirmation dialog for USB debugging -->
    <string name="usb_debugging_message">The computer\'s RSA key fingerprint is:\n<xliff:g id="fingerprint">%1$s</xliff:g></string>

    <!-- Option to always allow USB debugging from the attached computer -->
    <string name="usb_debugging_always">Always allow from this computer</string>
---------------------------------------------

---------------------------------------------
vim frameworks/base/packages/SettingsLib/res/values/strings.xml
---------------------------------------------
    <string name="development_settings_title">Developer options</string>

    <!-- Preference category for app debugging development settings. [CHAR LIMIT=50] -->
    <string name="debug_debugging_category">Debugging</string>
---------------------------------------------

---------------------------------------------
grep development_settings_title -R packages/
---------------------------------------------
packages/apps/Settings/res/xml/development_prefs.xml:            android:summary="@string/enable_adb_summary_cm" />
---------------------------------------------
packages/apps/Settings/AndroidManifest.xml:                android:label="@string/development_settings_title"
packages/apps/Settings/AndroidManifest.xml:                  android:label="@string/development_settings_title"
packages/apps/Settings/res/xml/development_prefs.xml:        android:title="@string/development_settings_title">
---------------------------------------------

---------------------------------------------
packages/apps/CMParts/res/values/strings.xml:    <string name="profiles_settings_title">System profiles</string>
---------------------------------------------
packages/apps/CMParts/AndroidManifest.xml:            android:label="@string/profiles_settings_title"
---------------------------------------------

---------------------------------------------
grep "About phone" -R . --exclude-dir=out --exclude-dir='\.git' --exclude-dir=cts --exclude-dir=prebuilts
---------------------------------------------
./packages/apps/Settings/res/values-en-rAU/strings.xml:    <string name="about_settings" product="default" msgid="1743378368185371685">"About phone"</string>

./packages/apps/Settings/res/values-en-rGB/strings.xml:    <string name="about_settings" product="default" msgid="1743378368185371685">"About phone"</string>

./packages/apps/Settings/res/values-en-rIN/strings.xml:    <string name="about_settings" product="default" msgid="1743378368185371685">"About phone"</string>

./packages/apps/Settings/res/values/strings.xml:    <string name="about_settings" product="default">About phone</string>

./development/samples/UiAutomator/src/com/android/test/uiautomator/demos/LogBuildNumber.java:        if (!selectSettingsFor("About phone"))
---------------------------------------------


---------------------------------------------
vim packages/apps/Settings/res/xml/development_prefs.xml
---------------------------------------------
将这两个选项 【 Root access 】 【 Android debugging 】
移到下面的文件中
---------------------------------------------
vim packages/apps/Settings/AndroidManifest.xml
---------------------------------------------
vim packages/apps/CMParts/AndroidManifest.xml
---------------------------------------------

---------------------------------------------

---------------------------------------------

================ VirtualBox 中的 lineageOS,点击 Developer options (打算打开调试功能),GUI 重启

posted @ 2017-04-23 11:17  张同光  阅读(595)  评论(0编辑  收藏  举报