android pm install and start after

I have an enterprise application on rooted android 5.0 and i have to add auto-update functionality. My idea was to run pm install and am start after, but after pm install runs the linux shell from app is closed and next command woudn’t start. The other way is to make a another app and run app1->app2 (pm install,am start)->app1, but maybe it’s doable without an another app. Maybe someone have a solution ?

Source: unix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.