[APP][4.1+][ROOT][1.0.15] GMusicFS: play cloud Google Music in music players apps

Search This thread
G

geekon

Guest
Help!
I am on AOKP 4.1.2, and also have issue with second super su prompt not showing. But under "developer options" i dont have "root access" section... what now?
 

tp2215

Senior Member
Oct 2, 2010
2,103
4,196
Orlando
Re: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

This is great! Works perfectly on my galaxy s3 using the awesome default player. I just uninstalled the crappy Google music app! Thanks allot and keep up the great development!

Sent from my Samsung Galaxy S3
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Help!
I am on AOKP 4.1.2, and also have issue with second super su prompt not showing. But under "developer options" i dont have "root access" section... what now?

I will investigate this. Looking at CyanogenMod Settings code should tell what it is doing when "Apps + ADB" is enabled in "developer options".
 
Last edited:

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
This is awesome! I got it to work on my DNA running Viper 1.1.3.

It sync'd through the letter D, but then error'd saying "...mp3: open failed: ENAMETOOLONG (File name too long)".

Working great on artists A-D though. :)

Thanks for the report. I will fix this in next beta by truncating album name / track name if it is over the max path size for a file on the SD Card.
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Works well, mostly, until you get a spot of bad reception, then it starts skipping a lot. I suppose you haven't implemented buffering yet?
Yes, there is almost no buffering yet so streaming will not perform under bad network conditions.


W
Also, planning on finding a way around having to have the notification and remount button? perhaps a list of watched apps to automatically remount?

If detecting that a music player was started can be done efficiently, I will add this (optional) ability to auto remount.
 
Last edited:

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Great app, I love finally having my Google music in player pro. It's a bit of a drain on battery and ram and needs a bit more buffering, but it's great for a beta!

GMusicFS should use no battery at all when not doing anything (eg when not streaming).

When streaming on WiFi, it holds a performance WiFi lock which is absolutely necessary for playback to work when the screen is off.
This is no different than any other app doing streaming.

If you observe high battery usage in the battery stats while having streamed very few tracks, let me know, it is probably a bug (likely, WiFi lock not released).
 
Last edited:

NegativeOne

Senior Member
Jul 21, 2010
997
159
Re: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

Yes, there is almost no buffering yet so streaming will not perform under bad network conditions.




If detecting that a music player was started can be done efficiently, I will add this (optional) ability to auto remount.

Check out application .oncreate() . People also do this by reading the system logs, apparently that's how all of the application locker ups do it. I guess the difference is that the first method gets called after application gets destroyed by the garbage collector and created again, and the second message allows you to see me whenever activity is started by the user, so when the user switches to it. It sounds like the first message will work better because you actually care about the application getting restart it automatically, even if it's in the background.

this is all from 5 minutes of cursory research though good luck
 

cdkane

Senior Member
Apr 5, 2012
86
34
Track numbers

Just thought I would mention that the track numbers all default to "0".so Poweramp (and probably others) will just list tracks alphabetically.and you cant sort it by track number.

However, Little tip (may not apply to everyone):
Most of my music has the track number first in the filename, so if you sort the songs by filename it should sort it back track number again.
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Just thought I would mention that the track numbers all default to "0".so Poweramp (and probably others) will just list tracks alphabetically.and you cant sort it by track number.

Good find. Track number is indeed missing from the tag. I will add it for next beta as well as disc number, composer, year, album artist, genre and possibly more (if they are present in the metadata that is).
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Help!
I am on AOKP 4.1.2, and also have issue with second super su prompt not showing. But under "developer options" i dont have "root access" section... what now?

Can you go into SuperSU settings, disable "Respect CM root settings" (it is enabled by default), and report if it works ?
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Check out application .oncreate() . People also do this by reading the system logs, apparently that's how all of the application locker ups do it. I guess the difference is that the first method gets called after application gets destroyed by the garbage collector and created again, and the second message allows you to see me whenever activity is started by the user, so when the user switches to it. It sounds like the first message will work better because you actually care about the application getting restart it automatically, even if it's in the background.

Monitoring the logcat will probably work.
 

PoetO

New member
Mar 1, 2013
4
0
AW: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

I also don't get the second prompt, there's no "adb shell" entry in superSU.

Device is Nexus 4 with Stock 4.2.2, so there's no "root access" setting in the developer options.
 

FitChicago

Senior Member
Jan 19, 2011
418
189
Chicago
Re: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

Bubbleguum

Wow! I am thrilled to follow the development of this.

As an Google Music user since it's beta launch day, I think that you are offering something that myself and a plethora of others have been yearning for.

Once perfected, you should pitch one of the major third party music apps to license your technology so they can include it in that app.
 

andoird213

Senior Member
Nov 19, 2012
68
21
Re: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

.
If detecting that a music player was started can be done efficiently, I will add this (optional) ability to auto remount.

Would love this. The app is great and very useful; I haven't used any other player than GMusic because I've not been able to stream with others, and while this app fixes that, having the persistent notification is rather...I don't want to say annoying but it is :p I tried hiding the notification, but that results in music not being able to be played anymore after a while
 

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
Would love this. The app is great and very useful; I haven't used any other player than GMusic because I've not been able to stream with others, and while this app fixes that, having the persistent notification is rather...I don't want to say annoying but it is :p I tried hiding the notification, but that results in music not being able to be played anymore after a while

The notification when mounted is not cosmetic or just there to have a "Remount" button. The app has a foreground Service that must be kept running to service some requests from the FUSE native executable. Android makes it mandatory to have a notification when a foreground Service is running.

Even if I implement mounting/unmounting on music app start/stop (which I will try), I do not see how logcat monitoring can be done without a foreground service, which means an entry in the notification area.

In any case you should be able to hide the notification in the Android Settings associated to the app, without it interfering with functionality (it is purely visual). Side effect: it also disables display of all toast messages.
 
Last edited:

snakeeyes21

Senior Member
Sep 11, 2010
322
120
works on htc one s, on venom 2.1.0 rom using poweramp.

great stuff.. its what the google music service has been missing.
 

Doogler

Member
Feb 22, 2013
12
2
I LOVE YOU! I have been complaining about this for months now! It works PERFECTLY on my

Verizon Galaxy S3
Official AOKP build 4
KT747 kernel
Noozy music player


I LOVE YOU!


Edit: I keep a **** ton of Podcasts on my Google Music. It fetches all of the tracks but only gets like maybe the first 10 minutes of each podcast.
 
Last edited:

jazzboyrules

Senior Member
Oct 19, 2011
1,056
363
Re: [APP][4.0+][ROOT][BETA] GMusicFS: play cloud Google Music in most music players a

Hi,

Thanks for this app!

It's working for me except for one little issue. There's seems to be a limit on the file name length.
Screenshot :http://db.tt/C2FRfoWh

I am running Feb 28 version of PA, motley b40 and PowerAmp on Nexus 4

Update: It worked fine for 10 tracks but after full scan, about 4000+ tracks got bunched into unknown artist and unknown album, may be because of the above long filename issue?

Sent from my Nexus 4 using xda premium
 
Last edited:

bubbleguuum

Senior Member
Dec 23, 2010
7,016
2,745
A new beta APK of GMusicFS is available (see first post of this topic for download link).
It fixes many issues reported in the first beta. Thanks to all who reported issues and provided feedback!

If you had the previous version installed, and due to file naming changes, please make sure to cleanup the previous install before installing the new version:

- launch old version of GMusicFS
- unmount filesystem if it is mounted
- click on the Cleanup button.

Changelog 0.9.1

  • fixed mounting failing on some ROMs due to ADB shell being denied root permission by the system
  • added track number, disc number, year, album artist, genre, composer to generated id3v2 tag
  • fixed track metadata not handling characters > 127 properly (accents, etc)
  • changed notification to be more minimalistic
  • fixed Sync failing on folder creation error
  • fixed Sync failing due to too long filenames
  • fixed important memory leak in filesystem executable
  • fixed some obscure app crashes
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 201
    GMusicFS exposes cloud Google Music as a FUSE filesystem on rooted devices

    EDIT 09/10/2015: v1.0.15 released, fixed Google Music issues
    EDIT 02/20/2015: v1.0.14 released, Lollipop compatible, fixed Google Music issues
    EDIT 03/03/2014: v1.0.12+ has no restrictions anymore (100% free). It is not available anymore on Google Play and you can download the APK below instead.

    This app is provided "as is" and may not be working properly with some ROMs and/or kernels. It is unsupported and not actively developed.

    This app doesn't work with all kernels which explains reboots on some devices.
    This app does tricky and hacky things that may not work well on all devices or unreliably.
    It's even a miracle that it sort of works on current Android.

    You can use it if it works on your device and find it useful, but most people should use the official Google Music app instead.

    There will be no bug fixes as I stopped entirely developping it.
    Maybe there will be an update if the next Android version breaks it again and there's an easy fix, but that's all you can expect at this point.

    Download APK v1.0.15
    Documentation
    Short youtube video

    The goal is to bring Google Music streaming support to most third party music players like Poweramp, PlayerPro, n7player and many more.
    From the point of view of these apps, Google Music tracks will look like regular files that can be played.
    I you ever wanted to play Google Music with something else than the Google Music app, that should fit the bill.

    Make sure to read the Help section within the app as it contains very important usage info (especially on Android 4.2+) and music player specific initial setup.

    Requirements

    • a rooted device running Android 4.1+ on ARM, or x86 (untested) CPU. Root is necessary for mounting the filesystem
    • A kernel supporting FUSE filesystems (should be the case of all 4.0+ kernel)
    • SuperSU or Superuser
    • Some music uploaded to the Google Music service
    • A compatible third party music player. Tested working with Poweramp, Winamp, PlayerPro, n7player. Should work with most players using the Android MediaPlayer API or ffmpeg. Doesn't work with Deadbeef and XenoAmp.

    Recording a log file


    Here's how to setup logging, to troubleshoot issues.
    Do not post log files on the forum or on the web as they contain your Google account name.

    • start GMusicFS
    • in the Settings tab, enable Logging (select "App" as the logging mode, unless being instructed otherwise), then click the "Exit" button to exit the app
    • restart the app and operate the app until the error appear
    • exit the app
    • send me (bubbleguuum at free.fr) the log file located on your SD Card as file Android/data/com.bubblesoft.android.gmusicfs/logs/log.txt
    19
    GmusicFS 0.9.4 is available (see first post for download link). It will expire on May 7th.

    As I had not too much time to work on it, it mostly only adds playlist syncing.
    Hopefully I can resume work on it soon and next beta will bring the much needed buffering.

    I also need to investigate possible battery drain, which could happen if a media player doesn't close
    a file after playback stops (in that case a WiFi lock is held, draining battery).
    Normally most players should close files but if you observe battery drain, let me know what player you use.

    0.9.4

    • playlist syncing
    • disabled request flood protection as it can cause problems
    • initial filesystem native executable read calibration is done only once and stored in prefs instead of done on each run
    • propose to download new version on beta expiration

    Playlist syncing notes

    • Synced playlists are automatically appended [gfs] to their name so they can be distinguished from local playlists in music players
    • the Sync button now proposes to Sync albums or playlists or both. Syncing playlists only is valid if albums were synced first.
      During playlist sync, if some tracks are missing it will state so and propose to do a full sync (Albums + playlists)
    • syncing playlists with Settings > Track limit not set to 0 may result in incomplete playlists, as playlist tracks will refer to missing files
    • the Clean button removes playlist entries from the Android media database
    17
    GMusicFS 0.9.6 is available (first post to download), bringing caching to SD card (by pinning albums) and stream buffering.

    Make sure to read the updated help on pinning albums and buffering, for important info.

    Please test in various conditions (in particular, streaming from mobile networks) and report issues.
    Note that buffering will not magically fix unreliable mobile networks for which the connection drops all the time. It will help though
    if the bandwidth is not consistent and fluctuating, as long as the connection remains and the average bandwidth is sufficient.

    Changelog 0.9.6

    • configurable buffering during streaming
    • album pinning to cache tracks to local storage
    • ability to auto-remount only selected apps (Settings > Selected music apps)
    • the notification shows current playing track and its status (streaming, cached file, caching, buffer fill)
    • fixed small audio stutter sometimes at beginning of tracks with n7player
    • remove generated adb keys in some case of mount failure. might help to mount successfully afterwards
    • fixed a few rare crashes
    11
    New beta, with many fixes and some new features (see first post of this topic for download):

    Changelog 0.9.3 (March 18th 2013)

    • added ability to auto-remount on music player process start, on Android 4.2+ (Settings > Auto-remount). Enabled by default
    • added settings to optionally append a custom string to album and/or track titles, to allow to differentiate GMusicFS tracks from other local tracks
    • added request flood protection to prevent Google Music daily quota to be triggered in case of unexpected problem or bug
    • fixed super slow scan on some HTC devices (thanks JWhetstone02)
    • fixed failure to start http server on some ROMs (thanks lairdchris)
    • fixed failure to kill native filesystem process on some ROMs (thanks lairdchris)
    • fixed mount issues on some ROMs
    • more descriptive error messages
    • check if CPU architecture is ARM
    • fixed rare crashes
    9
    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