Hide App from Recent Task List

Simple module to hide any app from recent task list.

Designed in pure Kotlin & Jetpack Compose & Material Design 3. Can be a template for any Xposed module with a application selection list.

UI Screenshot

How to use

Tested on: Android 10 (AOSP), Android 11 (MIUI 12), Android 13 (AOSP), Android 13 (MIUI 14), Android 14 (AOSP); may work on 10 <= Android <= 14

  1. Select System framework (package name may be android or system or empty, see this) in module scope and activate the module
  2. Force stop module
  3. Select the apps you want to hide from recent app list in module settings (if package list not shown, you can manually import / export settings to edit config)
  4. Reboot (you MUST reboot when you modify the list, or changes will not be applied until next reboot)
  5. If you need multi-user support, install this module only in main user, and use Shizuku to get app info from other users.

Module Scope

  • android

Project URL

Home URL: https://github.com/Young-Lord/hideRecent

Xposed Modules Repo URL: https://github.com/Xposed-Modules-Repo/moe.lyniko.hiderecent

Technical Details

UI: Material Design 3 + Jetpack Compose + Kotlin.

Hook: Hook com.android.server.wm.RecentTasks.isVisibleRecentTask(com.android.server.wm.Task), (callMethod(param.args[0], "getBaseIntent") as Intent).component?.packageName is package name.

HELP ME IT DOESNT WORK!!!

Please open a issue here. Provide your Android version, /system/framework/framework.jar and all /system/framework/framework{a number here}.jar if exist.

I am not intended to support Android < 10, but anyone is free to send a PR for Android < 10 support.

PR for refactoring is also appreciated.

License

Apache-2.0 License or MIT License are all OK.

Thanks

https://stackoverflow.com/questions/57266451/get-list-of-apps-of-all-users

https://github.com/LibChecker/LibChecker/pull/821/files (Apache-2.0 license)

Original code from: https://github.com/cokkeijigen/setAppFull refactored.

rootAVD

Why?

出于隐私或便捷原因,有些时候我们总是想隐藏一些应用。

CrDroid 内置了这个功能,这是好的,然而并不是所有人都在用 CrDroid。

而且,国内的 ROM 的“最近任务列表”里划掉一个卡片,就等于杀死这个应用,这太蠢了!你也不想你的 Clash For Android 编辑完配置就挂了吧?

Thanox 等一些应用也有这个功能,但只为了这个功能氪金并装一个闭源应用,怎么看都很怪。于是我买了 Thanox 订阅,然后写完这个模块后又卖了。

Package

moe.lyniko.hiderecent

Authors

LY

Releases

2.1.0

Release type: Stable

4/21/2024, 12:26:27 PM

feat: optional hide launcher icon

支持隐藏启动器图标

2.0.2

Release type: Stable

12/31/2023, 12:02:40 AM

Fix issues for HyperOS / MIUI, Android 14. No need to update if everything works fine.

为基于 Android 14 的 HyoerOS 尝试禁用部分特性。如果正常运行,可以不用更新。
(雷军!金凡!)

2.0.1

Release type: Stable

12/23/2023, 12:01:11 PM

  • Refator with Kotlin & Jetpack Compose & Material Design 3
  • Add support for multi user based on Shizuku
  • Performance optimiztion

1.1.0

Release type: Stable

10/2/2023, 4:21:09 AM

  • Always show searchbox
  • Add ContentDescription attribute for ImageButton
  • Fix version display bug

1.0.0

Release type: Stable

8/7/2023, 5:18:16 AM