Hey all, I am currently working on a project which is as follows, we have a pure native daemon running on the handset. As of now started by the init.rc file, while that's all well and good. Now i am trying to figure a way to pass in some data for the daemon to work with, more specifically the phone number/IMEI or something of the like. Probably as a command line arg ideally. Now these properties are simple to grab through the Java SDK but getting them down to a native daemon is proving tricky..
So far I've tried a few things (shell scripts, etc.) but the most appealing is using system properties, having one which controls the daemons start/stop (much like adb) and one or more that hold the values. The only problem is i can't find a good way of settings these, i know property_get/property_set but these aren't in the NDK same goes for SystemProperties in the SDK. Just wonder if there is a good way to do this without relying on unstable libraries/hidden API calls. If not possible, what would be the best way using hidden api's etc? I know it's bad to use them, but if it's the only option i'm going to need to do it. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting