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

M66B

Recognized Developer
Aug 1, 2010
23,478
48,160
263
Let me summarize this, to prevent future misunderstandings:

XPrivacyLua works fine on Android 11, both with EdXposed and LSPosed.

If you are using MIUI / Android 11, you'll need to use sandhook.

There is support for LSPosed scopes as well now, which means that the Android framework and the Android settings provider will be selected by default. You'll need to select other apps yourself, if you want to restrict them.
 

M66B

Recognized Developer
Aug 1, 2010
23,478
48,160
263
If I hide the app from edxposed, will XPrivacyLua not work for the app which is hidden from edxposed?
XPrivacyLua will work for an app only if the app can be hooked via Xposed. In the case of LSPosed the app needs to be in the 'scope'.
 

Fruitrat

Member
May 3, 2019
46
24
8
Since I upgraded Magisk to v21.4 I get the "module not running or updated error", yet the module is running fine, restricting apps like I configured previously. The other two modules (minminguard and App locale 2) detect xposed properly and work fine too. EdXposed manager shows no errors in the logs. It looks like just the detection in xprivacylua fails somehow which prevents me to configure app restrictions.
Using edxposed 0.5.2.1, xprivacylua 1.27/1.29, android 10.

Found nothing useful in logcat except maybe this:
02-17 20:58:27.783 I/XLua.XParam(17117): Get setting com.topjohnwu.magisk:10183 value.serial=null

I tried various settings in edxposed manager, reinstalling xprivacylua, edxposed alpha, but no luck yet. Any ideas? Thanks.
 
  • Like
Reactions: MysteryIII

zerolam

Senior Member
May 1, 2015
128
13
38
I want to restrict the new app automatically.

I have to enable in LSPosed manually for the new app ( LSPosed > Modules > XprivacyLua > Enable module > select the new app ) to let XPrivacyLua works for the new app although i enabled"Restrict new apps" in XprivacyLua,

what should i do if i want to restrict the new app automatically.

thank you so much
 
Last edited:

Fruitrat

Member
May 3, 2019
46
24
8
Since I upgraded Magisk to v21.4 I get the "module not running or updated error", yet the module is running fine, restricting apps like I configured previously. The other two modules (minminguard and App locale 2) detect xposed properly and work fine too.
After many reinstalls & reboots I just grabbed the source and hacked XProvider.isAvailable() to always return true. All ok now.
The result.getInt("version") in that method always returns -1 because result is an empty bundle. I have no idea why.
 

M66B

Recognized Developer
Aug 1, 2010
23,478
48,160
263
Since I upgraded Magisk to v21.4 I get the "module not running or updated error", yet the module is running fine, restricting apps like I configured previously. The other two modules (minminguard and App locale 2) detect xposed properly and work fine too. EdXposed manager shows no errors in the logs. It looks like just the detection in xprivacylua fails somehow which prevents me to configure app restrictions.
Using edxposed 0.5.2.1, xprivacylua 1.27/1.29, android 10.

Found nothing useful in logcat except maybe this:
02-17 20:58:27.783 I/XLua.XParam(17117): Get setting com.topjohnwu.magisk:10183 value.serial=null

I tried various settings in edxposed manager, reinstalling xprivacylua, edxposed alpha, but no luck yet. Any ideas? Thanks.
I have only this idea:

https://forum.xda-developers.com/t/...android-privacy-manager.3730663/post-84489529
 
Last edited:

M66B

Recognized Developer
Aug 1, 2010
23,478
48,160
263
I want to restrict the new app automatically.

I have to enable in LSPosed manually for the new app ( LSPosed > Modules > XprivacyLua > Enable module > select the new app ) to let XPrivacyLua works for the new app although i enabled"Restrict new apps" in XprivacyLua,

what should i do if i want to restrict the new app automatically.

thank you so much
Ask the LSPosed developers for an API and I might add it.
 

datsoy

Senior Member
Jun 6, 2013
173
62
48
I want to restrict the new app automatically.

I have to enable in LSPosed manually for the new app ( LSPosed > Modules > XprivacyLua > Enable module > select the new app ) to let XPrivacyLua works for the new app although i enabled"Restrict new apps" in XprivacyLua,

what should i do if i want to restrict the new app automatically.

thank you so much
If you want, I created a simple tasker project that make this automatically. its dirty, I think, because of my little knowledge about this kinda stuff, have to search for days. haha. but this works for me, lol. try it maybe it will work for you..


Screenshot_20210220-182819.jpg
 
Last edited:

abetamaya

Member
Nov 19, 2016
8
0
1
I keep getting "module not running or updated"
When i check the log, this is what i got (for every single app on my phone)
Code:
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge: java.lang.IllegalArgumentException: Supported SQL:
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table/some_property with null where and where args
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table with query name=? and single name as arg
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table with query name=some_name and null args
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   but got - uri:content://settings/system, where:pkg = ? AND uid = ? whereArgs:[com.discord, 10117]
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:803)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:753)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:711)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua.hookPackage(SourceFile:5)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua.access$000(SourceFile:1)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua$4.afterHookedMethod(SourceFile:9)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at de.robv.android.xposed.MethodHooker.handleHookedMethod(MethodHooker.java:94)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at EdHooker_c111bdc78ca9d851a3ee656d943e8191c90fd013.hook(Unknown Source:57)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5891)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at java.lang.reflect.Method.invoke(Native Method)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at de.robv.android.xposed.MethodHooker.handleHookedMethod(MethodHooker.java:81)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at EdHooker_42b8453bf7df105343083f1377c32094be493c49.hook(Unknown Source:48)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.access$1100(ActivityThread.java:200)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.os.Handler.dispatchMessage(Handler.java:106)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.os.Looper.loop(Looper.java:193)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.main(ActivityThread.java:6718)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at java.lang.reflect.Method.invoke(Native Method)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I've tried to disable the module, restart, enable it, restart again. But no luck

Magisk 22.0
Edxposed 93.0 (YAHFA)
Pie (API 28)
Xprivacylua 1.29
 

Amd4life

Senior Member
Dec 30, 2010
1,796
429
103
I keep getting "module not running or updated"
When i check the log, this is what i got (for every single app on my phone)
Code:
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge: java.lang.IllegalArgumentException: Supported SQL:
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table/some_property with null where and where args
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table with query name=? and single name as arg
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   uri content://some_table with query name=some_name and null args
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:   but got - uri:content://settings/system, where:pkg = ? AND uid = ? whereArgs:[com.discord, 10117]
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:803)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:753)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.content.ContentResolver.query(ContentResolver.java:711)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua.hookPackage(SourceFile:5)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua.access$000(SourceFile:1)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at eu.faircode.xlua.XLua$4.afterHookedMethod(SourceFile:9)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at de.robv.android.xposed.MethodHooker.handleHookedMethod(MethodHooker.java:94)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at EdHooker_c111bdc78ca9d851a3ee656d943e8191c90fd013.hook(Unknown Source:57)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5891)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at java.lang.reflect.Method.invoke(Native Method)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at de.robv.android.xposed.MethodHooker.handleHookedMethod(MethodHooker.java:81)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at EdHooker_42b8453bf7df105343083f1377c32094be493c49.hook(Unknown Source:48)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.access$1100(ActivityThread.java:200)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.os.Handler.dispatchMessage(Handler.java:106)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.os.Looper.loop(Looper.java:193)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at android.app.ActivityThread.main(ActivityThread.java:6718)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at java.lang.reflect.Method.invoke(Native Method)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-24 10:45:21.540 21828 21828 E EdXposed-Bridge:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I've tried to disable the module, restart, enable it, restart again. But no luck

Magisk 22.0
Edxposed 93.0 (YAHFA)
Pie (API 28)
Xprivacylua 1.29
You need to update magisk to at least v24
 

abetamaya

Member
Nov 19, 2016
8
0
1
You need to update magisk to at least v24
24? isn't 22 the latest version?

I checked their github page and it says 22 is the latest version for Magisk app (they said Magisk and Magisk manager merged into Magisk App)

On my magisk app, there's only "Install" button on both Magisk and App. Both of them install the same magisk version which is 22

edit : fixed
 
Last edited:

Amd4life

Senior Member
Dec 30, 2010
1,796
429
103
24? isn't 22 the latest version?

I checked their github page and it says 22 is the latest version for Magisk app (they said Magisk and Magisk manager merged into Magisk App)

On my magisk app, there's only "Install" button on both Magisk and App. Both of them install the same magisk version which is 22

edit : fixed
Sorry about that, i typed (auto correct) top fast. It should work, as described. Try LsPosed.
 

M66B

Recognized Developer
Aug 1, 2010
23,478
48,160
263

LsPosed team will remove sandhook in future. Could you make XprivacyLUA work with YAHFA in MIUI / android 11?
You'll have to ask the LSPosed team to fix this because this can't be done by changes in XPrivacyLua.
 
  • Like
Reactions: kjllmeplz