How To Guide How to change files in Android XML Binary format - ASUS ZenFone 8

In the OmniROM (tested in OmniROM 12 and OmniROM 13) - and I assume in other Android distributions also - global settings are stored the file
/data/system/users/0/settings_global.xml
The file settings_global.xml is in the Android Binary XML format and can not be edited via text editor. To change the entries in that file via script it must be converted to text format and after the necessary changes are done in the file in human readable format converted back from text format to the Android Binary XML format. This can be done with the Android executables abx2xml and xml2abx:
Code:
ASUS_I006D:/ # abx2xml -h
java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
usage: abx2xml [-i] input [output]
usage: xml2abx [-i] input [output]
Converts between human-readable XML and Android Binary XML.
When invoked with the '-i' argument, the output of a successful conversion
will overwrite the original input file. Input can be '-' to use stdin, and
output can be '-' to use stdout.
ASUS_I006D:/ #
Note:
See here https://www.cclsolutionsgroup.com/post/android-abx-binary-xml or here https://cs.android.com/android/plat...ndroid/internal/util/BinaryXmlSerializer.java for details about the Android Binary XML file format.
A lot of xml files in Android are in the Android Binary XML format (there may be others on other phones):
Code:
ASUS_I006D:/ # find /data/system -name "*.xml" -exec file {} \; 2>/dev/null | grep "Android Binary XML" | wc -l
31
ASUS_I006D:/ #
Spoiler: List of XML files in Android Binary XML format in OmniROM 13
Code:
find /data/system -name "*.xml" -exec file {} \; 2>/dev/null | grep "Android Binary XML"
ASUS_I006D:/ # find /data/system -name "*.xml" -exec file {} \; 2>/dev/null | grep "Android Binary XML"
/data/system/users/0/package-restrictions.xml: Android Binary XML v0
/data/system/users/0/registered_services/android.content.SyncAdapter.xml: Android Binary XML v0
/data/system/users/0/registered_services/android.accounts.AccountAuthenticator.xml: Android Binary XML v0
/data/system/users/0/settings_system.xml: Android Binary XML v0
/data/system/users/0/settings_secure.xml: Android Binary XML v0
/data/system/users/0/settings_global.xml: Android Binary XML v0
/data/system/users/0/wallpaper_info.xml: Android Binary XML v0
/data/system/users/0/appwidgets.xml: Android Binary XML v0
/data/system/users/0.xml: Android Binary XML v0
/data/system/users/userlist.xml: Android Binary XML v0
/data/system/appops/history/900000.xml: Android Binary XML v0
/data/system/appops/history/9900000.xml: Android Binary XML v0
/data/system/appops/history/99900000.xml: Android Binary XML v0
/data/system/package-watchdog.xml: Android Binary XML v0
/data/system/display-manager-state.xml: Android Binary XML v0
/data/system/packages.xml: Android Binary XML v0
/data/system/overlays.xml: Android Binary XML v0
/data/system/sensor_privacy.xml: Android Binary XML v0
/data/system/watchlist_settings.xml: Android Binary XML v0
/data/system/cachequota.xml: Android Binary XML v0
/data/system/job/jobs.xml: Android Binary XML v0
/data/system/device_policies.xml: Android Binary XML v0
/data/system/shortcut_service.xml: Android Binary XML v0
/data/system/inputmethod/subtypes.xml: Android Binary XML v0
/data/system/install_sessions.xml: Android Binary XML v0
/data/system/appops.xml: Android Binary XML v0
/data/system/log-files.xml: Android Binary XML v0
/data/system/notification_policy.xml: Android Binary XML v0
/data/system/netpolicy.xml: Android Binary XML v0
/data/system/sensor_privacy_impl.xml: Android Binary XML v0
/data/system/batterystats-daily.xml: Android Binary XML v0
ASUS_I006D:/ #
So to change the settings in the file settings_global.xml these commands are necessary:
Example:
Code:
# convert the file into a human readable format
#
ASUS_I006D:/ # abx2xml /data/system/users/0/settings_global.xml /data/local/tmp/setttings_global.xml.human
ASUS_I006D:/ #
ASUS_I006D:/ # ls -l /data/local/tmp/setttings_global.xml.human
-rw-r--r-- 1 root root 15425 2022-11-20 14:30 /data/local/tmp/setttings_global.xml.human
ASUS_I006D:/ #
ASUS_I006D:/ # file /data/local/tmp/setttings_global.xml.human
/data/local/tmp/setttings_global.xml.human: ASCII text
ASUS_I006D:/ #
ASUS_I006D:/ # head -5 /data/local/tmp/setttings_global.xml.human
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<settings version="210">
<setting id="140" name="adb_wifi_enabled" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="86" name="mobile_data1" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" />
<setting id="91" name="mobile_data2" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
ASUS_I006D:/ #
Now edit the file /data/local/tmp/setttings_global.xml.human and convert it back to Android Binary XML format
Code:
# convert the XML file in human readable format into the Android Binary XML format
#
ASUS_I006D:/ # xml2abx /data/local/tmp/setttings_global.xml.human /data/system/users/0/settings_global.xml
ASUS_I006D:/ #
ASUS_I006D:/ # ls -l /data/system/users/0/settings_global.xml
-rw------- 1 system system 10697 2022-11-20 15:34 /data/system/users/0/settings_global.xml
ASUS_I006D:/ #
To activate the new settings just reboot the phone.
Note:
The global settings in the file settings_global.xml in the OmniROM 13 are (there may be others on other phones):
Spoiler: Entries in settings_global.xml
Code:
cat /data/local/tmp/setttings_global.xml.human
ASUS_I006D:/ # cat /data/local/tmp/setttings_global.xml.human
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<settings version="210">
<setting id="140" name="adb_wifi_enabled" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="86" name="mobile_data1" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" />
<setting id="91" name="mobile_data2" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
<setting id="41" name="low_battery_sound_timeout" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="33" name="car_undock_sound" value="/product/media/audio/ui/Undock.ogg" package="android" defaultValue="/product/media/audio/ui/Undock.ogg" defaultSysSet="true" />
<setting id="131" name="enable_freeform_support" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="128" name="show_notification_channel_warnings" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="103" name="time_remaining_estimate_based_on_usage" value="0" package="com.android.systemui" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
<setting id="142" name="development_settings_enabled" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="10" name="window_animation_scale" value="1.0" package="android" defaultValue="1.0" defaultSysSet="true" />
<setting id="136" name="stylus_handwriting_enabled" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="129" name="force_allow_on_external" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="106" name="multi_sim_data_call" value="2" package="com.android.phone" defaultValue="2" defaultSysSet="true" preserve_in_restore="true" />
<setting id="122" name="tether_offload_disabled" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" />
<setting id="105" name="battery_estimates_last_update_time" value="1668412978004" package="com.android.systemui" defaultValue="1668412978004" defaultSysSet="true" preserve_in_restore="true" />
<setting id="9" name="mode_ringer" value="2" package="android" defaultValue="2" defaultSysSet="true" />
<setting id="36" name="default_install_location" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="22" name="wifi_display_on" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="44" name="device_name" value="ASUS_I006D" package="android" defaultValue="ASUS_I006D" defaultSysSet="true" />
<setting id="13" name="wifi_networks_available_notification_on" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="29" name="dock_sounds_enabled_when_accessbility" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="14" name="bluetooth_on" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="115" name="bugreport_in_power_menu" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="18" name="mobile_data" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="160" name="network_watchlist_last_report_time" value="1668898800000" package="android" defaultValue="1668898800000" defaultSysSet="true" preserve_in_restore="true" />
<setting id="135" name="autofill_logging_level" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="46" name="database_creation_buildid" value="SQ3A.220605.009.A1" package="android" defaultValue="SQ3A.220605.009.A1" defaultSysSet="true" />
<setting id="118" name="art_verifier_verify_debuggable" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" />
<setting id="37" name="emergency_tone" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="114" name="adb_allowed_connection_time" value="604800000" package="com.android.settings" defaultValue="604800000" defaultSysSet="true" />
<setting id="53" name="max_sound_trigger_detection_service_ops_per_day" value="1000" package="android" defaultValue="1000" defaultSysSet="true" />
<setting id="47" name="add_users_when_locked" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="34" name="dock_audio_media_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="117" name="enable_gpu_debug_layers" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="143" name="adb_enabled" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="25" name="trusted_sound" value="/product/media/audio/ui/Trusted.ogg" package="android" defaultValue="/product/media/audio/ui/Trusted.ogg" defaultSysSet="true" />
<setting id="24" name="unlock_sound" value="/product/media/audio/ui/omni_unlock_phone.ogg" package="android" defaultValue="/product/media/audio/ui/omni_unlock_phone.ogg" defaultSysSet="true" />
<setting id="130" name="force_resizable_activities" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="2" name="airplane_mode_radios" value="cell,bluetooth,wifi,nfc,wimax" package="android" defaultValue="cell,bluetooth,wifi,nfc,wimax" defaultSysSet="true" />
<setting id="21" name="wifi_max_dhcp_retry_count" value="9" package="android" defaultValue="9" defaultSysSet="true" />
<setting id="126" name="always_finish_activities" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="3" name="airplane_mode_toggleable_radios" value="bluetooth,wifi,nfc" package="android" defaultValue="bluetooth,wifi,nfc" defaultSysSet="true" />
<setting id="43" name="heads_up_notifications_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="78" name="low_power" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="58" name="charging_started_sound" value="/product/media/audio/ui/ChargingStarted.ogg" package="android" defaultValue="/product/media/audio/ui/ChargingStarted.ogg" defaultSysSet="true" />
<setting id="64" name="zen_mode_ringer_level" value="2" package="android" defaultValue="2" defaultSysSet="true" />
<setting id="65" name="user_disabled_hdr_formats" value="" package="android" defaultValue="" defaultSysSet="true" />
<setting id="39" name="preferred_network_mode" value="26,26" package="android" defaultValue="26,26" defaultSysSet="true" />
<setting id="48" name="bluetooth_disabled_profiles" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="31" name="desk_undock_sound" value="/product/media/audio/ui/Undock.ogg" package="android" defaultValue="/product/media/audio/ui/Undock.ogg" defaultSysSet="true" />
<setting id="55" name="zen_duration" package="android" />
<setting id="121" name="mobile_data_always_on" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="97" name="debug_app" package="android" preserve_in_restore="true" />
<setting id="8" name="wifi_sleep_policy" value="2" package="android" defaultValue="2" defaultSysSet="true" />
<setting id="28" name="dock_sounds_enabled" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="107" name="wifi_scan_always_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="127" name="cached_apps_freezer" value="device_default" package="com.android.settings" defaultValue="device_default" defaultSysSet="true" />
<setting id="125" name="overlay_display_devices" package="com.android.settings" />
<setting id="87" name="data_roaming1" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" />
<setting id="84" name="data_roaming2" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" />
<setting id="138" name="enable_back_animation" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="82" name="network_recommendations_enabled" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="133" name="enable_non_resizable_multi_window" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
<setting id="102" name="bluetooth_sanitized_exposure_notification_supported" value="1" package="com.android.bluetooth" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="32" name="car_dock_sound" value="/product/media/audio/ui/Dock.ogg" package="android" defaultValue="/product/media/audio/ui/Dock.ogg" defaultSysSet="true" />
<setting id="54" name="sound_trigger_detection_service_op_timeout" value="15000" package="android" defaultValue="15000" defaultSysSet="true" />
<setting id="79" name="updatable_driver_production_denylist" value="" package="android" defaultValue="" defaultSysSet="true" />
<setting id="26" name="power_sounds_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="111" name="stay_on_while_plugged_in" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
<setting id="104" name="average_time_to_discharge" value="-1" package="com.android.systemui" defaultValue="-1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="45" name="lid_behavior" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="159" name="zen_mode_config_etag" value="1249128678" package="android" defaultValue="1249128678" defaultSysSet="true" preserve_in_restore="true" />
<setting id="35" name="set_install_location" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="116" name="debug_view_attributes" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="62" name="zen_mode" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="11" name="transition_animation_scale" value="1.0" package="android" defaultValue="1.0" defaultSysSet="true" />
<setting id="16" name="data_roaming" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="80" name="sysui_tuner_demo_on" value="0" package="com.android.systemui" defaultValue="0" defaultSysSet="true" />
<setting id="123" name="debug.force_rtl" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="1" name="theater_mode_on" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="15" name="cdma_cell_broadcast_sms" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="137" name="ingress_rate_limit_bytes_per_second" value="-1" package="com.android.settings" defaultValue="-1" defaultSysSet="true" />
<setting id="0" name="airplane_mode_on" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="132" name="force_desktop_mode_on_external_displays" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="50" name="default_restrict_background_data" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="27" name="low_battery_sound" value="/product/media/audio/ui/omni_lowbattery1.ogg" package="android" defaultValue="/product/media/audio/ui/omni_lowbattery1.ogg" defaultSysSet="true" />
<setting id="56" name="apply_ramping_ringer" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="95" name="wait_for_debugger" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="19" name="netstats_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="49" name="wifi_wakeup_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="112" name="ota_disable_automatic_update" value="1" package="com.android.settings" defaultValue="1" defaultSysSet="true" />
<setting id="63" name="wifi_migration_completed" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="101" name="time_remaining_estimate_millis" value="-1" package="com.android.systemui" defaultValue="-1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="40" name="subscription_mode" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="4" name="assisted_gps_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="23" name="lock_sound" value="/product/media/audio/ui/omni_lock_phone.ogg" package="android" defaultValue="/product/media/audio/ui/omni_lock_phone.ogg" defaultSysSet="true" />
<setting id="120" name="non_persistent_mac_randomization_force_enabled" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="6" name="auto_time_zone" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="134" name="enable_gnss_raw_meas_full_tracking" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="88" name="wifi_on" value="1" package="android" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="57" name="wireless_charging_started_sound" value="/product/media/audio/ui/WirelessChargingStarted.ogg" package="android" defaultValue="/product/media/audio/ui/WirelessChargingStarted.ogg" defaultSysSet="true" />
<setting id="83" name="device_provisioned" value="1" package="com.android.provision" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="119" name="wifi_display_certification_on" value="0" package="com.android.settings" defaultValue="0" defaultSysSet="true" />
<setting id="81" name="sysui_demo_allowed" value="0" package="com.android.systemui" defaultValue="0" defaultSysSet="true" />
<setting id="59" name="hdmi_control_auto_device_off_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="5" name="auto_time" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="20" name="usb_mass_storage_enabled" value="1" package="android" defaultValue="1" defaultSysSet="true" />
<setting id="38" name="call_auto_retry" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="77" name="audio_safe_volume_state" value="3" package="android" defaultValue="3" defaultSysSet="true" />
<setting id="141" name="boot_count" value="4" package="android" defaultValue="4" defaultSysSet="true" preserve_in_restore="true" />
<setting id="30" name="desk_dock_sound" value="/product/media/audio/ui/Dock.ogg" package="android" defaultValue="/product/media/audio/ui/Dock.ogg" defaultSysSet="true" />
<setting id="124" name="animator_duration_scale" value="1.0" package="android" defaultValue="1.0" defaultSysSet="true" />
</settings>
ASUS_I006D:/ #
Working with files in Android Binary XML format on a PC
I do not know a tool to convert a file in Android Binary XML format to human readable format on a PC.
There is a tool to convert binary XML files used in apk files to human readable format and vice versa called xml2axml (https://github.com/hzw1199/xml2axml)
XML files used in apk files are in AXML format, which is also a binary format for XML files, but different from the Android Binary XML format.
I used xml2axml successfully to convert XML files used in apk files but xml2axml does not work for files in the Android Binary XML format.
I did not test it but I assume that's also true for other tools to work with apk files like apktool or dex2jar.
Other tools for files in Android Binary XML format I found are:
The abx converter from here https://github.com/cclgroupltd/android-bits/tree/main/ccl_abx claims to be a tool to convert Android Binary XML files but seems not to work for Android Binary XML files from OmniROM 13:
Code:
[[email protected] /data/develop/android/android-bits-main/ccl_abx]$ python3 ccl_abx.py ../../test2/settings_global.xml
Traceback (most recent call last):
File "/data/develop/android/android-bits-main/ccl_abx/ccl_abx.py", line 292, in <module>
main(sys.argv[1:])
File "/data/develop/android/android-bits-main/ccl_abx/ccl_abx.py", line 284, in main
doc = reader.read(is_multi_root=multi_root)
File "/data/develop/android/android-bits-main/ccl_abx/ccl_abx.py", line 266, in read
raise NotImplementedError(f"unexpected XML type: {xml_type}")
NotImplementedError: unexpected XML type: 7
[[email protected] /data/develop/android/android-bits-main/ccl_abx]$
Update 23.11.2022 /bs
ccl_abx.py works for the Android Binary XML files from OmniROM 12, e.g.
Code:
[[email protected] /data/develop/android/android-bits-main/ccl_abx]$ python3 ccl_abx.py ../../test2/settings_global_a12.xml -mr | sed "s/>/>\n/g" | more
<root>
<settings version="205">
<setting id="67" name="adb_wifi_enabled" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="91" name="mobile_data1" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
<setting id="87" name="mobile_data2" value="0" package="com.android.phone" defaultValue="0" defaultSysSet="true" />
<setting id="41" name="low_battery_sound_timeout" value="0" package="android" defaultValue="0" defaultSysSet="true" />
<setting id="33" name="car_undock_sound" value="/product/media/audio/ui/Undock.ogg" package="android" defaultValue="/product/media/audio/ui/Undock.ogg" defaultSysSet="true" />
<setting id="101" name="time_remaining_estimate_based_on_usage" value="0" package="com.android.systemui" defaultValue="0" defaultSysSet="true" preserve_in_restore="true" />
....
<setting id="85" name="wifi_on" value="1" package="android" defaultValue="1" defaultSysSet="true" preserve_in_restore="true" />
<setting id="57" name="wireless_charging_started_sound" value="/product/media/audio/ui/WirelessChargingStarted.ogg" package="android" defaultValue="/product/media/audio/ui/WirelessChargingStarted.ogg" defaultSysSet="true" />
[[email protected] /data/develop/android/android-bits-main/ccl_abx]$
There is a github repo with an abx parser in go https://github.com/SagerNet/abx-go (I did not test this)
Example
I wrote a little script to use the method described above to enable WiFi
enable_wifi.sh
The script will enable WiFi in the persistent settings if it's currently disabled; if WiFi is already enabled the script will change nothing.
The script must be executed by the user root on the phone.
Example output of the script:
Output if WiFi is disabled:
Code:
ASUS_I006D:/ # /data/local/tmp/enable_wifi.sh
Checking WiFi status in the persistent global settings ...
Converting the file "/data/system/users/0/settings_global.xml" to an XML file in text format "data/local/tmp/setttings_global.xml.human.9574" ...
WiFi is currently disabled -- enabling WiFi now :..
... WiFi enabled in the persistent global settings.
To activate the change reboot the phone
ASUS_I006D:/ #
Output if WiFi is already enabled:
Code:
ASUS_I006D:/ # /data/local/tmp/enable_wifi.sh
Checking WiFi status in the persistent global settings ...
Converting the file "/data/system/users/0/settings_global.xml" to an XML file in text format "data/local/tmp/setttings_global.xml.human.9613" ...
WiFi is already enabled in the persistent global settings
ASUS_I006D:/ #
The script is attached to this post ; it can also be downloaded from here: enable_wifi.sh.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Important Note
After writing this HowTo I discovered that there is a native Android command to change the settings stored in the file /data/system/users/0/settings_global.xml:
settings
Spoiler: settings usage
Code:
Usage:
ASUS_I006D:/ $ settings
Settings provider (settings) commands:
help
Print this help text.
get [--user <USER_ID> | current] NAMESPACE KEY
Retrieve the current value of KEY.
put [--user <USER_ID> | current] NAMESPACE KEY VALUE [TAG] [default]
Change the contents of KEY to VALUE.
TAG to associate with the setting.
{default} to set as the default, case-insensitive only for global/secure namespace
delete [--user <USER_ID> | current] NAMESPACE KEY
Delete the entry for KEY.
reset [--user <USER_ID> | current] NAMESPACE {PACKAGE_NAME | RESET_MODE}
Reset the global/secure table for a package with mode.
RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
list [--user <USER_ID> | current] NAMESPACE
Print all defined keys.
NAMESPACE is one of {system, secure, global}, case-insensitive
255|ASUS_I006D:/ $
Spoiler: settings example
e.g to set or get the WiFi status:
Code:
ASUS_I006D:/ $ settings get global wifi_on
1
ASUS_I006D:/ $
ASUS_I006D:/ $ settings put global wifi_on 0
ASUS_I006D:/ $
ASUS_I006D:/ $ settings get global wifi_on
0
ASUS_I006D:/ $
ASUS_I006D:/ $ settings put global wifi_on 1
ASUS_I006D:/ $
ASUS_I006D:/ $ settings get global wifi_on
1
ASUS_I006D:/ $
A description of the known settings is here:
https://developer.android.com/reference/android/provider/Settings.Global
https://developer.android.com/reference/android/provider/Settings.Secure
https://developer.android.com/reference/android/provider/Settings.System
But since this HowTo is mainly about editing files in Android Binary XML format and the change of the WiFi status is only meant as an example, I leave it like this

Really interesting.
This helps a lot.
Thank you very much

Thank you, amazing post!

Related

[DEV][Q] What's wrong with Sense GSM

Hi folks I want to ask. As you can see,I'm trying to port decently Sense ROM to P500. But GSM isn't working. For making it work i tried to use and import the following libs from devoid:
Code:
[B]/system/lib[/B]
libril-qc-1.so
liboncrpc.so
libdsm.so
libqueue.so
libdiag.so
libauth.so
libcm.so
libnv.so
libpbmlib.so
libwms.so
libwmsts.so
libmmgsdilib.so
libgsdi_exp.so
libgstk_exp.so
libril-qcril-hook-oem.so
liboem_rapi.so
libsnd.so
libqmi.so
libdll.so
liblgeat.so
liblgdrm.so
liblgdrmwbxml.so
liblgerft.so
libbcmwl.so
libdss.so
[B]/system/bin[/B]
rild
But nothing. Mik also gave me a link of his sources,telling me that maybe I had to add some lg proprietary things.
Code:
[B]/system/bin[/B]
qmuxd
rmt_storage
port-bridge
wiperiface
tsdown
netmgrd
[B]/system/etc[/B]
MELFAS_FIRM.bin (I know it's a TS thang,but just to be sure...)
[B]/system/lib[/B]
libsdutils.so
libnetmgr.so
Did I miss something? I don't think so. I've imported all libs specified here.
It's impossible! GSM Still isn't working. I'm now thinking it's a permission problem,found this in logcat:
Code:
W/PackageManager( 1405): Unknown permission android.permission.ACCESS_NETWORK_LOCATION in package com.htc.android.locationpicker
W/PackageManager( 1405): Unknown permission android.permission.ACCESS_NETWORK_LOCATION in package com.htc.htcsettingwidgets
E/ConnectivityService( 1405): Error in networkAttributes - ignoring attempt to adopt radio 6
Any ideas?
Zecanilis made a mistake here. Why moving it to general section? I'm talking about a PORTING,which is a DEV thing.
Sent from my LG Optimus One P500 using XDA App
ciaox said:
Zecanilis made a mistake here. Why moving it to general section? I'm talking about a PORTING,which is a DEV thing.
I agree. Why? This is made by a dev who is talking dev. +1 to moving this back.
Sent from my LG Optimus One P500 using XDA App
Click to expand...
Click to collapse
Sent from my LG-P500 using XDA App
I think I know a solution, will look into it and if I'm right I'll let you know.
Sent from my LG-P500 using XDA App
Like I thought, in /system/etc/permissions/ this permission is missing, adding it to platform.xml perhaps solves it.
_Arjen_ said:
Like I thought, in /system/etc/permissions/ this permission is missing, adding it to platform.xml perhaps solves it.
Click to expand...
Click to collapse
I will let you know,thanks. If it doesn't work,I really don't know how to solve it,because I've tried it all.
Ok here's my platform.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="android.permission.CAMERA" >
<group gid="camera" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<!-- Standard permissions granted to the shell. -->
<assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" />
<assign-permission name="android.permission.SEND_SMS" uid="shell" />
<assign-permission name="android.permission.CALL_PHONE" uid="shell" />
<assign-permission name="android.permission.READ_CONTACTS" uid="shell" />
<assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" />
<assign-permission name="android.permission.READ_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.WRITE_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.READ_CALENDAR" uid="shell" />
<assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" />
<assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" />
<assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" />
<assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" />
<assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" />
<assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" />
<assign-permission name="android.permission.ACCESS_NETWORK_STATE" uid="shell" />
<assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" />
<assign-permission name="android.permission.BLUETOOTH" uid="shell" />
<!-- System tool permissions granted to the shell. -->
<assign-permission name="android.permission.GET_TASKS" uid="shell" />
<assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" />
<assign-permission name="android.permission.REORDER_TASKS" uid="shell" />
<assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" />
<assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" />
<assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" />
<assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" />
<assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" />
<!-- Development tool permissions granted to the shell. -->
<assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" />
<assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" />
<assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" />
<assign-permission name="android.permission.DUMP" uid="shell" />
<assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" />
<!-- Internal permissions granted to the shell. -->
<assign-permission name="android.permission.FORCE_BACK" uid="shell" />
<assign-permission name="android.permission.BATTERY_STATS" uid="shell" />
<assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" />
<assign-permission name="android.permission.INJECT_EVENTS" uid="shell" />
<assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" />
<assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" />
<assign-permission name="android.permission.SET_ORIENTATION" uid="shell" />
<assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" />
<assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" />
<assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" />
<assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" />
<assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" />
<assign-permission name="android.permission.DEVICE_POWER" uid="shell" />
<assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" />
<assign-permission name="android.permission.BACKUP" uid="shell" />
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_DRM" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
<!-- HTC PIM library (Contacts / Calendar / Mail / Sync ...) -->
<library name="com.htc.android.pimlib"
file="/system/framework/com.htc.android.pimlib.jar"/>
<!-- HTC EAS shared library (for OpenSource parts) -->
<library name="com.htc.android.easopen"
file="/system/framework/com.htc.android.easopen.jar"/>
<!-- add by Justin_Liu, for scalado library -->
<library name="com.scalado.util.ScaladoUtil"
file="/system/framework/com.scalado.util.ScaladoUtil.jar"/>
</permissions>
So,I need to add something like this:
Code:
<permission name="android.permission.ACCESS_NETWORK_LOCATION" >
<group gid="sdcard_rw" />
</permission>
But,I also need to change "group gid". Any idea of what I need to put in that "group gid"?
Also I found some other interesting things. I found this in platform.xml:
Code:
<assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" />
<assign-permission name="android.permission.SEND_SMS" uid="shell" />
<assign-permission name="android.permission.CALL_PHONE" uid="shell" />
<assign-permission name="android.permission.READ_CONTACTS" uid="shell" />
<assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" />
<assign-permission name="android.permission.READ_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.WRITE_OWNER_DATA" uid="shell" />
<assign-permission name="android.permission.READ_CALENDAR" uid="shell" />
<assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" />
<assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" />
<assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" />
<assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" />
<assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" />
<assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" />
<assign-permission name="android.permission.[B]ACCESS_NETWORK_STATE[/B]" uid="shell" />
<assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" />
<assign-permission name="android.permission.BLUETOOTH" uid="shell" />
<!-- System tool permissions granted to the shell. -->
<assign-permission name="android.permission.GET_TASKS" uid="shell" />
<assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" />
<assign-permission name="android.permission.REORDER_TASKS" uid="shell" />
<assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" />
<assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" />
<assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" />
<assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" />
<assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" />
<!-- Development tool permissions granted to the shell. -->
<assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" />
<assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" />
<assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" />
<assign-permission name="android.permission.DUMP" uid="shell" />
<assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" />
<!-- Internal permissions granted to the shell. -->
<assign-permission name="android.permission.FORCE_BACK" uid="shell" />
<assign-permission name="android.permission.BATTERY_STATS" uid="shell" />
<assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" />
<assign-permission name="android.permission.INJECT_EVENTS" uid="shell" />
<assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" />
<assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" />
<assign-permission name="android.permission.SET_ORIENTATION" uid="shell" />
<assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" />
<assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" />
<assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" />
<assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" />
<assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" />
<assign-permission name="android.permission.DEVICE_POWER" uid="shell" />
<assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" />
<assign-permission name="android.permission.BACKUP" uid="shell" />
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_DRM" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
These should be the declared permissions.
I've seen that here android.permission.ACCESS_NETWORK_STATE is declared but it isn't declared here:
Code:
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="android.permission.CAMERA" >
<group gid="camera" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
I should declare it together with android.permission.ACCESS_NETWORK_LOCATION,shouldn't I?
ciaox said:
Zecanilis made a mistake here. Why moving it to general section? I'm talking about a PORTING,which is a DEV thing.
Sent from my LG Optimus One P500 using XDA App
Click to expand...
Click to collapse
Yes i made a mistake, for 2 minutes. I'm human you know!
And if you've changed the name of the thread it whouldn't happen. So please change the [Q] to [DEV Q].
Cheers
Zecanilis said:
Yes i made a mistake, for 2 minutes. I'm human you know!
And if you've changed the name of the thread it whouldn't happen. So please change the [Q] to [DEV Q].
Cheers
Click to expand...
Click to collapse
Ok I will. But don't get mad!
you are missing the lib libril.so and the binary rild
if its still not working, have a look in init.rc and init.thunderg.rc files to see
how and when services are started
andy572 said:
you are missing the lib libril.so and the binary rild
if its still not working, have a look in init.rc and init.thunderg.rc files to see
how and when services are started
Click to expand...
Click to collapse
No,i didn't miss rild binary and neither libril.so
Ok i'll take a look at that .rc files.
I'm not sure if you have to use uid or gid here, try with uid=shell,
will take a look for possible gid
ciaox Cant you add the gsm etc from the russian exe available for GB roms and thn we can flash this sense rom ? Any idea
mansirawat said:
ciaox Cant you add the gsm etc from the russian exe available for GB roms and thn we can flash this sense rom ? Any idea
Click to expand...
Click to collapse
Thanks for the idea,but i need some Froyo libs.
upd: I looked after froyo platform.xml but ACCESS_NETWORK_LOCATION isn't declared there too. So,I now think that it's something in .rc files,but I'll try to touch platform.xml too.
ciaox
upd:Got it working. Took libs from my openOptimus rom and opensource rild binary. One question: I can't make calls,but I can recieve 'em. Why? Trying with another dialer.
ciaox said:
upd:Got it working. Took libs from my openOptimus rom and opensource rild binary. One question: I can't make calls,but I can recieve 'em. Why? Trying with another dialer.
Click to expand...
Click to collapse
Well, just symlink gsmincomingcall.so to gsmoutgoingcall.so?
OK, seriously - maybe upload it somewhere so that people can mess with it and possibly find out? (After all, incoming calls working is still a whole lot better than no GSM altogether - which is what people are stuck with ATM.)
doktornotor said:
Well, just symlink gsmincomingcall.so to gsmoutgoingcall.so?
OK, seriously - maybe upload it somewhere so that people can mess with it and possibly find out? (After all, incoming calls working is still a whole lot better than no GSM altogether - which is what people are stuck with ATM.)
Click to expand...
Click to collapse
Upload what man? The whole rom or what?
ciaox said:
Upload what man? The whole rom or what?
Click to expand...
Click to collapse
Well yeah... kinda hard to debug such stuff when you have nothing at hand to experiment with. Or maybe just some flashable "hotfix" zip to the first alpha you posted here.
doktornotor said:
Well yeah... kinda hard to debug such stuff when you have nothing at hand to experiment with. Or maybe just some flashable "hotfix" zip to the first alpha you posted here.
Click to expand...
Click to collapse
Even dialer One fails(Uses same system method for calling).

TWRP Theme Porter [ Android ]

I have put together a script called, TWRPPORTER, that will port both the images and the ui.xml file from one specified resolution to another specified resolution.
The ui porter will not port the keyboardtemplate so it must be dealt with manually, and it will not touch the font size since that tends to be a preference amongst different devices, but it will handle everything else.
The images known to be used for TWRP themes are .jpg, and .png so the script will search for the given extensions based on where you point it to and then determine the original width and height of each image. It will resize them accordingly and write back to that same image to prevent duplicates.
After the script has been ran and you adjust the font size, then manually port the keyboardtemplate, all you are required to do is zip it up and name it, ui.zip.
Inside your TWRP folder will be another foldered named, theme (lowercase). Place the ui.zip inside the theme folder and boot in to your TWRP Recovery. Voila.
Please, keep in mind, that if you come across a TWRP theme which you later port and some things are still slightly off it could be due to a few causes:
1. The original theme developer was sloppy with his own work so you must fix his mistakes.
2. You grabbed a Theme designed for a Tablet to use on a regular device or vice versa. - ( Please use common sense)
Both scripts require the use of busybox applets which have been symlinked.
The script also requires the use of GraphicsMagick (gm) when porting images. Which overall the utility is mainly known for being a Linux utility but I was able to cross compile it from source. GM has been embedded into the TWRPPORTER script. When you run the script it will give you the option to install GM if your device is found not to have it. Later, the script will also give you the option to uninstall it if you so choose to do so.
The TWRPPORTER script will save a person HOURS of their time while porting TWRP Themes, but don't be fooled as the user will still be expected to have some personal experience porting such themes. The TWRPUI script WILL have to echo on to your screen certain values which can be located within "variable names" inside the ui.xml file. These special case values are to be determined by the human mind whether they resemble width or height and at which the user will type and enter, w/W or h/H. These special case values cannot be automatically determined simply due to the fact that any given themer can call these variable names whatever they want if they deem it necessary to do so. However, I have implemented some checks in to the script to help reduce this as much as possible.
However, the script WILL hunt down all x=, y=, w=, h=, width=, and height= values then automatically modify them according to the base and port resolution given as info to the script.
Once the script finishes you will find a file called, PORT_UI.xml.
To get access to this TWRP Theme Porter you can find it on my repo provided within the below link. The README.md file will provide a little more information.
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER
TWRPIMAGE
{
"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"
}
TWRPUI
Here is a preview to show the results of using the TWRP Theme Porter seen from this link:
spanish33 said:
Holo black theme from @z31s1g ported using @Modding.MyMind TWRP theme porter. This theme allows you to change the color to red, green, blue, pink, orange, white or yellow. See second post for download link
Holo Black
Screenshot:
Click to expand...
Click to collapse
Sent from my C525c using Tapatalk
Looks interesting... Now just to figure out how to use it... No PC here desperately trying to theme and mod via device only...
Sent from my XT907 using XDA Premium 4 mobile app
This will work from the device but unless you have some sort of experience porting TWRP Themes then this script may not help you.
This will save someone hours of work.
Sent from my C525c using Tapatalk
The gm binary in my repo is to be used in conjunction with the TWRPIMAGE script. Place the binary in /system/bin then set permissions to either 755 or 777 (your choice), though good practice would be 755.
777 = rwx-rwx-rwx
755 = rwx-r-x-r-x
Sent from my C525c using Tapatalk
Just want to leave an "amazing work", as usual
I've been reading a lot about it that's how I came across this... Few more nights of reading and I'm sure I'll get it
Sent from my XT907 using XDA Premium 4 mobile app
ezknives said:
I've been reading a lot about it that's how I came across this... Few more nights of reading and I'm sure I'll get it
Sent from my XT907 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The best way to learn is to do one manually . After a successful port or two you will get the gist of it pretty quick. Then, when you use my work from here you will see how much of a relief it is lol.
Sent from my C525c using Tapatalk
Modding.MyMind said:
The best way to learn is to do one manually . After a successful port or two you will get the gist of it pretty quick. Then, when you use my work from here you will see how much of a relief it is lol.
Sent from my C525c using Tapatalk
Click to expand...
Click to collapse
yes this script is big relief compared to the manual way! great work @Modding.MyMind can't thank you enough.
How to Manually Port a TWRP Theme
Holofied Black originally from resolution 720x1280 by @z31s1g which has been ported to resolution 480x800. What is being displayed below is how you would go about porting such a theme and what all it entails for porting a TWRP Theme in most cases. Feel free to study it and learn. This is how you would go about it manually.
All "-" symbols means it was removed and all "+" symbols means it was added. I have them all color coded between red and green but it appears XDA made a change to the "code" format on here so I apologize for that.
To port width based values the following is applied:
720/$=$.$
480/$.$=$.$$
Round up or down based on .5 to the nearest integer.
Above logic is used with height equivalent values as well AND to include porting the actual images.
I believe the above is pretty self explanatory.
x, w, and width values are based on width.
y, h, and height values are based on height.
Inside the ui.xml files are <variable names> which will be conducted of a mixture of those mentioned above - such values I like to call special case values. ( Watch out for them )
Code:
--- /home/moddingmymind/Desktop/theme/2.7.1.x_Holofied_Black/720_black/ui.xml
+++ /home/moddingmymind/Desktop/theme/2.7.1.x_Holofied_Black/ui.xml
@@ -2,7 +2,7 @@
<recovery>
<details>
[COLOR="Red"]- <resolution width="720" height="1280" />[/COLOR]
[COLOR="Green"]+ <resolution width="480" height="800" />[/COLOR]
<author>z31s1g</author>
<title>TWRP Holofied black</title>
<description>Holofied black theme for TWRP recovery</description>
@@ -11,10 +11,10 @@
<resources>
[COLOR="Red"]- <resource name="font" type="font" filename="Roboto-Regular-25" />[/COLOR]
[COLOR="Green"]+ <resource name="font" type="font" filename="Roboto-Regular-20" />[/COLOR]
<resource name="font_small" type="font" filename="Roboto-Regular-20" />
[COLOR="Red"]- <resource name="font_medium" type="font" filename="Roboto-Regular-30" />[/COLOR]
[COLOR="Red"]- <resource name="font_big" type="font" filename="Roboto-Regular-40" />[/COLOR]
[COLOR="Green"]+ <resource name="font_medium" type="font" filename="Roboto-Regular-20" />[/COLOR]
[COLOR="Green"]+ <resource name="font_big" type="font" filename="Roboto-Regular-20" />[/COLOR]
<resource name="statusbar" type="image" filename="statusbar" />
<resource name="navbar" type="image" filename="navbar" />
@@ -273,103 +273,103 @@
<variable name="location_addfile" value="/sdcard/Download" persist="1" />
<variable name="location_themes" value="/sdcard/Download" persist="1" />
[COLOR="Red"]- <variable name="screen_w" value="720" />[/COLOR]
[COLOR="Red"]- <variable name="screen_h" value="1280" />[/COLOR]
[COLOR="Green"]+ <variable name="screen_w" value="480" />
+ <variable name="screen_h" value="800" />[/COLOR]
<variable name="indent" value="0" /> <!--for elements 720 wide (0 if 720, 24 if 768, 40 if 800 screen width)-->
[COLOR="Red"]- <variable name="center_x" value="360" />[/COLOR]
[COLOR="Red"]- <variable name="col1_x" value="32" /> <!--for elements 656 wide (main buttons, filelists)--> (40 if 720, 56 if 768, 72 if 800 screen width)[/COLOR]
[COLOR="Red"]- <variable name="col1_x_indent" value="64" />
- <variable name="col2_x" value="361" /> <!--for elements 359 wide (right one of two tabs)-->
- <variable name="backup_col_x" value="250" />
- <variable name="restore_col_x" value="250" />
- <variable name="flash_col_x" value="180" />
- <variable name="flash_col_x2" value="210" />
- <variable name="timezone_col_x" value="315" />
- <variable name="version_x" value="15" /> <!--position of twrp version number on body_home template-->
- <variable name="battery_x" value="545" /> <!--AM/PM-->
- <variable name="time_x" value="705" /> <!--left align -->
- <variable name="battery_x_m" value="600" /> <!--Military Time-->
- <variable name="settings_x" value="624" /> <!--position of settings button on body_home template-->
- <variable name="timezone_x" value="528" /> <!--position of timezone button on settings page-->
- <variable name="theme_x" value="528" /> <!--position of timezone button on body_home page-->
- <variable name="bookmark_x" value="432" />
- <variable name="settings_y" value="50" /> <!--position of settings button on body_home template-->
- <variable name="status_info_y" value="4" />
- <variable name="tabbar_y" value="146" />
- <variable name="tabbar_4_y" value="194" />
- <variable name="stripe_y" value="142" />
- <variable name="clr_col1_x" value="32" />
- <variable name="clr_col2_x" value="197" />
- <variable name="clr_col3_x" value="362" />
- <variable name="clr_col4_x" value="527" />
-
- <variable name="row-1_y" value="160" />
- <variable name="row0_y" value="204" />
- <variable name="row1_y" value="253" />
- <variable name="row2_y" value="302" />
- <variable name="row3_y" value="351" />
- <variable name="row4_y" value="400" />
- <variable name="row5_y" value="449" />
- <variable name="row6_y" value="498" />
- <variable name="row7_y" value="547" />
- <variable name="row8_y" value="596" />
- <variable name="row9_y" value="645" />
- <variable name="row10_y" value="694" />
- <variable name="row11_y" value="743" />
- <variable name="row12_y" value="792" />
- <variable name="row13_y" value="841" />
- <variable name="row14_y" value="890" />
- <variable name="row15_y" value="939" />
- <variable name="row16_y" value="988" />
- <variable name="row17_y" value="1037" />
- <variable name="row18_y" value="1086" />
- <variable name="row19_y" value="1135" />
- <variable name="row20_y" value="1184" />
-
- <variable name="div0" value="202" />
- <variable name="div1" value="251" />
- <variable name="div2" value="300" />
- <variable name="div3" value="349" />
- <variable name="div4" value="398" />
- <variable name="div5" value="447" />
- <variable name="div6" value="496" />
- <variable name="div7" value="545" />
- <variable name="div8" value="594" />
- <variable name="div9" value="643" />
- <variable name="div10" value="692" />
- <variable name="div11" value="741" />
- <variable name="div12" value="790" />
- <variable name="div13" value="839" />
- <variable name="div14" value="888" />
- <variable name="div15" value="937" />
- <variable name="div16" value="986" />
- <variable name="div17" value="1035" />
- <variable name="div18" value="1084" />
- <variable name="div19" value="1133" />
- <variable name="div20" value="1182" />[/COLOR]
[COLOR="Green"]+ <variable name="center_x" value="240" />
+ <variable name="col1_x" value="21" /> <!--for elements 656 wide (main buttons, filelists)--> (40 if 720, 56 if 768, 72 if 800 screen width)
+ <variable name="col1_x_indent" value="43" />
+ <variable name="col2_x" value="241" /> <!--for elements 359 wide (right one of two tabs)-->
+ <variable name="backup_col_x" value="167" />
+ <variable name="restore_col_x" value="167" />
+ <variable name="flash_col_x" value="120" />
+ <variable name="flash_col_x2" value="140" />
+ <variable name="timezone_col_x" value="210" />
+ <variable name="version_x" value="10" /> <!--position of twrp version number on body_home template-->
+ <variable name="battery_x" value="363" /> <!--AM/PM-->
+ <variable name="time_x" value="470" /> <!--left align -->
+ <variable name="battery_x_m" value="400" /> <!--Military Time-->
+ <variable name="settings_x" value="416" /> <!--position of settings button on body_home template-->
+ <variable name="timezone_x" value="352" /> <!--position of timezone button on settings page-->
+ <variable name="theme_x" value="352" /> <!--position of timezone button on body_home page-->
+ <variable name="bookmark_x" value="288" />
+ <variable name="settings_y" value="31" /> <!--position of settings button on body_home template-->
+ <variable name="status_info_y" value="3" />
+ <variable name="tabbar_y" value="91" />
+ <variable name="tabbar_4_y" value="121" />
+ <variable name="stripe_y" value="89" />
+ <variable name="clr_col1_x" value="21" />
+ <variable name="clr_col2_x" value="131" />
+ <variable name="clr_col3_x" value="241" />
+ <variable name="clr_col4_x" value="351" />
+
+ <variable name="row-1_y" value="100" />
+ <variable name="row0_y" value="128" />
+ <variable name="row1_y" value="158" />
+ <variable name="row2_y" value="189" />
+ <variable name="row3_y" value="219" />
+ <variable name="row4_y" value="250" />
+ <variable name="row5_y" value="281" />
+ <variable name="row6_y" value="311" />
+ <variable name="row7_y" value="342" />
+ <variable name="row8_y" value="373" />
+ <variable name="row9_y" value="403" />
+ <variable name="row10_y" value="434" />
+ <variable name="row11_y" value="464" />
+ <variable name="row12_y" value="495" />
+ <variable name="row13_y" value="526" />
+ <variable name="row14_y" value="556" />
+ <variable name="row15_y" value="587" />
+ <variable name="row16_y" value="617" />
+ <variable name="row17_y" value="648" />
+ <variable name="row18_y" value="679" />
+ <variable name="row19_y" value="709" />
+ <variable name="row20_y" value="740" />
+
+ <variable name="div0" value="126" />
+ <variable name="div1" value="157" />
+ <variable name="div2" value="188" />
+ <variable name="div3" value="218" />
+ <variable name="div4" value="249" />
+ <variable name="div5" value="279" />
+ <variable name="div6" value="310" />
+ <variable name="div7" value="341" />
+ <variable name="div8" value="371" />
+ <variable name="div9" value="402" />
+ <variable name="div10" value="433" />
+ <variable name="div11" value="463" />
+ <variable name="div12" value="494" />
+ <variable name="div13" value="524" />
+ <variable name="div14" value="555" />
+ <variable name="div15" value="586" />
+ <variable name="div16" value="616" />
+ <variable name="div17" value="647" />
+ <variable name="div18" value="678" />
+ <variable name="div19" value="708" />
+ <variable name="div20" value="739" />[/COLOR]
<variable name="col_progressbar_x" value="0" />
[COLOR="Red"]- <variable name="row_progressbar_y" value="147" />
- <variable name="col_progressbar_x_low" value="32" />
- <variable name="row_progressbar_y_low" value="839" />
-
- <variable name="breadcrumb_x" value="37" /> <!--menu label in actionbar-->
- <variable name="breadcrumb_y" value="67" />
- <variable name="bc_x" value="40" /> <!--menu label in actionbar-->
- <variable name="bc_y" value="50" />
-
- <variable name="of_x" value="414" />
- <variable name="of_y" value="146" />
- <variable name="of_button_x" value="422" />
- <variable name="of_button1_y" value="153" />
- <variable name="of_button2_y" value="251" />
-
- <variable name="home_button_x" value="254" /> <!--buttons in navbar-->
- <variable name="home_button_y" value="1184" />
- <variable name="back_button_x" value="30" />
- <variable name="back_button_y" value="1184" />
- <variable name="slideout_button_x" value="478" />
- <variable name="slideout_button_y" value="1184" />[/COLOR]
[COLOR="Green"]+ <variable name="row_progressbar_y" value="92" />
+ <variable name="col_progressbar_x_low" value="21" />
+ <variable name="row_progressbar_y_low" value="524" />
+
+ <variable name="breadcrumb_x" value="25" /> <!--menu label in actionbar-->
+ <variable name="breadcrumb_y" value="42" />
+ <variable name="bc_x" value="27" /> <!--menu label in actionbar-->
+ <variable name="bc_y" value="31" />
+
+ <variable name="of_x" value="276" />
+ <variable name="of_y" value="91" />
+ <variable name="of_button_x" value="281" />
+ <variable name="of_button1_y" value="96" />
+ <variable name="of_button2_y" value="157" />
+
+ <variable name="home_button_x" value="169" /> <!--buttons in navbar-->
+ <variable name="home_button_y" value="740" />
+ <variable name="back_button_x" value="20" />
+ <variable name="back_button_y" value="740" />
+ <variable name="slideout_button_x" value="319" />
+ <variable name="slideout_button_y" value="740" />[/COLOR]
<variable name="background" value="#000000FF" />
<variable name="background_light" value="#000000FF" />
@@ -387,82 +387,82 @@
<variable name="fileselector_highlight_color" value="#414141FF" />
<variable name="linecolor" value="#222222FF" />
[COLOR="Red"]- <variable name="tab_button_y" value="146" /> <!--for tab bar and tab buttons-->[/COLOR]
[COLOR="Green"]+ <variable name="tab_button_y" value="91" /> <!--for tab bar and tab buttons-->[/COLOR]
<variable name="tab3_col1_x" value="0" /> <!--for elements 238 wide (left one of three tabs)-->
[COLOR="Red"]- <variable name="tab3_col2_x" value="241" /> <!--for elements 238 wide (middle one of three tabs)-->
- <variable name="tab3_col3_x" value="482" /> <!--for elements 238 wide (right one of three tabs)-->
- <variable name="tab3_div3_x" value="504" />
- <variable name="tab3_div_cis_x" value="472" />
- <variable name="tab3_btn_cis_x" value="474" />[/COLOR]
[COLOR="Green"]+ <variable name="tab3_col2_x" value="161" /> <!--for elements 238 wide (middle one of three tabs)-->
+ <variable name="tab3_col3_x" value="321" /> <!--for elements 238 wide (right one of three tabs)-->
+ <variable name="tab3_div3_x" value="336" />
+ <variable name="tab3_div_cis_x" value="315" />
+ <variable name="tab3_btn_cis_x" value="316" />[/COLOR]
<variable name="tab4_col1_x" value="0" /> <!--for elements 178 wide (left one of four tabs)-->
[COLOR="Red"]- <variable name="tab4_col2_x" value="181" /> <!--for elements 178 wide (leftmiddle one of four tabs)-->
- <variable name="tab4_col3_x" value="361" /> <!--for elements 178 wide (rightmiddle one of four tabs)-->
- <variable name="tab4_col4_x" value="542" /> <!--for elements 178 wide (right one of four tabs)-->
-
- <variable name="input_width" value="644" />
- <variable name="input_height" value="54" />
- <variable name="input_cursor_width" value="3" />
- <variable name="input_cursor_x" value="38" />
- <variable name="input_image_y" value="542" />
- <variable name="input_image_terminal_y" value="638" />
-
- <variable name="console_width" value="656" />
- <variable name="console_height" value="782" />
- <variable name="console_action_height" value="439" />
- <variable name="console_background_height" value="1035" />
-
- <variable name="storage_width" value="656" />
- <variable name="storage_heigt" value="490" />
- <variable name="bg_storage_x" value="25" />
- <variable name="bg_storage_y" value="438" />[/COLOR]
[COLOR="Green"]+ <variable name="tab4_col2_x" value="121" /> <!--for elements 178 wide (leftmiddle one of four tabs)-->
+ <variable name="tab4_col3_x" value="241" /> <!--for elements 178 wide (rightmiddle one of four tabs)-->
+ <variable name="tab4_col4_x" value="361" /> <!--for elements 178 wide (right one of four tabs)-->
+
+ <variable name="input_width" value="429" />
+ <variable name="input_height" value="34" />
+ <variable name="input_cursor_width" value="2" />
+ <variable name="input_cursor_x" value="25" />
+ <variable name="input_image_y" value="339" />
+ <variable name="input_image_terminal_y" value="399" />
+
+ <variable name="console_width" value="437" />
+ <variable name="console_height" value="489" />
+ <variable name="console_action_height" value="274" />
+ <variable name="console_background_height" value="647" />
+
+ <variable name="storage_width" value="437" />
+ <variable name="storage_heigt" value="306" />
+ <variable name="bg_storage_x" value="17" />
+ <variable name="bg_storage_y" value="274" />[/COLOR]
<variable name="fileselector_x" value="0" />
[COLOR="Red"]- <variable name="fileselector_y" value="242" />
- <variable name="fileselector_part_x" value="250" />
- <variable name="fileselector_width" value="720" />
- <variable name="fileselector_part_width" value="470" />
- <variable name="fileselector_install_height" value="842" />
- <variable name="fileselector_part_height" value="194" />
- <variable name="fileselector_backup_height" value="342" />
- <variable name="fileselector_part_wipe_height" value="588" />
- <variable name="fileselector_header_separatorheight" value="2" />[/COLOR]
[COLOR="Green"]+ <variable name="fileselector_y" value="151" />
+ <variable name="fileselector_part_x" value="167" />
+ <variable name="fileselector_width" value="480" />
+ <variable name="fileselector_part_width" value="313" />
+ <variable name="fileselector_install_height" value="526" />
+ <variable name="fileselector_part_height" value="121" />
+ <variable name="fileselector_backup_height" value="214" />
+ <variable name="fileselector_part_wipe_height" value="368" />
+ <variable name="fileselector_header_separatorheight" value="1" />[/COLOR]
<variable name="fileselector_separatorheight" value="1" />
[COLOR="Red"]- <variable name="fileselector_spacing" value="36" />
- <variable name="fileselector_part_spacing" value="8" />
- <variable name="fileselector_wipe_spacing" value="39" />
-
- <variable name="fastscroll_w" value="60" />[/COLOR]
[COLOR="Green"]+ <variable name="fileselector_spacing" value="23" />
+ <variable name="fileselector_part_spacing" value="5" />
+ <variable name="fileselector_wipe_spacing" value="24" />
+
+ <variable name="fastscroll_w" value="40" />[/COLOR]
<variable name="fastscroll_linew" value="1" />
[COLOR="Red"]- <variable name="fastscroll_rectw" value="16" />
- <variable name="fastscroll_recth" value="72" />
-
- <variable name="listbox_tz_height" value="693" />
- <variable name="listbox_spacing" value="36" />
-
- <variable name="textbox_spacing" value="16" />
- <variable name="textbox_separatorheight" value="2" />
-
- <variable name="terminal_console_width" value="656" />
- <variable name="terminal_console_height" value="390" />
- <variable name="terminal_button_divider_x" value="618" />
- <variable name="terminal_button_divider_y" value="50" />
- <variable name="terminal_button_x" value="620" />
- <variable name="terminal_button_y" value="74" />
- <variable name="terminal_path_x" value="250" />
-
- <variable name="slider_x" value="60" />
- <variable name="slider_y" value="1037" />
- <variable name="slider_text_y" value="1039" />
- <variable name="slidervalue_w" value="656" />
- <variable name="slidervalue_lineh" value="4" />
- <variable name="slidervalue_padding" value="20" />
- <variable name="slidervalue_sliderw" value="10" />
- <variable name="slidervalue_sliderh" value="60" />[/COLOR]
[COLOR="Green"]+ <variable name="fastscroll_rectw" value="11" />
+ <variable name="fastscroll_recth" value="45" />
+
+ <variable name="listbox_tz_height" value="433" />
+ <variable name="listbox_spacing" value="23" />
+
+ <variable name="textbox_spacing" value="10" />
+ <variable name="textbox_separatorheight" value="1" />
+
+ <variable name="terminal_console_width" value="437" />
+ <variable name="terminal_console_height" value="244" />
+ <variable name="terminal_button_divider_x" value="412" />
+ <variable name="terminal_button_divider_y" value="31" />
+ <variable name="terminal_button_x" value="413" />
+ <variable name="terminal_button_y" value="46" />
+ <variable name="terminal_path_x" value="167" />
+
+ <variable name="slider_x" value="40" />
+ <variable name="slider_y" value="648" />
+ <variable name="slider_text_y" value="649" />
+ <variable name="slidervalue_w" value="437" />
+ <variable name="slidervalue_lineh" value="3" />
+ <variable name="slidervalue_padding" value="13" />
+ <variable name="slidervalue_sliderw" value="7" />
+ <variable name="slidervalue_sliderh" value="38" />[/COLOR]
</variables>
<mousecursor>
[COLOR="Red"]- <placement w="15" h="15" />[/COLOR]
[COLOR="Green"]+ <placement w="9" h="9" />[/COLOR]
<background color="#FFFF00FF" resource="cursor" />
<speed multiplier="2.5" />
</mousecursor>
@@ -1847,37 +1847,37 @@
<template name="keyboardtemplate">
<object type="keyboard">
[COLOR="Red"]- <placement x="0" y="758" />[/COLOR]
[COLOR="Green"]+ <placement x="0" y="474" />[/COLOR]
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
<highlight color="%highlight_color%" />
<capshighlight color="%highlight_color%" />
<layout1>
[COLOR="Red"]- <keysize height="106" width="72" />[/COLOR]
[COLOR="Green"]+ <keysize height="66" width="48" />[/COLOR]
<row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" />
[COLOR="Red"]- <row2 key01="108:a" long01="@" key02="s" long02="#" key03="d" long03="$" key04="f" long04="%" key05="g" long05="&" key06="h" long06="*" key07="j" long07="-" key08="k" long08="+" key09="108:l" long09="_"/>
- <row3 key01="108:layout2" key02="z" long02="!" key03="x" key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="108:c:8" />
- <row4 key01="108:layout3" key02="/" key03="360: " key04="." key05="108:a:action" />[/COLOR]
[COLOR="Green"]+ <row2 key01="68:a" long01="@" key02="s" long02="#" key03="d" long03="$" key04="f" long04="%" key05="g" long05="&" key06="h" long06="*" key07="j" long07="-" key08="k" long08="+" key09="68:l" long09="_"/>
+ <row3 key01="68:layout2" key02="z" long02="!" key03="x" key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="68:c:8" />
+ <row4 key01="68:layout3" key02="/" key03="240: " key04="." key05="68:a:action" />[/COLOR]
</layout1>
<layout2>
[COLOR="Red"]- <keysize height="106" width="72" capslock="0" revert_layout="1"/>[/COLOR]
[COLOR="Green"]+ <keysize height="66" width="48" capslock="0" revert_layout="1"/>[/COLOR]
<row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" />
[COLOR="Red"]- <row2 key01="108:A" long01="@" key02="S" long02="#" key03="D" long03="$" key04="F" long04="%" key05="G" long05="&" key06="H" long06="*" key07="J" long07="-" key08="K" long08="+" key09="108:L" long09="_"/>
- <row3 key01="108:layout1" key02="Z" long02="!" key03="X" key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="108:c:8" />
- <row4 key01="108:layout3" key02="/" key03="360: " key04="." key05="108:action" />[/COLOR]
[COLOR="Green"]+ <row2 key01="68:A" long01="@" key02="S" long02="#" key03="D" long03="$" key04="F" long04="%" key05="G" long05="&" key06="H" long06="*" key07="J" long07="-" key08="K" long08="+" key09="68:L" long09="_"/>
+ <row3 key01="68:layout1" key02="Z" long02="!" key03="X" key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="68:c:8" />
+ <row4 key01="68:layout3" key02="/" key03="240: " key04="." key05="68:action" />[/COLOR]
</layout2>
<layout3>
[COLOR="Red"]- <keysize height="106" width="72" />[/COLOR]
[COLOR="Green"]+ <keysize height="66" width="48" />[/COLOR]
<row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" />
<row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" />
[COLOR="Red"]- <row3 key01="108:layout4" key02="!" key03="72:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="108:c:8" />
- <row4 key01="108:layout1" key02="," key03="360: " key04="." key05="108:action" />[/COLOR]
[COLOR="Green"]+ <row3 key01="68:layout4" key02="!" key03="48:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="68:c:8" />
+ <row4 key01="68:layout1" key02="," key03="240: " key04="." key05="68:action" />[/COLOR]
</layout3>
<layout4>
[COLOR="Red"]- <keysize height="106" width="72" />
- <row1 key01="~" key02="`" key03="|" key04="72:" key05="72:" key06="72:" key07="%" key08="72:" key09="{" key10="}" />
- <row2 key01="72:" key02="72:" key03="72:" key04="72:" key05="72:" key06="^" key07="_" key08="=" key09="[" key10="]" />
- <row3 key01="108:layout3" key02="72:" key03="72:" key04="72:" key05="72:" key06="\" key07="<" key08=">" key09="108:c:8" />
- <row4 key01="108:layout1" key02="," key03="360: " key04="." key05="108:action" />[/COLOR]
[COLOR="Green"]+ <keysize height="66" width="48" />
+ <row1 key01="~" key02="`" key03="|" key04="48:" key05="48:" key06="48:" key07="%" key08="48:" key09="{" key10="}" />
+ <row2 key01="48:" key02="48:" key03="48:" key04="48:" key05="48:" key06="^" key07="_" key08="=" key09="[" key10="]" />
+ <row3 key01="68:layout3" key02="48:" key03="48:" key04="48:" key05="48:" key06="\" key07="<" key08=">" key09="68:c:8" />
+ <row4 key01="68:layout1" key02="," key03="240: " key04="." key05="68:action" />[/COLOR]
</layout4>
</object>
</template>
@@ -7388,7 +7388,7 @@
<colors line="%text_dark%" slider="%text_highlight%" />
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
<text></text>
[COLOR="Red"]- <data variable="tw_screen_timeout_secs" min="15" max="300" />[/COLOR]
[COLOR="Green"]+ <data variable="tw_screen_timeout_secs" min="15" max="200" />[/COLOR]
</object>
<object type="text" color="%text_highlight%">
@@ -7405,7 +7405,7 @@
<colors line="%text_dark%" slider="%text_highlight%" />
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
<text></text>
[COLOR="Red"]- <data variable="tw_brightness_pct" min="10" max="100" />[/COLOR]
[COLOR="Green"]+ <data variable="tw_brightness_pct" min="10" max="67" />[/COLOR]
<actions>
<action function="set">tw_brightness=%tw_brightness_max%</action>
<action function="compute">tw_brightness*%tw_brightness_pct%</action>
@@ -7499,7 +7499,7 @@
<placement x="col1_x" y="%row4_y%" w="%slidervalue_w%" />
<font resource="font_medium" color="%text%" />
<text></text>
[COLOR="Red"]- <data variable="tw_button_vibrate" min="0" max="300" />[/COLOR]
[COLOR="Green"]+ <data variable="tw_button_vibrate" min="0" max="200" />[/COLOR]
<colors line="%text_dark%" slider="%text_highlight%" />
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
</object>
@@ -7514,7 +7514,7 @@
<placement x="col1_x" y="%row9_y%" w="%slidervalue_w%" />
<font resource="font_medium" color="%text%" />
<text></text>
[COLOR="Red"]- <data variable="tw_keyboard_vibrate" min="0" max="300" />[/COLOR]
[COLOR="Green"]+ <data variable="tw_keyboard_vibrate" min="0" max="200" />[/COLOR]
<colors line="%text_dark%" slider="%text_highlight%" />
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
</object>
@@ -7529,7 +7529,7 @@
<placement x="col1_x" y="%row14_y%" w="%slidervalue_w%" />
<font resource="font_medium" color="%text%" />
<text></text>
[COLOR="Red"]- <data variable="tw_action_vibrate" min="0" max="500" />[/COLOR]
[COLOR="Green"]+ <data variable="tw_action_vibrate" min="0" max="333" />[/COLOR]
<colors line="%text_dark%" slider="%text_highlight%" />
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
</object>
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/80288e65e2faba6051068b53e98c2fe3a83be613
Sent from my C525c using Tapatalk
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/dd70ffb30a18bc8b3667e684964412a35a02ee9b
Sent from my C525c using Tapatalk
Hey, I failed to mention that the gm binary in my repo is cross compiled for ARM devices. If someone wishes to compile gm for MIPS or x86, please share with me so I may include it to my repo. I only have an ARM based device so there is no point in me compiling gm for MIPS or x86 since I have no way to test and confirm that they work.
Sent from my C525c using Tapatalk
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/219e001dba63238fa9e6cc2ddaa7420939566795
Sent from my C525c using Tapatalk
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/0ca59da6cee637fc22bd555bc30a33dddf28b70b
I overlooked my last gm binary thinking it was truly static when compiled. However, I went back and noticed it was only partially compiled as static.
This has been fixed and it will also work with Android L.
Initially compiled for ARM.
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/3ef72ac1a43671f64cd69062fa0518ad21e49a98
Overhaul Update:
- Merged TWRPIMAGE and TWRPUI into one script called, TWRPPORTER
- Still kept old method but moved over to OLD folder.
- Updated root of README.md to reflect changes and instructions.
- Script will check system for gm and busybox. The script will inform you if neither are installed and then abort the script.
- Updated script to read and accept directory/filenames with spaces. The old method did not do this.
- Script will port the TWRP Images, or the TWRP ui, or BOTH based on the user's selection while running TWRPPORTER.
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/5df4977a68c0ad5de80ddcf8f3f1d37ced3efc30
NEW UPDATE:
- Bumped to version 3.0.
- GM binary has been embedded in to the TWRPPORTER script.
- TWRPORTER can install GM from extracting the embedded data itself as requested by the user.
- TWRPORTER can uninstall GM as requested by the user.
- If busybox is found not installed the script WILL abort after a quick warning to the user.
- Have added more checks to the script to keep it running smooth. Most is merely cosmetic work.
- At the end of the script is the GM binary data which has been embedded. DO NOT MESS WITH IT!
- GM will work for pre-jb devices and up. It is in compliance with Android L (current release). Initially compiled for ARM.
GM is causing problems when compiling it as true static. So, unfortunately, I must revert back to it being partially static. This means your device must be ARM. It most likely will not be in compliance with Android L . Feel free to confirm this. Will push the update to my repo shortly.
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER/commit/64982aadddde8de97a5d1c51181906683abf0c59
Fix:
- Bumped version to 3.1
- Revert back to partial static GM binary compiled for ARM.
- Note: True Static binary caused problems with source so had to revert.
- Binary is still embedded inside the script. If GM is installed from version 3.0 please uninstall and reinstall gm.
Hi bud,
Sorry the stupid question but, where I put the theme (I grab the black 720x1280 to port to 480x800) to be ported!!? It's my first time, so be kind:laugh:

{Guide}{gb} [How to] Make ics style settings for {gingerbread devices}

Hello guys i am back with easy and very useful guide for newbies
This is a guide on how to mod your Settings.apk to make it like an ICS's one !!​
Requirements:-
1. PC
2. JAVA(JDk) installed
3. APk manager(i prefer)[to decompile apks]
3. Eyes
4. A little bit of brain too...!!!
# so lets start
Click to expand...
Click to collapse
# decompile your settings.apk
#Navigate to projects\Settings.apk\res\xml
#Open Settings.xml with Notepad++
It should look something like this (not exactly like this but somehow)...
Click to expand...
Click to collapse
#Now to make them like ics we need to add them in categories
So Lets go
#To add wifi and bluetooth shortcuts we need to add this code
Code:
<PreferenceCategory android:title="Networks and Connectivity" />
<com.android.settings.IconPreferenceScreen android:title="Wi-Fi" settings:icon="@drawable/wifi">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wifi.WifiSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Bluetooth" settings:icon="@drawable/bt">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="More..." android:key="wireless_settings" settings:icon="@drawable/more">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
#Add 3 Pngs in your respected drawable folder with the names as refered above
Note to remove this code
Code:
<com.android.settings.IconPreferenceScreen android:title="@string/radio_controls_title" android:key="wireless_settings" 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>
This may be different according to ur phone -->> android:title="@string/radio_controls_title"
Click to expand...
Click to collapse
So now we'll need to categorize other things
Code:
<PreferenceCategory android:title="Text goes here" />
REFER TO THIS IMAGE
#So i guess you have understood it
Your whole settings.xml should look like this
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">
<PreferenceCategory android:title="Wireless and Networks" />
<com.android.settings.IconPreferenceScreen android:title="Wi-Fi" settings:icon="@drawable/wifi">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wifi.WifiSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Bluetooth" settings:icon="@drawable/bt">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="More" settings:icon="@drawable/ic_settings_more">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
<PreferenceCategory android:title="Device" />
<com.android.settings.IconPreferenceScreen 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: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: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: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:title="@string/power_usage_summary_text" settings:icon="@drawable/ic_settings_battery">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.fuelgauge.PowerUsageSummary" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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>
<PreferenceCategory android:title="Personal" />
<com.android.settings.IconPreferenceScreen 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: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:title="@string/location_settings_title" android:key="security_settings" settings:icon="@drawable/ic_settings_location">
<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: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:title="@string/search_settings" android:key="search_settings" settings:icon="@drawable/ic_settings_search">
<intent android:action="android.search.action.SEARCH_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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: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>
<PreferenceCategory android:title="Management" />
<com.android.settings.IconPreferenceScreen android:title="@string/dock_settings_title" 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: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: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>
<PreferenceCategory android:title="About" />
<com.android.settings.IconPreferenceScreen 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>
Now u can add this code where u want the category to appear...
Save it.
Done
Click to expand...
Click to collapse
Ohh...wait U wanna add some info of your rom and other stuff in about section then lets go
To add your rom info in About section of your settings
Open device_info_settings.xml from xml folder
It should look something like this...
#Now we do not have to touch this part...(or else it might give error)
So now we need to add some info in that part...
Code:
<Preference android:title="Rom Name" android:summary="Rom name goes here" style="?android:preferenceInformationStyle" />
<Preference android:title="Rom Developer" android:summary="ADd ur name here" style="?android:preferenceInformationStyle" />
Add this code before [[ </PreferenceScreen> ]]
It should look like this...
Click to expand...
Click to collapse
BINGO
You are done...
Now you can compile back ur apk...(i hope u know how to do it if u dont know then follow some guides)
Remember to delete Modified xmls and resource.arsc from keep folder...
Click to expand...
Click to collapse
Screenshot of modified ics settings

(Guide)how to theme your settings.apk for beginers

Hi all iam apk5656 and tis is my fourth thread sorry for my bad en
first all credits goes to balamu96m
and his thread link http://forum.xda-developers.com/showthread.php?t=1576565
but in my guide here i will explain how to theme settings.apk in extremely jb/kk style
first follow my guide here on how to enable dark/light theme if you want jb then enable dark one and if you want kk enable he light one http://forum.xda-developers.com/android/themes/light-black-theme-framework-res-t3366072 after you finish then you can start here :highfive: :highfive: :highfive:
ok lets start
requirement is
1-settings.apk
2-framework-res.apk
3-just your brain lol
first thing in my guide here we will change your settings header
decompile your framework-res
download this mod edit - links removed
go to drawable-mdpi and past these images there
if you want kk style then replace the image wich in kk folder with yours and if you want jb style replace themage in jb folder with yours
now recompile the framework and replace it with yours and you will got the new settings header
now lets go to theme your settings.apk :highfive:
decompile it and replace this icons mod edit - links removed
with yours wich in drawable-mdpi-ldpi or hdpi
the go to settings.xml
your stock sould be like this
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:title="@string/dual_settings_title" android:key="dual_settings" settings:icon="@drawable/ic_dualsettings_sim">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DualSimSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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: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.CallSettingOptions" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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: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:title="@string/wallpaper_settings" settings:icon="@drawable/ic_settings_wallpaper">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WallpaperChooser" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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: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: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: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: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: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: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: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: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: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:title="@string/swtichmachine" settings:icon="@drawable/ic_lock_power_off">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.timerpower.AlarmClock" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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>
here we start replace yours
Code:
<com.android.settings.IconPreferenceScreen 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>
with this
Code:
<PreferenceCategory android:title="Wireless and Networks" />
<com.android.settings.IconPreferenceScreen android:title="Wi-Fi" settings:icon="@drawable/wifi">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wifi.WifiSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Bluetooth" settings:icon="@drawable/bt">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:persistent="false" android:title="Data usage" android:key="button_data_usage_key" settings:icon="@drawable/data">
<intent android:targetPackage="com.sigterm" android:action="android.intent.action.MAIN" android:targetClass="com.sigterm.activities.DataUsageActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="/More..." android:key="wireless_settings" settings:icon="@drawable/more">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
ok that will add blutooth and wifi and more and datausage shortcuts
now we will need to categorie your settings
with this code <PreferenceCategory android:title="categorie name" />
and like this have a look on mine
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">
<PreferenceCategory android:title="Wireless and Networks" />
<com.android.settings.IconPreferenceScreen android:title="Wi-Fi" settings:icon="@drawable/wifi">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wifi.WifiSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Bluetooth" settings:icon="@drawable/bt">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:persistent="false" android:title="Data usage" android:key="button_data_usage_key" settings:icon="@drawable/data">
<intent android:targetPackage="com.sigterm" android:action="android.intent.action.MAIN" android:targetClass="com.sigterm.activities.DataUsageActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="/More..." android:key="wireless_settings" settings:icon="@drawable/more">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
<PreferenceCategory android:title="interface" />
<com.android.settings.IconPreferenceScreen android:title="@string/rom_toolbox" settings:icon="@drawable/ic_settings_rom">
<intent android:targetPackage="com.jrummy.liberty.toolboxpro" android:action="android.intent.action.MAIN" android:targetClass="com.jrummy.apps.rom.toolbox.RomToolboxActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/xposed_installer" android:key="xposed_key" settings:icon="@drawable/xpsoed">
<intent android:targetPackage="de.robv.android.xposed.installer" android:action="android.intent.action.MAIN" android:targetClass="de.robv.android.xposed.installer.WelcomeActivity" />
</com.android.settings.IconPreferenceScreen>
<PreferenceCategory android:title="Device" />
<com.android.settings.IconPreferenceScreen 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: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:title="@string/dual_settings_title" android:key="dual_settings" settings:icon="@drawable/ic_dualsettings_sim">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DualSimSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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.CallSettingOptions" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/wallpaper_settings" settings:icon="@drawable/ic_settings_wallpaper">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WallpaperChooser" />
</com.android.settings.IconPreferenceScreen>
<PreferenceCategory android:title="Personal" />
<com.android.settings.IconPreferenceScreen 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: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: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: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>
<PreferenceCategory android:title="Management" />
<com.android.settings.IconPreferenceScreen 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: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: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: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: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: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:title="@string/swtichmachine" settings:icon="@drawable/ic_lock_power_off">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.timerpower.AlarmClock" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/click_me" settings:icon="@drawable/jb">
<intent android:targetPackage="iaj.areeb.jellybean" android:action="android.intent.action.MAIN" android:targetClass="iaj.areeb.jellybean.PlatLogoActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen 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>
now save and out
go to your device_info_settings.xml
and add this on the last before resources this is for rom info
Code:
<Preference android:title="Rom Name" android:summary="rom name" style="?android:preferenceInformationStyle" />
<Preference android:title="Rom Developer" android:summary="your name" style="?android:preferenceInformationStyle" />
<Preference android:title="Recovery Version" android:summary="Recovery version" style="?android:preferenceInformationStyle" />
<Preference android:title="Release Date" android:summary="your rom build date" style="?android:preferenceInformationStyle" />
<Preference android:title="Contact Us" android:summary="your page url or somethin like this" style="?android:preferenceInformationStyle" />
save and recompile
and replace settings.apk with yours and tada :laugh: :laugh: if you like this this thread hit thanks button :highfive:
oh i forget download data usage app from here and paste it in system/app mod edit - links removed
guys what do you think about this thread?
Woww Great Articale!
Thanks man
if you really like this hit thanks button lol
good
thread closed until the links will be available
Dan - forum moderator

How To Guide Engineer mode GDPR codes

Codes for GDPR RMX3081 Rom.
For full access use Secrecy unlock.
There are guess 2 levels of available code, level one is for non-auth, all other for auth and/or rooted access.
Regions are only set to EU (GDPR Rom), some items are for CN for test purposes.
Some actions are permanent, some are fixed. Beware of the changes !
CSS:
<OrderItem name="*#12345#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="com.oppo.activation.action.STOP_SERVICE" />
</OrderItem>
<OrderItem name="*#10000#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.MarkResultShow"
android:targetPackage="com.oppo.engineermode" />
<OrderItem name="*#36446337#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.EngineeringMode"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*##*37847#" type="startActivity" platform="ALL" region="ALL" level="6">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.device.DeviceListActivity"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#66#" type="startActivity" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.IMeiAndPcbCheck"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#6776#" type="startActivity" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.CheckSoftwareInfo"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#649010#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.development.DiagEnabled"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#637243#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.ShowRemoteMessage"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#727#" type="startActivity" platform="QCOM" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.SarTest"
android:targetPackage="com.oppo.engineermode.network" />
</OrderItem>
<OrderItem name="*#7327#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.rftoolkit.RfToolkitCustomerService"
android:targetPackage="com.oppo.rftoolkit" />
</OrderItem>
<OrderItem name="*#7890#" type="startActivity" platform="ALL" region="EXP" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.NetWorkSet"
android:targetPackage="com.oppo.engineermode.network" />
</OrderItem>
<OrderItem name="*#800#" type="startActivity" platform="MTK" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.mediatek.engineermode.EngineerMode"
android:targetPackage="com.mediatek.engineermode">
<extra
android:name="isRedirectToLogger"
android:value="true" />
</intent>
</OrderItem>
<OrderItem name="*#807#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.aftersale.DeviceSimpleDetectActivity"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#808#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.EngineerModeMain"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#805#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.bluetoothtest.BluetoothTest"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#803#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.wifitest.WifiSettings"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#802#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.gps.GpsActivity"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#806#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.autoaging.AutoAgingMainListActivity"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#8778#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.manualtest.MasterClear"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#888#" type="startActivity" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.PcbShow"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*##*8110#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.development.OtaSwitch"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#8019#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.wireless.WifiSocketHelper"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#818#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.NetworkSearchNew"
android:targetPackage="com.oppo.engineermode.network">
<extra
android:name="Step_Num"
android:value="First" />
</intent>
</OrderItem>
<OrderItem name="*#838#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.NetworkSearchNew"
android:targetPackage="com.oppo.engineermode.network">
<extra
android:name="Step_Num"
android:value="Second" />
</intent>
</OrderItem>
<OrderItem name="*#8168#" type="startActivity" platform="ALL" region="CN" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.CmccEvaluationOTA"
android:targetPackage="com.oppo.engineermode.network">
<extra
android:name="AntPosition"
android:value="Button" />
</intent>
</OrderItem>
<OrderItem name="*#8398#" type="startActivity" platform="ALL" region="CN" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.CmccEvaluationOTA"
android:targetPackage="com.oppo.engineermode.network">
<extra
android:name="AntPosition"
android:value="TOP" />
</intent>
</OrderItem>
<OrderItem name="*#8020#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.wireless.WifiAdbHelper"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#899#" type="other" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.aftersale.AfterSalePage"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#99#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.development.KeepSrceenOn"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#928#" type="startActivity" platform="QCOM" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.wifitest.WifiFTMActivity"
android:targetPackage="com.oppo.engineermode">
<extra
android:name="Step_WifiFtm"
android:value="First" />
</intent>
</OrderItem>
<OrderItem name="*#9434#" type="startActivity" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.decrypt.WifiDecryptionActivity"
android:targetPackage="com.oppo.decrypt" />
</OrderItem>
<OrderItem name="*#911#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.PowerOff"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#07#" type="other" platform="ALL" region="EXP" level="1" />
<OrderItem name="*#67767#" type="other" platform="ALL" region="EXP" level="1" />
<OrderItem name="*#8011#" type="other" platform="ALL" region="ALL" level="1" />
<OrderItem name="*#39724#" type="other" platform="ALL" region="EXP" level="2" />
<OrderItem name="*#390501#" type="other" platform="ALL" region="EXP" level="1" />
<OrderItem name="*#390502#" type="other" platform="ALL" region="EXP" level="1" />
<OrderItem name="*#008#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.LanguageSwitchActivity"
android:targetPackage="com.oppo.engineermode">
<extra
android:name="language_str"
android:value="zh_CN" />
</intent>
</OrderItem>
<OrderItem name="*#643223#" type="startActivity" platform="ALL" region="ALL" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.development.DevelopmentConfigPage"
android:targetPackage="com.oppo.engineermode">
</intent>
</OrderItem>
<OrderItem name="*#885526#" type="startActivity" platform="ALL" region="ALL" level="2">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.development.VulkanDebugActivity"
android:targetPackage="com.oppo.engineermode">
</intent>
</OrderItem>
<!--*#928#-->
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.wifitest.WifiFTMActivity" />
<!--*#8019#-->
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.wireless.WifiSocketHelper" />
<!--*#8020#-->
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.wireless.WifiAdbHelper" />
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.wireless.SwitchMetaModeHelper" />
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.DetectMasterClearResult" />
<!--*#637243#-->
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.ShowRemoteMessage" />
<activity packageName="com.oppo.engineermode"
className="com.oppo.engineermode.manualtest.modeltest.ModelTestImpl" />
<service packageName="com.oppo.engineermode"
className="com.oppo.engineermode.assistant.SwitchWifiMMI" />
<service packageName="com.oppo.engineermode"
className="com.oppo.engineermode.assistant.SwitchProductionMode" />
<service packageName="com.oppo.engineermode"
className="com.oppo.autotest.connector.AutoTestServer" />
<service packageName="com.oppo.engineermode" className="com.oppo.autotest.RunAllTest" />
<service packageName="com.oppo.engineermode"
className="com.oppo.engineermode.wireless.WifiAdbHelperService" />
<shell_command command="--update_back_cover_color" />
<shell_command command="--update_engineer_result" />
<shell_command command="--update_oppo_sn" />
<shell_command command="--reset_back_cover_color" />
<shell_command command="--reset_write_protect" />
<shell_command command="--reset_engineer_result" />
<shell_command command="--reset_download_mode" />
<shell_command command="--execute_start_mmi" />
<shell_command command="--execute_stop_mmi" />
<shell_command command="--execute_master_clear" />
<shell_command command="--execute_power_off" />
<shell_command command="--execute_model_test" />
<shell_command command="--execute_engineer_order" />
<shell_command command="--execute_switch_production_mode" />
<shell_command command="--execute_detect_ms_result" />
<shell_command command="--execute_show_production_message" />
<shell_command command="--execute_switch_wifi_mmi" />
<shell_command command="--execute_launch_wifi_mmi" />
<shell_command command="--generate_attk_key_pair" />
<shell_command command="--verify_attk_key_pair" />
<shell_command command="--verify_attk_key_pair_only" />
<shell_command command="--verify_ali_key" />
<shell_command command="--export_attk_public_key" />
<shell_command command="--get_device_id" />
<shell_command command="--enable_rpmb" />
<shell_command command="--crypto_eng_verify" />
<shell_command command="--get_tee_version" />
<shell_command command="--install_keybox" />
<shell_command command="--provision_keybox" />
<shell_command command="--verify_keybox" />
StratOS_HTC said:
Codes for GDPR RMX3081 Rom.
Click to expand...
Click to collapse
How to obtain this codes for another model? Please provide guide/tutorial
Quick guidethrought on different phone :
Entering Engineering Mode (and list of secret codes)
To enter the Engineering Mode: dial *#899# Here are two more lists with secret codes that I found, it seems without root yout can only execude codes with Level 1. I am not responsible for any data loss or damage to your device by using these...
forum.xda-developers.com
Any one of these allow you to turn on "Rndis, diag switch" in ColorOS 12/Oxygen OS 12?

Categories

Resources