yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Insane Devil:
Hi guys,

For all those who are looking for having your private domain mails pushed to your phone, without having an Exchange setup, GMAIL does it!

Here is a step by step guide for adding POP/IMAP mail accounts into your GMAIL account and therefore getting the mails pushed to your phone.

Only thing is that the mails take around 15-20 minutes to come through, as GMAIL fetches your POP/IMAP mails into its server every 15 minutes.

http://www.androidcentral.com/using-gmail-your-own-personal-push-mail-server

---

Next alternative is using SEVEN MAIL! this is a brilliant app, very very easy to setup, and gives you mails in 5-10 minutes max!

here is the page where they have a direct download link for the SEVEN app

http://techie-buzz.com/mobile-news/seven-a-push-email-client-released-on-android-2-1.html

and above all, like Gmail, its also FREE! :)
[Android Software/Hacking General [Developers Only]] autotrademark:
I have to agree with you. How could google let us down? :( the email app is crap.... I miss iphone email client but i hate APPLE
[Android Software/Hacking General [Developers Only]] germanbonduk:
Problem push mail motorola Razr

Hello i just got my razr 3 days ago is running 2.3.5 I just notice that i dont get my emails on time i have to keep refreshing every-time i happen either with gmail app nor email app i try to modify the settings but is not too much to set i try to delete the gmail update and still the same problem, i have also a blackberry and the emails goes straight away to my blackberry and after 30 or 40 to my razr which is very annoying i want to get rid of blackberry, Somebody knows how to fix it? thanks
[HD2 General] TrekkerJmm:
Hi all, does anyone know what tables has to be changed in the "AudioPara3.csv" using MS Excel to raise the volumes up LOUD. I'm kinda hard of hearing and need all the volumes raised including the BT volume. I already tried the "Full Boost" cab and .CSV file from this forum but its still not as loud as my old TP2 was...Thx...Tj
[HD2 General] TrekkerJmm:
Hmm Anyone?
[HD2 General] Snarksneeze:
Bump... (I wanna know too! :D)
[HD2 General] TrekkerJmm:
Double "Bump" ...lol...Tj
[General Questions and Answers] bi.stevie:
Hi,

i screwed up my HTC Touch Diamond 2. I uninstalled a program and after that when boot is stuck in an orange screen that says Windows.

I have tried a hard reset holding both - + volume keys and turn on the phone it displays a message exactly like this:

____________________________

Step 3 error while updating :

File operate : File does not exist.

Restart the machine?

___________________________

________________________YES

I tried all the keys but nothing appears to be a YES.

Help! What I can do?

Stevie
[General Questions and Answers] Aegishua:
Don't panic too much.. just flash a new ROM and you should be fine..

Instructions:

Put a ROM for your Touch Diamond 2 (look in the Touch Diamond ROM Section) onto an EMPTY SD Card. name the ROM topaimg.<cant remember>

Then from there, hold the volume down button and press the red RESET button on the back of the phone. Install the new ROM and it should be okay from there.
[General Questions and Answers] bi.stevie:
How to press yes?

Hi,

Thanks for your help. Your idea seems good but I do not find a way to press the yes that my first screen is demanding.

My HTC is a chinese one that does not have red button.

Thanks

Stevie
[General Questions and Answers] Purple Drama Llama:
That's your problem their! We don't know anything about it because their are so many models out their. The process the member mentioned may not work for yours.
[HD2 General] simoran2:
I have my HD2 synced with our work exchange account - this means i am required to have a 6 didgit numerical passcode enabled to unlock the phone. I have had the phone for a week now and twice i have gone to unlock it only to enter the password and it not be recognised. Getting the password 'wrong' 10 times means the device is wiped back to the stock. As you can imagine this is highly annoying!

I am running the latest energy rom - has anyone else had this problem and know how i fix it?
[HD2 General] simoran2:
Any ideas? Is this a common problem?
[HD2 General] Demon_man:
yes if you searched you would of seen a few threads,

but yes is a common problem mate, sorry no help really lol

oh yeah like DN41 said
[HD2 General] DN41:
do you use swype?

DN41
[HD2 General] simoran2:
swype is installed on the rom but i dont use it - just stick to the stock keyboard. Apologies - what should i search for for previous threads?
[Desire Android Development] richardtrip:
Copy the update to your sdcard and apply the update with the recovery-console (sudo ./step2.sh from latest method)

You need OpenVPN Settings from the market (Friedrich Schauffelhut) and load the module from the following location: /system/lib/modules/tun.ko (see attached screenshots).

There's a different kernel in Modaco Custom Rom so we need a new module version. (2.6.29-82821fb5).

Openvpn from MCR kitchen lacks some cypher-algo's so i couldn't use that.

I left the busybox binary out in the MCR version.

If any of you have dns problems please use the "OpenVPN settings" provided setting for that:

Long press your connection config and change the Preferences.

happy tunneling.

HTC Desire stock kitchen = vpnupdatedesire_2.6.29-97da29ed-signed.zip

MCR kitchen (dont use openvpn from kitchen) = vpnupdatedesire_2.6.29-82821fb5-signed.zip

uvoc version =	vpnupdatedesire_uvoc-signed.zip
[Desire Android Development] patomas:
Can I use the file and method to put tun.ko in system folder as required from vpnc?

Thanks
[Desire Android Development] richardtrip:
The file tun.ko wil be copied to /system/lib/modules/ if you apply this update. Don't know if vpnc can load the module or that you need to load it before you start vpnc (OpenVPN Settings can load the tun module on startup). You could always load it from commandline: adb shell insmod /system/lib/modules/tun.ko
[Desire Android Development] xcyb0rg:
vpnc works

I can confirm that vpnc works OK with this tun.ko module. Thanks Richard.

For the moment the get-a-robot-vpnc application does not work out-of-the box on Desire, but this is another issue.
[Desire Android Development] patomas:
Which vpnc works ok? I can't load tun.ko, at least with insmod
[Desire Android Development] richardtrip:
see this post :hxxp://android.modaco.com/content/htc-desire-desire-modaco-com/307667/cisco-vpn-client-on-htc-desire-short-howto/

Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
[Desire Android Development] patomas:
Thank you. I've seen it and already tried, it works perfectly! Now I can use Rdp client. The Android one is so much better that the windows mobile's one!
[Desire Android Development] jayshah:
Works perfectly, thank you.

Note to anyone who comes here, if you get an error about being unable to allocate the TUN/TAP device dynamically, it's because the insmod changed but the app. doesn't warn you. Check the paths and/or insmod manually to fix.
[Desire Android Development] richardtrip:
thanks,

There's also a new openvpn + tun.ko version for the Modaco custom rom r1 kitchen online.
[Desire Android Development] Tsjoklat:
Should busybox be included inside this openvpn update too?
[Desire Android Development] richardtrip:
the modaco rootedupdate.zip doesn't provide busybox. Just to make sure i put it in.
[Desire Android Development] richardtrip:
There's a new version for MCR without busybox binary. See first post.

Tested on MCR3 and working without any problem.
[Desire Android Development] richardtrip:
New version for uvoc kernel posted.
[Desire Android Development] Jaev:
I get the error you mention in OpenVPN Settings, but I am not sure I understand what to do. Can you please be a little more specific.

When I try to load the module in terminal I get this error :

insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)

Thank you.
[Desire Android Development] jayshah:
Sorry, changed = failed (must've typed on the Desire with auto-correct kicking in).

Try and insmod it manually

insmod /system/lib/modules/tun.ko

as root. If that fails, check it's actually there.

If all else failed, extract the tun.ko from the zip, push to sdcard and run

insmod /sdcard/tun.ko
[Desire Android Development] richardtrip:
What rom are u using? It looks like a wrong module for your kernel version.
[Desire Android Development] chemstar:
hi richard,

yesterday i flashed r4 modaco rom on my desire and have seen that they use 2.6.32.15-g99cb4fa kernel version. can you provide a tun module for this ver?

many many thanks
[Desire Android Development] lnxtux:
If the version is in fact 2.6.32.15-g99cb4f2, you can use the one attached.
[Desire Android Development] mw0cqu:
struggling to find the "latest method" here folks!

can someone post a URL please ?

jumping between here and modaco following threads is confusing the living bejeesus out of me trying to solve this one !

Many thanks in advance

Rob
[Desire Android Development] jwickers_1234:
Anyone working on a 2.6.32.15-g1fc4045 version ?
[Desire Android Development] jwickers_1234:
Nevermind i just did: see http://xdaforums.com/showpost.php?p=7279670&postcount=1818
[Desire Android Development] gripped:
route not added

Hi

I have openvpn and openvpn settings installed. I'm using Modaco r6 and the openvpn update linked to above.

Its connects to the remote router ,Openvpn-settings show the key go white, but then the phone continues to use the original route to the internet.

One thing of note, Openvpn settings shows the name of the config file and then

Connected to xxx.xxx.xxx.xxx as

should it not say as something ?

My client config is

My routers config is

If I run openvpn manually from a adb shell I get

Is this line showing the problem ?

Tue Jul 27 03:22:45 2010 UDPv4 link local: [undef]

ifconfig (while connected) shows

ifconfig tap0 shows

I have read about adding commands to push the route settings from the router end but admit I am stuck atm.

This is my second attempt at this and I seem to be stuck at the same point. I'm going to Spain in two days and was hoping to watch UK TV through tvcatchup !

Any help appreciated.

(just thought to add - busybox has ifconfig and route - )
[Desire Android Development] gripped:
Bump.

Sorry but I'm going tomorrow.

Any ideas ?
[Desire Android Development] pagubg:
Any chances to get tun.ko working for 2.6.32 kernel? I have tried with module from 2.6.29 kernel, but with no luck.
[Desire Android Development] georgemv:
You should push the default route through openvpn gateway, which is kind of tricky.

Try adding

push "route 0.0.0.0 128.0.0.0"

push "route 128.0.0.0 128.0.0.0"

to your server config.
[Desire Android Development] FloHimself:
Did you try "redirect-gateway" in your client conf?
[Desire Android Development] pagubg:
I have read this thread more carefully and found the 2.6.32 driver. Sorry about my previous post :)

The other helpfull thing was the routing tables, this is a real problem with 2.2 ROM(s).

# ip ru del table gprs

or

# ip ru del table wifi

slove it. It just depends which connection you are using (data or wifi).

Thanks to all people who makes this research about openvpn. They really helped me!
[Desire Android Development] pagubg:
You need to enter into the console, obtain root access with "su" and then type "ip ru del table wifi" without the quotes. This will slove your problem about the routing problem. If this helps, i will give some MCR scripts which i have written to automate the process :)
[Desire Android Development] lnxtux:
Built-in openvpn facilities can help to implement the routing tables management any way you want. You can use --up script to automate it. Or, if your openvpn compiled with iproute support (attached), you can use --iproute and a script like this (that's what I personally use for quite some time):

#!/system/bin/sh

# ip route wrapper, add 'table vpn' to add/del commands

IPROUTE=/system/bin/ip
case "$@" in
*'route add'*|*'route del'*)
exec "$IPROUTE" "$@" table vpn
;;
*)
exec "$IPROUTE" "$@"
;;
esac

# EOF
[Desire Android Development] slvrbllt:
Did anyone actually managed to implement the solution above proposed by lnxtux ?

A step-by-step guide would be pretty much appreciated...

Thanks.
[Desire Android Development] lnxtux:
Here it goes:

Assuming you already have tun.ko for your kernel, OpenVPN Settings, and a working open vpn config file. Connect your phone to a PC and make sure adb shell is working, we're going to issue a bunch of shell commands.

If you do not have one, create a directory to store custom binaries. Personally, I think /data/local/bin is a good place:

adb shell mkdir /data/local/bin

Get the openvpn binary with iproute support and place it under /data/local/bin

adb push openvpn /data/local/bin

Make it executable:

adb shell chmod 755 /data/local/bin/openvpn

Unpack the wrapper script (attached) iproute-wrapper.sh

Push the iproute wrapper under /data/local/bin:

adb push iproute-wrapper.sh /data/local/bin

Make it executable:

adb shell chmod 755 /data/local/bin/iproute-wrapper.sh

Start "OpenVPN Settings", go to menu -> Advanced -> Path to openvpn binary and enter /data/local/bin/openvpn

On the "OpenVPN Settings" main screen, long tap on the configuration file, choose "Edit Config File". Add the following line anywhere:

iproute /data/local/bin/iproute-wrapper.sh

If it does not work, do "adb shell" and run it manually: /data/local/bin/openvpn --config PATH_TO_YOUR_CONFIG. Such output is much more readable than the stuff from the logcat.
[Desire Android Development] jwickers_1234:
It works but i had to use the local table instead. Seems the routes were properly created in the vpn table but that table was not listed under "ip ru" and traffic did not get through the vpn.

Local table seems to work as it it on top of the list it takes priority on the wifi/gprs tables.
[Desire Android Development] f3d0r:
I can confirm this, the script will not work with the vpn table as no ip rule is added for this table when the tun interface comes up. Replacing vpn with local is the easiest fix.

#!/system/bin/sh

# ip route wrapper, add 'table vpn' to add/del commands

IPROUTE=/system/bin/ip
case "$@" in
*'route add'*|*'route del'*)
exec "$IPROUTE" "$@" table local
;;
*)
exec "$IPROUTE" "$@"
;;
esac

# EOF
[Desire Android Development] d101p:
Hi All

I get the following message when trying to manually load tun.ko:

sh-3.2# insmod /system/lib/modules/tun.ko

insmod /system/lib/modules/tun.ko

insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)

The output of uname -a:

sh-3.2# uname -a

uname -a

Linux localhost 2.6.32.15-gf9c0527 #1 PREEMPT Fri Jul 23 17:26:53 CST 2010 armv7l GNU/Linux

I've tried all the tun.ko files posted in this and other threads but no luck.

Does anyone maybe have a tun.ko file for 2.6.32.15-gf9c0527?

Thanks
[Desire Android Development] dmtd79:
I´ve followed the guide above posted by Inxtux (thanks by the way), but it seems that no vpn table is beeing created. I´ve also tried his first script, changing the table to local, but no luck. I can see the traffic in my vpn server, but it seems that the traffic just isn´t routed through my tap device.

I really can´t see what´s wrong, so I´m posting my conf etc, hoping someone with a little more experience in this than me can spot something that´s wrong.

Any help are greatly appreciated!
[Desire Android Development] Grisu1708:
Hello,

my openvpn client said.

Fatal error. could not execute external programms.

Only it works with: ip ru del table gprs "or" wifi

Please Help.

Best regards
[Desire Android Development] Esired:
hxxp://xdaforums.com/showpost.php?p=7637257&postcount=9
[Desire Android Development] gyorsok:
iproute-wrapper.sh

Changed the script a bit, because, if no route is pushed explicitly by the server, then no "route add" commands are executed. Only the kernel sets up the route for the tunX interface, which gets added to the main table.

Result: vpn server not reachable when on wifi/gprs.

Added a case branch to check when the tun/tap interface is given the IP, and then add the same route the kernel automatically adds to the main table - to the vpn table as well.

Also create vpn table at start of script, don't think it hurts if it just sits around empty.

#!/system/bin/sh

# ip route wrapper, add 'table vpn' to all commands
PATH=/sbin:/system/sbin:/system/bin:/system/xbin
export PATH

IPROUTE=/system/bin/ip

has_vpn_table=$("$IPROUTE" rule show | grep ' vpn')
if [ -z "$has_vpn_table" ]; then
"$IPROUTE" rule add from all table vpn
fi
case "$@" in
*'route add'*|*'route del'*)
"$IPROUTE" "$@" table vpn
;;
[COLOR="red"] *'addr add dev'*)
"$IPROUTE" "$@"
# addr add dev tun0 local 192.168.200.22 peer 192.168.200.1
"$IPROUTE" route add $8 dev $4 proto kernel src $6 table vpn
;;[/COLOR]
*)
"$IPROUTE" "$@"
;;
esac
[Desire Android Development] Compadrito:
Doesn't work for me

Hi gyorsok,

Thanks for the new version of your script. Unfortunatly as well as the old version, it doesn't work for me. I tried as well to change the "vpn" to "local" like suggested by jwickers_1234 but it didn't work.

I'm using the LeeDrOiD Mod 2.0c on a HTC Desire.

Without any additional modification, OpenVPN connects successfuly, but doesn't route the traffic over the tunnel (tun0).

After applying the modifications suggested by lnxtux and logging in (with your script included), I loose my internet access until I logout. If I use the "Fix DNS" Option in "OpenVPN Settings" (Menu -> Fix DNS) during beeing logged in, which changes the DNS Server to 8.8.8.8 (DNS Server from Google), it seems to work.

Do you have any idea why this happens?

I attached you three txt files, which are documenting the routing state without vpn (without-vpn.txt), after logging in with OpenVPN but without the modifications (normal-vpn.txt) and again with OpenVPN logged in but this time with the modifications (and your new script) (scripted-vpn.txt).

Thanks for your help!

PS: The txt files sometimes contain a lot of blank lines. I did this to be able to compare them easier. Each command starts in all three files at the same line. So if you change between two files with "Alt-Tab", the changes will pop-out ;)
[Desire Android Development] nenadr:
tun driver for 2.6.32.15-gf5a401c kernel from official htc desire 2.29.405.2 update

Is there tun.ko driver for openvpn for 2.6.32.15-gf5a401c kernel that comes with official HTC Desire 2.29.405.2 update ?

Thnx
[Desire Android Development] fozzie:
You can try taking a similar version one and editing the 'vermagic=' to match your kernel version; that's what I did for 2.6.32.15-g6a358a9 and it works fine.

Edit: Attached my working tun.ko (vermagic edited from 2.6.32.15-ge2fb08e to 2.6.32.15-g6a358a9)
[Desire Android Development] nenadr:
Thanks, I just did that for WiFi-N enabled module and it seems that this method works, so I'll do it now for rest of modules I need, including tun.
[Desire Android Development] tiphergane:
Hi,

I'm using OpenVPN with my Orange's HTC Desire (unBranded by goldcard and last HTC official ROM), but each time I want to insmod /system/lib/modules/tun.ko I have the exec format error ....

I really don't know where is the probleme.

My phone was rooted with unrEVOked 3 and S-OFF by alpharev ...

If you have an idea

BUILD 2.29.405.2

#uname -r

2.6.32.15-gf5a401c

thx all
[Desire Android Development] isollo:
is it support Oxygen 1.0?
[Desire Android Development] fozzie:
Have you opened that tun.ko up in a hex editor and checked that the vermagic= string matches your kernel version?
[Desire Android Development] tiphergane:
Hi,

Not now, but I do it right now, thx a lot

EDIT1: And the vermagic don't match, did I just change the string in hex or did I compile something ?? (and I don't know how to compile unfortunately)

EDIT2: Ok just with the modification in the hex editor, my tun.ko now work. I try to attach my file THX A LOT FROZZIE ;)

the file
[Desire Android Development] redhatfan:
tun.ko for 2.6.32.15-gd96f2c0

I've found these threads helpful, although in the end I had to compile my own tun.ko. I've attached it as a 'thankyou' to the forum...
[Desire Android Development] JNZ:
hi,

everytime i run insmod for the tun.ko i get the error

insmod: init_module '/system/lib/modules/tun.ko' failes (Exec format error)

so when i'm using the openvpn settings app i get

FATAL: Linux ifconfig faild: could not execute external program

does anyone have a solution?

Running MIUI 1.8.19 (2.6.37.6-cyanogenmod-01494-g8dc02ff)
[XPERIA X10 General] tris1979:
Before I debranded my phone I backed up my contacts to the memory card. After importing them back, all the pictures are blured & very low res.

Is there anyway of backing up your contacts that doesn't destroy the pictures?
[XPERIA X10 General] yetep:
double post!
[XPERIA X10 General] yetep:
mines werr all kept mate. .

Sent from my X10i using the XDA mobile application powered by Tapatalk
[XPERIA X10 General] tris1979:
The thumbnails look fine but when I open the contact or when im reciving a call the full size picture is really blured.
[XPERIA X10 General] figofigo:
me 2 when i sync from sonyericsson or make from a backup program or from google contacts everything is ok but all the pictures are blured
[XPERIA X10 General] wai_lai416:
i guess best way is to keep the pictures in ur mem card and then link it with the contacts again. coz the sony ericsson sync server thingy probably have a size limit on the picture
[XPERIA X10 General] k1sr:
Re-linking contacts sucks... especially if you've got more than 10 mates, or have other people than your mum and sister on the phone...

My guess is that the backup is OS based, so Android only backs up standard contact resolution, whereas the higher res pictures are probably attached via the SE interface... Could be a good question for SE, except their answer will without doubt be:

"I would suggest using the Sony Ericsson Update service software as this may fix the issue"
[XPERIA X10 General] k1sr:
Well, thankfully I wasn't told that a software update will help me maintain contact picture quality, but I was told SE don't give a crap:

"In regards to your inquiry, when you backup your contacts to your SIM card or Memory Card, the personalization information like Facebook or Twitter links are not going to be saved. Only the contacts and the numbers. When it comes to the pictures, there's no feature to make sure that the backed up pictures is saved in a better resolution. For further options, you can contact your local Sony Ericsson in Australia at 1-300-650-050.

As part of Sony Ericsson's commitment to excellent customer service, we offer a wide variety of mobile products to suit your lifestyle. If you require more information, or have any other questions, please visit our website at SonyEricsson.com/Xperia"​

Thanks Sony. you rock. :mad:
[G1 Apps and Games] Izord:
I have been searching for two days for a Photo Viewer app for Android 1.6 that has kinetic scrolling for albums.

Astro file manager has a built-in photo viewer that has a thumbnail ribbon at the bottom that works with kinetic scrolling action. And that is way cool, but I want to be able to scroll the full-size photos as well.

I think a couple of years ago the first-gen iPhones had this feature in their album viewer, may be wrong about that.

I have a G-1 and a MT3G that I would like to be able to view albums with a feature like this.

Would appreciate if anyone could point me in the right directions.
[G1 Apps and Games] Izord:
Has anyone seen anything like this? I found a version of HTCLay CSDI I think that has a cube that opens the gallery in a sort of kinetic preview, and it's the closest I've found so far. But it's not fullscreen.
[G1 Apps and Games] Izord:
Can someone help me out with this? Maybe mention if I'm on the right track, or if I need to be looking for something completely different?

One of the guys at work was showing off pictures on a larger device with gorgeous kinetic scrolling. I had severe envy yesterday. :rolleyes:

What photo viewer app are you using?