yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] mthode:
Putting it int that dir will not survive a reboot. I put it in /data/local/modules (I created that dir). I am also using the one click root on boot (so it's automatic) and have a script that insmods it. The script must be saved to /data/local/visionary.sh and chmod 755 (at least 744).

#!/bin/sh

insmod /data/local/modules/tun.ko
​
[G2 and Desire Z Android Development] smasraum:
Yes, you are correct, it doesn't survive a boot. I know just enough to be dangerous, so I created a script in gscript to replace it after a reboot. I looked up the insmod command, it looks like that is a MUCH better option.

Thanks tons
[G2 and Desire Z Android Development] Beheit:
Hi Android Gurus,

I am not a pro in android nor in scripting, I installed VPN Connections v0.99 and followed the mentioned instruction, so now I have Astro file manager installed and I downloaded the tun.ko for VPN. Build by scotty2 and it is on my SD card, don't laugh at me what next?

thanks in advance

John
[G2 and Desire Z Android Development] smasraum:
Do you have root? You have to have root to be able to get this up and running.

It sounds like this is all that's left.

To me, the easiest way to put the file in that location is with adb.

Then you'll need to go to the vpn gui and setup a connection. For that you'll need the vpn group name and password and your username and password.
[G2 and Desire Z Android Development] Beheit:
where shall I put the file tun.ko ? in the root or should I create a directory like /data/local/modules and put it there?
[G2 and Desire Z Android Development] mthode:
I created that directory and put the module in there
[G2 and Desire Z Android Development] LxDroid:
Any one been able to get the openvpn app to work on their G2?
[G2 and Desire Z Android Development] alau1158:
thanks for the file. how did you compile it? seems like it doesn't work for the new ota-ed phone, so i'm assuming it needs to be re-compiled correct?

thanks,

Alan
[G2 and Desire Z Android Development] wayde187:
What does this vpn app do? Not experienced with vpn what so ever. Just wondering if I would find it of use. Thx. Sorry for the noob question.
[G2 and Desire Z Android Development] alau1158:
it's mainly used to connect back into your corporate network or school.
[G2 and Desire Z Android Development] pfunky:
Anyone able to find or compile one for the new outage kernel?
[G2 and Desire Z Android Development] svends:
Here is a tun.ko module build off the vision-2.6.32-g814e0a1 source for the 2.6.32.17-g9ab3677 kernel.
[G2 and Desire Z Android Development] pfunky:
Thank you. Insmod's great, now I just wish I could get the vpn to work. :-(
[G2 and Desire Z Android Development] alau1158:
The trick is you might need to append your domain to it. Try menu -- flag. Type in "--domain (domain you're on)" without the "s
[G2 and Desire Z Android Development] alau1158:
Thanks svends :) I'll give that a shot when I get near a computer
[G2 and Desire Z Android Development] Superfrag:
So using this I can connect to my Penn State WiFi, and then connect to the Cisco VPN they use? Normally I can't use my phone on WiFi.. on laptop I connect using Cisco's client.
[G2 and Desire Z Android Development] dj542:
Not sure how the Penn State network is setup but I'm able to connect to the Cisco VPN server at my office. Also able to connect to AES-Enterprise encrypted WiFi using the built in G2 stuff. You should be good to go.
[G2 and Desire Z Android Development] Superfrag:
Nice! Thanks, will give this a try.
[G2 and Desire Z Android Development] bluegizmo83:
do I need this to use the stock VPN that comes with 2.2? I've been trying to connect to my personal PPTP VPN from my G2 and sometimes it works, sometimes it doesn't. When it doesn't, it says "Server hung up" in the error message after trying to connect.
[G2 and Desire Z Android Development] reycat:
I know this isn't the place to ask, but... could someone compile a tun.ko for the HTC Desire Z? They are siblings, after all...

Thank you in advance. :)
[G2 and Desire Z Android Development] svends:
I can try, if the kernel is compatible with the vision-2.6.32-g814e0a1 source. What is the output of 'uname -a' on the Desire Z?
[G2 and Desire Z Android Development] reycat:
Thank you very much!

Linux localhost 2.6.32.21-gd2764ed #1 PREEMPT (...)
[G2 and Desire Z Android Development] svends:
tun.ko (2.6.32.21-gd2764ed preempt mod_unload ARMv7) is attached. This is untested, let me know if it works.
[G2 and Desire Z Android Development] reycat:
Thanks again. Just tried it. VPN Connections accepted my password and said "Connected", but I wasn't able to do anything in my company's network. And when I disconnected I still hadn't access to the "internetz" and had to reboot.

I'll keep trying when perm-root is (easily) available for the Desire Z. :)

Thanks again for your work.
[G2 and Desire Z Android Development] smasraum:
Thanks, works great with a temp-root OTA phone using VPNC.
[G2 and Desire Z Android Development] bbscool:
HTC desire z on 2.6.32.21-gd2764ed kernel.

insmod tun.ko seems to work, but tun/tap device doesn't really working during openvpn connection session. no data transfer through tun0/tap0...

*I tested vpn connection on windows to killout the possibility of mis-configuration of openvpn...

:confused::confused:
[G2 and Desire Z Android Development] CasseTrop:
Anyone has it for the nightlies kernel of Cyanogenmod ?
[G2 and Desire Z Android Development] zhorx:
tun.ko kernel module for 2.6.32.21-cyanogenmod

Since there was no module available for that kernel, I've cross-compiled one so I can use it. Enjoy!
[G2 and Desire Z Android Development] CasseTrop:
Awesome!!

My friend really needed it and he's a total n00b.
[G2 and Desire Z Android Development] winst:
Mine is Desire Z Hong Kong version. Also tried with the tun.ko, with the same result as you. The openvpn connection, routing, tun0 interface all established ok. Just that no network data can go through the tun0. Can't ping the virtual gateway assigned by the openvpn. :(

Another big problem is, even though I am able able to create symbolic links of ifconfig/route in /system/xbin/bb, the "bb" directory will magically disappear after a period. I think this is due to the security setting of the Desire Z. I make the openvpn binary stored in /data/local/bin, but since openvpn is hardcoded to look for route/ifconfig in /system/xbin/bb, I am forced to write a shell script to remount /system as rw, and re-create the symbolic links in bb. Even worst, I found I got IO error after I have run the shell script several times, the only option I have is to reboot the device.

Gee... I think the stock rom just doesn't work with openvpn. Need a CM6 rom...
[G2 and Desire Z Android Development] bbscool:
Frankly I'd rather keep the stock (original) ROM in my celly... won't take the risk of voiding the warranty... I gave up cross-compiling tun/tap module before the official kernel source code's release cuz that's simply meaningless... I guess I'll try to access my VPN through PPTP for now...:(:(:(:(
[G2 and Desire Z Android Development] winstonz:
Can someone share me tun.ko for 2.6.32.21-gbfa36d9 kernel?
[G2 and Desire Z Android Development] mlevin:
Does anyone have one that works with pershoot's?
[G2 and Desire Z Android Development] adigo:
Any chance to have tun.ko with Virtuous v0.7.2 Rom?

It's sad that I have to choose a custom rom based on if they have tun.ko or not.........
[G2 and Desire Z Android Development] bengali:
same here: desire z, tun.ko loads, openvpn starts, but neither device nor routes come up.
[G2 and Desire Z Android Development] rhonddaboy:
to prove you can pass traffic accross VPN use;

$>adb shell

#>ping -I tun0 <ip other side of vpn>.

if successfull, then VPN is established but android is not sending traffic down the interface. this issue has been fixed with VPN settings application with the 'fix htc routes' option enabled.

regds
[G2 and Desire Z Android Development] Blades:
Yes, pershoot does. Its on the website. I built mine as a module with my own modded kernel. It is tempermental at best on a pptp vpn. I think it has something to do with the data connection going dormant (as in H->3G) and then coming back up. The problem is that it just doesn't want to stay connected. It is not a 'static' time, but it averages 8 minutes.. maybe more.
[G2 and Desire Z Android Development] vuk3k:
HTC Desire-Z OpenVPN no traffic through tun

I'm experiencing the same problem with the HTC Desire-Z that no data traffic is going through the tun device.

I even compiled my own tun.ko with the htc desire-z kernel sources, but no success.

Ifconfig,Route is working after some modifications , because openvpn is looking for these binaries in /system/xbin/bb.

The Tunnel connection is ok, everything looks fine, except there is no data traffic going through the device. :mad:

Everbody who has new facts for me concerning this problem?

Cheers
[G2 and Desire Z Android Development] bengali:
I've got it:

I had to start ifconfig and route manually because openvpn obviously tried to use the ones in /system/bin that point to that weird toolbox-thingy. Now how do I make openvpn use the ones in /system/xbin that are symlinked to busybox?
[G2 and Desire Z Android Development] dnamoyar:
Forgive me, but I don't see it on his website. Could you please link me?

Also, would you know a guide/walkthrough to compile such a module against a kernel?
[G2 and Desire Z Android Development] Blades:
http://droidbasement.com/db-blog/

Kernel:

http://droidbasement.com/g2/kernels/2632/11/boot-cm_2632.27-oc-uv-xtra-neon_fp-121510.zip

Modules:

http://droidbasement.com/g2/kernels/2632/11/lib-2632.27.tar.gz
[G2 and Desire Z Android Development] dnamoyar:
Thanks very much Blades. Would I follow the same steps as on the first page of this thread? Since that was for temp-root'd devices, not too sure if it would be different for a perm root'd device. I'm running CM 6.1.1.

Apologies, I'm a noob and trying to learn as much as I can. :)
[G2 and Desire Z Android Development] daweinst1:
Hey guys,

I'm trying to follow all the posts here and the instructions here:

http://code.google.com/p/get-a-robot-vpnc/ but it's not very clear. Would someone mind summarizing the instructions to getting vpn to work on a t-mobile g2. From what I understand the steps are as follows:

1) root phone

2) install vpn connections from android market

3) download the file tun.ko and put it on the phone (which version of tun.ko? where exactly does it need to be saved on the phone?)

4) configure vpn connections based on individual vpn settings

5) breakdance in celebration of no longer needing a blackberry

Thanks for the help
[G2 and Desire Z Android Development] madmatrix2010:
Hi svends,

Thanks for your work first. I use this tun.ko for my rooted evo. But when I tried to load it like:

insmod /sdcard/module/tun.ko

system gave me "insmod: init_module '/sdcard/module/tun.ko' failed (Exec format error)" error. My kernel version is Linux localhost 2.6.32.17-gee557fd #15 PREEMPT.

I think your compiled tun.ko should work. Did I do something wrong? Thanks a lot for your help. Really appreciated.

Lou
[G2 and Desire Z Android Development] Bronz_Most:
I too got an exec format error. CM kernel version 2.6.32.27 here

Thanks
[G2 and Desire Z Android Development] SuspectDevice:
Same exec format error for post-ota kernel here. Svends version does not work. Can someone post a working tun for this kernel version if u have one compiled and tested for 2.6.32.17-g9ab3677
[G2 and Desire Z Android Development] m.kautenburger:
I have tested all tun.ko on this forum. But when i ismod the tun, there is a exec format error. I have a desire z kernel 2.6.32.21-g132894e !

Can anyone compile me a working tun or teach me how to create?!

greetings from germany
[G2 and Desire Z Android Development] Blades:
It needs to be in /system/lib/modules/ . I actually don't know for sure that it does, I do know that sdcard has oddball perms. For instance, noexec.

Also gcc 4.4.3 gives me errors with modules.

I usually compile tun=y and 'modulize' ipv6.
[G2 and Desire Z Android Development] sandadze:
Is there a tun.ko file available for the kernel version 2.6.32.21-g6e170e7 ???
[G2 and Desire Z Android Development] Blades:
I don't know. But fwiw, I only get 5 mins of connectivity using android's built in vpn client. Exactly 5 mins. Its strange.
[G2 and Desire Z Android Development] speculatrix:
Hi

I have this problem. I have a rooted phone using the modaco 1.72 rom, with kernel 2.6.32.21-g540976a

I can only ping the remote network when I specify the interface, thus...

# ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
^C
--- 10.10.10.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3001ms

root@localhost:/etc/openvpn# ping -I tun0 10.10.10.1
PING 10.10.10.1 (10.10.10.1) from 10.223.40.186 tun0: 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_req=1 ttl=63 time=114 ms
64 bytes from 10.10.10.1: icmp_req=2 ttl=63 time=93.1 ms
^C
--- 10.10.10.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 93.170/103.851/114.532/10.681 ms

please can you explain what you mean by 'fix htc routes' option enabled

I have tried removing and re-adding the routes manually. I have also tried doing this within my chroot'd debian environment.

thanks very much

Paul
[G2 and Desire Z Android Development] speculatrix:
After some googling, I found this:

http://code.google.com/p/android-openvpn-settings/issues/detail?id=35

which kind of explained things.

I used "ip -s route get 10.10.10.1" and it showed it was trying to send the packets over rmnet0, the 3G link, rather than down the tunnel.

I discovered by simply flushing random tables that "ip route flush table 2" fixed the problem for when I am on 3G.

If I want to use openvpn when using wifi, "ip route flush table 1" makes that work too.

Bear in mind that if you're flip-flopping between using wifi and vpn, the vpn server/remote end needs to time out before things will work again properly.

HTH

Paul
[Android Software Development] Tripod87:
Hi Guys,

Not sure if this is in the right section of the forum, but I'm looking to develop an application to test the responsiveness of the touch screen, either when clicking or making a gesture.

I have a pretty good understanding of the Android framework, but have not wrote an app from scratch by myself yet (although I have modified some apps).

I'm basically looking to find/calculate the number of samples returned from the touchscreen in Android when a person has his/her finger on the screen. Can any of ya'll help me get started in the right direction for this? Or perhaps know of any other benchmark tests that are open sourced so I can look over the code a little bit?

Thanks.

edit: So I see that the MotionEvent class would be the most useful and getHistorySize() is close to what I want but is more high level than exactly what I want, although it could be good enough. Any ideas on how I could use this or how to incorporate other functions to help make this work better?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] EdgeOfSanity12:
Hi,

I'm a new bee with it comes to hd2 (I just bought one). WEll the language of the rom was not english so I used HSPL and downloaded the stock rom 3.14 WWE. Now when the HD2 boots, I only see 176.37MB (under storage in memory). :mad: And nothing runs ok except sense. How can get all the memory of the hd2 back?:confused:

Thanks
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] dictator4:
thats usual. i have ~180mb for total storage.

im using a stock 1.66 and i have 180.60mb for total storage.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
i think he is refering to the bug that if you run the 3.14 rom with 2.08.hspl you lose some memory. it is mentioned in one of the 3.14 rom threads, maybe the others too by now.

quote from post 1 in THIS thread
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] EdgeOfSanity12:
ok then I need to put spl back to the phone. Then how can I install WWE. The phone is from netherlands and came with dutch version of WM 6.5. I need to install WWE as I don't know Dutch. :confused:
[Galaxy S I9000 Q&A, Help & Troubleshooting] jean2323:
hi everybody:

strange behavior in browser ... on wifi (haven't tried the 3G), browser works, lots of pages load, including google reader, or google.com ... but if i want to load gmail it will start loading something, but in the end i get an error that the page is not reachable ... cannot reach google docs, buzz loads the frame, but it fails in the end

tried to clear the cache ... nothing happend

anyone knows how i could fix this?

thank u!

PS it might be related to "https" ... pages that require "https" don't load; the rest load google news , for eg
[G1 General] steveluigi:
hello

I have just rooted my G1 and installed the latest Cyanogen rom. it's ace btw.

Just noticed that there is a small icon in the notification bar that looks like a phone shaking? can someone let me know what it is please?

Ta!!

Oops, sorted, it means it's on silent.

Sorry for the waste of web space.
[G1 General] cd993:
lol live n learn eh! :D
[G1 General] k10n9:
This is more entertaining than my tweets lol
[Desire Q&A, Help & Troubleshooting] stoot:
Hello everyone,

before i begin explining my problem this my current phone info.

HTC Desire SLCD screen , simfree

HBOOT 0.93

Upgraded from OTA Update in 15 Oct.

my problem began when i downgraded HBOOT from 0.92 to 0.83 ... when i finished downgrading

i tried to root my device but the rooting processes stopped in the middle and write in the screen ''USB brick'' !

i tried several solutions ... and the last one i updated it via OTA

Now, when i connect it to PC while the phone is running nothing happen. and when i connected it in fastboot it connect normally. Also, FM radio dose not work

Now, i can charge my device in two ways:

1- when it power OFF i plug the cable then in power it ON again.

2- i plug it about 3 minutes then it start charging.

i tried to solve this problem in both linux and Windows ....

how can i run the USB normally and how can i root 0.93????
[Desire Q&A, Help & Troubleshooting] !PANDA:
I'm guessing that the Radio has to be updated, but never saw anything like this so please someone correct me if I am wrong :)
[Desire Q&A, Help & Troubleshooting] rolfd:
Go to the Development sub forum and search for usb brick. You need re-enable your SD card using a fastboot command, then follow the instructions to fix the misc partition.

@ !panda, This was a common issue with the older root methods, and if a flash went bad. It caused what was called the usb brick. You can tell you have it as your SD card won't work, FM radio, and blutooth won't work, and the charger takes ages to register and start charging the device. Also the phone isn't recognised by any PC, it asks for drivers for a qualcomm device.

The fix listed inthe dev forum works a treat though :D i had it myself.
[G2 and Desire Z General] epsilonsun:
So the guys over at MoDaCo (specifically the Admin, Paul O'Brien) came up with a handy little app that will temp root the g2 every time you boot up. You can get it in two versions: Manual and Load on Boot.

I was going to post a URL here but it's not letting me because I'm a new user. I'll seperate it up so it's not URL format and you can just backspace through it.

http: //android.modaco. com/content/t-mobile-g2-g2-modaco-com/320350/14-oct-r2-visionary-one-click-temproot-for-g2/

It's not permanent root, but it's damn close. It should at least appease the masses that want wifi tether and simple stuff like that.
[G2 and Desire Z General] mcp2009:
check the development section bro
[G2 and Desire Z General] smasraum:
Right, the guy over at modaco has a post in the G2 dev section here with his stuff. It worked great for me, but there are some folks that it's not working for.
[G2 and Desire Z General] Halotron:
Tried this and it works great. Make sure you have USB debugging turned on or it will loop forever and need a forceclose. This is good enough for me, for now.
[G2 and Desire Z General] stevencpoynter:
Agree, it's good to see the su screen again.

One thing that I'd like to note that FOR ME the phone seems to stumble a bit upon startup due to the app launching which sometimes causes root only apps not to function correctly. A simple re-launch of VISIONary rectifies this.
[G2 and Desire Z General] xdviper:
Yessir, I'm rooted via Visionary right now as well. Wow superuser had some cool new UI changes over the year and a half while I was with a iPhone. Damn it feels good to be back on Android :D

Can't wait for the perm root to actually use adblock, overclock, and remove photobucket.
[G2 and Desire Z General] epsilonsun:
Sorry about that. I searched the forum before I posted but I only searched the G2 General forum. I thought it was a little odd that it hadn't shown up yet. Nevertheless this is a great app. Barnacle WiFi is working perfectly and that's about all I needed for right now.
[G2 and Desire Z General] SmartHat:
^ This.

and Amazon Mp3 and twitter.
[G2 and Desire Z General] mcp2009:
don't forget some good Cyanogen and Enomther mods
[G2 and Desire Z General] AreOh:
For a first time android user/rooter, is this easy to install? Does it walk you right through it?
[G2 and Desire Z General] havikx:
you can disable the stock apps. its not uninstalling but they become hidden and inactive. theres a thread on it.

in terminal, its

su

pm disable *package name - usually com.*nameofservicehere*.apk
[G2 and Desire Z General] KShatzkes:
Yup, it's easy as pie. Just look up VISIONary in the Android market, download, install, run, and you are good to go!
[Vibrant General] sputnik004:
Been searching for a while trying to find some info on the color depth on the Super AMOLED screens on the Galaxy S line.

Reason being, I have to be very wary of what wallpapers I use on my phone, because many end up looking very bad. You see distinct lines in various gradients as if the color depth of the screen is just very low.

It's a little disconcerting, and confusing, given how great these screens are supposed to be.

For example, there is a new wallpaper Android Central (posted just the other day) featuring their new logo/mascot. The wallpapers looks fine on my LCD monitor on my computer, but when I put them on my phone, I see lines in the background gradient that shouldn't be there. It doesn't seem like the screen can render those 'in-between' colors.

Anyone have any insight on this? Is it in fact the screen? Are other phones like this too?

I did read something about the fact that Android 2.1 maxes at 16bit color but 2.2 remedies this limitation, but I'm not sure if this is accurate, applicable to the situation, or even true.

Thanks in advance.
[Vibrant General] ttabbal:
Download the Acquarium free live wallpaper in the market. The colors look amazing on my phone. There's also the Avatar movie, in the bright scenes the colors really "pop".
[Vibrant General] kanwal236:
Let's hope froyo adds that feature, I've noticed it too on some colors, but its a minor annoyance, I'm sure if android supported larger screen resolution like gingerbread will have, samsung would have put a 1280x720 screen in there. Maybe the S2 ;)

Sent from my SXY-T959