On an adp1 or holiday phone running official firmware, you can just System()
the 'su' binary (with no prompts) to do whatever you like.

On JF-modified firmware (or anyone else who installed the "Superuser"
application) that will bring up an allow/deny prompt for the user, but
otherwise works just the same.

On Fri, May 1, 2009 at 3:57 PM, Fan Zhang <[email protected]> wrote:

>
> Hi All,
>
> My question is how to copy a file from sdcard to /data/misc/wifi
> directory?
> I am working on a configuration tool for wiki supporting wpa
> enterprise. The configured file wpa_supplicant.conf must be put in /
> data/misc/wifi in order to work. So how can I move the file from
> sdcard to there? Is there any function calls to request a superuser
> access?
>
> Thank you all!
>
> Fan
>
> >
>

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