Skip to content

Young-Lord/hideRecent-legacy

 
 

Repository files navigation

Redirect Notice

Update your URL to https://github.com/Young-Lord/hideRecent ! This repo will no longer receive updates.

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 an 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 订阅,然后写完这个模块后又卖了。