M66B / XPrivacy

XPrivacy - The ultimate, yet easy to use, privacy manager

Home Page:http://forum.xda-developers.com/xposed/modules/xprivacy-ultimate-android-privacy-app-t2320783

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoPro - Connecting To (my cam) - "No Cameras Connected" - 15 Seconds later "Connect & Control"

SchnellerReifen opened this issue · comments

Hey,

i have a poroblem with the GoPro App connecting to my GoPro3 black.

When i try to connecting with deactivated XPrivacy in the modules I can easily connect.

But when it's activated there it shows in the App:

"Connecting To GoPro"
a few seconds later
"No Cameras Connected" (But I am connected via Wi-Fi with the Cam)
and then I have to wait about 15 seconds until it shows
"Connect & Control"

Now i can connect to the GoPro, but the preview appears with a few seconds delay.
Everything happens with delay.

My Gist:

https://gist.github.com/SchnellerReifen/9c40dc4192244c9f56a7

I cannot test with GoPro, so please provide a logcat.
https://github.com/M66B/XPrivacy#FAQ14

Sorry, forgot the link to my logcat.

I startet logcat, and than ma GoPro App and waitet till it shows "No Cameras Connected"

Than i quit logcat.

EDIT:

I did it wrong.
I do the riht way again and post the log.

I don't understand this:

  • Power off your device
  • Start logging by entering this command on the command line: adb logcat >log.txt

How can i enter something in command line when smartphone is off?

The command line of your PC is meant.

I have checked the provide logcat.
There are no XPrivacy warnings or errors or anything unusual.
Maybe it is a timing problem.
My advice is to ask the author to look into this, since it can be a latent problem that manifests itself when using XPrivacy.
I am happy to cooperate, but at this moment there is little I can do, sorry.

If you want you can try to disable restrictions at boot with this test version:
https://crowd.xprivacy.eu/XPrivacy_2.1.12-6.apk

You will need to create this file on your device:

/data/system/xprivacy/disabled

Each line should contain a category name or a category name and a function name.

You can do this like this from your PC:

adb shell
su
cd /data/system/xprivacy
echo "ipc" >disabled
echo "system.getInstalledProviders" >>disabled

You can find all categories and function names in this file:
https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/Meta.java

Hello Marcel,
Thank you :)
But I can't download the apk and did not know exactly what you mean.
I created a folder “ /data/system/xprivacy/disabled“
Oder do I have to create a file named “disabled“?
Can I exclude the GoPro app so it's not being detected from XPrivacy?

disabled needs to be a file.
Each line should contain a restriction category to disable.

Hello again Marcel,

this link didn't work https://crowd.xprivacy.eu/XPrivacy_2.1.12-5.apk :<

Can you please send me an working link?

And i dont know what category i should restrict.

Is there in future versions of XPrivacy a option to exclude apps with one klick?

Tank you :)

This version has been superseded by the latest test version. I don't know which category to try either. There won't be a simple on/of switch for this, because it is only for testing purposes.

Ok, i created a file named "disabled" in the Folder /data/system/xprivacy/

i put this lines in it:

adb shell su cd /data/system/xprivacy echo "ipc" >disabled echo "system.getInstalledProviders" >>disabled

But when i use a app it asks me anyway for access to IPC

Now I would have to disable every single law for the GoPro App?
Or the rights are generally disabled?

You just need to put the category name into the file, not the command.

Doesnt work.. :(

i put "nfc" in disabled, reboot and the app asks anyway for "nfc"

This is the path:

http://i.imgur.com/1BSEDr5.jpg

And this the file:

http://i.imgur.com/rCO6z8B.jpg

Make absolutely sure the file is in the folder /data/system/xprivacy and that there is exactly one category name on each line, without any leading and/or trailing spaces. The category names are case sensitive and can be taken from here: https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/PrivacyManager.java#L37

You need a recent version of XPrivacy to be able to use this new feature.
The latest beta version is a safe bet: http://repo.xposed.info/module/biz.bokhorst.xprivacy

Is this not the right way in my screenshots?

Im using the version 2.1.20

Try this in the terminal app:

su
ls -al /data/system/xprivacy

and post the output here

Did you mean the adb from android sdk? Or which terminal app?

Any Android terminal app from the Pay store will do.

Ok i have it:

1|u0_a227@m0:/ $ su
root@m0:/ # ls -al /data/system/xprivacy
-rwxrwx--- system system 262144 2014-07-04 14:12 usage.db
-rwxrwx--- system system 296000 2014-07-04 14:12 usage.db-journal
-rwxrwx--- system system 258048 2014-04-24 08:12 usage.db.back
-rwxrwx--- system system 954368 2014-07-04 14:06 xprivacy.db
-rwxrwx--- system system 524288 2014-07-04 14:06 xprivacy.db-journal
root@m0:/ #

Hello Marcel,

are you here? :<

Sorry, I missed your message.

I don't see the file disabled in the directory listing, so I guess you have put this file into the wrong folder.

Hello Marcel,

this is the file and the path:

http://i.imgur.com/rjfGVDt.png

/data/system/xprivacy/disabled

is not the same as

/storage/sdcard0/data/system/xprivacy/disabled

...

Ok now i have copied this in the "diasbled" file:

accounts
browser
calendar
calling
clipboard
contacts
dictionary
email
identification
internet
ipc
location
media
messages
network
nfc
notifications
overlay
phone
sensors
shell
storage
system
view

My GoPro app was working now.
Then I took "Internet" from the list and it was no longer working.

Now the only class in my "disabled" file list is "internet" and my GoPro App is working fine.

Unfortunately, the internet is the most important restriction.
Do you know what to do, Marcel?

Good, now we know the category of functions causing the problem.
You can now try to narrow down the problem to the function, by disabling individual functions.
Put for example this in the disabled file:

internet.getAllByName

See here for a list of all internet methods:
https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/Meta.java#L119

Ok we have it, it is

internet.connect

is this the function to block internet connection for apps?
Do i need to get "DroidWall" to block inet for apps?

Are you sure you didn't restrict internet.connect for the application?

The code to restrict this function is quite transparent and I see nothing obviously wrong and if there was something wrong, there would be a lot of trouble:
https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/XIoBridge.java#L67

You can also check the logcat while this problem occurs.

I'm pretty sure I have everything allowed.
And with "internet.connect" disabled it works perfect.

I try it with LogCat

Thanks for your patience so far.
Unfortunately I am unable to test this.

You can try this test version, where resolving the host name has been disabled:
https://crowd.xprivacy.eu/XPrivacy_2.1.22-7.apk

Please note that this is my development version, which needs more testing, since the location restrictions were completely rewritten.

Works perfect!

Installed the new version, deleted the "disabled" file and restartet my S3 it seems the problem is solved.

Many Thanks for your great help!

We are not there yet, because I have disabled a feature, which would be missed by a lot of people.
Could you please try this version too:
https://crowd.xprivacy.eu/XPrivacy_2.1.22-8.apk

If 2.1.22-8 does not work for you (but please test it to exactly diagnose the problem), you can install this test version:
https://crowd.xprivacy.eu/XPrivacy_2.1.22-9.apk

To have it work for you from this version, you'll need to insert a setting into the privacy database:

insert into setting (uid, type, name, value) values (0, '', 'NameResolve', 'false');

See here for more information about how to access the privacy database:
https://github.com/M66B/XPrivacy/blob/master/DATABASE.md

This https://crowd.xprivacy.eu/XPrivacy_2.1.22-8.apk didn't work.

Now i installed this https://crowd.xprivacy.eu/XPrivacy_2.1.22-9.apk

i read this... https://github.com/M66B/XPrivacy/blob/master/DATABASE.md
and don't know how include this in the db:

insert into setting (uid, type, name, value) values (0, '', 'NameResolve', 'false');

Can you please try the just released test version 2.1.14 and let me know if it works with/without noresolve quirk?
https://github.com/M66B/XPrivacy/releases/tag/2.1.24

See also the release announcement:
http://forum.xda-developers.com/xposed/modules/test-xprivacy-2-0-37-ultimate-privacy-t2320783/post54076739

Hello marcel,

i have tried this version, but it's the same.

must have the "disabled" file with ""internet.connect" and it is working.

Can you please try with the quirk "noresolve" (main settings) and let me know if this fixes the problem?

Hello marcel,

i tried this https://github.com/M66B/XPrivacy/releases/tag/2.1.24

With "noresolve" in expert settings activated
now it is working fine without the disabled file

Can you please try with 2.1.26 too, since that will probably the next stable release.
I would like to know if it works with and without the quirk (reboot after changing the quirk to be sure).

Hello Marcel,

i triend the 2.1.26 with and without the qurik.

It is just working fine with the quirk.

I tried the 2.2 and it is also just working with the quirk... :(

Am 15.07.2014 17:29, schrieb Marcel Bokhorst:

Can you please try with 2.1.26 too, since that will probably the next
stable release.
I would like to know if it works with and without the quirk (reboot
after changing the quirk to be sure).


Reply to this email directly or view it on GitHub
#1751 (comment).

Hello, I have a goPro Hero 3 silver, I'm using Xprivacy 2.2.1 (373)
And I have the above issue. When xprivacy is disabled, I can connect my gopro.
I tried enabling expert mode, and in the quirks line I have : freeze, noresolve, but it doesn't help.

The quirk noresolve is reported to fix the problem, so make sure you entered this quirk correctly (if you visit the settings again it should 'stick'). Wait at least 30 seconds before trying again or better reboot.

(Just a note for Sony QX1/10/30/100 wireless camera users)

Similar issue occurs for my Nexus 5 with Xposed+Xprivacy and a Sony QX10. Phone takes a long time to connect to wireless camera. Eventually, livefeed shows up, but any commands(tap to focus, changing camera modes, taking pictures) will be unresponsive or take a long time

Adding "noresolve" to XPrivacy settings will fix the issue

@ngvincent which XPrivacy version are you using? With the most recent versions of XPrivacy this should work out-of-the-box.