Android via Commandline

Settings

list all system settings:

settings list system

list all secure settings:

settings list secure

list global (all) settings:

settings list global

Get system param setting (e.g. screen_brightness):

Set System Param Setting:

Set Display Timeout (60sec)

Set Display Brightness 0-255

Navbar

If Navar should not be shown, please set property in /oem/init.oem.rc:

or configure Navbar keys during runtime:

e.g. keys recent home back

keys only back

or No keys active:

Set custom Navbar with own Icons

Enable/Disable ADB Debug connection

Set Language/Region (FR)

https://developer.android.com/guide/topics/resources/multilingual-support

Call Settings Applet:

These following calls are recommended only, if only one Language ist selected in the settings Menu

Deutsch/DE

Englisch/US

Englisch/Great Britain

Französisch

Spanisch

Italienisch/Italien

Nederlands/Holland

Tschechisch

Clear actual input method

Set Pincode

Get/Set Timezone

Automatic Setting:

Get Timezone:

Set Timezone (Berlin):

Set Timezone with Property instead settings

Set Date Time

With busybox:

For: Thu Nov 12 19:44:00 GMT 2020

Note:for telnet connection, busybox is used and busybox call can be removed

Or with /system/bin/sh:

For: Nov 12 2020 18:49 <

Note:for adb or console /system/bin/sh is used and /system/bin/sh call can be removed

Read Build Date

or

Grant Permissions

Example for Package com.user.package:

grant WRITE_SECURE_SETTINGS
grant CHANGE_CONFIGURATION