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?

java.io.FileNotFoundException: /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" /
    <uses-permission
android:name="android.permission.WRITE_SECURE_SETTINGS" />

Thanks in andvance,

ADPool


-- 



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
 http://techdroid.kbeanie.com 
 http://www.kbeanie.com 







-- 


Sponsored Links


Other Threads

1. Calling close() on a Cursor that's backing a ListView

Seems a bit weird to me. For example, if you are maintaining a cursor
pool (and so do not know how a given cursor is being used), you need
to be careful about which thread you call close() on.






-- 

2. Animations and Threads

Hello,

with AnimationDrawable I can handle animations well. But this class
doesn't pay when I use a thread which draws on the canvas because it
has no sense to draw with AnimationDrawable to the background of a
View when there are a lot of animations to draw (http://
developer.android.com/intl/fr/reference/android/graphics/drawable/
AnimationDrawable.html). So my guess is it to not use
AnimationDrawable but to read every single png file in an array of
BitMaps and draw the right offset to the canvas to the right time.

Is there a better way to use animations with threads?

Regards.

-- 

3. Retrieving PackName from RecentTaskInfo

4. Hard to describe ... How to quickly scan through all rows?! How to pass a cursor between two activities?!

5. Beda new radio dan old radio pada Magic

6. AsyncTask : java.util.concurrent.RejectedExecutionException

7. combining 1.5 and 1.6