This kind of prompt is for the users’ own protection, and the Android API does not allow developers to disable it. So in short: There is no way to do this legitimately.
solved How can set system preference programmatically let prompt message don’t display?