[Implemented] allow app to be moved to SD/adoptable storage

If you trust me, you can test the APK. After installation, you can change the location like any other App. (Settings> App settings>Plex>Location) I am thankful for any feedback.

sry, .apk aren’t allowed, that’s why I zipped it

[Mod: the APK has been removed]

Not a single developer came here, after months … no comment … Thank you @MatzeAnt

@MatzeAnt Thanks much, works perfectly.

I do have to say that this doesn’t seem to be the “right way” to fix the issue since Plex still isn’t really “aware” of adoptable storage, but moving the app to external storage this way is a valid workaround until the Android maintainer(s) sort out the issue.

Whenever that may be.

Does this solve the problem here: http://forums.plex.tv/discussion/202773/when-making-sd-card-adoptable-storage-on-marshmallow-plex-doesnt-see-it-so-i-cant-sync-to-it/p2

i.e. can you select adopted storage as the sync location regardless of whether you have moved the app itself?

@dashbad said:
Does this solve the problem here: http://forums.plex.tv/discussion/202773/when-making-sd-card-adoptable-storage-on-marshmallow-plex-doesnt-see-it-so-i-cant-sync-to-it/p2

i.e. can you select adopted storage as the sync location regardless of whether you have moved the app itself?

Yes, you can

No. With my modified Plex App you can select only the Sync location where the App itself was moved. That’s because the select-function in the App isn’t correctly permitted to scan all locations outside the app location.
But some devices can handle it and give the permission nevertheless.

Well, it’s a shame that there’s no reaction from the plex devs whatsover on this.

Having done some android development myself I don’t think it’s that straightforward as @MatzeAnt suggests however. This solution is indeed a good fix, but it also allows the app to be installed on real external sd cards on pre-marshmallow android devices. And that’s probably not what plex wants as this may break some functionality. (it’s a shame on google that they did not make a separate flag for allowing installing on adoptable storage vs external storage, they treat it the same)

On the other hand, it DOES seem to be possible to use both filesystems as sync location even with adoptable storage. I haven’t figured out on how to do it and I thought it was impossible since no other app can do it. But some updates ago google play music now has the possibility to select different download locations. So it seems to be possible after all…

@mouse256 said:
Well, it’s a shame that there’s no reaction from the plex devs whatsover on this.

Yes, it is …

Maybe we just need to get 1,000 posts in this thread to get their
attention… Let’s keep the posts going and get that number up.

They don’t care feedback on playstore too

+1 for fix. My Nvidia shield is full with the Plex library metadata and having this fixed so I can move it to the SD card would be a major help to prevent the device from running out of space to function.

Has anyone tested on nougat yet?

+1 for fix.

Just ran into this today. Sad to see such a big flaw in the app. Going to have a long trip without some synced content.

Just encountered this myself. Got a nice 128Gb USB stick of adopted storage with 113Gb spare but plex won’t see it :frowning:

Just came across this on a 10 hour flight! Fortunately Flixster was happily making use of my adopted storage so I was saved going stir crazy! A definitely needed fix.

PLEX is a data management company. Keeping up-to-date with Android SD permissions only requires that a competent developer be paid to make a fairly simple upgrade. Either corporate is not supplying money, or there’s a severe competency issue. Or perhaps they’re outsourcing, there’s language problems, and maybe someone said, “Google’s fault.” and someone corporate was naive enough to believe them? Is the mobile team using some idiotic, cross-platform tool and is limited by its features and unable to step outside and actually work on the Android app as an Android app?

There’s a need here for an extremely modest amount of money to be spent on basic software maintenance for your Android app. It’s a need, not a niche desire by a group of enthusiasts.

And synced bulk media data does not belong in the data folder period.

I’m currently giving you my money, PLEX. Unless you quickly show that you’re more convenient at managing my family’s data than it would be for me to do it all by hand, you’re going to lose a customer. I still wish you well, but you’re losing my good will.

Can’t believe this still hasn’t been fixed. +1 from me.

@MatzeAnt said:
Hello,
i tried some stuff and now i can switch between internal and external of the Adoptable Storage. You can also see the change of the free-space in the plex-app after changing the app-location.
The only thing to do is to change one line in the manifest.xml and compile your own plex.apk.
Add installLocation=“preferExternal” The result: </manifest xmlns:android=“http://schemas.android.com/apk/res/android” android:installLocation=“preferExternal” package=“com.plexapp.android” platformBuildVersionCode=“23”…>

Why should that be add? Because the Android Developers rules want it: “Note: By default, your application will be installed on the internal storage and cannot be installed on the external storage unless you define this attribute to be either “auto” or “preferExternal”.

Or you can wait.
I think they’ll fix it next time.

@ManuelPG Possible to comment? Surely you have reasons not to do this!?

Ran into this last night (Nexus 5X on Nougat). As others have indicated, I had to first move the Plex app to the SD Card in Android Settings.