FLAG_SYSTEM means the app was originally installed on the system image. If your app is pre-installed, and an update is installed from Market, FLAG_SYSTEM is still set for the updated app.
On Tue, Jul 19, 2011 at 8:08 PM, dan raaka <[email protected]> wrote: > I have a app with versionCode=1, pre-installed on the device (ie. the app > is placed under /system/app partition) > Then I post an app updated, versionCode=2, on the android market and the > user download the updates the app. So, the updated app on the device is > located @ /data/app > > Under this scenario .. will the below piece of code properly detect that > the app is a system app ? > > if((pkgInfo.applicationInfo.flags & > ApplicationInfo.FLAG_SYSTEM)!=0){ > isSysInstalled = true; > } > > -Dan > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

