[CLOSED][APP][XPOSED][6.0+] XPrivacyLua - Android privacy manager [UNSUPPORTED]

Status
Not open for further replies.
Search This thread

pingguo

Senior Member
Jan 27, 2013
145
58
I am considering to terminate support on January 5th 2023 because:
  • Not many people use the module anymore
  • The support of the project is pretty limited
  • Android has become more privacy-friendly over time
  • The LSposed developers do not support the module (*)
  • The module is too often misused, for example to cheat in games, etc.
  • I have received enough hate mail
(*) They refuse to add an API to access scopes, resulting a too many questions and also loosing users.

This means that XPrivacyLua has been supported for exactly 5 years. XPrivacy was first released on June 12, 2013, so that's in total about 10 years of XPrivacy(Lua). I think that is a pretty long time.
damn, i can emphasize with the sentiment. hats off to your efforts to slow down time for the last free generation of internet dwellers. sure, permission systems have improved, but to me it looks more like an effort to dissuade critics and make people "feel" in control rather than "be" in control. i think i might have bought my last smartphone. next device will be a mini archlinux or an old dialpad brick. i salute M66B, the legend, as well as my fellow technology outcasts, and wish you well for what's coming...
 

k-ninja

Senior Member
Jul 27, 2011
81
21
Melbourne
I am considering to terminate support on January 5th 2023 because:
  • Not many people use the module anymore
  • The support of the project is pretty limited
  • Android has become more privacy-friendly over time
  • The LSposed developers do not support the module (*)
  • The module is too often misused, for example to cheat in games, etc.
  • I have received enough hate mail
(*) They refuse to add an API to access scopes, resulting a too many questions and also loosing users.

This means that XPrivacyLua has been supported for exactly 5 years. XPrivacy was first released on June 12, 2013, so that's in total about 10 years of XPrivacy(Lua). I think that is a pretty long time.
Sad news for all of us that love privacy, but an understandable decision. With greatest respect, I commend your determination in sticking at it for so long despite all the complainers, constant changes in the underlying OS and frameworks, lack of collaboration from other project developers, and general lack of support from the wider modding community.

Enjoy some down time Marcel, and thanks for all your hard work.
 

Schroeder09

Senior Member
Nov 6, 2017
976
152
Google Pixel 7 Pro
I'm on v1. 35, disabled the module in lsposed, rebooted, renabled, and now in xprivacy Lua it says "module not running or enabled" even though it is. What gives? How do I correct?



EDIT: NVM. The disable, reboot, enable, reboot method worked.
 
Last edited:

Schroeder09

Senior Member
Nov 6, 2017
976
152
Google Pixel 7 Pro
While this is definitely better than nothing it unfortunately doesn't seem as user friendly as XPL. Speaking for myself, I will need to learn to write hooks.
This basically IS xprivacy lua but the user does it manually. It's NOT for dummies. Haha. Is that a good assessment? I wish I had time to learn and understand al this stuff. It's so fun and interesting.
 
  • Like
Reactions: VD171
First of all, does XprivacyLua work on Android 10? And if it does, is it possible to change the values in the pro version, or even the free version?

Like for Read account name, it gives fake name, mostly e-mail address. What is the fake name and email address it gives, and can I change the name and email address to the one I want it to give?
Nice question!
 

ajolly

Senior Member
Aug 24, 2006
78
14
OnePlus 9 Pro
This basically IS xprivacy lua but the user does it manually. It's NOT for dummies. Haha. Is that a good assessment? I wish I had time to learn and understand al this stuff. It's so fun and interesting.
That's what it looks like. I've been working on writing a few hooks myself, it's not conceptually that hard. My biggest challenge has been trying to figure out syntax, like needing to use "
java.lang.String" rather than "string"

Some of what I've been working on.

 

Schroeder09

Senior Member
Nov 6, 2017
976
152
Google Pixel 7 Pro
That's what it looks like. I've been working on writing a few hooks myself, it's not conceptually that hard. My biggest challenge has been trying to figure out syntax, like needing to use "
java.lang.String" rather than "string"

Some of what I've been working on.

Are you trying this out on your actual phone? Have you messed anything up and caused bootloops or does the hook just simply not do anything when you get it wrong?
 

Schroeder09

Senior Member
Nov 6, 2017
976
152
Google Pixel 7 Pro
So will each downloaded hook show up on this list and be able to be toggled off if apps crash or don't work? Some of the hooks I'm considering are from 2020, so they're 2 years old. Should these be avoided?

If a hooks does cause an app to force close, crash, and misbehave in different manners do I just watch the lsposed log to determine which hook is the issue and then go into the pro companion app and disable that hook by unsticking the "enabled" bubble for the specific hook?
 

Attachments

  • Screenshot_20221207-182312.png
    Screenshot_20221207-182312.png
    139.3 KB · Views: 39
  • Screenshot_20221207-182653~2.png
    Screenshot_20221207-182653~2.png
    262.9 KB · Views: 39

VD171

Senior Member
Jun 21, 2012
2,896
2
2,141
127.0.0.1
LG K10
Samsung Galaxy J7
That's what it looks like. I've been working on writing a few hooks myself, it's not conceptually that hard. My biggest challenge has been trying to figure out syntax, like needing to use "
java.lang.String" rather than "string"

Some of what I've been working on.

First, you need to bind class java.lang.String and then open a new instance on binded class.
 

backlitpetals

New member
Nov 28, 2022
4
6
Offline voice recognition in Google keyboard is don't-blink fast, but ironically it doesn't work after I've blocked Gboard in iptables (afwall) -- it sits forever in "Initializing...". If however I turn off wifi and mobile data, then voice recognition starts up right away -- even faster than when the network is up and allowed. It's a question of special annoyance how Gboard has world class offline recognition yet still forces the user wait a variable fraction of a second in order to phone home, every, time, it, activates. Anyways, this set of observations led me to believe XPL might help close the gap between afwall and gboard. Unfortunately the existing example Internet.Offline hook targets android.net.NetworkInfo, which was deprecated in API 29, and my device is on 33 (Android 13). That example hook was being triggered, but not having the "everything's off" effect. A couple guesses later produced this working replacement, targeting the replacement NetworkCapabilities API:

JSON:
{
  "script": [
    {
      "name": "backlitpetals.NetworkCapabilities.hasCapability",
      "code": "function after(hook, param)\n  local result = param:getResult()\n  if result == false then\n    return false\n  end\n\n  param:setResult(false)\n  return true\nend"
    }
  ],
  "definition": [
    {
      "builtin": false,
      "collection": "backlitpetals",
      "group": "Internet.Offline",
      "name": "NetworkCapabilities.hasCapability",
      "author": "backlitpetals",
      "version": 0,
      "description": "Fake offline for API 29 and later.",
      "className": "android.net.NetworkCapabilities",
      "methodName": "hasCapability",
      "parameterTypes": [
        "int"
      ],
      "returnType": "boolean",
      "minSdk": 21,
      "maxSdk": 999,
      "minApk": 0,
      "maxApk": 2147483647,
      "enabled": true,
      "optional": false,
      "usage": true,
      "notify": false,
      "luaScript": "@backlitpetals.NetworkCapabilities.hasCapability"
    }
  ]
}

I will enjoy this the dozen times a day I click the Gboard microphone button and it responds on the order of the local cpu rather whatever crappy network I happen to be on. Cheers XPL!

EDITs: copy+style
 

Schroeder09

Senior Member
Nov 6, 2017
976
152
Google Pixel 7 Pro
Offline voice recognition in Google keyboard is don't-blink fast, but ironically it doesn't work after I've blocked Gboard in iptables (afwall) -- it sits forever in "Initializing...". If however I turn off wifi and mobile data, then voice recognition starts up right away -- even faster than when the network is up and allowed. It's a question of special annoyance how Gboard has world class offline recognition yet still forces the user wait a variable fraction of a second in order to phone home, every, time, it, activates. Anyways, this set of observations led me to believe XPL might help close the gap between afwall and gboard. Unfortunately the existing example Internet.Offline hook targets android.net.NetworkInfo, which was deprecated in API 29, and my device is on 33 (Android 13). That example hook was being triggered, but not having the "everything's off" effect. A couple guesses later produced this working replacement, targeting the replacement NetworkCapabilities API:

JSON:
{
  "script": [
    {
      "name": "backlitpetals.NetworkCapabilities.hasCapability",
      "code": "function after(hook, param)\n  local result = param:getResult()\n  if result == false then\n    return false\n  end\n\n  param:setResult(false)\n  return true\nend"
    }
  ],
  "definition": [
    {
      "builtin": false,
      "collection": "backlitpetals",
      "group": "Internet.Offline",
      "name": "NetworkCapabilities.hasCapability",
      "author": "backlitpetals",
      "version": 0,
      "description": "Fake offline for API 29 and later.",
      "className": "android.net.NetworkCapabilities",
      "methodName": "hasCapability",
      "parameterTypes": [
        "int"
      ],
      "returnType": "boolean",
      "minSdk": 21,
      "maxSdk": 999,
      "minApk": 0,
      "maxApk": 2147483647,
      "enabled": true,
      "optional": false,
      "usage": true,
      "notify": false,
      "luaScript": "@backlitpetals.NetworkCapabilities.hasCapability"
    }
  ]
}

I will enjoy this the dozen times a day I click the Gboard microphone button and it responds on the order of the local cpu rather whatever crappy network I happen to be on. Cheers XPL!

EDITs: copy+style
So thia allows your Gboard voice recognition to work when you have no wifi or data connection?



Is anyone using a pixel 7 pro and xrlpeivacy Lua? Do I have to be concerned with going to the December update and this still working?
 

backlitpetals

New member
Nov 28, 2022
4
6
So thia allows your Gboard voice recognition to work when you have no wifi or data connection?



Is anyone using a pixel 7 pro and xrlpeivacy Lua? Do I have to be concerned with going to the December update and this still working?
No. What this does is make voice recognition start faster when there is a network connection.

Having used it for a couple years I am not concerned about a security update breaking xprivacylua. Android version changes (e.g. Android 13 -> Android 14) are likely to result in reduced functionality. You can find an example of the changes to xprivacylua that were required to enable Android 13 at https://github.com/M66B/XPrivacyLua/pull/16
 
  • Like
Reactions: Schroeder09
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 316
    XPrivacyLua

    banner_play_store.png


    Really simple to use privacy manager for Android 6.0 Marshmallow and later (successor of XPrivacy).

    Revoking Android permissions from apps often let apps crash or malfunction. XPrivacyLua solves this by feeding apps fake data instead of real data.

    Features:

    • Simple to use
    • Manage any user or system app
    • Extensible
    • Multi-user support
    • Free and open source

    See here for all details, including installation instructions and download link.

    Please read the frequently asked questions before asking a question.

    This XDA thread is about using the latest version of XPrivacyLua. Off topic comments are allowed as long they are related to XPrivacyLua and are in the general interest of the followers of this thread, but anything not related to privacy is not allowed.

    If XPrivacyLua doesn't work and/or when "module not running or updated" is shown, this is almost always caused by an Xposed problem.

    Discussions about purchases are not allowed here, please contact me via here instead.

    XPrivacyLua is being maintained and community supported, but new features won't be added anymore.

    Custom hook definitions will always be part of XPrivacyLua, but there will be community support only. This means that I won't respond to questions about defining custom hooks anymore. See this thread for the reasons.

    If you value your privacy, please consider to support this project with a donation or by purchasing pro features.


    XPrivacyLua is not a permission manager, but a privacy manager. XPrivacyLua doesn't block things and doesn't revoke permissions, but does replace real data by fake data. This means you can grant Android permissions to an app and still let XPrivacyLua prevent the app from seeing privacy sensitive data. Revoking permissions can result in an app refusing to work and/or to crash. However, replacing real by fake data generally doesn't let an app crash.

    Currently restrictions are quite crude because they mostly replace real data by no data. For example restricting the contacts app from getting contacts will result in an empty contact list. In the near future it might be made possible to select the data an app may see, for example just one group of contacts.

    About feature requests and bug reports:

    The goal is to have a tool that can properly protect the privacy of many in the near future. However, it isn't paid work, so I do whatever I like whenever I like it.

    You can request features in this XDA forum. I will read them, but I will not respond to them and they might or might not be implemented. If I know for sure something will not be implemented, I will let you know.

    You can report any problem you have here. There will be no issue tracker on GitHub.

    For now I have decided to not implement restrictions that are useful to prevent tracking only. There are simply too many data items that can be used for tracking and it would take too much time to develop restrictions for all these data items.

    The basic idea is to restrict only things that 'define' you, so which contacts you have, where you are, which apps you use, etc.

    Maybe we can widen the definition of things that the core of XPL covers to "What defines you, and what can be used to spie on you"? This would include camera/audio, but not tracking.

    XPrivacyLua is pretty feature complete and will be maintained and supported and when there is a need new hook definitions will be added to better protect your privacy. For the rest this FAQ applies:

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

    As said before, development will also depend on Xposed development, which is just minimal unfortunately.

    XDA thanks and donations are appreciated.

    XPrivacyLua is supported with Xposed only. There is no support for VirtualXposed and TaiChi.
    68
    I have just released beta version 0.5 in the Xposed repository.

    The XPrivacyLua framework and user interface seems to be stable enough to call this a beta release.

    Besides several bug fixes and improvements two new restrictions were added:
    • Read account name, which mostly holds your e-mail address and will be replace by '[email protected]' when restricted
    • Read clipboard, which will be replaced by the text 'Private' when restricted

    Furthermore the ability to restrict Android system (be careful!) and to restrict system apps was added. It is possible to restrict all of these individually (XPrivacy could not do that).

    Be sure to take a look at the help page in the app again (use the ?-icon), since there were some useful hints added.

    If you appreciate what I am building here, please let me know by means of an XDA thanks and/or a donation, so that I don't get the feeling 'What am I doing this for?'.
    59
    I have just released alpha version 0.12 in the Xposed repository.

    This version has been redesigned for Android Oreo compatibility. The user interface and the restrictions work properly for me, but be aware that a lot has been changed on the inside ("it is bigger on the inside", lol), also for earlier Android versions. There is one thing I know of that needs improving and that is that the user interface might be updated too often with a lot of restrictions, which might cause delays and hangs. I will look into this tomorrow.

    This change was necessary, but it was a lot of work, so XDA thanks and donations are appreciated.
    56
    I have just released beta version 0.25 in the Xposed repository.

    Changelog:

    With this release XPrivacyLua restriction's can be compared with XPrivacy's. There are now over 100 restriction definitions!

    XDA thanks and donations are appreciated.
    53
    @CHEF-KOCH You have been given enough time to respond here. Now I just think it is pretty cowardly to write critical about XPrivacyLua, but not to tell what can actually be improved, especially because you were invited to do so.

    I still like to hear how XPrivacyLua can be improved, but I don't want to hear what is wrong with XPrivacyLua. You'll need to keep the scope of XPrivacyLua in mind (in short: privacy, not security), see the opening post and previous discussions about this for more information.

    Also, if you really know better, I like to see an original work from your hands to prove that. Actions speak louder than words.

    As it is now, you are discouraging one of the few people in the world who really did something substantial to improve privacy on Android. And don't go talking about VPNs, TOR, etc because your private information, like your contacts, will still leak.

    I also think you are pretty ungrateful for what I did so far.

    To others: if you see someone reference one of his blogs, please reference this comment in response.

    Edit: if you agree with this, please add an XDA thanks to this comment, so it will show up in the right column as a reference for others.