August 31st, 2010
Staples should hire the dudes who wrote android-wifi-tether, cause, man, that was easy.
I thought this would be a fine evening to get tethering working on my Incredible. One install of android-wifi-tether 2.0.5 pre-release 8 later, I’m no longer in the situation of having to pay Verizon to use the data plan that I already pay them for. No configuration, no nothing (beyond already running 2.2, I mean); just push the big “tether” button. Bam. Off to make a donation now!
Posted in Uncategorized | No Comments »
August 22nd, 2010
Since I finally rooted my Incredible to resolve the mysterious “Low on space: Phone storage space is getting low.” error, I decided it was time to update to Froyo (Android 2.2) as well. This proved to be fairly straightforward following the instructions in the relevant thread on XDA-Developers, though I had a few surprises on the way. I’ll share a few discoveries and clarifications:
- The PB31IMG.zip “stock” file linked in the XDA-Developers thread is an unrooted Android 2.1+Sense image.
- When you install the stock image, the phone will turn off, reboot, and then restart the loading process without any warning. This does not mean that the install has gone awry and that you’re about to have a $200 brick. Keep coolie-cool, boy.
- When you boot into the stock recovery image, what looks like an error screen will come up (an Incredible with a red exclamation point and triangle). That’s normal; you just need to hit Power+Volume Up to get to the menu. (This was a surprise to me, since I’d only seen the ClockworkMod recovery installed by unrevoked3 which boots straight into the menu.)
Also, when you start up using Froyo, you’ll notice that many applications have disappeared from the Market. This is because Market apps, both free and paid, can be marked as “protected”, which means that you have to be using a recognized version of the OS (whether this is app-specific or store-wide, I’m not sure) for the app to show up, and the fingerprint in /system/build.prop in the Incredible Froyo image isn’t recognized. To fix this, update ro.build.fingerprint to verizon/voles/sholes/sholes:2.1-update1/ESE81/29593:user/release-keys in /system/build.prop. (See this post on Android Forums if you need detailed instructions on how to update the fingerprint.) This will make your phone appear to be a Droid running Android 2.1-update 1 to the Market (I’m guessing this eliminates 2.2-specific apps; I haven’t looked yet). Go to the dialer, and enter *#*#CHECKIN#*#* to force a checkin so that your changes will take effect. (h/t Geniusdog254 on XDA-Developers for pointing out how to force a checkin.)
Finally, I re-rooted the Incredible using unrevoked3, and disabled CityID (not going to pay for it), Verizon Navigator (why would I pay for this when Google navigation is free, even if I did need voice navigation?), and the 3G Mobile Hotspot (not going to pay $20 a month to use the data plan that I already pay for, thanks!). The last phone project is getting Wireless Tether running, but that’s for another day.
P.S.: if you want to see if you like vanilla (“Senseless”
) Android 2.2 on your Incredible, check out SkyRaider’s images. I actually installed this before going to the leaked 2.2+Sense image, and it was very snappy. I ultimately decided to go with the Sense image, because I figure that it’s gone through more testing, but if you don’t want to put up with the Sense bloat, this might be an option for you as well.
Posted in Uncategorized | No Comments »
August 15th, 2010
A week or so ago, I started getting the much-mentioned, not-resolved error on my Droid Incredible: “Low on space: Phone storage space is getting low.” After trying a few quick fixes suggested by some Google searches, I finally rooted the phone last night and got to the bottom of it.
As this ZDNet article notes, the error message is confounding, because it’s only supposed to appear when you have less then 10MB of storage free on your “phone memory”, yet you can see in Settings→SD card & phone storage that there are hundreds of MB free. It turns out that the problem is that the “phone storage area” is divided into two partitions. One of these is approximately 748MB, is mounted on /data, and is where user-installed applications are stored. The other is about 150MB, is mounted on /data/data, and is where applications store their data. What the SD card & phone storage settings page shows you is the partition that is mounted on /data, but what was running out of space was /data/data.
So, how do you figure out what’s taking up all the space?
- Root your phone. This is now a trivial matter, thanks to unrevoked3. This will install the very useful ClockworkMod recovery image, as well as adding a “Superuser Permissions” app that will allow you to grant root access to applications that request it.
- Install the Android SDK.
- Connect the phone to your computer via USB, and enable USB debugging (under Settings→Applications→Development).
- Reboot your phone into the ClockworkMod recovery image, either by using
adb reboot recovery from the Android SDK, or powering the phone on while holding the volume-down button, then selecting “recovery” from the HBOOT screen.
- Mount the data partition. In ClockworkMod, go to partitions→mount /data.
- Get a root shell on your phone by running
adb shell on your computer.
- Mount the /data/data partition by running the following command from the shell you have on your phone:
mount /dev/block/mtdblock6 /data/data
.
cd to /data/data, and use du (du -sk * | sort -n is a useful pipeline) to find out what’s taking up all the space. (As an aside, it’s way easier to poke around the filesystem from the recovery image rather than using su to get root when the phone’s running normally. The set of command-line tools provided in Android is very bare-bones—you don’t even have cp—while you’ve got a well-equipped BusyBox in the recovery image.)
In my case, I found that the com.android.providers.contacts directory was taking up over 100MB, 90MB of which was in a SQLite database. I had no contacts stored locally, so I just mounted the SD card, copied the directory to that for backup/forensic purposes, and deleted it from /data/data. After rebooting the phone and resyncing my contacts with GMail, the space being used in that directory was cut down by an order of magnitude. I do note that I can no longer sync Facebook contacts, but I’m not certain that that is a result of this—that may not have been working before the “low on space” debacle. If this problem re-occurs, I’ll dig into that SQLite DB to try to find out what was taking up all the space. For the moment, though, the problem is resolved.
Now that I have a rooted phone, I’m very tempted to install the leaked Android 2.2+Sense leaked ROM…
Tags: Computers, droid, incredible, root
Posted in Computers, Uncategorized | No Comments »
March 24th, 2010
I was doing a bit of figuring yesterday in the process of considering my financial situation, and I ended up deriving a couple of formulas that relate basic mortgage parameters. Inspired by Hugh Chou’s derivation, I thought I’d do one of my own that’s a bit more explicit (and of course, nicely TeXed up
).
Mortgage term and principal amortization formulae derivation.
Posted in Uncategorized | No Comments »
October 26th, 2009
A bunch of Chicago-related media crossed my path last week. I thought I’d pass on the highlights:
Plus, of course, two great Chicago-related photo pools:
Posted in Uncategorized | No Comments »
April 30th, 2009
Limited numbers of connections via terminal services. From time to time at work, I need to log in to our servers to perform tasks. The initial attempt is often followed immediately by swearing and a post to our common IM chat room begging for someone to release a connection. Unfortunately, sometimes people leave their connections open when they go home…
Posted in Uncategorized | No Comments »
April 16th, 2009
“Security” through buck-passing.
When I try to follow a link to a Word document in IE, I get the following message:
Some files can harm your computer. If the file information looks suspicious or you do not fully trust the source, do not open the file.”
Thing is, I followed that link because I believe the document has information that is relevant to my interests. Now I have to choose between not looking at it, and potentially getting h4xx0r3d by doing so. Neither of these is an appealing option. (See also: the helpful “Security Center” in Vista.)
Instead of spending the time and effort to have Windows warn me before I open a file that’s of interest so that MS can claim it’s somehow “my fault” for getting pwn3d, why on Earth didn’t they fix Word so that simply opening a document isn’t a massive security risk? I don’t have to worry about this crap if I open a Word doc in Pages on my Mac or OpenOffice Writer on my Linux desktop.
It wasn’t so long ago that we made fun of people for believing that simply opening a document could infect them with a piece of malware. Remember the Join the Crew and Good Times “viruses”? Thanks, Microsoft, for making what most technically-inclined folks thought was unlikely possible; “looking for my virus scanner” is sure where I wanted to go today!
Posted in Computers | No Comments »
April 15th, 2009
Here’s a not-too-infrequent scenario:
What’s up with that file on my flash drive? I’d really like to delete it, but Windows keeps telling me “permission denied”. I’m pretty sure I have access to that directory.
Oh, I see. It’s in use by an application. Which one? Oh, it’s not going to tell me that.
Guess I’d better download a copy of Process Explorer.
Ah, there we are. That’s what’s holding that file. Ok. Terminating that program… Yay, now I can delete the file.
Now I’m just going to stop the drive so I can safely remove it…oh, look, the drive is still in use; it won’t let me stop it. Let’s see what Process Explorer says is in use on E:\…
Nothing. The drive isn’t in use after all. Yet I still can’t stop it.
*sigh* *yank*
…and now it’s bitching that I have to stop devices before removing them or risk data loss. Thanks, Windows!
Posted in Computers | No Comments »
April 15th, 2009
What is it with virtually every application you install, plus Windows itself, wanting to put crap on the desktop? (Or worse, doing so without even asking you?)
The desktop is my workspace. Mine, mine, mine, mine, mine!! If there’s something that I’m likely to be using soon that I really want sitting there, I will put it there. Further, to all you developers who helpfully include a by-default-selected option to add a shortcut to your crummy app on the desktop: YOU’RE NOT HELPING. There’s no point in putting an application shortcut on the desktop. If I use the application frequently, it’s going to be in the frequently-used section of the Start Menu. If I’m always using it, I’ll set it to start up when I log in. If I don’t use it frequently, there’s no conceivable point to having it on the desktop.
And why on Earth does Windows make it so blasted difficult to remove “My Computer”, “Recycle Bin”, etc. from the desktop? I don’t know of any way to do it short of registry hacking or using TweakUI. Gah.
</rant>
Posted in Computers | No Comments »
March 5th, 2009
A cautionary note: using self-closing <script> tags generally will cause your browser to ignore the tag altogether. E.g., this doesn’t work:
<script type="text/javascript" src="foo.js" />
It took me a bit to figure out what was going on here, because it’s perfectly valid XML. However, since most web servers are going to mark webpages as HTML rather than XHTML+XML, it gets parsed as HTML, which doesn’t allow you to self-close tags that don’t have the EMPTY content model (like <br> or <hr>).
Posted in Computers | No Comments »