I have a broadcast receiver in a app which uses my permission com.myexample.permission.MY_PERMISSION
.
I am able to send the broadcast using
se
If my answer here is not what you are looking for, try pm grant PACKAGE PERMISSION
:
"development"
level when define
com.myexample.permission.MY_PERMISSION
in your app, like android:protectionLevel="signature|development"
pm grant com.android.shell com.myexample.permission.MY_PERMISSION