I was just wondering if there was a way to create a Context Object outside of an application/ in a separate process? Currently I start a class's main() method using app_process and su which works great (but like input.jar, am, pm, etc). To access the APIs I need to I reflect on ServiceManagerNative and obtain IInterface references. My intent is to create an application on the Android Market for rooted users that has access to what would otherwise be system APIs.
I have tried reflection on ActivityThread and calling systemMain() and getSystemContext(), but these do me no good. The issue I get is below: E/RootTools(13487): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Finally, I have tried calling the main() method of ActivityThread prior to this, but my process crashes then as well: W/ActivityManager(179): No pending application record for pid 12622 (IApplicationThread android.app.ApplicationThreadProxy@41a27038); dropping process Am I trying to do something impossible, or is there a way on a rooted device to start an Activity/ Service with the ROOT_UID so that any permission enforcement gets ignored? -- 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

