Young-Lord / hideRecent

[Xposed] Hide app from Recent task list
https://github.com/Xposed-Modules-Repo/moe.lyniko.hiderecent
MIT License
4 stars 1 forks source link

Lack multi-user support #1

Closed CanglanXYA closed 5 months ago

CanglanXYA commented 5 months ago

Environment: Android 13 + lsposed Explain: I try to intall and active this app at both main space (user 0) and the work space (user 10), but only the main space hide successfully.

By the way, Thx for your development !

Young-Lord commented 5 months ago

If you only configure hide in main space (user 0), does it work for other users? I am unable to test now.

Young-Lord commented 5 months ago

btw, could you please tell me some info: if your target app is installed in user 10, and this module is installed in user 0, will your target app displayed in this module?

CanglanXYA commented 5 months ago

btw, could you please tell me some info: if your target app is installed in user 10, and this module is installed in user 0, will your target app displayed in this module?

Sorry I click the wrong bottom (TT)

If you install it at user 0, this module cant get the app list at user 10. Although you can install it again at user 10 and get user 10's list , it simply failed to hide the target apps at 10.

Maybe you can try to use root access to get different user's applist at user 0. :)

Young-Lord commented 5 months ago

OK. will fix next version. (~1 week)

Young-Lord commented 5 months ago

try latest ci build. best to test both release / debug. Sign the apk with MT Manager if needed. https://github.com/Young-Lord/hideRecent/actions/runs/7237741272

CanglanXYA commented 5 months ago

try latest ci build. best to test both release / debug. Sign the apk with MT Manager if needed. https://github.com/Young-Lord/hideRecent/actions/runs/7237741272

I use Core Patch to install both of them successfully. But I can not activate them at Lsposed(clicking active button is no use)

My lsposed version is 1.9.2(7046)

Young-Lord commented 5 months ago

Is module shown in LSPosed Manager? If it's gray, please show me the screenshot.

CanglanXYA commented 5 months ago

Is module shown in LSPosed Manager? If it's gray, please show me the screenshot.

ResizedImage_2023-12-17_18-26-47_1368 I also notice that when I finish installing them the lsposed is not response at all.(its supposed to remind me to activate them)

Young-Lord commented 5 months ago

no idea… maybe a device reboot?

CanglanXYA commented 5 months ago

no idea… maybe a device reboot?

Ive rebooted twice and updated my lsp to latest version, still grey

Young-Lord commented 5 months ago

ah, my fault, i just remove xposed_init😅 current CI version may work.

CanglanXYA commented 5 months ago

ah, my fault, i just remove xposed_init😅 current CI version may work.

Now I can activate it, but the app itself keeps crashing when you try to open it.......

I use the latest build's release and debug version

Young-Lord commented 5 months ago

can you provide log exported from LSPosed Manager?

CanglanXYA commented 5 months ago

can you provide log exported from LSPosed Manager?

LSPosed_2023-12-17T21_27_31.880513.zip

Module logs above

Young-Lord commented 5 months ago

try new build.

CanglanXYA commented 5 months ago

try new build.

Worked fine at first, but crashed after I gave it shizuku permission.

CanglanXYA commented 5 months ago

try new build.

Worked fine at first, but crashed after I gave it shizuku permission.

I try to withdraw shizuku authorize but it just keeps to be blank and crash.

Young-Lord commented 5 months ago

log?

Young-Lord commented 5 months ago

also try new build.

CanglanXYA commented 5 months ago

log?

Here we go LSPosed_2023-12-17T22_07_06.085967.zip

Trying new build......New build also crashed....Maybe the problem comes from shizuku's related code ?

Young-Lord commented 5 months ago

the log file url is invalid (Not Found).

CanglanXYA commented 5 months ago

the log file url is invalid (Not Found).

LSPosed_2023-12-17T22_14_09.650181.zip

CanglanXYA commented 5 months ago

Sorry I uploaded it in a hurry and it failed

Young-Lord commented 5 months ago
12-17 22:13:44.571 14709 14709 E AndroidRuntime: FATAL EXCEPTION: main
12-17 22:13:44.571 14709 14709 E AndroidRuntime: Process: moe.lyniko.hiderecent, PID: 14709
12-17 22:13:44.571 14709 14709 E AndroidRuntime: java.lang.NoSuchMethodError: No interface method getInstalledPackages(JI)Landroid/content/pm/ParceledListSlice; in class Landroid/content/pm/IPackageManager; or its super classes (declaration of 'android.content.pm.IPackageManager' appears in /system/framework/framework.jar)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at x3.a.s(Unknown Source:95)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at x3.a.s(Unknown Source:188)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at x3.b.s(Unknown Source:15)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at x3.b.a(Unknown Source:19)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at x3.b.s(Unknown Source:78)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:    at androidx.navigation.compose.d.M(Unknown Source:196)
CanglanXYA commented 5 months ago
12-17 22:13:44.571 14709 14709 E AndroidRuntime: FATAL EXCEPTION: main
12-17 22:13:44.571 14709 14709 E AndroidRuntime: Process: moe.lyniko.hiderecent, PID: 14709
12-17 22:13:44.571 14709 14709 E AndroidRuntime: java.lang.NoSuchMethodError: No interface method getInstalledPackages(JI)Landroid/content/pm/ParceledListSlice; in class Landroid/content/pm/IPackageManager; or its super classes (declaration of 'android.content.pm.IPackageManager' appears in /system/framework/framework.jar)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at x3.a.s(Unknown Source:95)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at x3.a.s(Unknown Source:188)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at x3.b.s(Unknown Source:15)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at x3.b.a(Unknown Source:19)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at x3.b.s(Unknown Source:78)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at u2.h.getValue(Unknown Source:20)
12-17 22:13:44.571 14709 14709 E AndroidRuntime:  at androidx.navigation.compose.d.M(Unknown Source:196)

frameworkjar.zip

Young-Lord commented 5 months ago

Can you try the following:

顺带一提 介意用中文吗(

CanglanXYA commented 5 months ago

Can you try the following:

* Clear app data

* Try debug build and send crash log (if any)

顺带一提 介意用中文吗(

不介意,马上

CanglanXYA commented 5 months ago

Can you try the following:

* Clear app data

* Try debug build and send crash log (if any)

顺带一提 介意用中文吗(

不介意,马上

framework.jar.zip LSPosed_2023-12-17T22_45_17.472392.zip

debug版本崩溃的日志和jar

Young-Lord commented 5 months ago

模拟器稳定复现,晚点看看怎么回事 jar 完全看不出问题……

Young-Lord commented 5 months ago

ci build.

CanglanXYA commented 5 months ago

ci build.

Release版本双用户隐藏成功! 感谢开发🥰

Young-Lord commented 5 months ago

也要感谢你的高质量 issue & log 才是。 我也早就看这个不开源(指上游没有开源协议)的代码很久了,权当学习并重构一下。

Young-Lord commented 5 months ago

以及,建议等我推到 repo 再装,刚写完了最后一点功能,有兴趣可以测试一下

CanglanXYA commented 5 months ago

以及,建议等我推到 repo 再装,刚写完了最后一点功能,有兴趣可以测试一下

好的好的,我有空试试