yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] rogabean:
Just noticed you PM'ed me too, sorry about that.

I should have time this afternoon to put up everything I have/know as long as work stays slow. I will just update this post with the info.

OK here is all my info I was able to collect. It's not a walkthrough , but it does contain all relevant and maybe some non relevant info pertaining to using your compiled tun.ko module for OpenVPN on the MyTouch 4G. Since I essentially was playing with and testing and not documenting as I did it.. I can't really say the order I did any of this. I probably spent a good 5-6 hours working on it.

Begin:

2.6.32.21-g899d047 (stock) perma rooted and S=OFF

Stock ROM, no major modifications other than what is noted above and running a higher LCD density.

busybox 1.17.1 - I had an older version initially, which was installed from another app (the above LCD density changer I believe). I installed 1.17.1 using "BusyBox Installer" from the market from Stericson.

/system/xbin/bb/route -> /system/xbin/route

/system/xbin/bb/ifconfig -> /system/xbin/ifconfig

symlinks created as follows (as root)

su

cd /system

cd xbin

mkdir bb

ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig

ln -s /system/xbin/route /system/xbin/bb/route

OpenVPN Installer was used which installs OpenVPN version 2.1.1

Binary installed to /system/bin/openvpn

ifconfig/route I told it was in /system/xbin/bb <- note that you should experiment with this. This is what worked for me, but you can also try /system/xbin if you did not issue the link commands, but this did not work for me. The stock ifconfig/route will NOT work!

OpenVPN Settings

Load tun kernel module is checked

load module using - insmod

path to tun module - /sdcard/openvpn/tun.ko

path to configurations /sdcard/openvpn

path to openvpn binary /system/bin/openvpn

Fix HTC Routes is checked

(*note though that I do have this module in this directory as well - /system/lib/modules/tun.ko - I'm not going to mess with anything right now to see if this is having any effect as I don't wish to mess up my setup)

I do need to sometimes utitlize the Fix DNS option when turning on the VPN at times (I'm using a UK VPN so this may/may not have something to do with it)

If you connect and do not see an IP address in the notification - it's not working. You can verify this by checking if the tun0 interface is up or down. If it's not working the interface will be down. Manually bringing it up will not make it work.

Notes of interest that may or may not have contributed to this working. I'm unsure and it's pretty critical right now to me to have this working this week so I don't want to change anything and risk it to stop working. While I was trying to get this going I installed the following apps from the market related to OpenVPN:

OpenVPN GUI

OpenVPN for Galoulas ROM - I knew this wouldn't work, I wanted to see what it was doing

EvoVPN - This app displayed the same behavior as OpenVPN settings when I connected and now does work.

End.
[myTouch 4G Android Development] Whatnissan:
Ok I set it up exactly the way you have it and Im back to square 1. I connects for a second ith a FATAL ifconfig cant exicute external command. all over again. Same set up as you I have no idea.
[myTouch 4G Android Development] rogabean:
Did the bb folder already exist before you created the symlinks?

Try deleting it and remaking it yourself then creating the symlinks.

I double verified mysetup.

I also went ahead and pulled the trigger removing the three apps I listed above. My setup is still working.

Make sure you symlinks exist

cd to /system/xbin/bb

run ls -l

you should ONLY have those two files and should see they point to /system/xbin/ifconfig and /system/xbin/route

I really would try deleting and recreating the bb folder and then redoing the symlinks

It goes without saying but make sure you are root. :)
[myTouch 4G Android Development] Whatnissan:
yea I swear im telling you I did it lol. I created the bb folder myself I did it a few times im making a rom right now as well My phone is giving me a hard time with with a writing to boot error also. Yea I have like 4 different naindroids that I have that I use for testing and I created a few more to screw around with I tried it on 2 of them and no dice.
[myTouch 4G Android Development] Whatnissan:
I just re did it again failed to exicute exteral command

Im having other issues with my device aswell img going ti reflash a new hboot tm
[myTouch 4G Android Development] rogabean:
Can you execute ifconfig in terminal from that directory?

Is no one else trying/using this?

Would like to see if it's working for anyone else besides me.
[myTouch 4G Android Development] clamder:
i will try this tonight. i've been looking for a way to connect to my cisco vpn at work, so i'll give it a shot.
[myTouch 4G Android Development] sfcf:
I pretty much gave up on compiling my own tun.ko or using yours.

I just ended up throwing CM on the phone which has the tun built into the kernel. Then used the VPNC app to connect to a cisco VPN. Everything seems to be working good for me.
[myTouch 4G Android Development] Whatnissan:
ok did mine not work??? did you try??? what happend??
[myTouch 4G Android Development] sfcf:
Sort of... What happened was I was on the CM ROM/kernel (I don't like the stock one) and it couldn't get yours to work. So I downloaded the CM kernel source trying to compile it based on the instructions in your post and realized that the tun module was already compiled in the kernel so I didn't need to do anything.

So I got the vpnc package and that worked perfectly with my work's cicso VPN.

Side note though, got an email at work saying that device is not allowed on the network so I can not longer mess with it...oh well.
[myTouch 4G Android Development] Whatnissan:
Well im the admin at my work im trying to set this up with possable future use
[myTouch 4G Android Development] signal15:
I started getting openvpn set up a couple of months ago, but then realized that no tun.ko module was on the phone and there wasn't one available. Thanks for this!

Can this be set up to autoconnect if you're not on your home/work Wifi, and then bring down the VPN when you have Wifi connection to your private networks?

The problem with all of the phone VPN stuff (not just Android) is that it's a manual process to bring it up and down.
[myTouch 4G Android Development] Whatnissan:
So you got it to work ok then
[myTouch 4G Android Development] Whatnissan:
Could you post what you did please??
[myTouch 4G Android Development] rogabean:
I running through backing up and trying this again on my phone so I can give you better steps/confirm I can recreate what is working for me and possibly be able to give you an image to compare against.
[myTouch 4G Android Development] Whatnissan:
Ok the fact that I cant thank this post is gay. You myfriend are awesome I just got it working with my custom kernal it was a problem with my symlinks thanks sir. It blows me away cause I checked them and rechecked them but now im running iced glacer with my custom kernal and bam it works now. I will be releasing my own rom soon with all this set up already to make it easer for people if they wish. thanks man.
[myTouch 4G Android Development] rogabean:
Had a feeling it was those symlinks. Glad its working. :)
[Fascinate General] jbreakfield:
Can someone give me the steps to do this on a rooted Galaxy S i500?

Thanks.
[Captivate Q&A, Help & Troubleshooting] sixk:
Hi

I couldnt find anything on this on the search thing.

But my question is

Is there a way to open the Korean Market?

I am using MarketEnabler but they dont have any settings for Korea.

Please help.

Thank you guys in advance.
[myTouch 4G Q&A, Help & Troubleshooting] pdxrealtor:
Is there way around loosing all of the HTC widgets when installing launcher pro.....namely the beautiful widget?

I have the beautiful widget .apk but I don't think it will work as well as the mt4g stock version.

Also, I had to un install launcher pro to go back to using the sense UI. I tried using home switcher without any luck.
[myTouch 4G Q&A, Help & Troubleshooting] cal3thousand:
I think the stock HTC widgets will not work as they require HTC framework and code in the Launcher to utilize it. i.e. you have to use Espresso Launcher for them to work.

As for installing and uninstalling Launcher Pro... I have no idea as I use ADW and can freely switch, although I never do.
[myTouch 4G Q&A, Help & Troubleshooting] pdxrealtor:
Thanks.... wish the "faves" button and the "genious" button could be changed..... a side from those "features" I don't mind the sense UI.
[myTouch 4G Q&A, Help & Troubleshooting] ericbell4am:
If all else fails you can always clear defaults in settings.

Menu -> settings -> applications -> manage applications -> all -> (find your current launcher) touch it -> press the "clear defaults" button

The above also works for your internet, messaging, etc

-Cheers
[myTouch 4G Q&A, Help & Troubleshooting] esincho:
Purchase launcher pro plus, it had most of the htc like widgets
[myTouch 4G Q&A, Help & Troubleshooting] corwest:
Except the flipclock which he likes...
[myTouch 4G Q&A, Help & Troubleshooting] esincho:
The old fancy widget looks exactly like the htc clock. That's why they had to change it. Its easy to find on the net.
[myTouch 4G Q&A, Help & Troubleshooting] JWhipple:
Doesn't do the flipping action like the HTC one does. In fact, I believe only the newest versions of the HTC clock actually flip. I ran the HTC flip clock on my Desire ported ROM on the N1 and it didn't flip there either.
[myTouch 4G Q&A, Help & Troubleshooting] pdxrealtor:
Thanks.

Not only does the newest HTC clock flip, when it rains a windshield wiper wipes your screen. When it's cloudy your screen clouds up. Pretty neat effects i thought.

I .got over it though. Ive had weatherbug elite for a while so im back to using it with launcher pro and aquarium live wallpaper.

I like a nice clean screen..... so those large iphone like icons combined with no customizable dock had to go.
[myTouch 4G Q&A, Help & Troubleshooting] sicdroid:
Beautiful Widgets are the exact same thing. Clock and the Weather animation. Comes on everytime you unlock also.

:)
[myTouch 4G Q&A, Help & Troubleshooting] VolcanicSkunk:
The newest FancyWidget Pro is the closest thing I've found to replacing the HTC Clock Widget. FancyWidget Pro is awesome though! Super customizable and it can display the battery percentage right on the widget! I've switched to LPP and FW instead of mySense. Only thing LPP needs now is a News/RSS widget and it'll beat Sense hands down!
[Galaxy S I9000 Q&A, Help & Troubleshooting] akurit:
I want to reflash my phone back to JH2 without having to use odin so as a result i was wondering if Stock JH2 was ever compiled into an Clockword Recovery Mode type update.zip file.
[Galaxy S I9000 General] STEKAM:
Hey guru's

before the first release of froyo, i downloaded a version of froyo and using odin I put it in my sgs.

Now that the official froyo for belgium is release I wanted to use the official.

But kies say there is nothing to upgrade do you have any advice ? should i downgrade ? should download the fw somewhere and then do the upgrade...

thx for the help
[Galaxy S I9000 General] nwsk:
Flash back to an official firmware (whatever you had before you changed to froyo)
[Galaxy S I9000 General] cristid:
Use this tool

http://xdaforums.com/showthread.php?t=835628
[myTouch 3G, Magic General] mxb:
Hey guys. When i type getprop ro.cid in Terminal it doesn't show anything. However, when i type only getprop it does give me a list, but ro.cid is not in it. It's ro.carrier = Voda Spain. Do you think this means it's from Vodafone Spain? The phone is rooted and i installed almost all the roms for 32b i could find.

Thing is i'm trying to install the original rom to test if camera works with it. Because it doesn't work with any roms that i installed. It gives me 2 messages for different roms, one being "Activity Camera ( in application Camera) is not responding" and i have to Force close. For other roms gives me "Sorry. the application Camera(process com.andoid.camera) has stopped unexpectedly. Please try again." I've searched google but i found no answers that resolved the problem.
[myTouch 3G, Magic General] 5[Strogino]:
Unfortunately, HTC closed own distribution site, that you can find info about distribution (region) of your phone.

Last hope, try to enter serial number at HTC Spain site to download

http://www.htc.com/es/SupportDownload.aspx?p_id=246&cat=2&dl_id=882

If it finished with success - you have Vodafone Magic Spain...

p.s. move this thread, it's not development
[myTouch 3G, Magic General] mxb:
Any chance it doesn't finish with success? I mean is it possible that serial number would work and the update would not? I will need to Goldcard then, no?
[Sony Ericsson XPERIA X10 Mini] Soulj4h:
Hi,

I used to use appbrain for downloading apps which are not available in the stock android market but ever since google update the android market it appears that I can't use appbrain even after uninstalling updates and clearing the cache. Simply speaking, I want to be able to see all apps that are available in the market whether it's for froyo, paid, region specific, or what not. So, does anyone have a solution to show all apps in the android market?

I did do a search on the internet and I got a hold of this: droidxforums.com/forum/droid-x-hacks/5501-build-prop-edits-great-battery-life-fast-phone-full-market.html Has anyone with an xperia x10 mini tried this or something similar? Thanks.
[Android Software Development] avatart0ph:
I do not know anything about game development.

I am trying to develop and android game but my problem is the graphic/display part.

I have the code for running the game already but my UI is just awful. Im just using textviews and buttons

I need a dice (3D if possible). but 2D is also ok..

Where should I begin???

Can anyone give me a really really simple code for making 2D games?

or any link out there that is very simple to follow?

Thanks
[Android Software Development] t3chnlx:
take a look at the lunar lander example or snake demo on google's developer website
[Android Software Development] rastanthology:
For 2d take a look at andengine and its examples, it is an opensource 2d open gl es framework, its very usefull, coder friendly and it will work 10 times smoother than canvas on java...
[Galaxy S I9000 General] AllGamer:
that doesn't make any sense at all, the phones screens are super strong and anti scratch out of the box from factory without any add-on.

if you cracked yours like you described, you must to have put it over a very hot surface, or with saline/acidic solution.

i've seen the video where the guy repeatedly intentionally drop the screen with no problem, until he tried to smash it over 1.5m high, anything less than 1.0 drop is safe for the screen.

i can see why samsung doesn't believe you, as it's physically imposible for it to break in the way you described it.

all that aside, if you can find a replacement screen, usually it is a plug and play piece.

i've done many of those on my old Treo and Blackberry phones, the SGS will be no different.
[Galaxy S I9000 General] Taifuuni89:
Replying to AllGamer's post. I had just taken my galaxy off my battery charger. So the phone was pretty hot. I believe that there was some defect or tension on the screen. The cracking started from the corner of home button.
[Galaxy S I9000 General] yrizan:
Im not sure about this.

My 2 weeks old phone dropped from the sofa and down at the floor today. About 50 cm and landed flat on the floor with the front first. Screen cracked all over, phone still usable though.

I´m ordering a replacement package. To much hassle trying to arguing against samsung or the shop i bought the phone in, stating the same as a bow.

But the lesson is, be careful people. The screen cracks surprisingly easy.
[Galaxy S I9000 General] maesebit:
And here did I stop reading.

You don't even know what MS-Based and MS-Assisted stands for, and you think you can work out what the problem is?

Really. Thank you for trying, but changing the settings is no solution.
[Galaxy S I9000 General] Brownstone:
maesebit: Care to help then?

BS...
[Galaxy S I9000 General] dangrayorg:
Actually I can't find any decent quotable source. That said I may be slightly embarrassed as I come up with this:

What is MS-Assisted mode of operation?

In MS-Assisted mode, the network elements calculate the location of the device. This mode is suitable for one-shot fixes, wherein the location does not need to be updated frequently.

Back To Top

What is MS-Based mode of operation?

In MS-Based mode, the network provides the satellite information to the device, based on a rough estimate of where the device is located, and the device acquires the GPS signals from the satellites and calculates its location. After the initial fix, the device operates like an autonomous GPS receiver, until the satellite information must be refreshed, at which time the device goes back to the network to update the satellite information. MS-Based mode is appropriate for applications that require the device location to be updated rapidly, such as a navigation application.

Back to the OP again.....

Peer review, ain't it a *****.
[Galaxy S I9000 General] maesebit:
I wish I could. But I can't provide you with a better antenna.

I'm just pointing out that this thread is not offering any solutions to the problem, and never will, unless it adds some sort of hardware modding tutorial.
[Galaxy S I9000 General] t1mman:
If you don't have corrective information, just P*SS OFF...

You've trolled every GPS related thread out there, with no information what so ever and only whinning about how your life sucks without GPS... I guess you must be hitting the walls in your place without a descent GPS eh?

It is specified by the OP that he "assumes" it stands for X and Y. This is speculative but still, this is at least someone trying to DO SOMETHING else than whine pointlessly and troll everything...

What did you do to make it right? Did you concact your reseller, did you contact samsung, did you tip any news site with the information?

As for the informations, this is what MS stands for:

Yesterday my GPS started going totally berserk on me... I usually have a good track, better than I used to have with my HTC Vogue to track my workout but wierd thing appened yesterday, got me this track:

http://sportypal.com/Workouts/Details/776945?key=121d6fcdae3e1f2a69d349083a6f18affae9cd0a&ms=0

So I've disabled WiFi, rebooted the thing and it was still inacurate...

http://sportypal.com/Workouts/Details/776280?key=f7ae25b101afde4752bfd15d940e289ef8c4b8c4&ms=0

Better still, but unusable to track jogs

So I went ahead and strted GPS Status to clear and redownload A-GPS data and did a small test

http://www.google.com/maps/ms?ie=UT....436748,-71.004682&spn=0.005479,0.013894&z=17

I've played around in here and crossed the street a couples of times... I would say it's within 2 meter accurate of my real position and no weird jumps...

Still, this was a small 5 min. test. I'll check it out when I get another jog but it seems like the fix was more stable.

I know AGps is only used for the first fix, and shouldn't affect the accuracy once fixed, but what if (this is speculation, it should need further investigation) the GPS status accuracy issue was more likely caused by a lost and retreival of a fix? In this case, the fact that the fix was lost/regain would mean that the aGPS would affect the accuracy as it is constatly regained.

Any way to force disable the AGps overall?
[Galaxy S I9000 General] bilboa1:
It wouldn't be folish to belive that Samsungs engineers used MS for another meaning, they're often not very good in English.

I'm curious of the possible effects of moving the internal GPS antenna. Aka opening the phone, moving the antenna far away from other components and testing the GPS with default settings. Sometimes does wonder.
[Galaxy S I9000 General] xpcomputers:
That doesn't mean that the OP settings don't work best on our phones in real world testing. Has anyone proved which setting is best?

MS-Based = Mobile Station Based.

MS-Assisted = Mobile Station Assisted.

Standalone = no A-GPS used at all?

From this page, we can see that "Mobile Station" (MS), refers to the GPS receiver, ie the phone itself in this case. Therefore MS-Based means the phone itself computes the location with a combination of data from the GPS signals and the A-GPS server. MS-Assisted, means the phone sends it's GPS data to the server for the server to calculate the location for it. Standalone presumably means that the phone doesn't ask the servers opinion (is that correct?)

The point is that the OP was running a series of guesses based upon their experience of testing the device in the real world and trying to make sense of the data they saw. Therefore unencumbered by ideas of which should be "better" they have gone purely on test data. This might go against knowledgeable instincts, but doesn't mean it is wrong... even if the explanations of "why" are miles off!

If you have something to offer, then please DO carry on reading past the bit that was wrong, and see the bigger picture. Do the settings mentioned help or not?

I seem to remember that my phone was set to standalone when I got it, and someone trying to help suggested I switch to MS-Based, which I did, but I've had problems since then. I'll try it back on Standalone for a while and see if it helps! Maybe the A-GPS stuff is still part of the problem on this unit, and it performs better in standard GPS mode? Or maybe we can find a better server to use for the assistance?

Mike
[Galaxy S I9000 General] maesebit:
Hey, I actually published a track showing how the GPS performs well when used in open spaces, and awfully when it's sorrounded by stuff like buildings.

I guess that's more helpful for investigation pourposes than blaming the world for not being alligned with the Galaxy S' GPS, as others do. XD

No offence, but all this thing about recording tracks and looking for miracolous configs is starting to be ridiculous. You might notice slight improvement by doing so. But it won't be enough.

So, sorry for bringing people's hopes down, but if the GPS could be fixed by simply changing some settings Samsung would have already done that. You know, even their useless engineers could be able to do that in 6 months time.
[Galaxy S I9000 General] dangrayorg:
I'm going to come to maesebit's defence. I was talking arse about MS nav and he called me on it. The wandering behaviour which I had put down to INS could easily be caused by having a base-station try to DF you and pass that position back (doppler shift maybe? That would explain why it keeps you moving for a while until it decides that you have stopped.)

Actually it doesn't make any difference. The loudest cry in this forum seems to be for 'MS-Assisted' which is precisely the wrong mode.

They're not well named modes, given that MS-Based is actually assistive while MS-Assisted is actually based - quite counter intuitive!

I know it's cheeky but I'm going to keep ammending the OP because I think it's important that that paints a picture of what can be done. Simply put I'm under no illusions that Samsung will do anything about this because it needs a hardware fix so it's for us to look at the 'art of the possible'.
[Galaxy S I9000 General] maesebit:
MS- Based and MS-Assisted is standard tech slang. But who know. They could be changing the achronyms meanings. Maybe they could be using "GPS" as "Great Piece of ****" instead of "Global Positioning System" too.

As of changing the antenna placement. That'd be interesting. Anyone dares to give it a try? We could also try to attach an external GPS antenna to the phone and see what happens.