bluesky139 / LTweaksMAGI

9 stars 1 forks source link

Riru is deprecated, Zygisk compatibility required #1

Open Einheit-101 opened 1 year ago

Einheit-101 commented 1 year ago

As the title says. Unfortunately i have no idea about Android debelopment so i cant do this for myself, but i seriously need the "hide share menu items" function of LTweaks.

How does that tweak even work? Maybe i can just edit a config file with my root access so i dont even need this app, or simply run a terminal command after each boot?

It seems, with my little knowledge, that in this file the code seems to intercept share intents with a custom exception in order to modify the outcome: https://github.com/bluesky139/LTweaksMAGI/blob/master/app/src/main/java/li/lingfeng/magi/tweaks/system/ShareFilter.java

bluesky139 commented 1 year ago

A big reason which I haven't use Zygisk is I need MagiskHide.

Several months ago, I tried Android 13 and latest Magisk (which include Zygisk of course), and tried some way to hide root, but the whole thing is not going well, some app crash.

Back to your question, no, you can't do this by editing config or executing command.

I may consider to try again on Android 13 and latest Magisk some day, but, I don't know, I don't have a schdule for now.

BTW, do you need to hide root? If so, which module do you us?

Einheit-101 commented 1 year ago

I dont need to hide root. Currently i am actually using an android 9 phone. I have the very old LTweaks installed and the only issue there is that i need to open the app once after bootup and i need to toggle any setting, because otherwise no change is in effect - this is what happens with many old Modules for unknown reason on new LSposed versions. I wanted to Check why that happens and found the New versions here. I will upgrade to a new phone soon so i have the choice to use the old Version with boot bug or this new thing which doesnt even need XPosed. The latter would be better. But i have no Intention to use riru, as its discontinued.

bluesky139 commented 1 year ago

My guess is the preference file can't be read due to permission, I don't have old phone and project is very old, so you have to just use it like what you said, better usable than useless.

As what I said above, I also consider remove riru, but for now, I'll still keep riru for a while, it's stable, no other issue, this is what I want.

PS. This new project may have compatibility problem on different devices, but you still can have a try.

Einheit-101 commented 1 year ago

I may use riru in the meantime on my new phone then, thanks. It doesnt look like riru brings any disadvantage at this point.

Einheit-101 commented 1 year ago

I guess i will simply use riru on my new phone then for a start.

HuskyDG commented 1 year ago

Zygisk and Riru both can be detected but Zygisk method (which is LD_PRELOAD) is more detectable than Riru (native bridge)

bluesky139 commented 1 year ago

For me, both Zygisk and Riru are acceptable, there are many ways to detect Magisk also, all I care is those apps can run normally or not, they basic only detect root even in 2023 year.