adb install does the equivalent of: adb push yourapp.apk /some/temp/location/yourapp.apk adb shell pm install /some/temp/location/yourapp.apk adb shell rm /some/temp/location/yourapp.apk
regarding (3), I think the package Manager monitor changes in those folder and is able to automatically install apps pushed there. But this pre-dates "pm install" I think and is not guaranteed to keep working, and should not be used. Xav On Wed, Apr 7, 2010 at 8:01 PM, Chi Zhang <elecpa...@gmail.com> wrote: > Hi everybody, this is my first post ever. I hope this is not a stupid > question :-) > I noticed that there are three ways to install an app in an android device: > 1. adb install <some-app> > 2. adb shell && pm install <some-app> > 3. you can manually push the apk file to /system/app or /data/app > Are there differences among these three methods? > I used to believe that the android package manager keeps a list of apps > installed on the device, and thus can quickly locate an app for intents. > But option 3 above seems to suggest that it doesn't. So what does `adb > install' really do? > > -- > Sincerely Yours, > Chi Zhang > > elecpa...@gmail.com > College of Computer Science and Technology, Zhejiang University > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using "remove me" as the subject.