Lock free recording on SD in Android 4.4 devices

    Have a nice day, everyone! The other day, my HTC ONE Dual Sim came up with fresh custom firmware on Android 4.4.2 Kit Kat and immediately puzzled most device users with the fact that Google blocked applications from free recording on SD cards .


    Further trivial interest, a little googling, and after several trial and error, I managed to get around the limitation.
    Casting a shadow of doubt, I decided to share with the community, maybe this solution will be useful to someone.
    This option works only under devices with root access, as need to edit system files.
    So, we need to edit the file /system/etc/permissions/platform.xml
    In it we find the sections android.permission.WRITE_EXTERNAL_STORAGE and android.permission.WRITE_MEDIA_STORAGE
    We then need to edit them. On my device, these sections should look like this:

    After saving the file and restarting the device, my favorite file - the manager got the rights to write to the SD card.
    This fix was prompted by an article on androidpolice .
    I think that advanced Android developers know this solution, but decided to share it anyway.
    And smartphone manufacturers are unlikely to leave this limitation if they want to use an external SD slot.

    Also popular now: