Re: [android-developers] Re: Application as root
Hi All, I got the following message in the phone log while installing CMdroidapp.apk D/AndroidRuntime( 1277): --- registering native functions --- D/ddm-heap( 1277): Got feature list request D/PackageParser( 71): Scanning package: /data/app/vmdl24900.tmp E/PackageManager( 71): Package *com.android.CMdroidapp has no signatures that m atch those in shared user android.uid.system*; ignoring! W/PackageManager( 71): Package couldn't be installed in /data/app/com.android. CMdroidapp.apk D/dalvikvm( 71): GC freed 35954 objects / 1783808 bytes in 86ms D/AndroidRuntime( 1277): Shutting down VM D/dalvikvm( 1277): DestroyJavaVM waiting for non-daemon threads to exit It looks like we need to include android:siignature attribute in the manifest file. Diannne, Can you please let me know the procedure to register my own application with the platform cert of that system which gives me access to the system permissions. Regards, Jitendra Kumar On Wed, Mar 31, 2010 at 12:43 PM, Dianne Hackborn hack...@android.comwrote: On Mon, Mar 29, 2010 at 3:46 AM, a2ronus aaron.jan...@gmail.com wrote: Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Not for a third party app, which is what this group is about. Of course if you are building your app into the system, you can do a lot of things and signing it with the platform cert of that system gives you access to the system permissions. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Application as root
I'm trying to run the factory application i.e. GlobalTime where one EGL API eglCreateWindowSurface is used. The Vendor provided EGL library call is only working with root access. It is not a third party application. Also the SystemServer initiates SurfaceFlinger. In this case the above EGL API is working fine in SurfaceFlinger. I believe this is because SystemServer is started as root. Regards, Manjunath On Mar 29, 3:46 pm, a2ronus aaron.jan...@gmail.com wrote: Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Thanks in advance. On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote: You can't as a third partyapplication(in fact you can't at all without hacking the platform or possibly running in factory test mode). Modifying the platform is more appropriate for android-porting. On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.comwrote: Hi, I want to run aapplicationasrootto check one of my API functionality. I know that Android won't permit applications withroot access i.e. setting UID = 0. Can anyone provide a hack so that I can run myapplicationasroot. I saw in Process.java file that FIRST_APPLICATION_UID is set to 1 and so on. If I set it to 0 my homescreen doesn't come up. Can anyone tell me where this security check is done. I also want to know the actual flow for anyapplicationto run on android. Thanks, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Re: Application as root
On Mon, Mar 29, 2010 at 3:46 AM, a2ronus aaron.jan...@gmail.com wrote: Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Not for a third party app, which is what this group is about. Of course if you are building your app into the system, you can do a lot of things and signing it with the platform cert of that system gives you access to the system permissions. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Re: Application as root
SystemServer does not run as root. On Tue, Mar 30, 2010 at 11:51 PM, manjunath phc2h5nh3.ma...@gmail.comwrote: I'm trying to run the factory application i.e. GlobalTime where one EGL API eglCreateWindowSurface is used. The Vendor provided EGL library call is only working with root access. It is not a third party application. Also the SystemServer initiates SurfaceFlinger. In this case the above EGL API is working fine in SurfaceFlinger. I believe this is because SystemServer is started as root. Regards, Manjunath On Mar 29, 3:46 pm, a2ronus aaron.jan...@gmail.com wrote: Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Thanks in advance. On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote: You can't as a third partyapplication(in fact you can't at all without hacking the platform or possibly running in factory test mode). Modifying the platform is more appropriate for android-porting. On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.com wrote: Hi, I want to run aapplicationasrootto check one of my API functionality. I know that Android won't permit applications withroot access i.e. setting UID = 0. Can anyone provide a hack so that I can run myapplicationasroot. I saw in Process.java file that FIRST_APPLICATION_UID is set to 1 and so on. If I set it to 0 my homescreen doesn't come up. Can anyone tell me where this security check is done. I also want to know the actual flow for anyapplicationto run on android. Thanks, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application as root
Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Thanks in advance. On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote: You can't as a third party application (in fact you can't at all without hacking the platform or possibly running in factory test mode). Modifying the platform is more appropriate for android-porting. On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.comwrote: Hi, I want to run a application as root to check one of my API functionality. I know that Android won't permit applications with root access i.e. setting UID = 0. Can anyone provide a hack so that I can run my application as root. I saw in Process.java file that FIRST_APPLICATION_UID is set to 1 and so on. If I set it to 0 my homescreen doesn't come up. Can anyone tell me where this security check is done. I also want to know the actual flow for any application to run on android. Thanks, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.