Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- # Please put me in "/etc/init.d/".
- # Example:
- # APK: /data/app/klb.android.lovelive-1.apk
- # DATA-DIR: /data/data/klb.android.livelive
- # APK & DIR Name
- APK_NAME="klb.android.lovelive-1.apk"
- DIR_NAME="klb.android.lovelive"
- # APK Link (deprecation)
- #if [ -e /data/app/${APK_NAME} -a ! -e /data/sdext2/${APK_NAME} ] ; then
- # cp -a /data/app/${APK_NAME} /data/sdext2/${APK_NAME}
- # rm /data/app/${APK_NAME}
- #fi
- #if [ -e /data/sdext2/${APK_NAME} ] ; then
- # ln -s /data/sdext2/data/${APK_NAME} /data/app/${APK_NAME}
- #fi
- # DATA-DIR Link
- if [ -e /data/data/${DIR_NAME} -a ! -e /data/sdext2/data/${DIR_NAME} ] ; then
- cp -R -a /data/data/${DIR_NAME} /data/sdext2/data/${DIR_NAME}
- rm -rf /data/data/${DIR_NAME}
- fi
- if [ -e /data/sdext2/data/${DIR_NAME} ]; then
- ln -s /data/sdext2/data/${DIR_NAME} /data/data/${DIR_NAME}
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement