package icon

OnStop2FinishAndRemoveTask

If change other app, Auto close task in prev app. Required Shizuku APP.
New in version 2.0.6
Optimize apk size (enable to R8)
Required Shizuku app. If change other app, Auto close task in prev app.

The app must be registered.

This app is required Shizuku APP. Please prepare Shizuku.
https://shizuku.rikka.app/

How to work:
Observe current Activity From Foreground service. If change other app, Invoke remove task function.
this APIs Invoke by Shizuku. that's because, using API is Internal-API.

Using Permission:
POST_NOTIFICATIONS: (optional) Showing notification and add stop service button.
QUERY_ALL_PACKAGES: It because, Get app list from register screen.
FOREGROUND_SERVICE、FOREGROUND_SERVICE_SPECIAL_USE: It because, Detect leave app by ForegroundService.

Versions

Although APK downloads are available below to give you the choice, you should be aware that by installing that way you will not receive update notifications and it's a less secure way to download. We recommend that you install the F-Droid client and use that.

Download F-Droid
  • Version 2.0.6 (8) suggested Added on Sep 17, 2026

    arm64-v8a armeabi-v7a x86 x86_64

    This version requires Android 12 or newer.

    It is built and signed by the original developer, and guaranteed to correspond to this source tarball.

    Permissions
    • run foreground service
      Allows the app to make use of foreground services.
    • run foreground service with the type "specialUse"
      Allows the app to make use of foreground services with the type "specialUse"
    • show notifications
      Allows the app to show notifications
    • query all packages
      Allows an app to see all installed packages.
    • io.github.takusan23.onstop2finishandremovetask.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
    • moe.shizuku.manager.permission.API_V23

    Download APK 2.5 MiB PGP Signature | Build Log