- Non-Rooted Phone
- ADB
Instead of using adb shell pm set-install-location which would fail with
Security exception: Package android does not belong to 2000
java.lang.SecurityException: Package android does not belong to 2000
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:5288) ...
use
adb shell settings put global default_install_location 2