juliobuarao / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
0 stars 0 forks source link

autofind tun.ko driver and save into prefs #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Proposal for a feature:
- on first startup try to autodetect the tun.ko driver and set the
preferences (insmod and tun.ko path)

Find the file with the following command (root not required) 
# find /sdcard /system /data -name tun.ko
/system/lib/modules/tun.ko

What do you think?

Original issue reported on code.google.com by christophevandeplas@gmail.com on 5 Apr 2010 at 8:12

GoogleCodeExporter commented 8 years ago
See also:
http://code.google.com/p/android-openvpn-settings/source/detail?r=86651cf1503147
eb8eef77070dc9a995dba71767

Original comment by christophevandeplas@gmail.com on 5 Apr 2010 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by christophevandeplas@gmail.com on 5 Apr 2010 at 9:17

GoogleCodeExporter commented 8 years ago
I like the idea, but i would rather use a pure java solution in this case.
IMHO it would be better not to rely on an external process.

I already implemented a similar method in OpenVPN-Installer which we could use 
(Need
to add the recursion, but that's trivial).
Code is here:
http://code.google.com/p/android-openvpn-installer/source/browse/src/de/schaeuff
elhut/android/openvpn/installer/OpenVPNInstaller.java#440

The find process should run in int's own thread, while a progress bar is shown 
to the
user (even if scanning is be quick). Code for that might also be found in the
OpenVPN-Installer source.

Original comment by friedrich.schaeuffelhut on 5 Apr 2010 at 3:13

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 3:04

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 28 Dec 2011 at 11:27