From 59ca98f7df994e7642d21691cfe80e478c67bf3a Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 25 Mar 2021 22:57:15 +0100 Subject: [PATCH] am, cmd, dalvikvm, settings: add page (#5481) --- pages/android/am.md | 20 ++++++++++++++++++++ pages/android/cmd.md | 15 +++++++++++++++ pages/android/dalvikvm.md | 8 ++++++++ pages/android/settings.md | 19 +++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 pages/android/am.md create mode 100644 pages/android/cmd.md create mode 100644 pages/android/dalvikvm.md create mode 100644 pages/android/settings.md diff --git a/pages/android/am.md b/pages/android/am.md new file mode 100644 index 000000000..2689e2965 --- /dev/null +++ b/pages/android/am.md @@ -0,0 +1,20 @@ +# am + +> Android activity manager. +> More information: . + +- Start a specific activity: + +`am start -n {{com.android.settings/.Settings}}` + +- Start an activity and pass data to it: + +`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}` + +- Start an activity matching a specific action and category: + +`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}` + +- Convert an intent to an URI: + +`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` diff --git a/pages/android/cmd.md b/pages/android/cmd.md new file mode 100644 index 000000000..deff44d8c --- /dev/null +++ b/pages/android/cmd.md @@ -0,0 +1,15 @@ +# cmd + +> Android service manager. + +- List every running service: + +`cmd -l` + +- Call a specific service: + +`cmd {{alarm}}` + +- Call a service with arguments: + +`cmd {{vibrator}} {{vibrate 300}}` diff --git a/pages/android/dalvikvm.md b/pages/android/dalvikvm.md new file mode 100644 index 000000000..e1edf23ed --- /dev/null +++ b/pages/android/dalvikvm.md @@ -0,0 +1,8 @@ +# dalvikvm + +> Android Java virtual machine. +> More information: . + +- Start a Java program: + +`dalvikvm -classpath {{path/to/file.jar}} {{classname}}` diff --git a/pages/android/settings.md b/pages/android/settings.md new file mode 100644 index 000000000..ec3522289 --- /dev/null +++ b/pages/android/settings.md @@ -0,0 +1,19 @@ +# settings + +> Get information about the Android OS. + +- Display a list of settings in the `global` namespace: + +`settings list {{global}}` + +- Get the value of a specific setting: + +`settings get {{global}} {{airplane_mode_on}}` + +- Set the value of a setting: + +`settings put {{system}} {{screen_brightness}} {{42}}` + +- Delete a specific setting: + +`settings delete {{secure}} {{screensaver_enabled}}`