Device should be OEM unlocked before using dev option. Show dialog to user to perform OEM unlock. This also checks if user has permission to do OEM unlock and it is allowed by carrier. Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk Bug: 295035851 Bug: 320705365 Change-Id: I6470bf7d02424a26621ed67f19f2cd14fa9eea50