Launch 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.

Change-Id: I1796d92458587b9e961d5d8e6d58099e8367834d
[2/2]Settings: Option to hide Adb notification icon

Base: https://gerrit.omnirom.org/#/c/2934/

Change-Id: I3ac5f08a077e04dade4bdeed58442043a8fb5d23

Conflicts:

	res/values/custom_strings.xml
Add LockClock to Settings menu

Change-Id: Ie9d10e7c8186354f01e29e1aaeb23b580ebd04aa
Add fastscroll to the Manage applications screen

so you don't need to scroll so much if you have alot of apps
and want to go to the bottom of the list.

Change-Id: I96d892abf53a9da784ae1df056558d4fd3cf64f6
Add back privacy guard manager.

Change-Id: Ic9fbbae137bb8425fe72a6cdb2f17117351b5709

Conflicts:

	AndroidManifest.xml
	proguard.flags
AppOps: Add advanced menu link from privacyguard

Forward port from cm-10.2

Change-Id: I09b06eca34366526e5b1cd39763f31414e93a0c0
[2/3]Settings: All in One Animation Control (DO NOT MERGE)

Allow configure System, ListView, Scroll, and Keyboard Animation

base from
AOKP Animation Control https://github.com/AOKP/frameworks_base/commit/015c9cf00a8e49aea22d70b57b0af87c9134be73
thanks to Steve Spear <stephen.k.spear@gmail.com>

ListView Animation https://gerrit.omnirom.org/#/c/2863/
thanks to jkl5616<jkl5616@gmail.com>

Keyboard Animation https://github.com/zst123/XuiMod/commit/975cd531a9a847769b2af306495643a55ec44aaa
thanks to zst123 for patches

with slight modification to OmniRom

Scrolling Animation https://github.com/zst123/XuiMod/commit/48c180cfa762617f59b4ceb3da50a6c28befe24f
thanks to zst123 for patches

Change-Id: I0c3714e389ccaf2b674cb7933f6c292d20651a79
[2/3] Settings: Remove Active display

Change-Id: I0f2960249fbad02fdab437a59fd84a8b6bf3c86b

Conflicts:

	res/drawable-hdpi/ic_settings_actived.png
	res/drawable-mdpi/ic_settings_actived.png
	res/drawable-xhdpi/ic_settings_actived.png
	res/drawable-xxhdpi/ic_settings_actived.png
	res/xml/settings_headers.xml
[2/2] Settings: Lockscreen Notifications

PS6:
    [2/2] Lockscreen Notifications: make offset top user configurable & add privacy mode

Change-Id: Ic66c0ff9d36bc390f5a434559468fe3752faf285

Conflicts:

	res/values/custom_strings.xml
[2/2] Settings: Add an option to change the device hostname

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: Ib04d551b7eb31110962709e0d956db4da380175a
[2/4] Settings: TRDS 3.0 and new theme engine preparation

Additional Information:

these packages needs to be tracked by OMNIROM directly (not the case atm) to get
Dialer correctly viewed and other other apps darked out

packages/apps/Contacts
packages/apps/ContactsCommon
abdroid/development
packages/apps/Calculator

the related patches can be found at the repos of SlimRoms:

https://github.com/SlimRoms

PS2:
-rename TRDS to Dark Omni
-move menu entry above "more"

PS3:
- remove slim logo
- bring in omni logo

PS4:
- added Screenshots

http://forum.xda-developers.com/showpost.php?p=49430058&postcount=1446

================= ORIGINAL COMMIT MESSAGE ===============

For the one who do not know this feature see as reference
the first two versions here:

https://github.com/SlimRoms/frameworks_base/commit/b330fde28306286572ba390e451a72539c0c3576

https://github.com/SlimRoms/frameworks_base/commit/3194015737b7944b4185fca007b8d167a0675cd8

we got now over a year now a lot experience how to handle the qualifier fallback
as well how to theme it and how to handle other apps. Based on this knowledge we
redid some parts of TRDS engine with following new features/additions and fixes
to have now a final perfect working TRDS

- compared to the old versions where it was needed on some apps to restart them
  in background this is not needed any more. All is handled about the internal
  AOSP resource handling and on qualifier change the caches are cleared
  and the apps get an onconfigurationchanged to restart the activity
  like it is doing on orientation change eg
- inverted folder is now depreciated and the new folders are holodark
  and hololight which allows on the one hand a dark theme (at least
  how TRDS started) and a light based theme hololight
- This name change is mainly because of the new theme engine which
  will come which uses this as base to add 2 external themes at the same
  time and give the user the ability to switch between them. But this is
  still in early stages and this commit is just the preparation for it
- Two new automodes are now integrated. User can enable the twilight modus
  which enables/disables holodark/hololight depending on the daytime...means
  on the evening it switches to holodark on normal day it is hololight.
  The other automode is based on light conditions....means that if it is
  dark outside it switches to holodark....if we have bright light conditions
  it switches immediatelly to hololight. Due of the resource cache handling now
  this happens immediatelly for the user and feels completly system integrated
  and happens without delay. A bit comparable to some navigation tool for cars
  which can switch automatically from dark to light and back
- currently the auto modes as well the manual mode switches between holodark
  and hololight. Due that we do not have currently anything hololight themed
  in the source hololight = stock theme. We will give the user the ability
  later when done to choose between which modes the user want to switch
  (stock/holodark/hololight). But this does not make sense at the moment.
  As soon as we have done the light theme or theme engine (lets see what
  comes first) we will open the ability to choose it. This is only a small code change
- a lot small tweaks and fixes went as well into the new version

Whatever this commit as usual adds the support for it. The themeing is done in the
other commits by kroz which is as well way more extended then on the older versions

cheers

PatchSet:
- derp
PatchSet3:
- tired me derp again
PatchSet:
- adapt to new qualifier structure

- listen to onconfigurationchange and mode settings value
  and let the switch
  switch if the uiThemeMode has changed. As well permit
  manual switching if automatic light mode is enabled
  and inform the user about

Change-Id: Ie0cbc16dc8b2736e77f194676e99eb7fcfd5ddd2
Lockscreen: See through (2/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Indenting and fix of the LOCKSCREEN_SEE_THROUGH variable check.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS3:

* Add see through checkbox to security_settings_chooser.xml, reflects the security_settings_lockscreen.xml.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Made the option available with every lock mode (PIN, Password etc.) cause it works with every mode now.
* Update description with better one.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Make description more like aosp strings.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Conflicts:

	res/values/pa_strings.xml
	res/xml/security_settings_biometric_weak.xml
	res/xml/security_settings_chooser.xml
	res/xml/security_settings_lockscreen.xml
	res/xml/security_settings_pattern.xml
	res/xml/security_settings_pin.xml
	src/com/android/settings/SecuritySettings.java

Change-Id: Ife993ffe0833be98fe582146fc071f339445bbc5
Fix: Ensure lockscreen see through setting persists after reboot

If see through was enabled and the device was rebooted,
the user had to toggle the setting off and on again to activate.

Change-Id: Ic743986d9b0abae138e2291864ce527c4f9ff864
[2/2] Settings: recover last location state during on/off switch

based on the behaviour change on QS here:

https://gerrit.slimroms.net/#/c/1421

we go now same way in settings. Tbh not sure what the goal is to
force the user after switching off to enable always high accuracy
location. Whatever we use here same attempt like in QS tile....if the
user switches on again it recovers the last enabled state.

Base: https://gerrit.omnirom.org/#/c/4874/

Change-Id: I887e2a94af379770dac7dbedb5d3d8002a554163
[2/3] Settings: Increasing ringtone volume

Change-Id: Ic3f72c5041859cc19c25a247808ac6479e598da1
[1/2] Settings AppOps: Forward port wifi/bluetooth/mobile/wakeup ops

    Squash of:

    Author: Shashank Mittal <mittals@codeaurora.org>
    Date:   Thu Sep 5 19:01:47 2013 -0700
    AppOps: Add more operations in app ops settings.
    Add following operations in app ops settings.
    -- Wifi enable/disable
    -- Bluetooth enable/disable
    -- Mobile data enable/disable
    Change-Id: I32183d77b88c326168557444a445765b5a69de6f

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Mon Sep 30 23:10:35 2013 -0700
    [1/2] AppOps: Add alarm wakeup op
    Change-Id: Ic739519cb9df9d2c67d65e3572a119b4d55145f0

Change-Id: Iacfbf6abccdda65afc3b7b83bfc03b30d94afd77
[1/2] Settings AppOps: show/hide app type and allow/deny counters

    Squash of:

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Thu Oct 3 13:51:31 2013 -0700
    AppOps: menu options to show/hide user and system apps
    Change-Id: Ia55364c361db949a891e4b53a757ee4dff519eb6

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Wed Oct 2 22:24:14 2013 -0700
    [1/2] AppOps: Show allowed/ignored counts
    Change-Id: Ia27737155c33e934df9a2a1fcff88379240fd096

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Sun Dec 1 21:39:07 2013 -0800
    AppOps: only apply app type filters to summary screen
      *) If buildState() is called for a single package, do
         not apply hide user/system app filters.
      *) Fixes show detail display when called via
         long press in privacyguard and an AppOp hide
         filter is ticked.
    Change-Id: If31d094fb989836ab6829daeefe820695032c0ed

Change-Id: Ia55364c361db949a891e4b53a757ee4dff519eb6
[1/2] Settings: AppOps: Add bootup template

This template lists all the sevices and apps that auto start on bootup.

User can use this template to control list of auto start applications.

Change-Id: Ibf03d7df0037c87eb2ef3ca48a34ef46a103b4d7
AppOps/Privacy Guard: Fix up misaligned switches.

Change-Id: Ic9e1e09ac911e552599f7bca6fb71b2808548f1d
Improve app op details layout.

Change-Id: I38a2c3679633ae85aec61703ab933410775bb336