Jump to content
Sign in to follow this  
david

XPrivacyLua on the Pro1

Recommended Posts

Has anyone managed to get XPrivacyLua running on the Pro1, under Magisk, with EdXposed?  I tried yesterday and got in a non-boot state and ended up doing a Factory Reset.  I will probably try again, but if someone has succeeded and has the steps, that would be great.

Share this post


Link to post
Share on other sites
50 minutes ago, daniel.schaaaf said:

https://community.fxtec.com/topic/2755-riru-core-edxposed-magisk/?tab=comments#comment-43838

😉

Which EdXposed did you install, SandHook or Yahfa? I never tried any Xposed modules with Yahfa, because EdXposed Manager only works with SandHook. That said, XPrivacyLUA runs great with SandHook and EdXposed Manager.

I've never done anything with Xposed/EdXposed before.  This is my first attempt (on any phone). 

I installed the Yahfa drivers, because I thought I read that was more stable.  And the instructions I was using to get XPrivacyLUA installed listed both, and didn't say anything about EdXposed manager not working with Yahfa??

This is one of the set of instructions I was looking at.  I can't find the other one right now.  And I know it says Android 10, but I think it seemed the same for other things I read about 9.

https://android.stackexchange.com/questions/218179/how-to-install-edxposed-on-android-10-without-triggering-safety-net

That one is a bit hard to follow with all the updates and strikethroughs.  I believe I restarted after installing Yahfa, and that is when the phone wouldn't boot again.

Share this post


Link to post
Share on other sites

We can take this over to that other thread.  When I first saw it before, I didn't know what riru-core was, so it didn't stick in my memory that it might be related to what I was trying to do here.  And when I saw all the wording about crashing left and right, I figured I wasn't going to mess with it.  But then I found out that the apps aren't acting the same way in Pie with contact permissions restricted like they did on Cyanogenmod with Privacy Guard.  I searched and found XPrivacyLua, and figured I'd try to get it working.

See you over in the other topic.

Share this post


Link to post
Share on other sites

The instructions in the "Riru Core EdXposed Magisk" thread to install Riru and EdXposed are very simple, and you can't break anything either. I too read that Yahfa was supposed to be more stable and installed the Magisk module first. But EdXposed Manager would just tell me that there was no EdXposed framework installed. Therefore I recommended SandHook in the other thread.

Share this post


Link to post
Share on other sites
2 hours ago, daniel.schaaaf said:

The instructions in the "Riru Core EdXposed Magisk" thread to install Riru and EdXposed are very simple, and you can't break anything either. I too read that Yahfa was supposed to be more stable and installed the Magisk module first. But EdXposed Manager would just tell me that there was no EdXposed framework installed. Therefore I recommended SandHook in the other thread.

I need to find a way to backup some apps that Titanium Backup failed to back up for me (and system settings that google failed on) before I attempt it again.  I think your number 1 way doesn't work to undo a failed boot, because that is what I was stuck in.  However, I've read in another thread how to get out of that situation without wiping /data, so I guess I can do that if needed.  But just in case that doesn't work for me, I'm going to hold off until I have a complete way to back up my apps and settings.

Thanks for posting the info in the other thread and replying in this one.

You are doing all of these things through Magisk, and in its "downloads" method, or are you downloading these things directly and pointing Magisk at them?  The information I read said that you needed to install the hook drivers separately, not through Magisk, so that is what I did with Yahfa and that is when I couldn't boot.

Share this post


Link to post
Share on other sites
18 minutes ago, david said:

I think your number 1 way doesn't work to undo a failed boot, because that is what I was stuck in.  However, I've read in another thread how to get out of that situation without wiping /data, so I guess I can do that if needed.  But just in case that doesn't work for me, I'm going to hold off until I have a complete way to back up my apps and settings.

Oh, that surprises me. Flashing back the original unpatched boot.img does disable Magisk and thereby Riru completely.

Good luck with getting your data back. If you manage, please tell us what you did 😉

 

To answer your other question: I installed Riru Core and EdXposed from within Magisk Manager, not from external sources.

Share this post


Link to post
Share on other sites
7 hours ago, daniel.schaaaf said:

Oh, that surprises me. Flashing back the original unpatched boot.img does disable Magisk and thereby Riru completely.

Yes, it definitely does that.  But with Magisk disabled, then I didn't have root. Without root, I couldn't go in and remove the modules.

Catch 22.

If I had a backup of /data *before* the modules were installed, and a way to replace it, without root in Android, then that would have been another option.  But without TWRP being able to decrypt /data yet, that wasn't possible.  I've toyed around with the idea of removing encryption and then using the TWRP that does exist, since it should be able to read data then. 

But getting TWRP and Magisk into the boot image is going to require doing things I've never toyed with before.  *And* (and this is important), if I were to get into a situation where I have to disable Magisk and boot with it disabled, then the system is going to re-assert itself and encrypt the darn /data all over again.  Of course, if I am careful enough to take a full backup of /data before getting in that state, then I can revert back to that.  But chances are I will forget to do it before installing some Magisk module, get stuck, and then loose whatever changes I had between the previous /data and the version I lost.  

And then there is the fact that TWRP doesn't backup the media folder.  So that has to be solved for somehow.  Either by sucking the data out of that when in TWRP, through ADB, or by renaming the media folder before TWRP does the backup, so that it *does* include it in the backup and then remembering what things to rename back afterward .

Those are the fun options *after* we get a TWRP that can read /data.  But we don't have that yet, so none of that matters right now.

7 hours ago, daniel.schaaaf said:

Good luck with getting your data back. If you manage, please tell us what you did 😉

@shubell gets credit for posting the solution.

Normally it would require patching the boot image, which is something I haven't done yet (other than having Magisk do it) to include the pieces to disable Magisk's modules, without disabling root.  However, @shubell provided an image where he did this already, for the 20200106 build.  So if you trust him, you can use that. :-)  

He posted his solution almost exactly when I was just finishing up restoring everything after doing a factory reset.  It wasn't the end of the world.  I just had to restore from Titanium Backup, which I did take right before installing the hook drivers.  But there are things that aren't included in that (WhatsApp and Viber media files, sysem settings, newer apps that wouldn't restore, like SwiftKeys, etc.), so I had to do a lot of manual work to get back to where I was before getting stuck.

I need to get my backup and restore system working (always relied on nandroid backups before, which is much simpler), so that I can get back to my good state if something goes horribly wrong.  In theory, with the solution @shubell posted, that won't be needed often, but I need to have it for worst case scenarios.

7 hours ago, daniel.schaaaf said:

To answer your other question: I installed Riru Core and EdXposed from within Magisk Manager, not from external sources.

But what about the hook drivers?  (SandHook)  That is the step where I got stuck.  It was before I got to EdXposed Manager.

Also, I can't remember if it was SandHook or Yahfa, but someone reported a bug recently that it heats up their phone.  Did you notice anything like that?

Share this post


Link to post
Share on other sites
9 hours ago, david said:

But what about the hook drivers?  (SandHook)  That is the step where I got stuck.  It was before I got to EdXposed Manager.

Also, I can't remember if it was SandHook or Yahfa, but someone reported a bug recently that it heats up their phone.  Did you notice anything like that?

Like I wrote before, I installed "Riru - Core (v19.7)" and "Riru - EdXposed (v0.4.5.1_beta4463 SandHook)" from the Magisk repo. I rebooted after installing Riru Core, and I rebooted again after installing EdXposed. Then I installed EdXposed Manager.

 

And yes, we are very screwed without TWRP with working decryption. We just have to wait until we get a working version. I don't know if it will be possible to install TWRP and Magisk at the same time. But at least we can flash TWRP, do stuff, and flash Magisk again.

Regarding boot halts, you have to try really hard to get the Pro1 to boot again. I just installed "Wifi QR Code Creator Xposed" and got stuck in a boot halt again. For some reason, flashing magisk_patched.img did not help like it did before. Flashing the original boot image worked and I was able to uninstall "Wifi QR Code Creator Xposed". To my surprise, the Pro1 would still not boot with magisk_patched.img flashed back. I got my phone to boot again by flashing the original boot.img, uninstalling some other Xposed modules that were disabled, and flashing magisk_patched.img. This doesn't make sense, because a disabled Xposed module should not get any more disabled by uninstalling it... but it worked! 🙄

  • Sad 1

Share this post


Link to post
Share on other sites
13 hours ago, daniel.schaaaf said:

Like I wrote before, I installed "Riru - Core (v19.7)" and "Riru - EdXposed (v0.4.5.1_beta4463 SandHook)" from the Magisk repo. I rebooted after installing Riru Core, and I rebooted again after installing EdXposed. Then I installed EdXposed Manager.

Oh, I didn't know you could install the driver and EdXposed together.  And the sources I read said to not install it from the Magisk repository.  So much for those instructions.  Lol

13 hours ago, daniel.schaaaf said:

And yes, we are very screwed without TWRP with working decryption. We just have to wait until we get a working version. I don't know if it will be possible to install TWRP and Magisk at the same time. But at least we can flash TWRP, do stuff, and flash Magisk again.

Regarding boot halts, you have to try really hard to get the Pro1 to boot again. I just installed "Wifi QR Code Creator Xposed" and got stuck in a boot halt again. For some reason, flashing magisk_patched.img did not help like it did before. Flashing the original boot image worked and I was able to uninstall "Wifi QR Code Creator Xposed". To my surprise, the Pro1 would still not boot with magisk_patched.img flashed back. I got my phone to boot again by flashing the original boot.img, uninstalling some other Xposed modules that were disabled, and flashing magisk_patched.img. This doesn't make sense, because a disabled Xposed module should not get any more disabled by uninstalling it... but it worked! 🙄

How did you uninstall the modules without root?

Share this post


Link to post
Share on other sites
4 hours ago, david said:

Oh, I didn't know you could install the driver and EdXposed together.  And the sources I read said to not install it from the Magisk repository.  So much for those instructions.  Lol

How did you uninstall the modules without root?

Not to install from the Magisk repo might apply to other phones, or the Magisk modules have been fixed since the installation instructions were posted.

Uninstalling Modules only works for Xposed, because Xposed modules are ordinary APKs. It would be cool though, if Magisk and Xposed would let users disable modules without root, and simply defer disabling until when root is available again.

Share this post


Link to post
Share on other sites
6 hours ago, daniel.schaaaf said:

Not to install from the Magisk repo might apply to other phones, or the Magisk modules have been fixed since the installation instructions were posted.

I thought about them being fixed since the instructions were posted, but the versions hadn't changed.  It doesn't matter, since you got them to work on the Pro1.

6 hours ago, daniel.schaaaf said:

Uninstalling Modules only works for Xposed, because Xposed modules are ordinary APKs. It would be cool though, if Magisk and Xposed would let users disable modules without root, and simply defer disabling until when root is available again.

Oh, so the distinction is that you can uninstall Xposed modules without root, since they are APKs, but you can't do that with EdXposed, because the aren't normally installed apps?  So, in this case, you were working with an Xposed module, not EdXposed?

Share this post


Link to post
Share on other sites
14 hours ago, david said:

Oh, so the distinction is that you can uninstall Xposed modules without root, since they are APKs, but you can't do that with EdXposed, because the aren't normally installed apps?  So, in this case, you were working with an Xposed module, not EdXposed?

Yes and no 🙂

Xposed modules are ordinary APKs that can be uninstalled. Some modules are missing a main activity, which makes them "invisible" to your launcher, but they can be uninstalled from within Android settings.

EdXposed Manager and the original Xposed Manager let you disable modules without uninstalling them ... as long as the framework is active. The EdXposed Manager might also let you uninstall modules by tapping on the modules name/icon. Although I am unsure if this works without root.

In essence, "Method 1" from my thread simply lets you uninstall Xposed "modules" that block the boot process. "Method 2" lets you disable Xposed modules, and it lets you disable Magisk modules or the Xposed/Magisk framework itself ...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Terms