diff --git a/pages/android/am.md b/pages/android/am.md new file mode 100644 index 0000000000..2689e29656 --- /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 0000000000..deff44d8c2 --- /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 0000000000..e1edf23ed4 --- /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 0000000000..ec3522289b --- /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}}`