Fix legacy SDCard permission bug