No usage data for Shell-loadLibrary
HTC, 5.1 Stock ROM In the usage history I didn't see any data about Shell -> loadLibrary after on-demand restricting dialog. Blacklisted and whitelisted libraries are absent too. Tested on Skype and Telegram.
I am quite sure if the on demand dialog is shown, the function will be marked as used. So, please check again and check if you are looking atthe right application (uid). Note that all restrictions are handled the same way, so if it works for one restriction it will work for all restrictions.
I checked it again. And I can send you screenshots. There is no usage mark on function and no data in the usage history.
If there is an on demand popup, there is usage data, I am quite sure about this. Check the exact uid and permission mentioned in the on demand dialog.
Please have a look https://www.dropbox.com/sh/q167u53e4gdxnup/AADUqQSkeKcXPz8r_xQ2O0Lfa?dl=0
The condition for the on demand dialog being displayed is that on demand restricting is enabled and that usage data is enabled: https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/PrivacyService.java#L640
The condition for usage data being registered is that usage data is enabled: https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/PrivacyService.java#L662
Meaning that I am quite sure the one implies the other.
There could be going something wrong with registering usage data, but investigating such problems requires a logcat. Please keep the logcat as short as possible, I do not look at logcats containing thousands of log lines.
Usage data is enabled. I don't know exactly what I'm looking for. But I hope it helps:
1:50.804 I/ActivityManager( 2539): Start proc 9711:com.skype.raider/u0a156 for activity com.skype.raider/.Main
..
1:50.874 W/XPrivacy( 9711): Hooking package=com.skype.raider
1:50.884 W/XPrivacy( 2539): Invalid secret restriction=10156/SERIAL(null;***********) identification=!restricted?
1:50.884 I/XPrivacy( 2539): Get service 10156/SERIAL(null;***********) identification=!restricted? (mcached) 1 ms
1:50.884 I/XPrivacy( 9711): Get client 10156/SERIAL(null;null) identification=restricted 6 ms
1:50.894 I/XPrivacy( 9711): Get setting uid=10156 /Serial=712421124480213213 3 ms
1:50.894 W/XPrivacy( 2539): Invalid secret restriction=10156/Configuration.MCC(null;null) phone=!restricted?
1:50.894 I/XPrivacy( 2539): Get service 10156/Configuration.MCC(null;null) phone=!restricted? (mcached) 1 ms
1:50.894 I/XPrivacy/XResources( 9711): Get client 10156/Configuration.MCC(null;null) phone=restricted 2 ms
1:50.894 I/ProcessStatsService( 2539): Pruning old procstats: /data/system/procstats/state-2015-09-12-10-50-27.bin
1:50.904 I/XPrivacy( 9711): Get setting uid=10156 /MCC=001 2 ms
...
1:50.994 W/XPrivacy( 2539): Invalid secret restriction=10156/loadLibrary(SkypeAndroid;null) shell=!restricted?
1:50.994 I/XPrivacy( 2539): Get service 10156/loadLibrary(SkypeAndroid;null) shell=!restricted? (mcached) 0 ms
1:50.994 I/XPrivacy/XRuntime( 9711): Get client 10156/loadLibrary(SkypeAndroid;null) shell=!restricted 1 ms
1:50.994 W/XPrivacy( 2539): Invalid secret restriction=10156/loadLibrary(gnustl_shared;null) shell=!restricted?
1:50.994 I/XPrivacy( 2539): Get service 10156/loadLibrary(gnustl_shared;null) shell=!restricted? (mcached) 0 ms
1:50.994 I/XPrivacy/XRuntime( 9711): Get client 10156/loadLibrary(gnustl_shared;null) shell=!restricted 1 ms
1:50.994 W/XPrivacy( 2539): Invalid secret restriction=10156/loadLibrary(SkyLib-Version-2015-07-01-115;null) shell=!restricted?
1:50.994 I/XPrivacy( 2539): Get service 10156/loadLibrary(SkyLib-Version-2015-07-01-115;null) shell=!restricted? (mcached) 0 ms
1:50.994 I/XPrivacy/XRuntime( 9711): Get client 10156/loadLibrary(SkyLib-Version-2015-07-01-115;null) shell=!restricted 1 ms
1:51.134 W/XPrivacy( 2539): Invalid secret restriction=10156/loadLibrary(codecs;null) shell=!restricted?
1:51.134 I/XPrivacy( 2539): Get service 10156/loadLibrary(codecs;null) shell=!restricted? (mcached) 0 ms
1:51.134 I/XPrivacy/XRuntime( 9711): Get client 10156/loadLibrary(codecs;null) shell=!restricted 2 ms
..
1:51.404 W/XPrivacy( 2539): On demand 10156/loadLibrary(telemetryclient;null) shell=!restricted?
1:51.404 W/XPrivacy( 2539): On demanding 10156/loadLibrary(telemetryclient;null) shell=!restricted?
..
2:00.374 W/XPrivacy( 2539): Deny once 10156/loadLibrary(telemetryclient;null) shell=!restricted? category=false until=Tue Sep 15 18:22:15 GMT+03:00 2015
2:00.374 W/XPrivacy( 2539): Invalid secret restriction=10156/loadLibrary(telemetryclient;null) shell=!restricted?
2:00.374 W/XPrivacy( 2539): Get service 10156/loadLibrary(telemetryclient;null) shell=!restricted? (mcached) 8969 ms
2:00.374 W/XPrivacy/XRuntime( 9711): Get client 10156/loadLibrary(telemetryclient;null) shell=restricted 8972 ms
2:00.374 W/XPrivacy/XRuntime( 9711): loadLibrary 8973 ms
2:00.374 W/System.err( 9711): Native library libtelemetryclient.so failed to load.
2:00.374 W/System.err( 9711): java.lang.UnsatisfiedLinkError: XPrivacy
2:00.384 I/art ( 9711): System.exit called, status: 1
...
2:00.414 I/ActivityManager( 2539): Process com.skype.raider (pid 9711) has died
I see Invalid secret. Did you restart your device after updating XPrivacy? This could also be an Xposed problem. Are you using Cydia Substrate?
Invalid secret.
What does it mean?
Yes, I've restarted my device after updating XPrivacy. I'm using Xposed v74-sdk22-arm64. When I first time seen this problem, Xposed v65-sdk22-arm64 was installed.
There is a check in the privacy service, to see if the sender of the usage data is legitimate and this check triggers in your case, see here:
https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/PrivacyService.java#L700
I have no idea what is causing this.
I got it. Thank you, Marcel
Is it possible to temporary disable this security check? I don't see a lot of usage data because of this. It's very hard to configure apps, when you don't see full usage history.
The security check is there for a reason and I will not release a version without this check. You can always build a version with this check disabled yourself.
I thought that not all parts of code available for public access - like pro-features. Please correct me if I'm wrong
All code is on GitHub, even the server software
It's great. Thank you, I will build such version by myself