Applications can not run as root. If the "GlobalTime" and "compass" apps are the ones that are available in the development project sample code, I am pretty sure those do work as regular apps, so this is more a problem you need to fix on your device. (And if they don't work as regular apps, hoo boy that really needs to be fixed; there are numerous open GL apps and there is no reason for these particular ones to not work.)
As for the boot animation cmd, this is a low-level piece of code that directly interacts with the surface flinger to show the animation while booting a device, and not designed to work as a regular third party app. It runs before most of the rest of the system is running, such as the window manager, so can't use the regular APIs for its animation. Third party apps can achieve the same thing with the SDK APIs. On Mon, May 31, 2010 at 4:44 AM, manjunath <[email protected]>wrote: > Hi all, > > some of the 3D applications like GlobalTime and compass are not > working for me. when i click on these applications i see a blank > screen. These applications use eglCreateWindowSurface API to create a > new surface. This API is returning BAD_ALLOC error when i check its > error type in JNI. > > same is the case with bootanimation binary. But if I change the > bootanimation to root in the init.rc script I see the API returns > proper value which means my 3D application also needs root access to > make the API work. > > I've gone through some of discussions where they say application is > never run as root and even system server is run with UID 1000. I could > see it in android_filesystem_config.h about the UIDs for android and > related applications. > > > I wish to know how do I make my application as root. I know its a > security issue allowing change in permissions, but the customer really > wants see these 3D applications. Can anyone please help me with this. > > > > Regards, > Manjunath > -- 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.
