[Discussion][LSPOSED][Unofficial] XPrivacyLua - Android privacy manager

Search This thread

mythos_

Senior Member
May 27, 2012
188
98
Since M66B decided to discontinue support for XPrivacyLua and the official thread was closed I'm starting this unofficial thread to continue discussing the module.

It currently works up to android 13 with LSPosed.

Source code can be found at the author's github https://github.com/M66B/XPrivacyLua

FAQ https://github.com/M66B/XPrivacyLua/blob/master/FAQ.md

Please read the original thread as it contains a lot of useful information https://forum.xda-developers.com/t/...-android-privacy-manager-unsupported.3730663/

Disclaimer: I am not the developer of the module. I'm a long time user of XPrivacy/XPrivacyLua who wants to keep using it on future android versions. All credits for this module go to the developer and the people who made the custom hooks.
 

Conan179

Senior Member
Apr 28, 2010
919
111
is there a trick to get new apps automatically checked on lsposed? Otherwise, the option that new apps take all rights during installation does not work.
 

mythos_

Senior Member
May 27, 2012
188
98
is there a trick to get new apps automatically checked on lsposed? Otherwise, the option that new apps take all rights during installation does not work.
Not with LSPosed but according to this post you can do it with tasker. I think there's also an LSPosed fork that does it too.

 
@Oswald Boelcke the thread is about XPrivacyLua or about LSPosed ?
Lol
Hello and good morning, @VD171

I guess you need to address the OP @mythos_ with this question but as far as I understand it's about the Xposed module XPrivacyLua by @M66B and not about LSPosed. If my assumption is correct it's on the OP to decide if LSPosed related questions and contributions are off-topic (OT) or not. A moderator will never get involved to that unless a threadowner (and only the owner) reports something as OT.

Regards
Oswald Boelcke
Senior Moderator
 

mythos_

Senior Member
May 27, 2012
188
98
The main focus should be on XPL but since LSPosed is needed to run XPL, I see nothing wrong with discussing it here.
QoL things like how to auto-add new apps to LSPosed are fine. Of course if people want a more in depth discussion (e.g. bugs, new features, etc.) they should post in the LSPosed threads as the developers don't read this.
 

nutzfreelance

Senior Member
Mar 6, 2022
228
69
when this project was abandoned by m66b did he opensource the "pro" app?
and is the code available now for free to be built from source?
or is there a link to the last version?

i hope someone keeps working on this, as privacy is more and more important the more stuff is kept on our phones.
 
Last edited:

heinhuiz

Senior Member
Nov 26, 2011
1,386
1,266
Xiaomi Mi A1
Redmi K20 / Xiaomi Mi 9T
when this project was abandoned by m66b did he opensource the "pro" app?
and is the code available now for free to be built from source?
or is there a link to the last version?

i hope someone keeps working on this, as privacy is more and more important the more stuff is kept on our phones.
(...) The pro companion app won't be open-sourced. If somebody wants to continue the project, (s)he can prove being a worthy developer by developing a new pro companion app, which can be done in at most a few days. As already offered, another developer can ask for the source code after a significant contribution to the source code as well.
 

powerman.asdf

Member
Dec 11, 2017
23
14
LG G5
I've already reported to @M66B about "MEW wallet" app which can't be restricted (tested on A10) to access camera (not sure is it was photo or video - app is handling QR codes) at https://forum.xda-developers.com/t/...acy-manager-unsupported.3730663/post-87416749.

Now I've installed LineageOS 20 (A13) and noticed default Camera app (which is new "Aperture" Lineage app) also can't be restricted to BOTH video and photo (but microphone restriction works okay and result in recording video without sound).

Looks like there are some new API to be restricted… so, @M66B, maybe you can update XPrivacyLua a bit to fix this? Or at least give some hint for someone who might wanna fork it?
 

powerman.asdf

Member
Dec 11, 2017
23
14
LG G5
Not with LSPosed but according to this post you can do it with tasker. I think there's also an LSPosed fork that does it too.

I've checked both Tasker methods to update LSPosed.
First one (UI automation) didn't work because there are no "LSPosed Manager" app (it's now started only as a widget, and I don't found a way in Tasker to start widget), so this unlikely can be fixed at all.
Second one (database editing) might work… but to me it looks unsafe: each time new app is installed it does kill `lspd` (LSPosed daemon, I suppose) after editing database for 1 second and then restarts it. I think this might result in allowing app apps to bypass XPrivacyLua restictions within that 1 second. No idea how to test this.

Also I've tried to replace original LSPosed with modified version https://github.com/mywalkb/LSPosed_mod - it works like a charm: installed as drop-in replacement over original one, keeps all configuration of original one after reboot and provide new UI to automatically add new apps to XPrivacyLua module! To me it looks like main and only actual way to continue using XPrivacyLua for now.
 

mrjuniork

Forum Moderator
Staff member
Aug 29, 2015
1,924
4,856
Vienna
OnePlus 6
OnePlus 7 Pro
The main focus should be on XPL but since LSPosed is needed to run XPL, I see nothing wrong with discussing it here.
QoL things like how to auto-add new apps to LSPosed are fine. Of course if people want a more in depth discussion (e.g. bugs, new features, etc.) they should post in the LSPosed threads as the developers don't read this.
You might want to add that info to the OP of this thread in order to avoid any further confusion in the future 😉
Cheers
 

VD171

Senior Member
Jun 21, 2012
2,976
2
2,231
127.0.0.1
LG K10
Samsung Galaxy J7
I've already reported to @M66B about "MEW wallet" app which can't be restricted (tested on A10) to access camera (not sure is it was photo or video - app is handling QR codes) at https://forum.xda-developers.com/t/...acy-manager-unsupported.3730663/post-87416749.

Now I've installed LineageOS 20 (A13) and noticed default Camera app (which is new "Aperture" Lineage app) also can't be restricted to BOTH video and photo (but microphone restriction works okay and result in recording video without sound).

Looks like there are some new API to be restricted… so, @M66B, maybe you can update XPrivacyLua a bit to fix this? Or at least give some hint for someone who might wanna fork it?
@M66B won't care with that.
You should do what you want by yourself or wait and hope to someone else release that.
 
Last edited:

VD171

Senior Member
Jun 21, 2012
2,976
2
2,231
127.0.0.1
LG K10
Samsung Galaxy J7
I've checked both Tasker methods to update LSPosed.
First one (UI automation) didn't work because there are no "LSPosed Manager" app (it's now started only as a widget, and I don't found a way in Tasker to start widget), so this unlikely can be fixed at all.
Second one (database editing) might work… but to me it looks unsafe: each time new app is installed it does kill `lspd` (LSPosed daemon, I suppose) after editing database for 1 second and then restarts it. I think this might result in allowing app apps to bypass XPrivacyLua restictions within that 1 second. No idea how to test this.

Also I've tried to replace original LSPosed with modified version https://github.com/mywalkb/LSPosed_mod - it works like a charm: installed as drop-in replacement over original one, keeps all configuration of original one after reboot and provide new UI to automatically add new apps to XPrivacyLua module! To me it looks like main and only actual way to continue using XPrivacyLua for now.
"auto-add" is a waste of time.
LSPosed is developed for avoiding something like "all-add" or "auto-add".
Since you are talking about something that is contrary to the official release, LSPosed developers will never read and care to the thread.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Hello.

    I consider to stop using XPL because is unmantained and also cause some apps to crash.

    I'm not a developer so I'm unable to port XPL hooks to WeiJu2 by myself.
    Where I can find your scripts? Can you please provide link?

    Regards.
    Hello, I'm still working on them. Curently working on some issues...

    When finished I'll publish all of them on github.
    3
    xPrivacy is a crucial app. As many of you wrote, there’s simply no alternative to defend against data-sucking apps.

    I’ve been experiencing the same error message – *Module not running or updated* – and I suspect the culprit is a new version of Magisk or its combination with Zygisk-LSPosed.

    After reading this thread, I checked my Pixel 7 (running Android 13 stock), where I recently updated to the new version of Magisk (26.3). I was surprised to see the dreaded error message *Module not running or updated*, even if xPrivacy (1.35) has been enabled in Zygisk-LSPosed (1.8.4) all along.

    I uninstalled/reinstalled Magisk and xPrivacy. I downgraded Magisk to 25.2. The error persists.

    I tried installing on a different device (Linegae 19.1, Magisk 26.3, Zygisk-LSPosed 1.9.1). I’m seeing the same error.

    I'm ready to test your ideas @kaefers @thbl7 @Schrinus @ZXR
    3
    XprivacyLua apk no longer available for download on Github.

    Could anyone have can send me the apk file?
    Since this is an unofficial thread, I'm sure I am allowed to attach the latest release here ☺️
    3
    As of the September Pixel release + Lsposed 1.9.1 (6997) + Magisk 26300, XPL is officially dead.

    It still works on cdroid and lineage 20. It must be a mixture of a Google security patch and Lsposed removing it's functionally since it's not being managed.

    Still the best app ever made for Android. Too bad it's over as we move towards A14 .

    I still have $100 to start up a fund to give to any developer willing to take on management of this app.
    2
    Good news: I managed to fix xPrivacy Lua "device not running or updated" error on one device, and then on another. After many uninstalls-reinstall, upgrades and downgrades, I got so fed up that I started looking for alternatives to xPrivacy Lua.

    I downloaded and installed in LSPosed another root module. Suddenly, xPrivacy Lua sprung back to life, as if it were jealous.

    The same trick didn't work on the other device. There, it was finally solved when I installed something called Mrepo, although it didn't seem related to xPrivacy Lua.

    Still, I don't know what caused the problem but I guess it was unrelated to xPrivacy Lua but rather a bug in Magisk and/or LS Zygisk-LSPosed.

    To sum: xPrivacy Lua displayed a "device not running or updated" error upon opening it. Over a week, I uninstall-reinstalled, rolled back Magisk and LSPosed to earlier versions, restarted a million times. Nothing worked, until I installed an unrelated root module.

    versions: xPrivacy Lua 1.35, Magisk versions 25.0-26.3, Zygisk-LSPosed 1.8.4-1.9.1, Android 13 (stock) and Lineage 19.1 (Android 12).

    Thank you all for the support!

    p.s. Can anyone report to the developers of Magisk and LSPosed? I don't know how.
  • 26
    Since M66B decided to discontinue support for XPrivacyLua and the official thread was closed I'm starting this unofficial thread to continue discussing the module.

    It currently works up to android 13 with LSPosed.

    Source code can be found at the author's github https://github.com/M66B/XPrivacyLua

    FAQ https://github.com/M66B/XPrivacyLua/blob/master/FAQ.md

    Please read the original thread as it contains a lot of useful information https://forum.xda-developers.com/t/...-android-privacy-manager-unsupported.3730663/

    Disclaimer: I am not the developer of the module. I'm a long time user of XPrivacy/XPrivacyLua who wants to keep using it on future android versions. All credits for this module go to the developer and the people who made the custom hooks.
    10
    Hello.

    I consider to stop using XPL because is unmantained and also cause some apps to crash.

    I'm not a developer so I'm unable to port XPL hooks to WeiJu2 by myself.
    Where I can find your scripts? Can you please provide link?

    Regards.
    Hello, I'm still working on them. Curently working on some issues...

    When finished I'll publish all of them on github.
    8
    In one of @M66B last post in the original XPL thread he left the possibility open to continue development if the LSPosed developers added an API to manage scopes.

    The newest version of LSPosed under active development has implemented an API that has the ability to dynamically request scopes.

    More information on developing Xposed modules using the modern xposed API can be found here with item #7 providing info on dynamic scopes.

    They've also provided an example module that uses the new API which has the ability to dynamically request scopes.

    Leaving this here in the hopes it motivates @M66B to pick up development again.
    7
    Did you put the apps into the scope of the XPL module inside LSposed too? Open the LSposed Manager, at the bottom click the Modules button, enable XPL and check all apps you want XPL to work for.
    Remember you have to do that every time for any new app you install.
    Yes, I activated XPL, then I added example app in XPL module scope (whatever, you understand that :)).

    I have custom hooks list from pro companion app. Those are not working, I think there is something wrong with pro companion. I tried on stock samsung roms and customs... Maybe its not compatible for Android 13. I dont know. Hoped that I expressed myself correctly.


    BTW, I managed to port scripts to WeiJu2. I can hide my IMEI, carrier name, device name, type etc... Perfect. I'll upload all the scripts to the WeiJu2 official repo. Maybe I'd open a thread XDA too.
    6
    As requested by all (and @M66B), LSPosed Developers are dedicated on development of a new XPosed API, including scope management, as we can see here:

    New Xposed API proposal​

    As Android version iterates, the original Xposed API by rovo89 reaches its limits. Now we are working on the new modern Xposed API with features of application scope management, remote preferences, dex parser interface and so on.
    The new API will be implemented in the next releasing of LSPosed, and it is welcome to post your suggestions on https://github.com/libxposed.

    Sources: