yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] saiyawil:
Working great on the Xperia Z's Walkman app.

I'm looking forward to the buffering implementation. Definitely supporting your work. Keep it up! :good:
[Android Apps and Games] beren:
Problem:

seems your app doesnt let my nexus go to deep sleep...

anyone with same issue?

Inviato dal mio Nexus 4 con Tapatalk 2
[Android Apps and Games] bubbleguuum:
The app only holds a WiFi lock while streaming a (virtual) file, which is released as soon as the music player close the file.

Now that can be a problem if a media player doesn't close the last file it played.

Can you tell me what music player you are using ?
[Android Apps and Games] RedDeadDorito:
It was working great then I got hit with the error code 1 about not being able to mount ABD or something.

---------- Post added at 05:57 PM ---------- Previous post was at 05:43 PM ----------

How do I "choose to allow connections from computer"?

I don't see that option :(
[Android Apps and Games] beren:
Tried to install more players to test your app, but n7 and poweramp are my favourites..

Actually I tried to uninstall and reinstall GMusicFS rebooting but was enough to mount file system to get mobile not to go in deepsleep, so without open any music player.

Will try to uninstall players too and will report if problem disappear...

Inviato dal mio Nexus 4 con Tapatalk 2
[Android Apps and Games] RedDeadDorito:
Why does it play clean versions of songs? I know I didn't upload a clean version :\
[Android Apps and Games] Andrew025:
That's a Google music issue with matching. Has nothing to do with this app.
[Android Apps and Games] beren:
ok i made a lot of testing and i uninstalled all players recognized by gmuscifs (according to the log file) and my problem it's not related to any music player, as stays even without any of these apps installed.

when i launch gmusicfs my phone wont go to sleep anymore until i reboot, doesn't matter if i close, unmount, remount, kill process or even uninstall the app, i need to reboot...there's no difference if i am connected to wi/3g or not.

There is a "msm_hsic_host" wakelock all the time that wont' allow the phone to go in deep sleep....obviously if i don't lauch the app everything is normal without any significant wakelock.

so...hope i give you some hints to try to help me, i'm really sad i can't use this app :(

ps. also tried wiping dalvik+cache with no luck
[Android Apps and Games] bubbleguuum:
I find it surprising but Android dev is often full of surprises =).

What tool did you use to find that msm_hsic_host wakelock ?
[Android Apps and Games] beren:
BetterBatteryStats, of course :)
[Android Apps and Games] bubbleguuum:
Yup I figured out as much.

I could replicate exactly the issue and symptoms you described with that "msm_hsic_host" wakelock, on a Nexus 4.2.2 running Faux Kernel (you are using a Nexus 4 also, isn't it ?).

The simple fact of launching GMusicFS triggers this msm_hsic_host wakelock and it never goes away until rebooting.

That's totally puzzling as this wakelock seems to be related to the 3G modem operation, and I have no idea

why simply launching GMusicFS would trigger it. I will investigate for sure. This confirm Anrdoid is full of surprises.

Anyway it seems that some Nexus4 owners also have this msm_hsic_host wakelock problem, in a variety of scenarios not involving GMusicFS.
[Android Apps and Games] beren:
i am on faux kernel too, running aokp 4.2.2....so can be kernel related?

the issue is present even disabling 3g connection, if ccan be useful to know

yes i know about wakelock problems for nexus4 users but luckily i never had such issues...
[Android Apps and Games] bubbleguuum:
Although you never know, I do not think it is a problem with the kernel.

I will probably find the cause, proceeding by elimination.

On a Nexus7, GMusicFS doesn't prevent deep sleep. But this pesky wakelock doesn't exist either...
[Android Apps and Games] beren:
ok, i rely on you :)
[Android Apps and Games] drakenabarion:
This is a great app but I am another person on n4 who experiences unexpected and quiet extensive battery drain. I run cm10.1 on the stock kernel. However, this drain seems to stop when I un mount the file system from within the app.

My player of choice is Mort player.

Oh I have one other issue in Mort player which I am not sure if it is related to this app or Mort player, but I am sure it is specific to nexus devices. It is to do with the file system and how there are aliases. /storage/emulated/0 and /storage/emulated/legacy

Mort player detects files by scanning file systems that are available without root (independent to media scanner). When starting the app, it generates a list of available locations although it remembers the locations the user wants to scan. However gsf only plays the music when I manually remove references to ask storage locations except /storage/emulated/0. If legacy exists on the list of available storage options, no music is detected in the /gsfmusic/ folder.

So it might just be a problem with Mort player, or it might be something you can help with. Either way, the problem is in how both apps interact under certain situations.

Since /storage/emulated/legacy exists on only nexus devices, it is probably only an issue on nexus and not on any other device
[Android Apps and Games] bubbleguuum:
I've finally found the culprit.

It is the adb (not adbd) system program started when mounting, that keeps the msm_hsic_host wakelock as long

as it is running. It is not totally surprising as adb do something with USB in its initialization.

Hopefully this can be solved, as the mount script can kill the adb process just after the filesystem is mounted, as it is not needed anymore.
[Android Apps and Games] bubbleguuum:
It is probably the same draining bug discussed in the previous posts and for which I found the cause.

I will look into it. These folders are not specific to the Nexus4 though but I believe introduced in Android 4.2 to support the multiuser stuff.
[Android Apps and Games] bubbleguuum:
I spent some time with MortPlayer and I think the way it operates is incompatible with GMusicFS, because

it operates on mounted filesystems.

First, you have to enable the gmusicfs mount point for it to index any track.

This seem to be lost on reboot though as MoertPlayer seems to discard any scan mount point configured that it cannot find when it starts.

And on startup it cannot find the gmusicfs mount point as it is not mounted yet (it is automatically remounted a few seconds after MortPlayer starts)

Even when I could get some tracks to play, it seems to sometime not work trigerring rescan for no apparent reason.

This could be due to the behaviour of GMusicFS but it is difficult to know.

This music player also writes its own metadata in an Adroid/data/<package name> folder created in every mount point configured to be scanned. Hopefully GMusicFS supports writing into the mount point but this is IMHO bad practice to assume a mount point is writable.

To conclude, this player does things differently and does not seem to be very usable with GMusicFS for everyday usage.
[Android Apps and Games] drakenabarion:
Thanks for the reply. I thought the file system was nexus related because I used cm10.1 on my galaxy s, but I forgot they have a different layout than most phones. :)

For the wakelock issue, I thought that I did not need to reboot but I am seeing that now I do. Initially after unmount, it looked like it would not need a reboot.

---------- Post added at 05:16 PM ---------- Previous post was at 05:05 PM ----------

Thanks for looking into it. ;)

I can get it to work as I need it. It's not quite an automated thing but I can deal with it.
[Android Apps and Games] RedDeadDorito:
So we're just gonna ignore that code 1 error about the ADB not being online?
[Android Apps and Games] bubbleguuum:
Without log, yes for sure.

To make a log file, see first post of this topic.
[Android Apps and Games] bubbleguuum:
GMusicFS 0.9.5 is available (see first post to download).

This is a small but important upgrade fixing 2 battery drain issues.

It also allows to access Google Music playlists in players able to read m3u files but not able to access playlists stored in the Android database (ex: MortPlayer).

The first time this version is launched on Android 4.2+, it will perform a one time upgrade of GMusicFS file paths in the Android music database (file paths were starting with /storage/emulated/legacy instead of the more correct /storage/emulated/0). It should take a few seconds depending on the number of items.

Thanks to everyone who reported issues.

0.9.5

added setting to generate m3u playlist files for accessing synced playlists in music players that support reading m3u files but not Android media database playlists (Settings > Generate m3u playlists)

fixed wake lock preventing deep sleep on some devices (Nexus 4 in particular), causing battery drain

fixed WiFi lock sometimes not released after music player playback, causing battery drain

fixed WiFi lock lost on seeking

fixed synced playlists appearing as empty in some music players (for example, Rocket Player)

expires on May 27th
[Android Apps and Games] kyokeun1234:
Thanks for the battery drain fix! Really needed it
[Android Apps and Games] RedDeadDorito:
That's gr8.
[Android Apps and Games] Robthevampire:
Is there a pro or Donation version of this App available?
[Android Apps and Games] beren:
Just to report that new version is working perfectly....no more battery drain, thx

Inviato dal mio Nexus 4 con Tapatalk 2
[Android Apps and Games] Olioaglio:
M8, just to report, m3u playlists are working fine so far in Mortplayer... good work! Though not perfect of course because of some structural problems in the manner MortPlayer works. E.g. endless lags when selecting huge gfs playlists (have some playlists with about 1000+ titles). In fact I'm a bit disappointed that Mort did not kick in to this discussion yet, though I did crosspost in MortPlayer thread.

Olioaglio
[Android Apps and Games] bubbleguuum:
Thanks for the confirmation
[Android Apps and Games] bubbleguuum:
It is probable it is extracting tags from all the 1000+ files. Which of course will be very slow no matter what.
[Android Apps and Games] beren:
i noticed sometimes gmusicfs autoremounts filesystem even if i'm not using any player, maybe to make it working only on selected players (from UI) could be an option for future releases (?)

also noticed that Now Playing has some difficulties, seems due to limited buffer size, anyone is having the same results?
[Android Apps and Games] bubbleguuum:
It will remount when any app able to handle "audio/mpeg" is started. This is the case for file managers for example.

Adding a popup to restrict to some apps is probably a good idea.

I've noticed some audio drop out when navigating its UI. Probably specific to this player as I did not notice it in other players.

It is probable the playing thread of this player is slow down by UI stuff for a moment. Buffering will help
[Android Apps and Games] beren:
i understand...

it's strange that sometimes, i turn off the screen with filesystem unmounted and when i turn on i find it automatically remounted, so without any apparent new app opened.

Obviously could be some app that is still working in background, but it'd be interesting to know what is the app that "waked up" gmusicfs.

Popup is definitely i good idea ;)

edit: find out that N7Player was still running in background, after killing the process gmusicfs sleeps well :)

EDIT: are you planning to release the app to play store when out from beta? thinking about possible problems with google because the app works-around the limitations they put on music stream service?
[Android Apps and Games] bubbleguuum:
Normally auto-remount only mounts when a new process (handling music) is started with a user-visible UI. So I'm a bit surprised it autoremounted when the screen was off, so I'll have to investigate. Detecting process starts is a bit tricky as there is no API for that.

It will go on Google Play when the beta is over, although not until buffering and some form of caching are implemented, and not before Google I/O just in case Google announce some new stuff concerning Google Music that would break the unoficial API. There are other apps on Google Play with the unofficial API, although probably in a less spectacular way.

And there's a few that do it also on iOS, since forever.
[Android Apps and Games] simonsickle:
Just wanted to say a few words, first off good job on the beta. I have gotten it to work perfectly with an awful 3g connection, Apollo and cm9. Secondly, wanted to ask about the unofficial API. Is this a public released API or something you discovered through reversal? The reason I ask is I'm really considering building a music player from scratch, and I wanted to include Gmusic into that. But otherwise, good job. I will plan on buying this app, as I love to support new innovators
[Android Apps and Games] cdkane:
How did you get around the 3g connection issues without buffering? I am desperately waiting to use poweramp again as my main player but can't stream over 3g without skipping etc
[Android Apps and Games] simonsickle:
I just got patient. Pause a few seconds then play. Works great usually
[Android Apps and Games] bubbleguuum:
I did not reverse the API. Others did and made bindings for many languages, including Java.

GMusicFS uses google-play-client but other Java bindings exist.
[Android Apps and Games] fe1ixs:
server down?

I tried to download the newest 0.95 from the op link but failed. Do you have mirror link to get the apps?
[Android Apps and Games] bubbleguuum:
There's a problem with my host. I hope it will be back online within a few hours.

EDIT: it's back and link should work.
[Android Apps and Games] bengadget:
Working great on the default HTC One music player. Can't wait for the finished product. Is there a way to donate?
[Android Apps and Games] SchusterIX:
Looks very promising. Unfortunately, it does not seem to work with Nexmusic. Not sure if there is anything I can provide to help with that...but if there is, I will!
[Android Apps and Games] fmmsf:
Very nice app!! Working nicely with apollo :)

Can't get it to work with n7player though.. N7 scans for files to add to its library but can't seem to find any on my Gmusic collection.. any idea what might be wrong? Cheers
[Android Apps and Games] M4G101:
working very good here using the HTC Music App on my HTC One. The only problem i have is that skipping from one track to another takes very long (about 10secs).
[Android Apps and Games] Big-A-Rob:
Trying to install 0.9.5 on s4 but the install button does not work. Sideload apps is on and other apps install fine.
[Android Apps and Games] thelonelyghost:
I get that from time to time too. Typically it is a corrupted APK (just redownload), though sometimes it's an APK meant for a more advanced version of Android than I currently have installed.

If redownloading via your phone doesn't work, try downloading to your computer then transferring it to your SD card.
[Android Apps and Games] Big-A-Rob:
Just downloaded on my tab which runs 4.1.2 and installed it fine. Copied the same .apk to the s4 which runs 4.2.2 and install button does not work.
[Android Apps and Games] bubbleguuum:
Not yet but when app goes on Google Play, you will be able to.
[Android Apps and Games] bubbleguuum:
Nexmusic works here. Eventually trigger a rescan in GMusicFS to repopulate the Android media database.
[Android Apps and Games] bubbleguuum:
Make sure to read the n7 specific setup instruction in GMusicFS help section.

It has specific setup because it has its own library management.
[Android Apps and Games] thelonelyghost:
The only thing I can think of is that root was removed by updating the kernel, but that may be because I just read an article on it. You aren't running the stock kernel by chance, are you? Can you double-check that root is available?

Edit: I only mention root because of the new Android permission for super user. If the app is for a newer Android API (unknown permission type with respect to the package manager), the APK may not have the option to install.
[Android Apps and Games] wildbadger1:
So, I have an issue that seems unique. The app seems to work on my rooted kindle fire. However, on every music player I have tried, I seem to have 2 to 5 minutes of dead air on every single track. I have tried remounting, resync, cleanup, and still the same problem.

Edit: so the tracks time would show as 8:53 instead of 4:20

Any thoughts?
[Android Apps and Games] bubbleguuum:
What music player app are you using ? What was the bitrate of the orginal track you uploaded ?
[Android Apps and Games] wildbadger1:
The bitrate varies but I believe most were 320. I have tried poweramp, playerpro, and N7.
[Android Apps and Games] bubbleguuum:
Can you send me a PM with a link where I can download that 4:20 track that reports as 8:53 ?
[Android Apps and Games] c19932:
Hi. Just tried this app with poweramp and it works fine. However there is about a 3 to 4 sec pause after changing to a new song. I'm not talking about the buffering time between songs. The second song has already started, but the first few seconds of the song is just silence. Any idea? Thank u
[Android Apps and Games] Trajan19:
Since Google music and spotify are somewhat the same (streams/caches music) could this eventually work with spotify?
[Android Apps and Games] thelonelyghost:
Some parts of this could of course be reused, as you stated, but the rest (and likely majority) is based on the unofficial Google Music API. It is probably possible but would require a complete rewrite of some core components.
[Android Apps and Games] osmosizzz:
Not working on the oppo find 5 with cm10.1 :-/

Sent from my Oppo Find 5
[Android Apps and Games] bubbleguuum:
What is not working ? Can you provide a log (see first post of this topic for instructions).
[Android Apps and Games] bubbleguuum:
When streaming a track, there's 1.5s fixed silence + variable silence (the time required to get the streaming URL from Google, usually 2-4s).

The 1.5s fixed silence (3s on some HTC model) is *mandatory* for the filesystem to play nice with the Android media scanner.
[Android Apps and Games] osmosizzz:
This is what I'm getting

Sent from my Oppo Find 5
[Android Apps and Games] JustusIV:
I am running PA 3.15 on vzw note II.

Everything appeared to mount find however when i try to play something in poweramp its says failed.

browsing the file system it appears to have mounted.

Thoughts?
[Android Apps and Games] housry23:
This is normally caused by by some sort of overlay app. Like Glovebox, Pie Controls, or any other app that runs over the launcher. If you force stop the app, this should install. Most apps have updated to automatically stop when installing something, so make sure you have the latest version installed.
[Android Apps and Games] c19932:
I see thanks for the explanation. I have a HTC one s so I'm getting the three second silence. That sucks because by the time I hear the song, the previous song button would reset the current song instead of going to the previous song. I need both functions (reset current song and going to previous song) but I'll try to get used to it :) thanks again
[Android Apps and Games] bubbleguuum:
To help me find the cause of this error, can you do this:

- install the Terminal app and start it

- type the following commands:

$su

$setprop service.adb.tcp.port 5555

$stop adbd

$start adbd

$adb kill-server

$HOME=/data/.gmusicfs/android adb start-server

$adb connect localhost

$adb devices

I'm interested in the output of the last command. It should display:

localhost:5555 device

If it doesn't, wait a few seconds and try the "adb devices" command again.

If it displays something else, let me know what it is.
[Android Apps and Games] bubbleguuum:
Trigger a full rescan in Poweramp as explained in the help section of GMusicFS. Make sure you have disabled gmusicfs.meta directory from the list of scanned folders.
[Android Apps and Games] beren:
any news about new version with more buffering and other tasty things? :)
[Android Apps and Games] osmosizzz:
Sent from my Oppo Find 5
[Android Apps and Games] bubbleguuum:
You forgot this essential command in between:

HOME=/data/.gmusicfs/.android adb start-server

Can you give me the output again, not ommiting this command ?
[Android Apps and Games] bubbleguuum:
Yup.

I have implemented configurable buffering and album pinning (caching to SD card).

Both work well and I hope to have a new beta tomorrow or Friday.
[Android Apps and Games] osmosizzz:
It's there. The line was so long command prompt chopped it but I placed the entire thing

Sent from my Oppo Find 5
[Android Apps and Games] bubbleguuum:
Ok but there was a typo in my initial post.

The correct command is (notice .android vs android):

HOME=/data/.gmusicfs/.android adb start-server
[Android Apps and Games] osmosizzz:
Oh I missed a dot. Dang it. Lol I'll be back

Sent from my Oppo Find 5

---------- Post added at 09:00 AM ---------- Previous post was at 08:50 AM ----------

Sent from my Oppo Find 5
[Android Apps and Games] bubbleguuum:
Weird, adb cannot operate in loopback mode. Thanks Google for making mounting super extra difficult.

Can you try removing the /data/.gmusicfs directory and restart the app ?

To remove the directory:

su

cd /data

rm -rf .gmusicfs
[Android Apps and Games] osmosizzz:
Thank you. That worked. Streaming on poweramp. Now does ech music download as you listen to them? Google play music doesn't and in about 2 hours of music, it used about 400mb. That's wayyyyy too high specially since I only have 4GB of hspa+

Sent from my Oppo Find 5
[Android Apps and Games] bubbleguuum:
Next beta will add caching to SD card.
[Android Apps and Games] Lastb0isct:
Hi all,

Had issues with this when I first tried it, uninstalled it and it is still giving me issues because i believe it copied in fake "entries" into my phone that google play music is trying to reference. Google Play is telling me that my ENTIRE library is on the phone, which is over 15000 songs, so obviously that's not the case. I try to play one of the "local" files and it fails saying it can't play it at this time. But songs that i DO know i have on my phone it does play properly.

My question is, where do i go to delete these entries so Google Play doesn't think i hold them locally, so i can again stream them!

Thanks for your help!
[Android Apps and Games] bubbleguuum:
Normally you must unmount and cleanup before uninstalling (this is stated in the help section).

With a file manager, simply remove the gmusicfs.meta and/or gmusicfs folders at the root of the SD card, then reboot your phone to force the media scanner to remove the database entries.
[Android Apps and Games] Lastb0isct:
Thanks bubbleguuum, attempted the unmount/cleanup...didn't work for me. I'll try what you suggest above.

Thanks!
[Android Apps and Games] Lastb0isct:
This worked! Thanks!
[Android Apps and Games] JustusIV:
Files from the streaming service don't appear to stream :(

Anyone else having any luck?
[Android Apps and Games] simonsickle:
Considering the new plan and such Google has can the music you add to your library(like spotify) be played like purchased music? Just something I'm wondering about
[Android Apps and Games] Andrew025:
What is your question exactly?

You can pin the added non purchased music and it saves it for offline use, it acts like the music you have purchased or uploaded. If that's what you're asking that is.
[Android Apps and Games] simonsickle:
I'm asking if it shows in the mount with this app. I've been trying but not succeeding
[Android Apps and Games] JustusIV:
Mine shows but cannot be played.
[Android Apps and Games] VoluntaryMan:
Hopefully it can be added in a future update but I'm not holding my breath considering the additional protection they'll probably have on it since you aren't able to download the actual files even from their site unless you actually buy the music.