For adb shell pm grant. I've already enabled USB debugging(Security settings) and with 'sudo' prefix but keep facing grantRuntimePermission. After "enable viewing attribute" and try again, it works.  