Skip to content

Instantly share code, notes, and snippets.

@cpuuntery
Created January 22, 2021 20:13
Show Gist options
  • Save cpuuntery/6ae95782bb4fb321207b8f0939146141 to your computer and use it in GitHub Desktop.
Save cpuuntery/6ae95782bb4fb321207b8f0939146141 to your computer and use it in GitHub Desktop.
su -mm -c mount -t ext4 -o nosuid,nodev,noexec,noatime /dev/block/mmcblk1p1 /data/media/0/sdcard
restorecon -rv /data/media/0/sdcard
chown -R media_rw:media_rw /data/media/0/sdcard
chmod -R 775 /data/media/0/sdcard
su -mm -c mount -t sdcardfs -o nosuid,nodev,noexec,noatime,mask=7,gid=9997 /data/media/0/sdcard /mnt/runtime/write/emulated/0/sdcard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment