Irda: Add Irda System Service

This is not a perfect solution yet, but it does work and should therefore be a starting point.
It needs work to be functional on devices other than the Galaxy S4

* The Irda service is not started by default. It can be enabled via overlay.
* Uses a HAL module to communicate with sysfs

Change-Id: If0c4b2e59144b1f199c44add399a3f528ac11e5b

Conflicts:
	core/java/android/app/ContextImpl.java
	services/java/com/android/server/SystemServer.java
Don't start FM Services if not supported

This will fix the crash when turning airplane mode.

Change-Id: Ib7c74b81e11a6bd9fa75228ff11ca376f62216b7
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	services/java/com/android/server/SystemServer.java
Add support for Samsung extended AGPS

The AGPS implementation in the GPS chipset used in some Samsung devices
(i9100, i9300) can make use of the Psc field. Adapt the relevant
functions hiding the changes incompatible with other devices under the
AGPS_USE_PSC #define.

Credit to Qaweck from xda-developers forum for finding the meaning
of the field.

Change-Id: Ie4691c79ca379a1f5c0a87500c1b06b56ae7ac0d
Irda: Add Irda System Service

This is not a perfect solution yet, but it does work and should therefore be a starting point.
It needs work to be functional on devices other than the Galaxy S4

* The Irda service is not started by default. It can be enabled via overlay.
* Uses a HAL module to communicate with sysfs

Change-Id: If0c4b2e59144b1f199c44add399a3f528ac11e5b
Frameworks Base: Mock SMS (1/4)

This change brings the possibility of simulate the reception of SMS on real devices.
This change includes the setting and security permission.

Ported from http://review.cyanogenmod.org/#/c/23017

Patchset 2: Rebased

Change-Id: I535d5e69fbd9d612f7ed1a635032be7caefeda04
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:

	core/res/res/values/cm_strings.xml

Conflicts:
	core/res/res/values/strings.xml
Telephony: Introduce config item for Hot Swap support

When a Uicc Card is inserted or removed, Android pops up a prompt
to the user to reboot the device. This prompt is unnecessary if the
modem supports Hot Swapping of cards.

Introduce a new config item to indicate if the modem supports
hotswapping. Frameworks can then check this before propmting the
user.

Change-Id: I0f2c3134525aa2301fd667d0a1819f4419eecae0
Reduce total number of background apps for low memory devices

Due to memory constraints, we anyway cannot fit the default number
of BG apps. So instead of killing background apps to
free up memory when launching, start with an already
reduced background set of apps.
Another side-effect is that launch latencies also improve.

Change-Id: I3ae54aa7d53ff1b81252212973646a95d2d82e8a
Note: This is for low memory devices. (~512MB RAM or less)

Conflicts:

	services/java/com/android/server/am/ProcessList.java
Framework: Generic Blacklist support (4 of 5)

* Needed for compilation...

Change-Id: Id6c85c9a537713ec77d00deb7f7fe5a9150be2cd

Conflicts:
	core/java/android/provider/Settings.java
Fix RIL_UNSOL_CDMA_PRL_CHANGED constant typo (1/2)

Change-Id: I6eef9350fa62857cb5fd133a385cb09150cb6d1b
Add SMS Middleware layer.

Add fix so ordered broadcasts are delivered to system
apps first in the event of a tie. This works around
the issue where terrible apps steal SMS notifications
from the broadcast queue to simply prevent notifications
that could otherwise be removed by a toggle.

Change-Id: I4fff0c584f8fce9c5f2f4fe86a82fe6480c307c7

Conflicts:
	core/res/AndroidManifest.xml
	core/res/res/values/strings.xml
New Event: ACTION_NEW_OUTGOING_SMS

Change-Id: I8be01ad6251ca25e4d00ebffd876bb6ce7f3c283
FileUtils: add method to get UUID of a volume

Change-Id: I41b76c5e01c82a2f8e67b33133a76947877a2814

Conflicts:
	core/jni/Android.mk
LTE Toggle: add missing network mode NT_MODE_LTE_WCDMA

Change-Id: I93db32d4700568d79230350ff67e5dc0227a0c30
Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/LteToggle.java
	telephony/java/com/android/internal/telephony/PhoneConstants.java
Add checkMobileProvisioning to ConnectivityService.

Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec

Conflicts:
	core/java/android/net/ConnectivityManager.java
	core/java/android/net/IConnectivityManager.aidl
	services/java/com/android/server/ConnectivityService.java
WHAT A MESS