forbid ADB install apk through a password pls is there a way to forbid the adb install to install apk into tablets unless there's a password?

Android 5.0 - rooted devices?

thank you
The simplest solution is to turn off USB debugging.  

If you want to disable adb install from computer while enabling USB debugging, you can try XInstaller (Requires Xposed Framework). In its settings you can disable "Auto Install" to prevent ALL kinds of silent installation.