title: How to bypass permissions on a rooted device?
body: <p>I am creating an android app for media box. The box is <strong>rooted</strong>. I have to bypass permissions (run time permission too) because user will not be interacting with the device. I tried to push the apk in <strong>system/priv-app</strong> folder also to make it system app. Still, whenever my app is launched, it asks for permissions. Is there any way to bypass permissions in rooted device? I have used following commands to push the APK to priv-app folder.</p>
  
  <pre><code>adb remount
  adb push apk-filename-here /system/app/
  adb shell chmod 644 /system/app/apk-filename-here
  adb reboot
  </code></pre>
  
  <p>App seems to be like system app because it is not uninstallable now. But permission problem is still there. Is anything extra required to be done to grant all permissions? Please help.</p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/13726583/bypass-android-usb-host-permission-confirmation-dialog/48528507">bypass android usb host permission confirmation dialog</a> also but this seems to be a very old story now.</p>