How to get the accesss on /data/misc/vpn folder (Permission denied)?

by ADPool » Wed, 05 Jan 2011 03:46:58 GMT

Sponsored Links
 Hell everyone,

I am working on an applicaiton that requires to access VPN setting
information, howevery I am encountering a permisison denied issue whne
the application accesses VPN setting on /data/misc/vpn folder (Android
2.2 OS), can anyone help how to resolve this issue, did I miss any
users-permission setting in AndroidManifest.xml? /data/misc/vpn/profiles/
4599898380687054558.pobj (Permission denied): /data/misc/vpn/profiles/
4599898380687054558.pobj (Permission denied)

Here are the users-permission setting in AndroidManifest.xml now:

    <uses-permission android:name="android.permission.WRITE_SETTINGS" /
android:name="android.permission.WRITE_SECURE_SETTINGS" />

Thanks in andvance,



Re: How to get the accesss on /data/misc/vpn folder (Permission denied)?

by Kumar Bibek » Wed, 05 Jan 2011 03:54:20 GMT

 Some folders will always be private. You cannot just hack into those folders
without rooting your phone.

In short, there is no way.

Kumar Bibek 


Sponsored Links

Other Threads

1. Multi threading in android

I am new to android and i was doing some application which might use
multi threading.
For example the application threads might do as follows assuming 2

Thread 1
Even if the overall application runs on foreground thread one should
run at all times listening for specific sms;
Imagine the sms to be Intercepted is "3456" when this message is sent
to the phone then thread one will be paused
and thread 2 will be activated:

Thread 2
When thread to is activated then it will use gps to track the location
of the phone and will use instance of smsManager to send back the
coordinates(log, lat) of the phone or even if possible google map back
to the phone which sent the message "3456" and then thread one will be

****How to make this happen any idea?

I know user must know that this application is running on the phone at
all times.



2. surfaceCreated() and CreateSurface() in camera preview application

I have some questions regarding the code below for camera preview
applicaiton.  I am hoping someone can help me out.  Thanks in advance.

1.   How does surfaceCreated() and CreateSurface() relate?  Is this
surface created via createSurface() from SurfaceFlinger client to
SurfaceFlinger server?  If so, there must be
2 buffers (frame buffers from display driver if there is hw
acceleration or if it is the emulator, it will be from ashmem)
associated with this surface: surface BB (for composition)
and surface FB (for display).  Am I correct?  Can you please confirm?

2.  How does the rendering buffer (frame buffer BB and frame buffer
FB) get allocated in the camera preview application?  Are they
allocated by the application?

3.  How does this surface relate to the preview buffers?  Are the
preview buffers allocated by the Camera Service during startPreview?

private class CameraSurfaceView extends SurfaceView implements
SurfaceHolder.Callback {
       private SurfaceHolder mHolder;
       private Camera camera = null;
       public CameraSurfaceView(Context context) {
           mHolder = getHolder();
       public void surfaceCreated(SurfaceHolder holder) {
           camera =;
           try {
           } catch (Exception e) {
               Log.e("Camera", "Failed to set camera preview
display", e);

Thank you very much for your help.


3. Change Android Language

4. android list targets FAILS

5. System.loadLibrary - Loading the Motorola Droid library

6. ADT Plugin for Eclipse on Ubuntu 9.10

7. Exchange AS support