Table of Contents

Android Command Line

Android 13 BlackView 5300 Pro

The device was rooted with Magisk and the Termux app was installed. Every command is intended to be run as root.

ps -A

Activity manager

am help
Activity manager (activity) commands:
  help
      Print this help text.
  start-activity ...
  ...

Not all the activies can be launched from the command line, e.g. the following

am start-activity app.lawnchair/com.android.quickstep.RecentsActivity

causes the Lawnchair app dies with a message on the screen Lawchair has stopped. Fortunately enough the app restarts automatically.

Service

service -h
Usage: service [-h|-?]
       service list
       service check SERVICE
       service call SERVICE CODE ...

Magisk modules

Magisk modules are installed into /data/adb/modules/, each module is a subdirectory.