Comments (13)
I set up some other clients which worked, so it appears that my Pixel 2 (and its logcat messages above) are a valid repro of this issue. Let me know if there's anything else I can do to help debug.
from snapdroid.
rename the .zip to .apk, it should work.
Snapcast-debug.zip
I encountered issues in the App now, the MAC-Adress is missing and the hostname of the phone is just "localhost", but music plays fine. I will try to fix that soon
from snapdroid.
The Mac problem is solved. Maybe I didn't push it yet. I will check tonight.
from snapdroid.
It's the same on my S10
from snapdroid.
I might be running into something similar, though it's hard for me to tell since I'm trying to use the Android app as my first client so I can't yet confirm that other clients work. On my Pixel 2 running Android 10, when I start the app I see the following in logcat:
2020-01-01 13:01:00.569 2152-2178/? E/Setup: Failed to copy asset file: bin/arm64-v8a/snapclient
java.io.FileNotFoundException: bin/arm64-v8a/snapclient
at android.content.res.AssetManager.nativeOpenAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:824)
at android.content.res.AssetManager.open(AssetManager.java:801)
at de.badaix.snapcast.utils.Setup.copyAsset(Setup.java:77)
at de.badaix.snapcast.utils.Setup.copyBinAsset(Setup.java:62)
at de.badaix.snapcast.MainActivity$2.run(MainActivity.java:150)
at java.lang.Thread.run(Thread.java:919)
2020-01-01 13:01:00.578 2152-2178/? E/Setup: Failed to copy asset file: bin//snapclient
java.io.FileNotFoundException: bin//snapclient
at android.content.res.AssetManager.nativeOpenAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:824)
at android.content.res.AssetManager.open(AssetManager.java:801)
at de.badaix.snapcast.utils.Setup.copyAsset(Setup.java:77)
at de.badaix.snapcast.utils.Setup.copyBinAsset(Setup.java:64)
at de.badaix.snapcast.MainActivity$2.run(MainActivity.java:150)
at java.lang.Thread.run(Thread.java:919)
When I hit the Play button, I get:
2020-01-01 13:05:01.894 2152-2152/? W/System.err: java.io.IOException: Cannot run program "/data/user/0/de.badaix.snapcast/files/snapclient": error=13, Permission denied
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
2020-01-01 13:05:01.889 7292-7292/? W/badaix.snapcast: type=1400 audit(0.0:381946): avc: granted { execute } for name="snapclient" dev="dm-2" ino=860362 scontext=u:r:untrusted_app:s0:c35,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c35,c257,c512,c768 tclass=file
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at de.badaix.snapcast.SnapclientService.start(SnapclientService.java:223)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at de.badaix.snapcast.SnapclientService.onStartCommand(SnapclientService.java:139)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4087)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.app.ActivityThread.access$1800(ActivityThread.java:219)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.os.Looper.loop(Looper.java:214)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7356)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
2020-01-01 13:05:01.894 2152-2152/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-01-01 13:05:01.895 2152-2152/? W/System.err: Caused by: java.io.IOException: error=13, Permission denied
2020-01-01 13:05:01.895 2152-2152/? W/System.err: at java.lang.UNIXProcess.forkAndExec(Native Method)
2020-01-01 13:05:01.895 2152-2152/? W/System.err: at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
2020-01-01 13:05:01.895 2152-2152/? W/System.err: at java.lang.ProcessImpl.start(ProcessImpl.java:141)
2020-01-01 13:05:01.895 2152-2152/? W/System.err: at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
2020-01-01 13:05:01.895 2152-2152/? W/System.err: ... 11 more
2020-01-01 13:05:01.889 7292-7292/? W/badaix.snapcast: type=1400 audit(0.0:381947): avc: denied { execute_no_trans } for path="/data/data/de.badaix.snapcast/files/snapclient" dev="dm-2" ino=860362 scontext=u:r:untrusted_app:s0:c35,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c35,c257,c512,c768 tclass=file permissive=0
from snapdroid.
MAC Adress Problem is known: badaix/snapcast#480
And it would be nice if this can be merged: badaix/snapcast#516 to pass the hostname to the binary when snapclient starts @badaix :)
from snapdroid.
I tested just now on another android 7 device and the MAC here is also zero. So the only "problem" what we got now is passing the hostname to the Binary.
from snapdroid.
Starting with Android 6, the MAC address will be 0, so the Snapdroid creates a Pseudo-Unique ID as described on Stackoverflow and passes this ID to the snapclient binary as hostId
from snapdroid.
I've merged @derWeihnachtsmann changes #17
Can you please test the build 0.17.1.1, before I will officially release it?
Snapcast_0.17.1.1.apk.zip
from snapdroid.
from snapdroid.
Can we close dis?
from snapdroid.
No, not yet. The current version is not conforming the Play Store requirements. Before the binary was just some "blob", now it has the semantics of a library for certain architectures in 32 and 64 bit variants.
The playstore now complains that a 64 bit binary is missing, even after I've exchanged the 32 bit arm version in arm64-v8a with a 64 bit build. I guess that the play store wants to have a x64 version along with the x86 version.
from snapdroid.
It's fixed now with 0.19, also available on Google Play
from snapdroid.
Related Issues (20)
- Change play/stop icons
- Modern Redesign of the App
- compile snapcast server HOT 7
- App has disappeared from the Play store HOT 5
- Snapdroid does not play any audio HOT 4
- Add option to show ID instead of HOST Field in Stream Overview
- [Feature request] Basic Buttons to control an MPD server /next, play, back/ -
- Build Snapdroid in Windows 10 HOT 2
- Allow HTTP connections
- Start/ Stop client with ADB HOT 1
- Android: Snapdroid thin client HOT 1
- Snapclient.so not found HOT 1
- "error: Connection refused" HOT 2
- No sound on android client
- Snapdroid clients disconnect after ~12 hours on recent Android versions HOT 1
- Run client without RPC support
- description for how to use the GUI
- changing Client's name has no effect HOT 6
- Unable to change latency with the new update HOT 4
- mute button missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snapdroid.