Skip to content

Instantly share code, notes, and snippets.

@francioshu
Created April 25, 2019 06:45
Show Gist options
  • Save francioshu/e7bab830e289fb4371572e37e4651b15 to your computer and use it in GitHub Desktop.
Save francioshu/e7bab830e289fb4371572e37e4651b15 to your computer and use it in GitHub Desktop.
init修改 #Android
import init.${ro.hardware}.usb.rc
on init
start watchdogd
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /mnt/shell/emulated/0 /storage/emulated/0
symlink /device/HciIME /storage/emulated/0/HciIME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment