skyguy126 / Xposed-SoundCloudDownloader

Download songs directly from the SoundCloud app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage error

rafirafirafi opened this issue · comments

Can't download, the app tells me not possible to write to destination directory. Even after giving itaccess to storage
Android 6 tested on 2 devices

On cm or los, you have to enable the storage permission in app settings (found when app icon is held down and is dragged to app info) as well as privacy guard (found in the settings menu).

I am stock Motorola 6.0.1 rooted
Storage is enabled in app properties... I don't have any privacy guard in my settings.

Can you paste the xposed log here

It says- Grants permission for writing to external storage and retry.
I am on Lenovo X3a40 6.0.1 rooted cs rom-BETA.. storage is enabled in app permissions. I dont have any external storage.. is there any way of downloading songs to internal storage?
I tried all the options given in the module... it still doesn't work.

The error is a bit misleading, "external storage" refers to the internal storage at /sdcard/. Could you post your Xposed log here after the error happens.

the xposed log contains nothing regarding this error. i think you should remove your test regarding EXTERNALSTORAGE in your code..

This is the part that is doing the check:

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && context.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
    // show error
} else {
    Toast.makeText(context, "Downloading...", Toast.LENGTH_SHORT).show();
    XposedMod.download(context, url, name);
}

Refer to #3, enabling the permission seems to have fixed it. Removing that piece of code causes the app to crash on Android 6 devices which have the storage permission disabled. The code only exists to show a graceful error message instead of the app crashing all together.

I don't have access to a computer with the build set up so I cannot fix anything right now. Maybe run something along the lines of Log.d("version", Build.VERSION.SDK_INT) and Log.d("state", context.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED)) and post what those individual statements return.

i have android 7 now :(