AppOps: add permission check when enabing nfc

Add appops permission check for enable function.

Change-Id: Ie98be3e7b3cd9e72b0ad12cc1634d9cd1869a66c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
AppOps: add Chinese support for AppOps popup dialog

Add Chinese support for AppOps popup dialog.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
        core/res/res/values-zh-rCN/strings.xml

Change-Id: I2ac3664640d1adba2e1b14016856f36d50eb2ed3
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
AppOps: Check user permission before audio recording.

Add permission check before audio recording.

Change-Id: I55c8397df3169e031bba951cf180fa8c5f4c4ce0

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
media/java/android/media/AudioRecord.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
MediaScanner behavior on boot (1/3)

Lets you enable/disable/ask (with a notification) media scanning on boot.
Can speed up boot and reduce initial boot lag from MediaScanner

Change-Id: I634ae96b1dcb493b966b4653589cd97523b63da7

Conflicts:
	core/java/android/provider/Settings.java
Revert "Fix wrong debug false placement in GestureRecorder.java"

This reverts commit 7cd5c8d5106da74f058ab89fb2cbbf3406f65143.
Revert "Turn off some debugs"

This reverts commit a3438665e86636ead0ac7f536350824ec0e5eec1.
Revert "SystemUI: PhoneStatusBarView: disable DEBUG_GESTURES"

This reverts commit 771ee2168c068a60bdd95ff7d93ab8bafadee398.
A bunch of disabling of debugging
Credits to DU, romanbb, and Cl3Kener
Turn off carrier provisioning by default to allow tethering

Whether or not to use carrier provisioning is a setting hidden to the
end user that is currently not set. Unfortunately, on some carriers that
may result in it being set to yes, or effectively set to yes, without
other accompanying changes that must occur, such as setting a tethering
apn and possibly having a carrier provisioning app, resulting in hitting
a paywall when a tethering plan exists, or, worse having nothing happen
at all when you try to tether since the data doesn't have an apn set.

Change-Id: I3b5b3cc86e3325302411f46e3fd5f7a7c1b9f57e
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "A bunch of disabling of debugging"

This reverts commit bbef525a6dbcd21de9013faff22a60e19440684c.