commit | 5bd11e303d415af632256c85a8e8882b8cce7612 | [log] [tgz] |
---|---|---|
author | Michael W <baddaemon87@gmail.com> | Wed Feb 01 19:58:48 2023 +0100 |
committer | Michael W <baddaemon87@gmail.com> | Wed Feb 01 20:03:42 2023 +0100 |
tree | 2ced3d6909fe58d898adde662de1d6ce87383acd | |
parent | 1c6d5b120d0d949ca87c8cc2e9f069a004f22fb4 [diff] |
sdk: Kill app: Actually kill app * Calling forceStopPackage with USER_CURRENT won't kill the app when started e.g. via "Shelter" work profile * Find the uid of the current foreground app and pass that one instead of UserHandle.USER_CURRENT * Note: UserHandle.USER_ALL would also kill the app, but all instances of it - which we don't want Test: - Go to Settings->System->Buttons and enable "Kill foreground app" as action for "Long edge swipe" - test it for PlayStore - Install Shelter and setup your profile - Open PlayStore from work profile - Long swipe the edge: - Before: Toast appears, app stays open - After: Toast appears, app is actually closed - Additionally: Open PlayStore from Work and Non-Work profile - Long swipe edge for just work profile one and switch to own profile instance: App is not killed (expected, we just killed work instance) Change-Id: I82154a6c021527013269f7ee2d1c46fedc14bf7c
The Platform SDK provides a set of APIs that give you easy access to a variety of different features within LineageOS. The SDK exposes APIs and system level framework access in the Android framework that aren't available in any other distribution.
You can either download from prebuilts hosted on github or pull directly via Gradle.
Our stable releases are mirrored in Maven Central, and you can fetch the current release by setting your build.gradle
dependencies to
dependencies { compile 'org.lineageos:platform.sdk:5.+' }
Within build.gradle
make sure your repositories
list sonatype OSS repos for snapshots
repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } }
You can target the future
or development
branch by setting your dependencies
for 6.0-SNAPSHOT
dependencies { compile 'org.lineageos:platform.sdk:6.0-SNAPSHOT' }
For further inquiries regarding this project, please reference the wiki.