OSDN Git Service

Sanitise Bluetooth file name hint when receiving a contact
authorEdward Savage-Jones <edward.savage-jones@sonyericsson.com>
Tue, 28 Sep 2010 12:39:44 +0000 (14:39 +0200)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Wed, 22 Dec 2010 13:16:38 +0000 (14:16 +0100)
commit5e9a02df66c6044bd4a06b9d53e6cdbd8ad22606
treec24bfbd1a33923773251eff8b7087830030499ca
parente7f887dab2591a46ecf80616e00f33bb5d847935
Sanitise Bluetooth file name hint when receiving a contact

If a contact name is entered with any of the following characters

  :"<>*?|\n\t

the transfer of that contact fails.  This is due to the underlying
filesystem (FAT) not being able to handle these characters in a
file name.  This fix corrects that situation by replacing any
whitespace characters with a space and illegal FAT filesystem
characters with underscore.

Change-Id: I5021bd26a16c31810a61bac3f70439c1153451c2
src/com/android/bluetooth/opp/BluetoothOppReceiveFileInfo.java