eMAPT certificate

Hi all,

I just finished all lessons for this course. I have done all the labs. Even learned myself to create apps since that is asked by eMAPT. Though the only thing I cannot figure out is how to create a button that does an adb shell content insert command.
I have figured out how to do bash commands through you app, but the useraccount that runs the app does not have the authorization to perform these commands. This is the case with my rooted OnePlus 3 and a emulator from Android Studio.

Does anyone know how to perform those Content Insert commands in a app?
I really hope someone can help soon since i want to do my eMAPT soon.

With kind regards,