I am trying to install an app on android 4.1.2 using adb shell. This is an app in development which works well on higher android version placed under /system/priv-app/ directory. So this is what I am doing
su
mount -o remount,rw /system
cat /sdcard/myapp.apk > /system/app/myapp.apk
chmod 644 /system/app/myapp.apk
reboot
Before reboot i verified the file was placed under /system/app with correct permissions. When the phone reboots my app seems to be getting cleared from /system/app directory and i don't see it there anymore. Any clues?
I got the problem, this is happening because HTC One Android version is 4.1.2 and the API used in the app are supported on version 4.4.3 or above. So when android is rebooted it is not able to launch the app properly and hence removes it.