I found that for all sytem apps ApplicationInfo.FLAG_SYSTEM and PARSE_IS_SYSTEM(PackageParser) flags are set. And based on the value of this flag, further actions are taken. I want to know where and when this value is set. I m investigating it, but in vain as of now. Ultimately i want to set these flags for my application (user- application) so that it exploits the privileges of the system app. Please help folks..
Thanks in advance, From: Dianne Hackborn <[email protected]> Date: Thu, 3 Dec 2009 16:53:38 -0800 Local: Fri, Dec 4 2009 5:53 am Subject: Re: Where are the flags corresponding to the System App's set?? Reply | Reply to author | Forward | Print | Individual message | Show original | Report this message | Find messages by this author You can't do that. The flag means that the app is part of the system image. You don't get to make your app be a part of the system image if it isn't. This is done in PackageManagerService and PackageParser. Unless you are going to be contributing code, please move any further discussion to android-porting. Hi, Thanks for your response. Correct me if i m wrong, but since i have the complete source code i should be able install an application as a part of the system image, isn't it so? After more investigation i see that one major discretion between user apps and system apps is the availability of the permission "signatureOrSytem" to the system apps. This is present in the manifest file present in the frameworks folder. Should the new application that i m developing have something special in its manifest file to avail the protLevel 3 (signatureOrSystem) ? Or anything extra to be added in the make file (Android.mk) file ? The main.mk file says that : "# For most goals, anything not tagged with the "tests" tag should # be installed in /system. define should-install-to-system $(if $(filter tests,$(1)),,true) endef " Is this of any use to my problem ?Please help me understand this. Thanks in advance -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
