Settings: SuperSU from Settings

If SuperSU is installed, show an entry in Settings below
"Developer options", which launches SuperSU when tapped.
At boot time SuperSU will detect if com.android.settings
contains the resources from this patch, and if so it
will hide itself from the launcher. This was implemented
in v1.85, so we only show the entry if the installed
SuperSU version is at least that.

PS2: Better Drawables courtesy of Lo

Signed-off-by: ayysir <dresadd09691@gmail.com>
Signed-off-by: houst0nn <houstonn@gmail.com>
Change-Id: I1796d92458587b9e961d5d8e6d58099e8367834d
New (?) easter egg

Put some paranoid faces on it and call it a night

Change-Id: I1bab94a6f3cc29cd29e84f81af2d4d91fc23e12b
Bluetooth:GAP: Handle exception while unregistering the Receiver

Handle the IllegalArgumentException while unregistering the
Receiver.

Usually when user presses both cancel and okay for the disconnect
dialog, OnClickListener will be called twice for both options,
and for the second time it is expected that receiver would have
already unregistered.

Change-Id: I36e30d551df76b7cfd1754305a1087578fd4a275
CRs-Fixed: 595648
Merge "Settings: SuperSU from Settings" into kitkat
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat

Change-Id: I910500d31f48268eecf7c664dbcc3a482e27dade
Fix one NPE in tethering setting

Once we not declare BT feature, go Setting->more->tethering
will trigger this NPE.
Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/63695/

Change-Id: I4736e7bade261475acda74e26250a81452018ffa
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Fix null pointer exceptions in NetworkPolicyEditor

This upload fixes a null pointer exception issue.
After this fix the modified methods return
their corresponding default values instead of null.
Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/62248/

Change-Id: Idb94f8b808b8dd18be5e3fc92cc5560ce0f81c4f
Settings: fix typo

KEY_SENORS_MOTORS_CATEGORY should be KEY_SENSORS_MOTORS_CATEGORY

Change-Id: Id09c2c8c2f8427b59648e34d8883a7b9b691989d
Show memory full text only for internal storage

When the internal memory is full, a warning text is shown
in Settings/Storage. This warning was displayed for all
types of memory (internal/primary, sd card and usb storage)
even though it was only referring to the primary memory.
With this fix, it is only shown for the primary memory.

Change-Id: I35ad4b0b45c6752ddc9d7166495435b27fd4a170
Bleed keyguard widget picker list into translucent bars

Change-Id: Ie929845fd8b822dcf858b9b56cb5758379d55c59
'When to daydream' dialog does not follow the JB dialog design guide

The dialog is a single selection popup and according to the
dialogs design guide the popup should close when the user
has make his/her choice, but in this case it does not.

Change-Id: Iac6bc19146a88236d3253d2d846212ce09b4925b
Settings: DE translation

PS3: updated see through/blur lockscreen string
PS4: fixed missing 'g' + updated led string changes

Change-Id: I8725ca42ddbb20b40f85dc5f60c61a66ecab774a
Settings: catalan translations

PS2: Update led translations with new clean up.

Change-Id: Ie5d6ed5d0a079059956e342c1df7e8f70b5693b5
Settings : Add FR translations for PA strings

PS2: Removed a duplicate file, sorry about that.
PS3: Corrected a typo.
PS4: Updated led translations.

Change-Id: I00cb95aa30677d22781864ad05ffc993955a61fa
Rework notification LED a bit.

* Clean up code, improve logic.

PS6: According to android writing style update string for "OK"
     https://developer.android.com/design/style/writing.html
PS7: Whitespaces.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I5408d895b52255a8352ebe8ea1a79be92af9c1a1
Performance profiles

This changes adds support for custom performance profiles through overlays. Supported
devices should define config_perf_profile_prop with the proper system property to be set
and fill an init.rc file with the appropiate handlers for every defined performance profile..
Patchset 2: Rebased
            New simplified strings
Patchset 3: Fix build
Patchset 4: Rebased

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

Conflicts:
	res/values/cm_arrays.xml
	res/values/config.xml
settings: Remove ZRAM settings

 * Android has proper ZRAM support builtin now, and this code doesn't
   even work. Remove it.

Change-Id: I39cb20809d5c71683bffc578057ad39363c5066e
Performance: Allow enabling KSM by default

Allow device maintainers to enable KSM by default.
Set ro.ksm.default=1 to enable.

Change-Id: Ib432be4937dff63891e641b2f14ab223c2d245df

Conflicts:
	src/com/android/settings/cyanogenmod/MemoryManagement.java
Merge "Settings: DE translation" into kitkat
Merge "Rework notification LED a bit." into kitkat