Monday, March 28, 2016

Cubot H1 SD card mount point and default storage.

Dear all,
I own a Cubot H1 and I am pretty happy with it so far, but there is a little something that bugs me and I was wondering if there is a solution.
I want to use the SD card as a way to store backups of my photos, and I do not want apps to write to it. If no SD card is present, the phone internal storage is mounted as /storage/sdcard0 and all works fine. However, if the external SD card is present, every time I reboot the phone the external SD card is mounted as /storage/sdcard0 and the "default write disk" setting under Storage is set to SD card, even though I have previously set it to Phone. And even if I switch it back to use the phone internal memory as the default write disk, because the external card is mounted as sdcard0 some apps are still writing to it (which I'd like to avoid).
I have tried decompiling framework-res.apk and checking the storage-list.xml, but that looks fine to me.

Code:

<?xml version="1.0" encoding="utf-8"?>
<StorageList
  xmlns:android="http://ift.tt/IqUx8K;
    <storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_phone" android:primary="true" android:allowMassStorage="true" />
    <storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:removable="true" android:allowMassStorage="true" />
    <storage android:mountPoint="/storage/usbotg" android:storageDescription="@string/storage_external_usb" android:removable="true" />
</StorageList>

Does anyone have any idea what may be causing this behaviour and how to fix it?
Thanks,
Mauri


from xda-developers http://ift.tt/1XYBQSF
via IFTTT

No comments:

Post a Comment