{"action":"created","issue":{"url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/7","labels_url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/7/comments","events_url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/7/events","html_url":"https://github.com/xplodwild/bbqscreen_client/issues/7","id":113223888,"number":7,"title":"Immediately disconnected with non-rooted Xperia Z3 Compact","user":{"login":"estan","id":86675,"avatar_url":"https://avatars.githubusercontent.com/u/86675?v=3","gravatar_id":"","url":"https://api.github.com/users/estan","html_url":"https://github.com/estan","followers_url":"https://api.github.com/users/estan/followers","following_url":"https://api.github.com/users/estan/following{/other_user}","gists_url":"https://api.github.com/users/estan/gists{/gist_id}","starred_url":"https://api.github.com/users/estan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estan/subscriptions","organizations_url":"https://api.github.com/users/estan/orgs","repos_url":"https://api.github.com/users/estan/repos","events_url":"https://api.github.com/users/estan/events{/privacy}","received_events_url":"https://api.github.com/users/estan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-25T12:43:02Z","updated_at":"2015-10-25T14:58:16Z","closed_at":null,"body":"Hi,\r\n\r\nI purchased the app hoping to use it on my non-rooted Sony Ericsson Xperia Z3 Compact. I'm running the client on an up-to-date Arch Linux.\r\n\r\nHere's what I did:\r\n\r\n 1. Installed the app.\r\n 2. Enabled USB debugging on the phone.\r\n 3. Started the app and pressed \"USB\" at the first dialog.\r\n 4. Built the client from `master` Git branch.\r\n 5. (Confirmed that running `Linux/prebuilts/adb devices` shows my device.)\r\n 6. Started the client with `Linux/BBQScreenClient2`.\r\n 7. Pressed \"Start USB Service\".\r\n 8. Pressed \"Connect via USB\".\r\n\r\nThe result is that the black screen is shown, but the text message switches between\r\n\r\n - \"Connecting to '127.0.0.1'... (Attempt 1/3)\", and\r\n - \"Connected, loading first frame...\"\r\n\r\nvery very quickly, and \"Connecting to  \"127.0.0.1\"\" is repeated in the terminal.\r\n\r\nWhile the client is running and the USB service is running, the output from `netstat -tulpn` is:\r\n\r\n```\r\n(Not all processes could be identified, non-owned process info\r\n will not be shown, you would have to be root to see it all.)\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \r\ntcp        0      0 127.0.0.1:5037          0.0.0.0:*               LISTEN      13738/adb           \r\ntcp        0      0 127.0.0.1:9876          0.0.0.0:*               LISTEN      13738/adb           \r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   \r\ntcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                   \r\ntcp6       0      0 :::22                   :::*                    LISTEN      -                   \r\ntcp6       0      0 ::1:631                 :::*                    LISTEN      -                   \r\nudp        0      0 0.0.0.0:5353            0.0.0.0:*                           -                   \r\nudp        0      0 0.0.0.0:36013           0.0.0.0:*                           -                   \r\nudp        0      0 0.0.0.0:68              0.0.0.0:*                           -                   \r\nudp        0      0 192.168.0.13:123        0.0.0.0:*                           -                   \r\nudp        0      0 127.0.0.1:123           0.0.0.0:*                           -                   \r\nudp        0      0 0.0.0.0:123             0.0.0.0:*                           -                   \r\nudp        0      0 0.0.0.0:62366           0.0.0.0:*                           -                   \r\nudp6       0      0 :::5353                 :::*                                -                   \r\nudp6       0      0 :::9876                 :::*                                13765/Linux/BBQScre \r\nudp6       0      0 :::51130                :::*                                -                   \r\nudp6       0      0 :::11880                :::*                                -                   \r\nudp6       0      0 fe80::a11:96ff:fe91:123 :::*                                -                   \r\nudp6       0      0 ::1:123                 :::*                                -                   \r\nudp6       0      0 :::123                  :::*                                -\r\n```\r\n\r\nSo it seems the forwarding of TCP port 9876 that the client sets up using `adb` is working. However, when I tried `telnet 127.0.0.1 9876`, the connection is established, but `telnet` is immediately disconnected again:\r\n\r\n```\r\n[estan@pyret ~]$ telnet 127.0.0.1 9876\r\nTrying 127.0.0.1...\r\nConnected to 127.0.0.1.\r\nEscape character is '^]'.\r\nConnection closed by foreign host.\r\n[estan@pyret ~]$\r\n```\r\n\r\nI guess this is what's happening for `BBQScreenClient2` as well.\r\n\r\nAny idea what is going on? I would love to get this working.\r\n\r\nThe debug log window in the client shows nothing while this is happening. I've also tried the Legacy mode with same results.\r\n\r\nPlease let me know if you need more info or want me to try something, as I have some experience with Qt programming.\r\n\r\nAs a side note, I'm getting a warning about missing version information on `libcrypto.so.1.0.0` when running the prebuilt `adb`:\r\n\r\n```\r\n[estan@pyret bbqscreen_client]$ Linux/prebuilts/adb devices\r\nLinux/prebuilts/adb: /usr/lib32/libcrypto.so.1.0.0: no version information available (required by Linux/prebuilts/adb)\r\nList of devices attached \r\nYT9112CUE1      device\r\n\r\n[estan@pyret bbqscreen_client]$\r\n```\r\n\r\nBut I don't think that is related to this problem, since the device is found and the forwarding seems to work. Running `ldd` on the `adb` executable gives:\r\n\r\n```\r\n[estan@pyret bbqscreen_client]$ ldd Linux/prebuilts/adb \r\nLinux/prebuilts/adb: /usr/lib32/libcrypto.so.1.0.0: no version information available (required by Linux/prebuilts/adb)\r\n        linux-gate.so.1 (0xf7731000)\r\n        libc.so.6 => /usr/lib32/libc.so.6 (0xf7509000)\r\n        libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf74eb000)\r\n        libz.so.1 => /usr/lib32/libz.so.1 (0xf74d4000)\r\n        libcrypto.so.1.0.0 => /usr/lib32/libcrypto.so.1.0.0 (0xf72c0000)\r\n        /lib/ld-linux.so.2 (0xf7732000)\r\n        libdl.so.2 => /usr/lib32/libdl.so.2 (0xf72ba000)\r\n```\r\n\r\nTo double check, I also hacked the `MainWindow::runAdb` function to use another `adb` that I have, which does not give this warning, and got the same problem as described in the beginning (immediate disconnect while trying to load the first frame).\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/comments/150932090","html_url":"https://github.com/xplodwild/bbqscreen_client/issues/7#issuecomment-150932090","issue_url":"https://api.github.com/repos/xplodwild/bbqscreen_client/issues/7","id":150932090,"user":{"login":"estan","id":86675,"avatar_url":"https://avatars.githubusercontent.com/u/86675?v=3","gravatar_id":"","url":"https://api.github.com/users/estan","html_url":"https://github.com/estan","followers_url":"https://api.github.com/users/estan/followers","following_url":"https://api.github.com/users/estan/following{/other_user}","gists_url":"https://api.github.com/users/estan/gists{/gist_id}","starred_url":"https://api.github.com/users/estan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estan/subscriptions","organizations_url":"https://api.github.com/users/estan/orgs","repos_url":"https://api.github.com/users/estan/repos","events_url":"https://api.github.com/users/estan/events{/privacy}","received_events_url":"https://api.github.com/users/estan/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T14:58:16Z","updated_at":"2015-10-25T14:58:16Z","body":"The missing symbol seems to be part of `libmedia.so`, which is not part of the public API of NDK. So perhaps it is wrong of bbqscreen to link against this? I'm guessing that the `libmedia.so` that my device has is slightly different from the one you linked against when making the app, or maybe that root privileges are required for it to be accessible? (Or maybe the app needs more permissions for this to work on a non-rooted phone?)."}}