Good lord, please don't run a big piece of C++ code as root.  We designed
things to have very very little code running as root, to keep the exploit
surface area small.

Also we strongly strongly discourage people from writing their apps with
such a structure, where they for a separate process.  The system is not
designed to be used this way, and it won't manage these separate processes
correctly.  Currently it doesn't do much with them, but probably in the
future it will get more aggressive about killing and cleaning them out of
the system.

On Sat, Mar 26, 2011 at 5:43 PM, arvind <[email protected]> wrote:

> Hi All,
>
> I have an NDK application(written in C++) packaged as an executable
> and deployed in android. I also have a Java apk file in the
> application layer. Now my NDK app does some processing and outputs a
> string of data in the format "name = value". Basically the output from
> NDK looks like this:
> name1 = value1
> name2 = value2... Now i want each of these name value pairs to be
> passed to java application one by one. Currently i am writing the
> output from NDK to a file in sdcard and the java app reads from the
> file. But i want to use an IPC mechanism which is devoid of explicit
> file writing and reading and instead use something like sending and
> listening to a socket. I am not sure what is the best way of passing
> message between native code and java. Also i am not using JNI
> interface as i have some issue with root permissions as the C++ Native
> code runs as root userid and Java apk runs in application level and i
> can't combine both of them. Please give me suggestions on how to
> perform IPC between native code and java apk. I am using android
> developer phone 1 as the device.
>
> Thanks,
> aravind
>
> --
> 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
>



-- 
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.

-- 
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

Reply via email to