yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] ru1dev:
I just compiled a tun.ko and got OpenVPN working on the Tmobile Gslate! so I thought I would share:

1- Rooted (thanks to Chandon)

http://xdaforums.com/showthread.php?t=1065882

2- Install tun.ko (Attached below)

download and unzip

adb remount
adb push tun.ko /system/lib/modules
adb shell
chmod 755 /system/lib/modules/tun.ko

Note: This tun module was built for kernel 2.6.36.3+

3- Install BusyBox using BusyBox Installer (from Market)

Install to /system/xbin

4- Install OpenVPN using OpenVPN Installer (from Market)

Install binary to /system/xbin

Install route to /system/xbin/bb

5- Install OpenVPN Settings (from Market)

6- Install OpenVPN static binary:

Download Static openvpn

Un-bz2 the file (7-Zip on Windows | bunzip2 on linux)

adb remount
adb push openvpn-static /system/xbin/openvpn
adb shell
chmod 555 /system/xbin/openvpn

7- Link Busybox ifconfig and route to /system/xbin/bb

adb shell
su
mkdir /system/xbin/bb
ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route

8- Setup OpenVPN Settings (from Market)

OpenVPN settings > Advanced > Load tun kernel module <- turn ON

OpenVPN settings > Advanced > TUN module settings

Load module using - insmod

Path to tun module - /system/lib/modules/tun.ko

9- copy your .conf files to /sdcard/openvpn

REBOOT

CONNECT!~

Extra for SMB mounters : Cifs.ko ! - Attached!

Edit: June 5 '11 - Extra for Asian users : nls_utf8.ko - Attached!
[Upgrading, Modifying and Unlocking] bealesbane:
Well, I'm able to connect to my OpenVPN server now, but there must be something different in the binary..."client.conf: Connected" keeps spamming the notification area. Are you having this problem?

On a related note - I've got a couple other options, if I can get my cross-compiling tools set up correctly...I could use SonicWALL's NetExtender app, but that needs ppp_async and ppp_synctty built. I also wanted to be able to talk to a Windows-friendly PoPToP VPN server, but I suspect I'd need the ppp_mppe.ko built for that.

I tried compiling the whole kernel with the options I've mentioned, but I don't think I did it right...the make went all the way through, but I was using the gcc 4.4.3 eabi set in the SDK/NDK toolset. Since then, I've been trying to set things up according notes I found at K's Cluttered loft ( at triple-w dot (noob html limitation workaround) ailis.de/~k/archives/19-ARM-cross-compiling-howto dot HyperText Markup Language ) but start encountering problems when I try to build glibc...do you know of any instructions/tutorials which might help to educate this n00b (aye, that be me) in the fine art of ARM cross compiling?
[Upgrading, Modifying and Unlocking] ru1dev:
Yeah I have that spamming problem too .. always have with the honeycomb tablets.

I used 4.4.0 eabi, and had to hard code the localversion in the setlocalversion file and absolute path to the eabi modules in the makefile to get it to cross compile

I built and attached the ppp_async.ko , ppp_synctty.ko , ppp_mppe.ko for you (I did not test a insmod as I built and tested the cifs and tun on a friends tablet - do let me know if these work!)
[Upgrading, Modifying and Unlocking] bealesbane:
That's great! Thanks for putting those together. All of the modules you created insert fine with insmod (this version of busybox still has an issue with modprobe running on this tablet, suspect may be related to self-referring parameter, but hope to experiment more later) with the exception of mppe. That one comes back with "insmod: init_module '/system/lib/modules/ppp_mppe.ko' failed (File exists)".

This, however, may not be due to the module itself, strictly speaking. The other two, which are presented by SonicWALL as a workaround to their proprietary VPN app, inserted fine, but still produce an I/O error when a connection is attempted...closer inspection of the app's log reveals a similar complaint under the hood:

06-01 08:01:36.848 I/NetExtender.ppp( 8207): Nxhelper: start pppd main routine

06-01 08:01:36.858 D/NetExtender.ppp( 8207): using channel 1

06-01 08:01:36.858 E/NetExtender.ppp( 8207): Couldn't create new ppp unit: File exists

06-01 08:01:36.858 I/NetExtender.ppp( 8207): Nxhelper: pppd hung up, notify the service

My off the wall guess, pending further investigation, is that inserting mppe, or trying to initialize the other two, results in an attempt to create a device handle which is not being properly enumerated? ( i.e., attempting to create an instance of /dev/ppp, which already exists, instead of a new handle, say, /dev/ppp0, ppp1, etc.) Again, just theorizing blindly at this point - but you've certainly given me a great deal to work with, and I say thank ya big big.

I'll update you with any progress I make here, but at least for the time being I still have basic connectivity to one of my networks, and I can do much with that. And the cifs module works a treat as well!
[Upgrading, Modifying and Unlocking] bealesbane:
In the meantime, a simple script allows me to toggle the VPN on and off without being annoyed by the spamming...then I add a widget to the script using ScriptManager (from the market) and viola! Look ma, no hands!

#!/system/bin/sh
BB="/system/xbin/busybox"
VPN="/system/xbin/openvpn"
TUNDTL=`$BB ifconfig tun0 2>&1`
RESULT=$?
if [ $((RESULT)) -eq 1 ]; then
$VPN --config /mnt/sdcard/openvpn/client.conf --daemon MYVPN
else
VPNPID=`ps openvpn | grep "^root"`
VPNPID=`echo $VPNPID | cut -d" " -f2`
if [ $((VPNPID)) -gt 99 ]; then
$BB kill -KILL $VPNPID
fi
fi
exit

(Just for anyone who doesn't want to wait until OpenVPN Settings gets a bugfix for Honeycomb. Obviously, adjust locations as needed. Oh, and don't give the script a name that starts with "openvpn"...unless you WANT a kamikaze script. This simple script obviously wouldn't work for multiple tunnels, (if they're even supported), but it does ya fine for the basic config.)
[Upgrading, Modifying and Unlocking] ru1dev:
awesome idea for the spamming .. sadly I have 8 openVPN servers I switch between so i have to put up with the spamming.. any idea what the reason of the spamming is? maybe contact the dev?
[Upgrading, Modifying and Unlocking] bealesbane:
The source for the app is available at 'code.google.com/p/android-openvpn-settings'. The issue has been reported already by a few people (issue 70), but it looks like there are quite a few other issues reported, so no telling if or when Mr. Schäuffelhut will have a chance to review it. It seems like it would be a good starter project for a would-be contributor...I haven't done any java developing, but it seems like it would be easier to isolate our issue and tweak it than bloat my simple script to allow multiple PIDs to be tracked and toggled...though the latter is certainly possible, and after I get my second OpenVPN server online (Audiogalaxy offline for better part of day yesterday, need to make myself independent of that), if the Java is too daunting I just may do so. So many tempting projects, so little time.
[Upgrading, Modifying and Unlocking] aureole999:
it's very helpful, thanks very much!!

but could you compile nls_utf8.ko too? please
[Upgrading, Modifying and Unlocking] deez1234:
You should try and come up with a working recovery!
[Upgrading, Modifying and Unlocking] ru1dev:
Bealsbane way to go man, that is far more code than I could figure out! now i feel like i owe you a beer! haha .. I tried the code but it helps to have a gui currently .. i although do have alot of Java experience and possibly you and I could get a new OpenVPN Settings/Installer for gingerbread/honeycomb based devices!

once again thanks!
[Upgrading, Modifying and Unlocking] ru1dev:
Added to the first Post .. please test it and let me know if it works! good luck!

edit: tested by aureole999 and confirmed working
[Upgrading, Modifying and Unlocking] Bling_Diggity:
Excellent work ru1dev. I just added this thread to the G-Slate XDA bit.ly bundle. Would you mind if I posted a link to it over on G-SlateFans?
[Upgrading, Modifying and Unlocking] ru1dev:
Go ahead as long as it is a link back to the OP. Thanks for spreading the knowledge
[Upgrading, Modifying and Unlocking] salmanaman:
please dont bash me as i know im a little off topic but hi everyone i have a major issue with my rooted gslate.if anyone can help it would be greatly appreciated. i downloaded cw from the market and when it askes you for compatibility i accedently chose the option (lg optimus 3d) thinking it was for my gslate and now after i turned off the gslate and go to turn it back on its stuck on LG blackscreen and says

[HasValidKernelImage] Magic value mismatch:

[DetectOperatingSystems]kernel image is invalid !!!

Starting Fastboot USB download protocol

Ive looked all over the internet and cant find anything to help me out so please can someone help me.

maybe a way to nvflash the proper kernel back.
[Upgrading, Modifying and Unlocking] jomnoc:
tun.ko checksum

Hi guys, can anybody please post the md5sum output of the tun.ko? even though im using the same kernel, i cannot load the module on my g-slate. thanks
[Upgrading, Modifying and Unlocking] ru1dev:
md5 - 3daf2d134dc2ae6c4a40fe3d8ac49344
[Upgrading, Modifying and Unlocking] jomnoc:
Thanks! I have 6707fd6a79cc849d13e8dd4016f96028 .... ideas? can you upload your file? Thanks again
[Upgrading, Modifying and Unlocking] ru1dev:
yes that is the md5 for the tun.ko .. in a rush i gave you the md5 for the zip of the tun.ko previously. are you sure you are running kernel 2.6.36.3+

it has to be exactly that kernel..with the '+' on the end
[Upgrading, Modifying and Unlocking] jomnoc:
yes i am. or i was haha.. it was a friend's tablet. but it certainly had that kernel version. thanks for the help. if i get it again i may ask for help ;)
[Upgrading, Modifying and Unlocking] aureole999:
can I use these files on 3.1 ?
[Upgrading, Modifying and Unlocking] changngocvtc:
Is there any rom compiled tun/tap driver for LG Optimus 3D P920 (Thrill)???

---------- Post added at 09:05 AM ---------- Previous post was at 08:59 AM ----------

please someone help
[Upgrading, Modifying and Unlocking] Guntert:
lg g slate

Can I get androild 4.0 to work on this tablet
[Milestone XT720 Android Development] Mioze7Ae:
Update: Resolved to my satisfaction: http://xdaforums.com/showpost.php?p=14323192&postcount=8

The egl.cfg we've been using:

1 1 android
0 1 POWERVR_SGX530_121

is functionally equivalent to removing the software renderer:

0 1 POWERVR_SGX530_121

Original post:

......................................................................................

So, we've been running /system/lib/egl/egl.cfg set as:

1 1 android
0 1 POWERVR_SGX530_121

This tweaked egl.cfg essentially disables hardware rendering and substitutes software rendering. The default setting is

0 0 android
0 1 POWERVR_SGX530_121

We do this because this was reported to be much, much faster by just about everyone and I will admit to also experiencing this improvement. However, I've recently run 2.1 and honestly it really puts our 2.2 to shame. Additionally it's never made any sense that the software renderer would outperform hardware acceleration. It makes more sense that there's something wrong with our graphics libraries and that's why software rendering wins. Or we were mistaken in believing things were faster.

In my work-in-progress ROM, I've updated graphics libraries (for other reasons) and then I tried disabling the tweak and performance seems much improved and much closer to what I see in 2.1 (FYI, for some reason I had to wipe dalvik-cache after making the change or boot got stuck, but that could be unrelated).

So, the question is: are the updated graphics libraries the reason it works or was changing egl.cfg a mistake?

Can some adventurous souls try going back to the defaults and report whether they really think the software render really is faster? Please post which ROM you are testing on. If switching egl.cfg back to defaults makes things worse, we can then try whether updating the graphics libraries to the versions I'm testing helps.
[Milestone XT720 Android Development] fjfalcon:
RusMod,usyng egl.cfg as soft renderer.

In next version i will try to move egl.cfg to default from 2.1 and will ask people - how it feeling.

For results will post here.

btw, afaik defy uses same video accel?

p.s. http://xt720.fjfalcon.ru/Mods/rusmodv1.14.zip

RusMod users haven't noticed much problem(all usyng fastboot kernel)

But in quadrant when going test with2 planets - scores shows like in 2.1.
[Milestone XT720 Android Development] reverendkjr:
I wondered how long it would take for this to come back up. I think that the difference between hardware and software based encoding on our phone is more of a question of "What else is being affected?"

Obviously, there isn't too dramatic of a difference in the overall performance or people would have been screaming about it way back when we made this change. I am more concerned about the possibility of other things, such as battery life or video performance being affected by these settings. Is it possible that other things are being hit? Who knows. I always knew that this change was merely cosmetic, a way to boost quadrant scores.

Mioze7Ae, I switched mine back and have been tinkering with it since. I have not noticed a significant difference. It actually seemed a bit choppier. If you have a test build with new libs, I would be willing to try it out for a while and see if I can break it. :D

I forgot to add:

I'm running galaxyXTv4. I didn't like the way epicsteelblue looked. :)
[Milestone XT720 Android Development] Mioze7Ae:
I also notice it is slightly choppier sometimes but on the other hand the software rendering to me feels sluggish and the hardware rendering feels more responsive. For example scrolling: open something with a long list and throw the list up and down. The software rendering seems to slow this down and lag a bit, but the hardware rendered flows faster and seems to stay underneath my finger. The 3D program list in ADW Launcher is noticeably faster and smoother.

Anyway, as you wish here's the work-in-progress. ;)

http://www.multiupload.com/HYUZG4E3BZ

It's a larger rework of Dexter's 1.3. It's based on an analysis I'm doing where I compare which files change and which files remain identical between Motorola's XT720 2.1, Motoroi 2.1 and 2.2, and Milestone 2.1 and 2.2 releases in order to make predictions about which versions of these files should be on Milestone XT720 2.2. It's a full ROM that applies as an update instead of a nandroid image. I switched the 2nd-init hijack to the simpler bin/sh_hijack.sh+etc/rootfs one that is used on Milestone instead of the mot_boot_mode+lw+lw2+ramdisk.tar method. Not included are the init.d scripts--so the governors, overclocking, ext partition, swap, moving dalvik-cache to /cache are "do it yourself" for now. I'm porting the CM6 scripts to implement that, but they're not ready.
[Milestone XT720 Android Development] khankuan:
How is the battery life doing Mioze7Ae? And thanks for fixing, will try this weekend when im free. =)
[Milestone XT720 Android Development] Mioze7Ae:
Honestly, I haven't had that ROM running long enough to have an opinion about its battery life. ;) It's quickly evolving and I keep flashing back to an earlier version that's about half-way between bugfix-3 and this version for my everyday use. There's still a lot I need to do with this ROM before I'm ready to "move in" and dogfood it. :D Anyway it's my feeling that disabling the egl.cfg tweek improves performance on this ROM.

In the mean time, if changing the egl.cfg back actually makes things worse on current ROMs, we can see about testing just these specific libraries in those ROMs. There's just so many of them. I'll see if I can make a library patch for galaxyXTv4 for reverendkjr to test.

Which one do you run?
[Milestone XT720 Android Development] mchlbenner:
Hi been useing the rus.mod and it has without error something could not say before very good build.
[Milestone XT720 Android Development] reverendkjr:
I flashed dexter's 1.3, then I installed your update. I'll run it for a while and get back to you on my results. A couple of items though. First, the camera apk doesnt work. I tried deleting and reinstalling, but it will not. Also, Milestone Overclock refuses to load. I am wondering if you have experienced anything along these lines yet.
[Milestone XT720 Android Development] Mioze7Ae:
Yeah, none of that works yet. It's probably not worth playing with extensively yet. I've only just started getting into the libraries. When it's closer to usable I'll post another.
[Milestone XT720 Android Development] reverendkjr:
I changed my egl to

0 1 POWERVR_SGX530_121

completely removed the android line. I was surprised to see that was even possible. I also managed to get the Milestone Overclock v. 1.4.1 to run on this and OC to 1ghz. I was thinking about trying

1 1 android

0 0 POWERVR_SGX530_121

since it doesn't look like that was tried yet. I'll do that later. I have been running the all day and do believe there is a level of "snappiness" that the other versions do not have.
[Milestone XT720 Android Development] reverendkjr:
Not much of a difference. I went back to

0 1 POWERVR_SGX530_121.
[Galaxy S I9000 Q&A, Help & Troubleshooting] SmoothGuy2000:
Hey all,

I updated my phone to 2.3.3 via Samsung Kies and did a factory reset.

So, I synced my contacts from Facebook via adding the SNS account, everything worked fine but I needed to add phone numbers to some of the contacts. Considering you can't edit Facebook contacts, I ended up creating a new contact to phone with the number and the name exactly the same and then using the 'Join Contact' to merge them.

The problem #1:

When I click new message, I can click the 'contacts' button and everyone with numbers are listed. I go to an untouched Facebook contact (With a number assigned to it automatically from Facebook) and click add but it still has an empty field saying 'to'. If I add one of my merged contacts, the number is displayed and it works fine.

#2

When a Facebook contact text messages me, only their number shows up, like its an unknown number which mean I have no idea who it is even though I have them as a contact. I go to that persons contact profile and the number that is assigned to them is identical, so why doesn't it show the contacts name?

If I go to the contact and swipe my finger to the left so it 'messages' them, in the 'To' field is their number only, no contact name.

Last but not least, no contact pictures show up in my Messages, even though they have Facebook pictures assigned to the contact

Can anyone help at all or at least point me in the right direction to solving this myth?

Thanks a lot everyone for helping me.
[G Tablet Q&A, Help & Troubleshooting] sudeep_itbhu:
Hello,

I just bought a GTab and am really excited about it. However, I am not particularly happy with the wi-fi range of the device. It goes to zero bars barely 15 feet away from the router. Did anyone else face similar problems? Let me know
[G Tablet Q&A, Help & Troubleshooting] Nullunit2000:
Yup. I lose a bar just by turning my chair away from my router. No solution so far.
[G Tablet Q&A, Help & Troubleshooting] sudeep_itbhu:
Thanks, How long have you had the device? Did you contact Customer Service?
[G Tablet Q&A, Help & Troubleshooting] nunjabusiness:
Could be your router. I have no problem using my tab anywhere in the house and out on the patio with a crappy old D-link.

I don't get a full signal, but it is enough to stream my music and browse fine.

Google "cantenna" and you will find a cheap and easy way to extend your range.
[G Tablet Q&A, Help & Troubleshooting] TJEvans:
This is actually one thing that amazed me about the g-tablet. I Took my g-tab to my mom's house and logged into their unsecured Linksys router. It worked fine, no issues whatsoever. My mother lives a block from the church where I serve as an elder (roughly 50-60 yards away...) I took my g-tablet to a meeting one evening, opened the case, and found that I was already connected to network. I hadn't had a chance to set up the church's network yet...the Tablet actually automatically connected to my mother's network. The signal isn't the strongest, but I hadn't expected ANY signal whatsoever. It works fine in every room of my house as well.

I ended up setting up the Church's network, but the g-tab still automatically connects to my mother's when I'm anywhere near there. My Pastor said that it's because the church's router is has protection and that typically linux based devices tend ot take the path of least resistence. I'd prefer if it checked for the strongest signal, first, though.
[G Tablet Q&A, Help & Troubleshooting] mike_ekim:
I agree it soundls like your router unless you got a leamon. My router is in m livingroom and my gTab drops only one bar when it is in the bedroom, meaning the wifi signal is going through the bathroom to get there, through 2 walls and maybe 15 feet, no line of sight.

When it is charging in the kitchen the signal goes 20 feet and through one wall, again no line of sight, and if I position the tablet just right I can get no bars dropped.

I have a wifi-g router, Westell I think (whatever wifi router Verizon sent me lol). I haven't tried the gTab outside yet, but my daughter's iPod tough can get a weak signal in the back yard and the router is in the livingroom at the front of the house.
[G Tablet Q&A, Help & Troubleshooting] rajeevvp:
Well, Mike, this is where the materials used in buiding construction might make a difference. :)

If sudeep_itbhu is here in India, then the WiFi signals have to pass through dense brick or stone walls to reach his gTablet. In the US, the signals might just have to pass through things like wood or plaster which won't absorb the signals as much. I've brought access points from the US to India only to have it fail miserably because of our brick walls.

sudeep_itbhu, you could try boosting the "Transmit Power" on your wireless router or AP. You can usually change that setting via a browser if you connect to the router.
[G Tablet Q&A, Help & Troubleshooting] TJEvans:
Of course, my signal is going (from my mother's 100+ year old house to the 80 year old church lounge) through one interior wall, one exterior wall aluminum siding, 50 - 60 yards though a couple trees, power lines all around, through the brick exterior church wall, and through an old wood interior wall and I'll still have a signal. A weak signal, but still a signal.
[G Tablet Q&A, Help & Troubleshooting] mike_ekim:
I just went into my back yard and from about 65 feet away from the router (no line of sight) I was able to surf the web on wireless g. I get 3 or 4 bars everywhere inside on the same floor, 2 bars right outside the house, and it drops to 1 bar by the time I hit the trees. It's wet, I'm not going any further today. :)

It's just another data point to help you figure out if you have either a bad router signal or a bad tablet, because at 15 feet the gTab is able to get a great signal with an 'no frills' router. Everyone else seems to have similar experience.

@rajeevvp: Agreed. I got the impression he had a bad signal at 15 feet with a direct line of sight, but I may be mistaken.
[G Tablet Q&A, Help & Troubleshooting] halloweenprince:
mine works fine but the only problem that annoys me is that the wifi is always automatically turned off (especially when I turn the screen off and leave it idle). When I turn the screen back on, I need to go to settings and turn the wifi on. is there any ways to solve it?
[G Tablet Q&A, Help & Troubleshooting] stolly23:
wifi dropping

I am having the same problem with my wifi not automatically reconnecting after going to sleep. This happens if the tab is off for an extended period of time. I am running vegan 5.1.1. Any ideas???
[G Tablet Q&A, Help & Troubleshooting] sudeep_itbhu:
thanks for your replies, I think I might go and get a replacement and check that out. The range of my device is about 15 yards through a couple of walls. I am in the US.
[G Tablet Q&A, Help & Troubleshooting] rajeevvp:
Set your "WiFi sleep policy" to "Never" in Settings > "Wireless & networks" > "Wi-Fi settings" > menu key > "Advanced", and see if that helps.