I think that when one of the first things to come to mind about having the freedom to easily modify your apps is "security risk", something very wrong has happened to computing society.
Apps are sandboxed. To inject something you need to plug a phone into computer with ADB.
Plus you need to remount the moment you want to actually do write actions to protected areas of the phone.