https://github.com/termux/termuxam
Android Oreo-compatible am command reimplementation.
https://github.com/termux/termuxam
Last synced: 8 months ago
JSON representation
Android Oreo-compatible am command reimplementation.
- Host: GitHub
- URL: https://github.com/termux/termuxam
- Owner: termux
- License: apache-2.0
- Created: 2019-04-21T19:44:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T20:19:46.000Z (over 2 years ago)
- Last Synced: 2024-10-29T20:57:44.651Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 165 KB
- Stars: 105
- Watchers: 15
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android Oreo-compatible `am` command reimplementation
`am` (Activity Manager) command in Android can be used to start Activity
or send Broadcast from shell, however since Android Oreo that command
only works from adb shell, not from apps. This is modified version of that
command that is usable from app.
# Running
In this repository there are two wrapper scripts:
* `am-libexec-packaged`
* `am-apk-installed`
First one is for use as installed package in Termux, while second one
is for development, using TermuxAm apk that is installed as app in Android,
allowing installation of Java part from Android Studio
# Running tests/debugging
Tests checking IActivityManager wrapper class are in `app/src/androidTest/java/com/termux/termuxam/IActivityManagerTest.java`
and are runnable/debuggable from Android Studio