You should post such questions on android-porting; this group is for
programming with the SDK,  (That said, if you are really trying to run as
root, it isn't easy -- the system intentionally runs very few things as
root.  The easiest thing to do is implement your code as a shell comment,
and run it from the shell after doing an "su".)

On Fri, Jun 19, 2009 at 10:10 AM, Simon <[email protected]> wrote:

>
> I was trying to run an added native application inside the framework,
> which should be executed by a JNI impl which I included to
> libandroid_runtime. So far so bad.
>
> I used servial approches to run a command:
>
> - ret=execl("myapp", "myapp" , NULL);
>
> - property_set("ctl.start","myapp")
>
> I copied myapp to /system/bin/myapp to ensure that it will be in the
> path. But what ever I did it was never executed. I checkt the uid for
> the JNI process wihich is always   system(1000).
>
> Does anyone know a solution for this problem?
>
> Greeting Simon
>
> >
>


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