How To Destroy A Filesystem

rmrf

The G1 ‘execute every command you type‘ bug naturally spawned ‘rm -rf /’ jokes. rm is the Linux command for deleting files. The -r and -f flags will cause it to remove files recursively and ignore confirmation. Executed as root it will annihilate the entire filesystem. Won’t it? [Jon Hohle] decided to test exactly how destructive the command was to *nix systems. How functional would the system be afterwards? He tested it side by side with the Windows equivalent, both ‘format c:’ and ‘del /F /S /Q’. He wanted to see what protections were available and what would be left working. Linux ended up completely broken while Windows, thanks to file locking, actually shutdown cleanly… and never came back. Some OSes, like Solaris, refuse to run the command ‘rm -rf /’ to prevent accidents.

Android Executes Everything You Type

g1

This is one of the more bizarre bugs we’ve ever heard. The T-Mobile G1 has an open root shell that interprets everything you type as a command. It was discovered when a user just happened to type the word ‘reboot’ in a conversation and the phone immediately rebooted. A patch has already been rolled out to fix this issue. It also buttons up the earlier telnetd SUID problem.

[photo: tnkgrl]

Getting Root On The G1

If you’ve been holding off on a T-Mobile G1 purchase because you didn’t like the apparent user restrictions, there’s some good news. The Android powered phone comes with an easy button for getting root. Install a terminal app and you can manually start the telnetd service. All that’s left is telenetting into the device and it’ll give you root level access.

Android Source Code Released

[youtube=http://www.youtube.com/watch?v=7Y4thikv-OM&fmt=18]

Google has officially released the Android source code. While the T-Mobile G1 is being released tomorrow—some already have it—it is just one Android device. The availability of the source means that the platform could be port to almost any device. It’s a complete embedded Linux package and we’ve already seen it running on the N810. We can’t wait to see what hacks come out of this.

Android Hacks Roundup

Our friend [Jeffrey Sharkey] hacked the iTunes remote control protocol and produced his own version for Android, one of the smartphone OSes we just covered. He pored over dumped packets for a few days and wrote a client which is of course GPL’d. Besides that, he’s been busy winning the Android Developer Challenge. His app, Compare Everywhere, was one of the top 10 winners, netting him a cool $275,000. This ingenious bit of code deciphers barcodes scanned using a cell phone camera and then finds prices for that item at every nearby store that sells it.

The other winners wrote apps that do cool things such as one-click cab ordering, locate missing children, and find parties. Check out all 50 finalists and winners here.

Gizmodo’s Guide To Smartphone OSes

Gizmodo’s in-depth look at smartphone OSes provides you with the pros and cons of each, allowing you to make an educated decision, if you’re in the market for a phone that also has email, a web browser, a calendar, and a decent contacts manager. If you’re attracted to the open source Linux-based Android by Google, you’ll also have to keep in mind that there aren’t that many business features. Other contenders include the Blackberry by RIM, which is great for email, but is completely closed and proprietary. The Apple iPhone is very pretty but lacks some basic features. They cover Symbian, Windows Mobile, and Palm Garnet too. It’s certainly a handy guide since most people haven’t used all six.

Prevent Drunken Emails With Mail Goggles

Google introduced a new Labs feature named Mail Goggles. If you turn it on, on late night weekends, the feature will ask you to perform some math problems before you can send an email. We’re not sure how widespread a problem drunk emailing is, but maybe the delay will allow you to sober up and realize when you’re about to CC your entire company on a rant about your boss, or your adventures with the cute guy or girl in the office. It’s enabled for late nights on the weekends, but once you’ve turned it on, you can adjust the time in the General settings.