yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Android Development] mrife:
WIFI Not Working

Well, I am having problems connecting to my WIFI at home (D-Link DI-624 WIFI router)with WPA security. It successfully connects like once out of 50 attempts.

When I turn on WIFI it goes from "Turning on.." to "Scanning.." to "Connecting to .." to "Authenicating with ..." to "Disconnected" and back to "Scanning...". It cycles a couple of times, then just stops on "Disconnected".

About twice a day I get lucky and get connected. Other devices have no problem using this WIFI router.

I tried powering down the WIFI router and powering it back up.

I have tried putting my MAC address in the /data/wifi-nvram.txt file.

I tried connected to the WIFI in Windows Mobile before starting XDAndroid.

I have tried reentering the WPA Key in.

I have tried using WIFI-Ace to enter the WPA Key.

Nothing seems to improve the connection issue. FX03 worked well, but I have struggled getting connections with newer versions and FX06.

My unsecured WIFI at work (used by external consultants) connects every time.

Windows Mobile 6.5 connects first time with the same WIFI settings.

Are there any WIFI router settings that are known to cause problems connecting with FX06 or XDAndroid in general?

Anyone have any more suggestions?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Does it work at home unsecured? Have you tried TKIP or AES?
[Touch Pro2, Tilt 2 Android Development] mrife:
Cypher type is TKIP with PSK. I have not tried AES. I did notice that the channel is set to 6, but the phone is set to adhoc.

As I was typing this post, the phone made a successful connection to the router with no changes to the phone or router. Could it be a timing issue where FX06 is not waiting long enough for a response from the router? (I am not a networking person. I develop applications, so I am just reaching since I changed nothing on the router and the TP2 and it worked.)

Thanks for your help.
[Touch Pro2, Tilt 2 Android Development] Christiaan91:
I tried it also with my WiFi.

I use WPA2-Personal with AES and it connected with in 3 seconds.

So maybe WPA2 will work for you.
[Touch Pro2, Tilt 2 Android Development] agent005:
I tried looking thru some of these posts, but there are just toooo many to find what Im looking for.

I have everything working that is displayed on the front page, but the marketplace. When I try to download something, it just sits on downloading forever and never downloads?

I have a HTC Tilt2, and xdandroid all seems to be working correctly otherwise. I need to download a app for my exchange, and of course facebook. LOL
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Can't help you with Failbook, that app is absolutely awful, aside from the site being an atrocity itself.

As for exchange, what do you need an app for? Exchange sync is built into Android, Settings -> Accounts & Sync.
[Touch Pro2, Tilt 2 Android Development] mrife:
Awesome. WPA2, AES, and PSK connects with no problems!! So it is an issue with TKIP either on the router or the phone.

Thanks to all.. Android Market, here I come.
[Touch Pro2, Tilt 2 Android Development] mrife:
I had this problem with Android Market when using WIFI with an unsecured router. When I used a secured router it works fine. If you Google it you will see it is a known problem.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
AES is more secure anyways ;)
[Touch Pro2, Tilt 2 Android Development] agent005:
Our company policy has policies in place which do not work with the android sync. Unless I am missing something!? We currently require the device to be encrypted, require a pin, and SSL connection is required. As far as I know, this has always been a issue with the android devices and requires a 3rd party app (TouchDown) to allow everything to work.

I have Exchange Admin rights and can just as easily turn off the support, but then what kind of model would I be? LOL, we have these policies in place to protect not only the company, but the individuals data as well.
[Touch Pro2, Tilt 2 Android Development] rpierce99:
My corporate policies are the same and I connect just fine, launch the Email app and follow the steps, once it syncs up the first time it will tell you it needs to enforce security policies.
[Touch Pro2, Tilt 2 Android Development] agent005:
When I try the built in email app on the android I get the following error: "This server requires security features your phone does not support"

Enabled features on the exchange:

Require Password

Require Encryption on the device

Enable Password Recovery

Number of Failed Attempts allowed: 8

Minimum password length: 4

Time without user input before password must be re-entered: 15

According to this http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en/us/help/hc/pdfs/mobile/ExchangeAndAndroid2.2-002.pdf, the policy that is causing my issue is the require encryption as this is not supported on Android 2.2 platforms. So I need a 3rd party app to make this work. Also as a FYI, if you have these options and the exchange admin sets the "allow non-provisionable devices" it will work, but completly bypasses the encryption aspect and makes the device vulnerable.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Yea, we have GroupWise and only allow BB's to connect... How's that for company policy? :rolleyes:
[Touch Pro2, Tilt 2 Android Development] nickleby:
Sorry arrrghhh but I'm confused about this...Is that a fail in Android or drivers? I mean, when we get full NAND support you will not have WinMo to make a lock to improve the GPS under Android...I've tried a lot of times to get a lock in Android without success, always puts me in the middle of nowhere, even in WinMo is extremely hard unless I use the HTC GPS Tool...

Is there an application like the HTC GPS Tool for Android?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
It's a fail of drivers, unfortunately.

HD2 folk don't have it either - there's a couple of different kinds of tech related to GPS, of which I learned a lot from Entropy512. Basically there's XTRA, which is what tells the GPS radio where the GPS sats are (the data downloaded from the 'net). This seems to be affixed onto the radio, as it 'bleeds' over to Android.

There's also some 'warm' injection that also assists in GPS locks - our Android build does none of these things.

See Entropy's thread on this matter for more info. There's also a handy binary file that fixes the false middle-of-the-ocean fixes. Now this means the GPS will sit and just blink at you until it gets a lock - it doesn't do a damned thing to help with lock times, just eliminates the false positives.
[Touch Pro2, Tilt 2 Android Development] synnedu:
Ive checked my settings on inspire - unrooted - and it lists 2 access points.

Name: MEdia Net

APN: Phone

PrMMS protocol: WAP 2.0

MCC: 310

MNC: 410

APN type: default,admin,fota

(All else <Not set>)

Differences in bold:

Name: MMS

APN: wap.cingular

Proxy: wireless.cingular.com

Port: 80

Username: WAP@CINGULARGPRS.COM

Password: ********* (CINGULAR1 ?)

Server: <Not set>

MMSC: http://mmsc.cingular.com

MMS port: 80

MMS protocol: WAP 2.0

MCC: 310

MNC: 410

Authentication type: <Not set>

APN type: mms,supl

I have no option for MMS protocol, could this be related? Also side note - on Inspire neither, wile unrooted, are "selected" and creating the above MEdia Net APN and seting as default seems to cause my Tilt 2 to freeze. Restored to defaults for now.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Performance Tip

Something I noticed frequently, while monitoring "top" on my phone - the kernel mmcqd process showed up quite often, and system performance was frequently very sluggish. That indicates that I/O to the SDcard (mmc) is occurring frequently, and running slowly.

I use these settings on my laptop with SSD. Flash memory devices have a lot of performance characteristics in common, and adding these settings to my user.conf has dramatically improved the smoothness of the system on my phone:

echo 7 > /proc/sys/vm/laptop_mode
echo 90 > /proc/sys/vm/dirty_ratio
echo 60000 > /proc/sys/vm/dirty_expire_centisecs
echo 60000 > /proc/sys/vm/dirty_writeback_centisecs

Basically this changes the filesystem cache to keep written data in memory for as long as possible, instead of writing immediately to the SDcard. The default settings were flushing changes out every 5 seconds (which explains why mmcqd was showing up in top so frequently); with my settings a flush can be delayed for up to 10 minutes.

Note that this doesn't mean all flushes will be delayed for 10 minutes - any time the system actually needs to touch the filesystem anyway (e.g. to read new data) all pending changes will also get flushed. But using this in combination with the readahead setting means the number of distinct I/O operations will decrease.

Also, batching up writes like this improves throughput as well, because flash memory deals better with streams of transactions, as opposed to one-off transactions every few seconds. I.e., the performance of the system doing 600 writes all at once in a 10 minute interval is much faster than doing 5 writes every 5 seconds for 10 minutes.

(There's a potential risk of course - if your phone crashes, you could possibly lose up to the last 10 minutes worth of whatever phone activity. Personally I find the risk acceptable because I haven't had any crashes in a very long time, and losing 10 minutes worth of SMSs or call logs isn't going to really bother me.)
[Touch Pro2, Tilt 2 Android Development] HD2-WP7:
which startup.txt is for t-mobile tp2? what happens if a wrong startup.txt is used? sorry i dont have a tp2. my frnd has and he's using a random startup.txt. it is getting stuck (hangs) after booting into the home screen.

thanks
[Touch Pro2, Tilt 2 Android Development] Entropy512:
It's deficiencies in the drivers and in the GPS chipset itself.

The GPS chipset is fairly braindead and needs a lot of "help" to get a lock - XTRA, SUPL, time/location injection.

Our drivers don't support XTRA or time/location injection. There's a slight possibility that a tweak to our RIL might improve SUPL performance but it's unknown - getting the official SUPL standard is expensive, and the Qualcomm implementation of it on Windows Mobile devices is completely undocumented. Similarly, Qualcomm's XTRA and time/loc injection are undocumented along with the rest of the GPS interface - what we do have is entirely from attempts to reverse engineer the Windows Mobile drivers.

The 0,0 data validity bug was a side effect of that - Incorrect assumptions were made when REing the driver about what various flags meant. The unfortunate thing is - the 0,0 bug showed us that what we assumed is wrong, but did NOT show us what is right - there are still a lot of data validity flags that are unknown or wrong, but at least right now things mostly work other than poor performance.

The system image of FRX06 has the fix for the 0,0 bug, however the bundled rootfs overrides the FRX06 drivers with an old version that still has the bug.

I should update my GPS thread when I get a chance with that information.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
This might also help our market download performance issues - mmcqd process usage skyrockets during market downloads, and running Wireshark shows that the Market app itself is the source of the slowdown (not emptying the TCP receive buffer). I'll test it tonight.
[Touch Pro2, Tilt 2 Android Development] Christiaan91:
http://xdaforums.com/showthread.php?p=12597044#post12597044
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Interesting find. I'm going to try running it now - I'm assuming this goes in the CustomCommands section?

I guess I should look at this user.conf more closely - I see at the top there's a command that renices *something* to improve call answering - y'know what that is/does? I haven't really messed with any of the other settings, there's quite a few in thar.
[Touch Pro2, Tilt 2 Android Development] toadlife:
I think this can go in that section, though I put them in /init after the following lines...

/bin/mount -t proc proc /proc
/bin/mount -t sysfs sys /sys

The script that renices stuff is /bin/userinit.sh

@highlandsun: I'm assuming those commands take effect immediately? I don't want to reboot.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Thanks, on both of those.

Reboot, suck it up :p.
[Touch Pro2, Tilt 2 Android Development] jonners59:
Latest rootfs changes and the RIL changes

Back in the UK now and wish to sort al thois out. As I am probbaly way behind, what/where are the very latest rootfs and RIL as suggested?
[Touch Pro2, Tilt 2 Android Development] Christiaan91:
check my signature
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
As always, they can be found in their respective threads. First post usually.
[Touch Pro2, Tilt 2 Android Development] jonners59:
Sorry, I didn't realise they had se[erate threads... I shall bookmark them. Are there any others I should be aware of?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Other than the GPS 0,0 fix, there's not a whole else. There's a lot of merge requests on the system image, hopefully I'll be releasing a new bundle soon with everything wrapped up into it.
[Touch Pro2, Tilt 2 Android Development] jonners59:
Thanks arrrghhh

I may just wait then. I downloaded the rootfs and install looks simple enough, but the other is beyond my limited caps... Your bundle may be my best and safest option.

PS. I had to rebuild my phone back to manufacturer spc and then use the backup to reinstall the Frayo.... The problem I have is that Titanium reports that my phone's memory is full and has alarms all the time. I save all my apps on the SD card, not the phone and have little on the WM 6.5 OS... which does NOT show the phone memory to be full. The rebuild fixed it, but it has just done it again!!!! Have you seen this before?
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Yes, they're immediate. And yes, you can put them at the start like that. Should help a lot when creating the data img...
[Touch Pro2, Tilt 2 Android Development] SteelLife:
Phone stuttering alot

Ok phone stuttering alot when I'm calling and receiving and sometimes when adding and removing progs

I'm using the F22's rootfs, modules-2.6.27.46-01301-g595725b-dirty.tar, could this be a data file thing?

Once in the call its ok also I switched radios and still there, if need more let me know!
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Never had this happen. 1301-dirty, what kernel is that!?!

Although I re-read your post - stuttering how, like audio stutter, or just random sluggishness? I find the more apps installed, the more of a pig the phone becomes. I should probably figure out a way to kill a lot of them from always being running.

Uhm, the entire thing is run off of the SD card, so moving the apps to SD is useless. You need to expand your data.img if you're running out of space... You must have an ungodly number of apps installed.
[Touch Pro2, Tilt 2 Android Development] SteelLife:
I killed the apps using taskpanel its running good right now I got it from jonpry over at ppcg

Ok the memory is running out(33mb or less) and and when I kill it goes up to 55+!

Yes the audio stutter also when someone calls me I can't here them and have to hang up and call them back not all the time but A LOT!
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Most of these are settable directly from sdcard/conf/froyo.user.conf (look about halfway down the file), however:

The value of dirty_expire_centisecs and dirty_background_ratio get overridden somewhere else
[Touch Pro2, Tilt 2 Android Development] HD2-WP7:
thanks m8 :)
[Touch Pro2, Tilt 2 Android Development] SteelLife:
I change my data.img to 1gb but it still show that I have 30-40mb with 4 apps running but when phone start up it goes down to 20-30mb and becomes very sluggish I though data.img maker would increase available memory also help me out thanks in advance!
[Touch Pro2, Tilt 2 Android Development] mstammyt:
I believe as your phone boots up the first thing you see down in the lower left corning in red will be your # also..

Good Luck,

Tammy
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Resizing data.img won't affect your free RAM.

What apps would those be? Sounds like one of your apps is a real RAM hog. Also, remember - the first time you boot up you need to give the phone some time to settle down.
[Touch Pro2, Tilt 2 Android Development] SteelLife:
right now 33.33MB

go sms pro, go weather, led effect(will uninstall), new and weather

gmail, my uploads,messaging, 2 seach I kill these and come right back, when I kill I get 44.24MB

I kill go weather I get .50MB

I kill go sms pro I get 13-14 MB back (57.54)

I kill led I get .50MB (58.12)

I kill new and weather I get 3 MB (61.46)

all of this is with taskpanel

on manage applications I have running

android keyboard, system

bluetooth

calender storage

android provider application, user dictionary

contact storage

dialer, and dialer storage

download manager

google service

launcher

maps

media storge

setting storage

settings

taskpanel

voice search
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Autokilling apps are a waste. Of everything - RAM, CPU, and battery.

Apps autostart because they register themselves with the OS to receive certain events. Lots of apps register themselves to receive the Boot event, so they all start running at boot time. Many apps register themselves to receive Network Change events. Etc... As long as the app is registered, Android will keep restarting these apps no matter how many times you kill them. The way to make them go away is to disable their event registrations. Then Android will kill them itself and they will stay dead.

This is how you disable them: http://xdaforums.com/showpost.php?p=13158825&postcount=22
[Touch Pro2, Tilt 2 Android Development] mstammyt:
Help Please, phone stops at the Android 3D screen

Please help.. I loaded this build and my phone goes through Haret fine and then stops at the Android 3D looking screen.

I have a *Sprint HTC Touch Pro2* Rhod400 with Winmo 6.5 Pro. I have used other Android Builds with no problem just wanted the newer build.. I am still pretty new at it though and I have read till my eyeballs hurt!!

Just gettiing more and more confused.....

Wish these forums were a little easier for the beginners... Like here is everything you need for the Sprint HTC Touch Pro2 All in one... :)

I did remove everything from my SD Card and format it, that didnt help.

Thanks for any "Simple advice"

Tammy
[Touch Pro2, Tilt 2 Android Development] CosmicBlue2000:
I haven't visited this board for some months.

Last time I took a look at it,Reefermattness' [CAB] GSM&CDMA Project Android Port and Startup Utility [01/23] FRX04 Reference! was the best, one can have.

I think, now it's this thread.

But it's quite a lot to read already.

So I have a question:

Is the startpost pointing at the latest stable android release?
[Touch Pro2, Tilt 2 Android Development] SteelLife:
Thanks! Ok I have a logcat on phone but is there a more dumbed down explanation 1st this then this.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Yes, it is pointing at the latest release.

"Stable" is a relative term, however there are a large number of people including myself who are using xdandroid FRX06 as their primary phone operating system.

There are some stability fixes in testing that are not yet included in FRX06 but can be added to it - wistilt2's kernels and highlandsun's RIL, but honestly, if you have to ask what the latest stable Android build is then you shouldn't be running test RILs or kernels. The people who are running those testing lines to NOT take kindly to bug reports with incomplete detail (e.g. reports without logcat dumps taken in the manner requested by the person running the test thread.)
[Touch Pro2, Tilt 2 Android Development] reckert:
I just tried this with newly formated SDCard, LAtest Ril2, f22 rootfs , Froyo6, WisTilt2 kernel, and I can say it makes the market performance much better.

I did still download the SD-Booster app first to get the read cache increased.
[Touch Pro2, Tilt 2 Android Development] Avatar28:
corrupted?

Help. I think I killed Android. It hasn't been especially stable so far. I frequently get force close errors and they started getting worse. At first it was just the occasional app and then more important stuff (like, say, the clock and other Android components) and it was happening more often.

About a day or so after I did a clean install of Android (2+ hr full format of the uSD card using the HP utility, wistilt2's kernel, highlandsun's ril, etc), it hard locked and I was forced to reset it. When it came up it spent a long time running file system checks at boot. It's too small and fast for me to read what it was fixing. I booted into WinMo and had Windows do a disk check of the file system on the card. Found and fixed a few problems. Android still runs an extended disk check every boot and claims to have found and fixed the problem. I could make out that much. It is also very unstable now, crashing and locking up if I so much as look at it cross-eyed.

I staged all the files on my computer's hard drive so I can copy them back over but is there a way to have it NOT lose all of my installations and configurations? It took me the better part of a day and I would rather not have to go back through it all if I can help it. Can I avoid going back through that tedious FAT32 format process? I have lost my uSD adapter so I have to run the card in mass storage mode through the phone and it is SOOO slow.

More importantly, how do I prevent this from happening again? Or can I? I am guessing that it happened because Android had files open on the FAT32 partition of the card when I had to reboot and that corrupted it. Is there any way to, say, add an actual EXT3 partition for Android to use that might help?
[Touch Pro2, Tilt 2 Android Development] CosmicBlue2000:
Sounds like a dead SD card for me.

Even through phone instead of adapter and using USB1 it should be quite quick to be formated. And then all that errors...
[Touch Pro2, Tilt 2 Android Development] T_D_H:
wondering what settings I would need to set in the startup file to enable use of a sim card instead of forced cdma?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Just remove the force_cdma statement, the default=0 - as in for a SIM.

If you grabbed the correct startup.txt for your phone, it should have it set correctly already for you.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
First do not use EXT3 on a SD card - any type of journaled FS on an SD card is asking for trouble.

Deleting the data.img would be the first place I would start. However, based on that... it sounds like your SD card is dying. I noticed Android was painfully slow on my C4 8gb card, switched to a much older 'classless' 2gb card and Android is way faster. These types of SD cards aren't designed to run an OS - they're not the same as SSD's.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
First post always has the most up-to-date information, and it will change as things are updated, I will update the build and any relevant information.

That thread you link is old. You don't have to read this entire thread, but if you search on it I'm sure that would be useful.
[Touch Pro2, Tilt 2 Android Development] SteelLife:
What goes?

Something weird just happened again I was using bluetooth today and then I took it out to just use the phone and no sound and phone didn't ring at all put bluetooth back in and it worked:confused:
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Bluetooth doesn't work yet.

I saw Jerome post some stuff to the mailing list, and BT is around the corner for sure... but it's not implemented yet.
[Touch Pro2, Tilt 2 Android Development] SteelLife:
Sorry not bluetooth but wired headset my bad!