More Battery Saver Mode Options

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code.

Fixes:

1. Add additional strings to BAND_NAMES array for additional bands from ril.h
2. Fix logic when adding band strings to selection list (for loop ends before entire array is read)

Change-Id: I5ff883a469f757a30c71d7d72c8f6ace19ce7a4d
Signed-off-by: Andrew Xie <andrew.w.xie@gmail.com>
(cherry picked from commit 4845045bb2dfd9b1a67f9f0c62bb44bfc5152284)
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Open app when clicking on icon in App Info screen

Based on Xposed module Shortcut in App Info:
http://repo.xposed.info/module/com.mohammadag.shortcutinappinfo

Credit: Adam77Root
There is no vibration as in the module as I didn't find it necessary
Change-Id: I07b3f947aaaa13702adba3b4e78bb780fe861baf

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Update AP signal strength on signal level changed

Patch related to bug GMIN-1381 "The AP signal strength is display
different in notification bar and WIFI settings"

On behalf of Ernest P Chen:
Update all access points when reacting to a broadcast that the signal
level changed.

Change-Id: If690212b9d4640d236747eacef9a4ac8c4c98cd9
Signed-off-by: Frederic Danis <frederic.danis@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix memory leak issue in application settings

If opening Main menu->Settings->Apps, and rotating the phone
about 50 times, Settings force closes and out of memory occur.
This is because after ManageApplications onDestroy, references
of ApplicationsState have not been release. So, they will not
be garbage collected. It leads to OOM and force close. To
avoid this we need to release the references of
ApplicationsState when ManageApplications onDestroy.

Also, when exiting ManageApplications or InstalledApps in
Settings there is a memory leak due to not releasing some
objects. This fix releases the Session objects to avoid
memory leak.

Change-Id: Icca7100bded0653a4ec7f2b4bd48a29262432a3b
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Change check for syncActive

In Manage Account settings if account is in syncing state
option provided to user is "sync now" which should be
"Cancel sync".

syncActive is set to true if getCurrentSyncsAsUser() returns
an empty list which means there are no active syncs.

syncActive should be set to false if getCurrentSyncsAsUser()
returns an empty list.

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