Setting: Fix error when turn on wifi hotspot with long Chinese Ssid issue

The "error" is caused by beyond the limitation from driver layer
which wifi ssid characters can not exceed 32 bytes.

Add the codes to limit the characters of user input.

CRs-Fixed: 539994

Change-Id: I16adc3b08c86caf336b5272d27713134cb0d5211
Settings: Fix error when input WLAN Direct name with long Chinese name

Caused by beyond the limitation from driver layer which the
characters of WLAN Direct name can not exceed 32 bytes.

Add the codes to limit the characters of user input.

CRs-Fixed: 646426

Change-Id: I1ddf6d69940e0685c159e1b6329e0ee5fbbac222
P2P : Fix for P2P group name

When device is in Chinese language, P2P group SSID names will be encoded
into UTF-8 hex format. When displaying group SSID in UI Settings, this
UTF-8 should be converted back to UTF-8 binary format.
Implemented method to convert UTF-8 hex to UTF-8 binary format. When
group is created, it checks the hex format by looking '\x' sequence,
then converts to binary format.

Change-Id: I381b9e6c89ea4c82d41d2d4b69effe0d5e71d2e8
CRs-Fixed: 661989
Settings: give boot_completed receiver higher priority

We need it to start up as quickly as possible.

Change-Id: Iaa99b6519c46b3bd0b85adcd59bbfb76b4983b64
Signed-off-by: Roman Birg <roman@cyngn.com>
Settings: add device tree settings hook

Allows devices to hook "advanced settings" into the settings list
by providing an apk that is providing the activity
org.omnirom.device.DeviceSettings

The activity must be labeled "Advanced settings" to get a unified
look and feel.

Ayysir
===
   -- Implemented CM's way in more category

Change-Id: I983eaf8f15a152ff18bb16cfa857ca911b2c7e19

Conflicts:
	res/xml/more_device_settings.xml
	src/com/android/settings/cyanogenmod/MoreDeviceSettings.java