If you still don't have the source codes of your target Android image. This method helps (for me) in checking if your app will work when it becomes a system app.
Very simple, just type this command:
adb shell pm grant <package> <permission>
e.g. adb shell pm grant com.sample.proj android.permission.DUMP