OnStop2FinishAndRemoveTask

OnStop2FinishAndRemoveTask

If change other app, Auto close task in prev app. Required Shizuku APP.

takusan_23 System

Screenshots

Screenshot of OnStop2FinishAndRemoveTask Screenshot of OnStop2FinishAndRemoveTask

Description

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.

What’s new (2.0.6)

Optimize apk size (enable to R8)

Anti-features

Properties of this app that are worth knowing about before installing.

  • NonFreeDep

Versions

Version Date Size Requires Android Download
2.0.6 current
12ae13eeafcc5670…
2026-09-17 2.5 MB API 31

Permissions

What the app asks the system for. Android only grants sensitive access after you confirm it.

  • NotificationsShow notifications.
  • Installed appsSee which apps are installed.
  • Foreground serviceKeep running in the background, visible in the status bar.
  • FOREGROUND_SERVICE_SPECIAL_USE
  • onstop2finishandremovetask.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • permission.API_V23

Comments