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

Search This thread

VD171

Senior Member
Jun 21, 2012
2,976
2
2,232
127.0.0.1
LG K10
Samsung Galaxy J7
I have stumbled here as I'm being left with no choice but to install WhatsApp for work use. I'm absolutely not happy with needing to allow access to contacts before it will think about working.
I'm using LOS 20 (A13). I have Magisk 26.1 installed and LSPosed module installed for Hide My Applist.
I am aware of XPrivacy(Lua), but avoid the worse privacy offenders and use FOSS alternatives where possible and so far haven't felt the need to investigate it further.
Is this still the best option to 'fake' access of my contacts to WhatsApp?
Could someone point me to any crash courses in XPrivacyLua, to help me achieve the goal of allowing WhatsApp to work, whilst blocking access to my real contacts.

EDIT.
So I've installed the module. Gone to the LSPosed module manager tab and enabled XPrivacyLua, scrolled down the app list and ticked WhatsApp, then rebooted.
It looks like it's working. WhatsApp doesn't show any contacts after I've granted permission to access the contacts.

So now am I right in assuming that all restrictions listed in the module description are now applied to WhatsApp?
Can I turn on and off individual restrictions outside off the XPrivacyLua Pro app? If so how?
Now that support and development has ended, is it still possible to get the Pro features?
You don't need a course in XPrivacyLua, you need a course in Lua.
Lua is the scripts language in XPrivacyLua, so you can write your own lua scripts and do almost anything on Android.
You can donate and get pro features following this:
 

VanGray

Member
Sep 17, 2021
35
37
I have stumbled here as I'm being left with no choice but to install WhatsApp for work use. I'm absolutely not happy with needing to allow access to contacts before it will think about working.
I'm using LOS 20 (A13). I have Magisk 26.1 installed and LSPosed module installed for Hide My Applist.
I am aware of XPrivacy(Lua), but avoid the worse privacy offenders and use FOSS alternatives where possible and so far haven't felt the need to investigate it further.
Is this still the best option to 'fake' access of my contacts to WhatsApp?
Could someone point me to any crash courses in XPrivacyLua, to help me achieve the goal of allowing WhatsApp to work, whilst blocking access to my real contacts.

EDIT.
So I've installed the module. Gone to the LSPosed module manager tab and enabled XPrivacyLua, scrolled down the app list and ticked WhatsApp, then rebooted.
It looks like it's working. WhatsApp doesn't show any contacts after I've granted permission to access the contacts.

So now am I right in assuming that all restrictions listed in the module description are now applied to WhatsApp?
Can I turn on and off individual restrictions outside off the XPrivacyLua Pro app? If so how?
Now that support and development has ended, is it still possible to get the Pro features?
If you have checked xprivacylua from lsposed, checked whatsApp in the xprivacylua in the lsposed and checked the target app in the xprivacylua app, it should work.

If contact is ticked in the xprivacylua app, then it is restricted. As I remember, you can check or uncheck restrictions as you like in the xprivacylua app. It have a basic restriction on privacy.

With the xprivacylua pro, you can use hooks.

In the xprivacylua pro app, you can choose what to do with your contact as blocking them all for example. You have the possibility to see logs too to ensure that the contact is really blocked or use app like VD Info to make sure that contacts are really hidden.

You still can purchase the pro app of xprivacylua from their sites.
 
  • Like
Reactions: VD171

mythos_

Senior Member
May 27, 2012
188
99
I have stumbled here as I'm being left with no choice but to install WhatsApp for work use. I'm absolutely not happy with needing to allow access to contacts before it will think about working.
I'm using LOS 20 (A13). I have Magisk 26.1 installed and LSPosed module installed for Hide My Applist.
I am aware of XPrivacy(Lua), but avoid the worse privacy offenders and use FOSS alternatives where possible and so far haven't felt the need to investigate it further.
Is this still the best option to 'fake' access of my contacts to WhatsApp?
Could someone point me to any crash courses in XPrivacyLua, to help me achieve the goal of allowing WhatsApp to work, whilst blocking access to my real contacts.

EDIT.
So I've installed the module. Gone to the LSPosed module manager tab and enabled XPrivacyLua, scrolled down the app list and ticked WhatsApp, then rebooted.
It looks like it's working. WhatsApp doesn't show any contacts after I've granted permission to access the contacts.

So now am I right in assuming that all restrictions listed in the module description are now applied to WhatsApp?
Can I turn on and off individual restrictions outside off the XPrivacyLua Pro app? If so how?
Now that support and development has ended, is it still possible to get the Pro features?
You can choose to enable the restrictions you want from within Xprivacy. Just find the app and tick whatever you want. You can also see what the app has requested and when to give you an idea of what to select.
You can still purchase the pro app which gives you access to custom hooks, backup etc. Pretty handy stuff.
 

heinhuiz

Senior Member
Nov 26, 2011
1,387
1,267
Xiaomi Mi A1
Redmi K20 / Xiaomi Mi 9T
I have stumbled here as I'm being left with no choice but to install WhatsApp for work use. I'm absolutely not happy with needing to allow access to contacts before it will think about working.
I'm using LOS 20 (A13). I have Magisk 26.1 installed and LSPosed module installed for Hide My Applist.
I am aware of XPrivacy(Lua), but avoid the worse privacy offenders and use FOSS alternatives where possible and so far haven't felt the need to investigate it further.
Is this still the best option to 'fake' access of my contacts to WhatsApp?
Could someone point me to any crash courses in XPrivacyLua, to help me achieve the goal of allowing WhatsApp to work, whilst blocking access to my real contacts.

EDIT.
So I've installed the module. Gone to the LSPosed module manager tab and enabled XPrivacyLua, scrolled down the app list and ticked WhatsApp, then rebooted.
It looks like it's working. WhatsApp doesn't show any contacts after I've granted permission to access the contacts.

So now am I right in assuming that all restrictions listed in the module description are now applied to WhatsApp?
Can I turn on and off individual restrictions outside off the XPrivacyLua Pro app? If so how?
Now that support and development has ended, is it still possible to get the Pro features?
As an alternative without XPL, you can simply create a Work profile with an app like Island or Shelter, install only WhatsApp there and add the needed contacts in that profile. Both the Work and the Personal profile are separated, so that they can not 'see' each other's data.
 

Robbo.5000

Senior Member
You don't need a course in XPrivacyLua, you need a course in Lua.
Lua is the scripts language in XPrivacyLua, so you can write your own lua scripts and do almost anything on Android.
You can donate and get pro features following this:

If you have checked xprivacylua from lsposed, checked whatsApp in the xprivacylua in the lsposed and checked the target app in the xprivacylua app, it should work.

If contact is ticked in the xprivacylua app, then it is restricted. As I remember, you can check or uncheck restrictions as you like in the xprivacylua app. It have a basic restriction on privacy.

With the xprivacylua pro, you can use hooks.

In the xprivacylua pro app, you can choose what to do with your contact as blocking them all for example. You have the possibility to see logs too to ensure that the contact is really blocked or use app like VD Info to make sure that contacts are really hidden.

You still can purchase the pro app of xprivacylua from their sites.

You can choose to enable the restrictions you want from within Xprivacy. Just find the app and tick whatever you want. You can also see what the app has requested and when to give you an idea of what to select.
You can still purchase the pro app which gives you access to custom hooks, backup etc. Pretty handy stuff.

As an alternative without XPL, you can simply create a Work profile with an app like Island or Shelter, install only WhatsApp there and add the needed contacts in that profile. Both the Work and the Personal profile are separated, so that they can not 'see' each other's data.
Thanks for the responses.
Never noticed the the drop down icon to the left of each app in XPL initially, so was trying to use the settings icon to the right, which was telling me I needed the Pro app. Now I've seen the drop down icon it makes more sense.
Blocking contacts in WhatsApp doesn't work well, as it will only make calls to contacts. Saving a contact in WhatsApp saves to device contacts which then can not be accessed to make the call. Was hoping I could save contacts local to WhatsApp and not be forced to save them to my device contacts.
Just investigating island and shelter when I got notification of your reply. They might have to be the way to go.
 

VD171

Senior Member
Jun 21, 2012
2,976
2
2,232
127.0.0.1
LG K10
Samsung Galaxy J7
Thanks for the responses.
Never noticed the the drop down icon to the left of each app in XPL initially, so was trying to use the settings icon to the right, which was telling me I needed the Pro app. Now I've seen the drop down icon it makes more sense.
Blocking contacts in WhatsApp doesn't work well, as it will only make calls to contacts. Saving a contact in WhatsApp saves to device contacts which then can not be accessed to make the call. Was hoping I could save contacts local to WhatsApp and not be forced to save them to my device contacts.
Just investigating island and shelter when I got notification of your reply. They might have to be the way to go.
Using XPrivacyLua, you can set to "block all" contacts, "allow starred" only or "allow not starred" contacts.
 

Attachments

  • Screenshot_2023-04-26-11-19-07-713_eu.faircode.xlua.pro.jpg
    Screenshot_2023-04-26-11-19-07-713_eu.faircode.xlua.pro.jpg
    213 KB · Views: 97

AnyNameYouWish

Senior Member
Oh wow, what a clever answer. Why bothering of you can't come up with a constructive answer which adds value?

I meant a reliable source. I don't want to download an tampered app from just anywhere.

*sigh.
Understandable, also since you pinged me I simply show you how I did. Can't remember which website I downloaded it, maybe apkpure or apkmirror.
Since we're using xprivacyLUA I guess it's more acceptable to download from an apksomething website but I may be wrong.

*sigh back
 

tester2

Senior Member
Dec 1, 2006
147
13
There is an test app which try to access all premissions and display all private and sensitive phone's data, so I can check how effectively XPrivacy works or not?
 

tester2

Senior Member
Dec 1, 2006
147
13
1685886745977.png


He wrote 20 pages of threads - this is about thousand threads to check.
Any more specific clues?

I switched from XPrivacyLua on old Xposed (Android 7 user here).
I found some checkboxes on Xprivacy module page in LSPosed:
1685886456094.png


As I understand to XPrivacy have effect on some app this should be checked both: app checkbox in LSPosed module AND on Xprivacy config page checkbox(es) for that app too?
What is blocked list (3rd position)? Blocked for what?
 
Last edited:

bush911

Senior Member
Oct 12, 2012
829
360
重庆
Google Nexus 5
Google Pixel
View attachment 5925629

He wrote 20 pages of threads - this is about thousand threads to check.
Any more specific clues?

I switched from XPrivacyLua on old Xposed (Android 7 user here).
I found some checkboxes on Xprivacy module page in LSPosed:
View attachment 5925623

As I understand to XPrivacy have effect on some app this should be checked both: app checkbox in LSPosed module AND on Xprivacy config page checkbox(es) for that app too?
What is blocked list (3rd position)? Blocked for what?
 
  • Like
  • Love
Reactions: VD171 and tester2

easy_mac

Senior Member
Jan 22, 2015
459
198
Is there any way to transfer my existing Pro (that i had previously purchased) to a new device?
 

VD171

Senior Member
Jun 21, 2012
2,976
2
2,232
127.0.0.1
LG K10
Samsung Galaxy J7
Is there any way to transfer my existing Pro (that i had previously purchased) to a new device?
Yes, if you made a donation more than 7 euros.
Otherwise, you can't.
Read this guide to place a donation, if you donate 7 euros or more, you are allowed to activate the pro features on all devices you personally own:
 

easy_mac

Senior Member
Jan 22, 2015
459
198
Yes, if you made a donation more than 7 euros.
Otherwise, you can't.
Read this guide to place a donation, if you donate 7 euros or more, you are allowed to activate the pro features on all devices you personally own:
I see, so my original payment of $15 is no good anymore and doesnt count as being above the $7 donation :'(
 

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
    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.
    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
    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
    2
    First quick try today. It seems not to work with A14 and LSPosed 1.9.1 zygisk.
    When opening, it says module not activated, but I activated it in LSPosed.
    Thank you for letting me know this. Hope someone will make XprivacyLua work with Android 14.
  • 27
    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: