Ignorant_Cormorant
In that case I would, of course.
However I am suggesting that writing, compiling, signing, installing and configuring an app (if installExistingPackage works as we think it works) is much more work than using a single adb command (you can always close Developer Options once you are done) or installing an app in the owner profile and disabling it.
The installation will be one time only, the updates will be pushed automatically by the system.
I think it's too much trouble to write an application so sensitive just to install an apk.
Also, if you follow the aforementioned link, you will find people suggesting other solutions, like cloning the apk (or the set of apks), which is still faster than writing your own app.