Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

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

Closed
SchnellerReifen opened this issue Jun 23, 2014 · 46 comments
Labels

Comments

@SchnellerReifen
Copy link

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

@M66B
Copy link
Owner

M66B commented Jun 23, 2014

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

@M66B M66B added question and removed question labels Jun 23, 2014
@SchnellerReifen
Copy link
Author

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.

@SchnellerReifen
Copy link
Author

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?

@M66B
Copy link
Owner

M66B commented Jun 23, 2014

The command line of your PC is meant.

@SchnellerReifen
Copy link
Author

@M66B
Copy link
Owner

M66B commented Jun 24, 2014

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.

@M66B M66B closed this as completed in 45ab269 Jun 24, 2014
@M66B M66B added bug and removed providelogcat labels Jun 24, 2014
M66B added a commit that referenced this issue Jun 24, 2014
@M66B
Copy link
Owner

M66B commented Jun 28, 2014

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

@SchnellerReifen
Copy link
Author

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?

@M66B
Copy link
Owner

M66B commented Jun 29, 2014

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

@SchnellerReifen
Copy link
Author

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 :)

@M66B
Copy link
Owner

M66B commented Jun 30, 2014

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.

@SchnellerReifen
Copy link
Author

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?

@M66B
Copy link
Owner

M66B commented Jul 4, 2014

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

@SchnellerReifen
Copy link
Author

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

@M66B
Copy link
Owner

M66B commented Jul 4, 2014

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

@SchnellerReifen
Copy link
Author

Is this not the right way in my screenshots?

Im using the version 2.1.20

@M66B
Copy link
Owner

M66B commented Jul 4, 2014

Try this in the terminal app:

su
ls -al /data/system/xprivacy

and post the output here

@M66B
Copy link
Owner

M66B commented Jul 4, 2014

Any Android terminal app from the Pay store will do.

@SchnellerReifen
Copy link
Author

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:/ #

@SchnellerReifen
Copy link
Author

Hello Marcel,

are you here? :<

@M66B
Copy link
Owner

M66B commented Jul 9, 2014

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.

@SchnellerReifen
Copy link
Author

Hello Marcel,

this is the file and the path:

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

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

/data/system/xprivacy/disabled

is not the same as

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

...

@SchnellerReifen
Copy link
Author

Yeah!

Now i have it:

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

@SchnellerReifen
Copy link
Author

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?

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

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

@SchnellerReifen
Copy link
Author

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?

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

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

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

You can also check the logcat while this problem occurs.

@SchnellerReifen
Copy link
Author

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

I try it with LogCat

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

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.

@SchnellerReifen
Copy link
Author

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!

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

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

@M66B
Copy link
Owner

M66B commented Jul 10, 2014

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

@SchnellerReifen
Copy link
Author

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');

@M66B
Copy link
Owner

M66B commented Jul 11, 2014

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

@SchnellerReifen
Copy link
Author

Hello marcel,

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

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

@M66B
Copy link
Owner

M66B commented Jul 14, 2014

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

@SchnellerReifen
Copy link
Author

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

@M66B
Copy link
Owner

M66B commented Jul 15, 2014

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).

@SchnellerReifen
Copy link
Author

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).

M66B added a commit that referenced this issue Jul 19, 2014
@naperrin
Copy link

naperrin commented Aug 6, 2014

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.

@M66B
Copy link
Owner

M66B commented Aug 6, 2014

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.

@ngvincent
Copy link

(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

@M66B
Copy link
Owner

M66B commented Sep 27, 2014

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

M66B added a commit that referenced this issue Sep 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants