vipersaudio / viper4android_fx

ViPER4Android FX Control Panel
245 stars 118 forks source link

Android 4.3 SD card access #5

Closed ste71m closed 11 years ago

ste71m commented 11 years ago

In adroid 4.3 i got I/ViPER4Android_Utils(4624): Error: /storage/emulated/0/v4a_audio_system.conf: open failed: EACCES (Permission denied)

please change path from /storage/emulated/0/ to /storage/emulated/legacy/

In Utils.InstallDrv_FX just change

    String f=Environment.getExternalStorageDirectory().getAbsolutePath();
    if (Build.VERSION.SDK_INT>=18)
    {
        if (f.endsWith("/emulated/0"))
            f=f.replace("/emulated/0", "/emulated/legacy");
    }

    String szSystemConf =f + "/v4a_audio_system.conf";
    String szVendorConf =f + "/v4a_audio_vendor.conf";

PS: item is fixed with latest superSU (1.51)

ste71m commented 11 years ago

It seems that Superuser still has the issue while SuperSU 1.51 fixed, maybe it worth while to fix souce code

vipersaudio commented 11 years ago

OK, fixed.