OSDN Git Service
AdrianDC [Tue, 28 Jun 2016 14:20:28 +0000 (16:20 +0200)]
SystemUI: Restrict persistent USB drive notifications to USB disks
* Without the addition of the isUsb check, a regular FAT32 MicroSD
would have a persistent notification that is unwished
Change-Id: I396a861702674d0a6a70beb5206fb4c7374ec85d
Adnan Begovic [Thu, 2 Jun 2016 22:29:16 +0000 (15:29 -0700)]
SystemUI: Add support for persistent usb drive notification.
This option can be enabled via config_persistUsbDriveNotification
Change-Id: I331a759aeb914e46e3ef4842896d3465d894707a
TICKET: PAELLA-225
Steve Kondik [Mon, 21 Oct 2013 06:48:00 +0000 (23:48 -0700)]
appops: Privacy Guard for N
* Squashed commit of all PG-related features including superuser
Authors:
- Sam Mortimer
- Danesh Mondegarian
- Jorge Ruesga
- Diogo Ferreira
- Roman Birg
- Adnan Begovic
- Chirayu Desai
- Lars Greiss
- Steve Kondik
- CodeAurora
AppOps: track op persistence by name instead of id
On XML write, include the op name. On XML read, map
the name back to op id (if it exists).
Persistent AppOp state now follows the op name instead
numeric id. This allows upgrades between versions of
android that have different code<>name mappings.
AppOpsService: Add MODE_ASK support to AppOps.
Add support for new mode(MODE_ASK) in AppOpsService to show a permission
dialog box to user to confirm user permission before allowing or ignoring
that operation.
All strict operations (defined in AppOpsManager) are going to be in
MODE_ASK by default.
Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to
user's choice.
AppOps: Add support for AppOps policy file
Add support to read AppOps policy file.
AppOps policy file can be used to configure Ops default policy.
[1/2] frameworks/base: Privacy Guard
PS2: * add missing call to updatePrivacyGuardNotificationLocked()
* remove ic_privacy_guard and ic_privacy_guard_off
* use stat_notify_privacy_guard drawable from Björn
* rebase
PS3: * exclude MODE_IGNORED from causing
getPrivacyGuardSettingForPackage() returning true.
multiuser restrictions on calls/sms otherwise
cause privacyguard to appear to be on when really
it isn't.
* rebase
Pulled together from:
Author: Danesh M <daneshm90@gmail.com>
Date: Thu Sep 5 19:23:15 2013 -0700
Privacy Guard : Reimplement backed by AppOps
Re-implements privacy guard to use appops.
Author: Jorge Ruesga <jorge@ruesga.com>
Date: Sat Jan 4 01:34:39 2014 +0100
privacyguard: Share privacy package name between activity stacks
AOSP 4.4 now has a stack supervisor with differents activity stacks for home and focus activities.
Every ActivityStack instance has a ref to this supervisor. Just share the privacy guard package name
throught the supervisor.
Patchset 2: Fix formatting
JIRA: CYAN-2874
Issue: https://jira.cyanogenmod.org/browse/CYAN-2874
Author: Steve Kondik <shade@chemlab.org>
Date: Sun Feb 23 19:23:31 2014 +0100
Use MODE_ASK as the default ops mode in Privacy Guard
* Prompting the user is far more useful as a default behavior. The
choice will be remembered after the first request.
Author: Steve Kondik <shade@chemlab.org>
Date: Tue Feb 25 13:11:12 2014 +0100
Relocate and cleanup new app ops features and PGify it
[2/2] Framework AppOps: Add per Op allowed and ignored counters
Port from cm-10.2 and cm-11.0
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Wed Oct 2 22:06:42 2013 -0700
[2/2] AppOps: Add per Op allowed and ignored counters
wifi: Confirm user permission before toggling wifi
Check user permissions before enabling/disabling wifi.
AppOps: Add Bluetooth enable control into AppOps
Check user permission before enabling bluetooth.
AppOps: Add BOOT_COMPLETED operation
Add BOOT_COMPLETED operation in AppOps.
This operation is used to allow user to control auto start of
applications and services at bootup.
AppOps: Add nfc enable control into AppOps.
Check user permission before enabling nfc.
appops: Add support for SU
This patch adds support for superuser app-ops control. The end-goal
is to better prepare superuser for the multi-user experience while
also replacing the superuser app with existing components.
su: Add an indicator when a 'su' session is active
This adds an indicator to the statusbar that is visible whenever a root
session is active, akin to the fine location icon.
AppOps: fix wifi scan op
There's no direct permission tied to it and fix the op-to-switch entry.
AppOps: add a default constructor
Frameworks: Redirect appops strings to string references
adapted to reflect new permission indices and codes
appops: Disassociate appops requests from notification broadcasts
The AppOpsService is essentially a manager for a set of counters
and permissions. Each operation request has the potential to change
the state and, as such, access to such state is synchronized.
We are whitnessing deadlocks caused by the broadcast and, in fact,
while we want to notify superuser changes eventually, it does not
have to be synchronous with the app ops request. This patch uses the
request to schedule the notification on a handler, leaving the locking
semantics of appops intact.
add missing app ops to string array
Also added op codes to prevent further mismatches.
Add new OP_RUN_IN_BACKGROUND to list
AppOps: fix deadlock issue when showing dialog
WindowManagerService need call PowerManagerService to release
wakelock. The Notifier in PowerManagerService need call AppOpsService
to notify holding wakelock ops is finished. Meanwhile, AppOpsService
may need call WindowManagerService to show dialog. This scenario
will lead to deadlock issue.
To move showing dialog action out of lock section to fix this issue.
Since only UI work is moved out of lock area, it is supposed to be
safe.
AppOps: relax some system appops for systemui
Grant wifi, bt, boot_complete, nfc, and data changes for systemui.
Also remove the bluetooth permission tied to the bluetooth_change op -
it is not always directly tied to BLUETOOTH or BLUETOOTH_ADMIN, so we
can't force one there.
cyanogen: Add missing RUN_IN_BACKGROUND where required
Revert "AppOps: add a default constructor"
* Not needed after http://review.cyanogenmod.org/126381
This reverts commit
19e0ce0755d191204ac3bd3106b779898d5daadd.
appops: Implement concept of delayedcount.
High frequency request ops will be delayed until their ignore count
ceiling is met. This is to mitigate the overloading the main activity
manager service handler and having watchdog kill our service.
Google play services likes to share its uid with numerous packages to avoid
having to grant permissions from the users perspective and thus is the worst
example of overloading this queue -- so, to not encourage bad behavior,
we move them to the back of the line. NOTE: these values are magic, and may need
tuning. Ideally we'd want a ringbuffer or token bucket here to do proper rate
limiting.
appops: Respect screen interactivity before creating dialogs.
If the device's screen is currently off, do not queue ask
runnables who cannot be interacted with. Since these events
are gating mechanisms for closing an IPC loop, they need to
happen when the user is interacting with the device.
Likewise, on screen off, clear the queue of every op as they
become unnecessary.
Change-Id: Ia2bbb56509bedb4aa7272e53cb67a4d94fec450d
Allow disabling the privacy guard notification - port from cm-12.1 (2/3)
Change-Id: Iab0288f50685220c8be0c11ea5075f91ec1bbe32
Launch app privacy settings when tapping on PG notification (1/2)
Based on https://github.com/SlimRoms/frameworks_base/commit/
97ccae06cd0ad1aa366c3a70e8e744277c409b06
JIRA: CYAN-6077
Change-Id: I8632e8c944c1d5d7ad2fb2a2276bae5fe2d4a0a0
Steve Kondik [Fri, 2 Sep 2016 08:25:47 +0000 (01:25 -0700)]
telephony: Add getDefaultDataSubId for compatibility
* Some applications are still using getDefaultDataSubId, which
has changed to the more verbose getDefaultDataSubscriptionId.
Change-Id: I006fa6bd85222ae16edb4aa83dc9c3552e28500e
Steve Kondik [Fri, 2 Sep 2016 05:43:04 +0000 (22:43 -0700)]
Revert "framework: Add permission dialog"
* Conflicts with Privacy Guard
This reverts commit
cfd88000aa4efc90353a4f7dcbfdce962dfdab7f.
Change-Id: I2b30acf4ccdbfd316389b1f6cf4c4ef20012ff0a
Mohammed Irfan [Tue, 21 Jul 2015 08:34:04 +0000 (04:34 -0400)]
Guard in short-circuit evaluations for stringSplit methods.
* splitRange function should also check if string is empty instead of
just checking for null, as a faulty camera can return
an empty RangeLength string.
* See (stripped) logcat: http://pastebin.com/kVV3ZJhz
Change-Id: Icbb8f12d1c2511366856889edc9b2060b764f2d0
Danny Baumann [Tue, 3 Mar 2015 09:43:28 +0000 (10:43 +0100)]
Allow sending vendor- or device-specific commands to the camera HAL.
Change-Id: I2aaa9e526b6f1a35d45e96b6d23e3db972d82733
Steve Kondik [Thu, 1 Sep 2016 20:28:33 +0000 (13:28 -0700)]
alarmmanager: Remove stacktrace spamming from poweroff alarm
Change-Id: I8435ae7c7cffecbb651884cf8b00de7e85500e64
Ricardo Cerqueira [Mon, 4 Nov 2013 02:57:54 +0000 (02:57 +0000)]
Framework: Fix GSM signal strength
Certain OEM gsm ril libs send back a bogus value for LTE signal
that causes SignalStrength.java to default to LTE and report
incorrect signal values.
Use prop value ro.telephony.ril.config=signalstrength to get proper
GSM signal reading on certain devices.
Commit includes "telephony: hide needsOldRilFeature" from Chirayu Desai.
Change-Id: I9a0b68f6c3789218a4a20337496e6264996deab7
cristianomatos [Wed, 7 Jan 2015 20:49:29 +0000 (18:49 -0200)]
Fix "ghost" weather display in expanded status bar
- How to repoduce -
1 - Disable weather in status bar option
2 - Expanded status bar
3 - Click, for example, in modile data to open Cellular data sub settings
4 - Toggel cellular data on/off or click in "DONE"
5 - Now check the status bar and you'll see weather info!
NOTE: If you swipe up and down again all get back to normal because updateVisibilities() is called in StatusBarHeaderView.java
Simple solve it (i don't know if this is the better way) by updating weather settings visibility inside handleShowingDetail(final QSTile.DetailAdapter detail)
Correct fix "ghost" weather display in expanded status bar
- Thanks to the hint of @Altaf-Mahdi. All credits gos to him. check our comments here:
https://github.com/crdroidandroid/android_frameworks_base/commit/
607175f0fe6469600e01339f2b93e4b1edabc275
Change-Id: If36339ecad00296e81e42dc99748f30f5f6447e8
Linux Build Service Account [Tue, 13 Sep 2016 05:21:27 +0000 (22:21 -0700)]
Merge "Frameworks: fix living wallpaper exception when reboot"
Linux Build Service Account [Tue, 13 Sep 2016 05:21:27 +0000 (22:21 -0700)]
Merge "Don't start wallpaperManagerService when in power off alarm mode"
Linux Build Service Account [Tue, 13 Sep 2016 05:21:26 +0000 (22:21 -0700)]
Merge "Don't remove preferred activities when in power off alarm mode"
Linux Build Service Account [Tue, 13 Sep 2016 05:21:25 +0000 (22:21 -0700)]
Merge "Update the customize date format"
Linux Build Service Account [Tue, 13 Sep 2016 05:21:25 +0000 (22:21 -0700)]
Merge "frameworks: Added listener for NETSTATS_GLOBAL_ALERT_BYTES URI"
mqi [Fri, 22 Jan 2016 07:37:25 +0000 (15:37 +0800)]
SystemUI: Fix no emergency call button on lock screen
Someone added system property check before showing emergency call
button which is always false.
Replace the conditon check with config value check.
Change-Id: I823ca081bfa887e7c0fa9d3ef66a500023cf1d32
CRs-Fixed: 963192
Sudheer Shanka [Fri, 29 Jul 2016 18:03:37 +0000 (11:03 -0700)]
Allow apps with CREATE_USERS permission to call UM.getProfiles.
Bug:
29189712
Bug:
30317026
Bug:
30235113
Change-Id: I899f13898773483ee627a974d70173b5aa962e9a
(cherry picked from commit
c372cb67ade0e6b73f00d78abafe6c800f5a9bf2)
Benjamin Franz [Tue, 12 Jul 2016 12:42:21 +0000 (13:42 +0100)]
Block user from setting safe boot setting via adb
Bug:
29900345
Change-Id: Id3b4472b59ded2c7c29762ddf008ee8486009dbb
(cherry picked from commit
91fc934bb2e5ea59929bb2f574de6db9b5100745)
Jason Monk [Thu, 30 Jun 2016 17:15:48 +0000 (13:15 -0400)]
Pre-setup restrictions
- Prevent external tiles from system apps
- Disable help
Bug:
29194585
Change-Id: I92da498110db49f7a523d6f775f191c4b52a4ad6
(cherry picked from commit
e206f02d46ae5e38c74d138b51f6e1637e261abe)
Ameya Thakur [Mon, 12 Sep 2016 21:19:47 +0000 (14:19 -0700)]
ShutdownThread: Call into oem shutdown function
We now call into the oem specific shutdown function while shutting
down Android.
Change-Id: Iedd16b1693b20ec39e7e6290cb7ed9f9e7b828a8
Wyatt Riley [Thu, 4 Aug 2016 23:10:06 +0000 (16:10 -0700)]
LocationManager - Handle Shutdown for right User
Only process a shutdown when it is for all users (whole system),
not a single user
Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f
Bug:
30646142
(cherry picked from commit
1b24fb17b8613894d6066dcf408e60caf2a56192)
(cherry picked from commit
a8037fffd3d95822a186b3008825f71eb8b00344)
Eino-Ville Talvala [Fri, 22 Jul 2016 00:04:19 +0000 (17:04 -0700)]
DO NOT MERGE ANYWHERE: ImageReader: Add discardFreeBuffers method
This method (currently @hide) discards all cached buffers for
the ImageReader, which can be useful to free up memory at the
cost of reallocation time if more buffers are needed later.
It has no effect on acquired Images, filled Images waiting to be
acquired, or buffers being actively used by the source rendering to the
Surface.
Bug:
28695173
Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9
(cherry picked from commit
e175aa82b58d70cc75ee683d65ee6ba041b9fe43)
Linux Build Service Account [Mon, 12 Sep 2016 14:37:48 +0000 (08:37 -0600)]
Merge
46bde45c0aac58f7743af11a4feb880187fea379 on remote branch
Change-Id: Ic29e95eb9fd732a9ed018367b9c35862e95c5b17
Fang Yunong [Sat, 3 Sep 2016 06:24:56 +0000 (14:24 +0800)]
Update the customize date format
Modify the feature to control the date format for customer
Change-Id: I05f9c73c0d1c151461fe17b9dde6771e46993849
CRs-Fixed:
1056112
Linux Build Service Account [Mon, 12 Sep 2016 01:22:36 +0000 (18:22 -0700)]
Merge "Fix: Layout children again when padding changed in AbsListView."
Linux Build Service Account [Sun, 11 Sep 2016 18:58:02 +0000 (11:58 -0700)]
Merge "Frameworks: Add CHN-CT to String Mapping Table"
Linux Build Service Account [Sun, 11 Sep 2016 18:58:02 +0000 (11:58 -0700)]
Merge "Fix 4g plus icon issue in quick settings"
Susheel nyamala [Fri, 10 Jun 2016 16:24:41 +0000 (21:54 +0530)]
Fix 4g plus icon issue in quick settings
When PS is registered to LTE_CA, 4g plus icon is displayed
on status bar above signarl strenght, but in quick settings
menu, 4g icon is displayed.
Update 4g plus icon in quick settings for LTE_CA.
Change-Id: If367ea7781732db34c71d45fd667c6c062ffc709
CRs-Fixed:
1019030
Linux Build Service Account [Sat, 10 Sep 2016 08:03:50 +0000 (01:03 -0700)]
Merge "Update the default usb config"
Linux Build Service Account [Fri, 9 Sep 2016 16:29:14 +0000 (09:29 -0700)]
Merge "Check uid for notification policy access."
Linux Build Service Account [Fri, 9 Sep 2016 06:44:47 +0000 (00:44 -0600)]
Promotion of android-framework.lnx.2.0-00007.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1056166 Ib921dc2f130c2e4002b3cfb58098b8e05ea8a86c Keyguard: Fix incorrect sim pin code counting issue
1049393 Id518ec2ccdc9b27fc073b7ec8bcaa6b285190ede Interface to check for deferred messages
Change-Id: I4ae25eae7802f341abbf364e0588d990b84d6db5
CRs-Fixed:
1056166,
1049393
mqi [Fri, 9 Sep 2016 05:29:31 +0000 (13:29 +0800)]
Frameworks: Add CHN-CT to String Mapping Table
Add CHN-CT mapping to China Telecomm in string mapping table.
Change-Id: I55009c56b951d49e738f262877008df8ec00922c
CRs-Fixed:
1064438
Devi Sandeep Endluri V V [Thu, 8 Sep 2016 10:28:46 +0000 (15:58 +0530)]
frameworks: Added listener for NETSTATS_GLOBAL_ALERT_BYTES URI
Add listener for NETSTATS_GLOBAL_ALERT_BYTES URI and Update the
mGlobalAlert bytes when there is a change.
CRs-Fixed:
1037558
Change-Id: I4578e91764e4f4d4a387ac2bdc851a391acc7986
guangbing [Thu, 8 Sep 2016 01:38:22 +0000 (09:38 +0800)]
Frameworks: fix living wallpaper exception when reboot
If living wallpaper is set, device shows static wallpaper
for a moment after boot up then switches to living wallpaper.
Bind service for getting wallpaper data will not success
first time after reboot if the wallpaper isn't direct-boot
aware,for getting the desired data requires the second
parameter of bind method equals "MATCH_DIRECT_BOOT_UNAWARE",
then rebind the service,and it shouldn't set first display
as last setted static wallpaper before getting the desired
data.
As long as the boot time is set to show the living wallpaper
first even if the wallpaper data is still in loading,it's
better than show the static wallpaer first which would lead
to the phenomenon of flash.
Change-Id: Id3a75d44e25ee8744e0551bae046876880909650
CRs-Fixed:
1056697
Julia Reynolds [Wed, 29 Jun 2016 12:43:00 +0000 (08:43 -0400)]
Check uid for notification policy access.
Bug:
29421441
Change-Id: Ia0a7b06112dde1c925ec3232f50bf4d90b17b5e5
(cherry picked from commit
0cd1b789567b60b963fc7b8935e898ea0e61a617)
(cherry picked from commit
61e9103b5725965568e46657f4781dd8f2e5b623)
Victor Chang [Tue, 12 Jul 2016 22:47:29 +0000 (23:47 +0100)]
Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set
Fix:
29899712
Change-Id: I38cc9d0e584c3f2674c9ff1d91f77a11479d8943
(cherry picked from commit
9c7b706cf4332b4aeea39c166abca04b56685280)
(cherry picked from commit
335702d106797bce8a88044783fa1fc1d5f751d0)
Jason Monk [Tue, 19 Jul 2016 16:39:58 +0000 (12:39 -0400)]
Don't allow enable/disable of tuner on lockscreen
Change-Id: Id9748ea39a8fa03b67d3fa6f91da530dd5cf9409
Fixes:
30107438
(cherry picked from commit
6ca6cd5a50311d58a1b7bf8fbef3f9aa29eadcd5)
Sridhar Kasukurthi [Wed, 7 Sep 2016 11:32:27 +0000 (17:02 +0530)]
Do not display No SIM when sim info not available
*Display No Service instead of No SIM
*Remove carrier specific conditions
Change-Id: I8630b2a369f7e3cb21f50b2483cb9c91bd8ad74c
CRs-Fixed:
1042831
yumeng [Tue, 30 Aug 2016 02:10:36 +0000 (10:10 +0800)]
SettingsLib: the time is wrong in battery info view.
show the positive time in Math method.
Change-Id: I78fe3a1128494fb2822cfa0c5326d20ad33ab374
CRs-Fixed: 991999
Benergy Meenan Ravuri [Wed, 7 Sep 2016 06:47:47 +0000 (12:17 +0530)]
IMS: Arrange data, VoLTE icons in correct order.
Fix the issue where VoLTE icon is coming in between LTE icon
and signal bar incase of roaming.
Change-Id: Idb480eb33f697687296b4257bd2ffa8fea0f8516
CRs-Fixed:
1063539
c_yunong [Tue, 6 Sep 2016 07:02:00 +0000 (15:02 +0800)]
Update the default usb config
Enable the data transfer when the default usb mode is mtp or ptp.
Change-Id: I12c662876ee8dfc7caab8a29fced62c06fdd2525
CRs-fixed:
1056112
Linux Build Service Account [Tue, 6 Sep 2016 13:56:41 +0000 (06:56 -0700)]
Merge "Interface to check for deferred messages"
Libo Jin [Tue, 6 Sep 2016 08:16:41 +0000 (16:16 +0800)]
Fix: Layout children again when padding changed in AbsListView.
Change-Id: I09430e5ac838e8f5e642d4479dd459e7e5f39e6a
CRs-Fixed:
1055325
Mao Jinlong [Tue, 6 Sep 2016 06:46:45 +0000 (14:46 +0800)]
Don't start wallpaperManagerService when in power off alarm mode
As wallpaper is not necessary during power off alarm, don't start
wallpaperManagerService when it is alarm boot.
CRs-Fixed:
1063317
Change-Id: I0c3cb964af2044235c13c17f38994f5318d26a6b
Mao Jinlong [Wed, 31 Aug 2016 08:50:50 +0000 (16:50 +0800)]
Don't remove preferred activities when in power off alarm mode
When in power off alarm mode, only power off alarm apps are installed.
So some applications with preferred activity may not be installed. Don't
remove preferred activities when in power off alarm mode to avoid choosing
preferred activities again during next boot-up.
CRs-Fixed:
1063320
Change-Id: Ia383ce3ecc7fb5051c00211b007acd7123124a4c
Linux Build Service Account [Mon, 5 Sep 2016 06:02:58 +0000 (00:02 -0600)]
Promotion of android-framework.lnx.2.0-00006.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
957277 957403 I60b8e50c92d06c0d847df501178add070b98273b Add support for LTE, LTE+ data icons display.
1061684 Ic8e8ffc70d9255275ad9654a4de13861e4457774 Send intent onLaunch of StatusBar in IntentTile
1001718 I168a9621e2121c8aee9d93b6048219cf3a4085f4 Do not display sim absent when sim info is not available
1063174 I3020d675bec3266da7d91d303cb9f8858a99bcbb IMS: Update MISSED_IMS_TYPE and MISSED_WIFI_TYPE calls i
957838 If218ea3ead2b837d9c2d1cac4d353c1d35c5babe MSIM: Restrict data activity change to listeners with ma
784379 I464b87f1a6470401b2ef4e7507b804b1da5b5af2 Tether: fix bt-pan and wlan0 timing issue
1060934 I419026649addfd14a4067ecadca5f676b322ecc8 SystemUI: Fix SystemUI FC issue
1003527 Ic2811f80085e5f9a25ea589c1c1c9247cad4ab72 MSIM: Provide voice pref selection in qucksettings.
1018881 I69afdd8b85dd2d5d352ba70b716453e3425f3760 Keyguard: Replace "Emergency" to "Emergency call"
1023026 I583e6163f5c841e74593d94cbcd67855eb11bd14 SystemUI: Fix for display datatype icon while in roaming
968357 Ie8155eb4590b61f79215d3277648d112d9055073 Display H icon for HSPA RAT's
Change-Id: I6773bff7b6e9fc453c046fda221f5ecfd68954df
CRs-Fixed: 784379,
1063174,
1023026,
1060934, 957277, 957403,
1001718, 957838,
1018881,
1061684, 968357,
1003527
mqi [Mon, 5 Sep 2016 05:24:36 +0000 (13:24 +0800)]
Keyguard: Fix incorrect sim pin code counting issue
The Chinese resource string is not synced with English resource
string, missing sim card number which resulted the problem.
Change Chinese resource string synced with English one.
Change-Id: Ib921dc2f130c2e4002b3cfb58098b8e05ea8a86c
CRs-Fixed:
1056166
Pawit Pornkitprasan [Sat, 20 Dec 2014 07:58:47 +0000 (14:58 +0700)]
SystemUI: fix MediaProjection cast crash
Clicking on the "cast" icon of an app using the MediaProjection API will
crash as the code assume that it is a device.
java.lang.ClassCastException: android.media.projection.MediaProjectionInfo cannot be cast to android.media.MediaRouter$RouteInfo
at com.android.systemui.statusbar.policy.CastControllerImpl.startCasting(CastControllerImpl.java:177)
at com.android.systemui.qs.tiles.CastTile$CastDetailAdapter.onDetailItemClick(CastTile.java:237)
at com.android.systemui.qs.QSDetailItems$1.onClick(QSDetailItems.java:177)
at android.view.View.performClick(View.java:4756)
at android.view.View$PerformClick.run(View.java:19749)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
Change-Id: Icfdf745c03da7bd1bbb228e06005f55324c1b8fa
Raj Yengisetty [Fri, 19 Dec 2014 23:14:58 +0000 (15:14 -0800)]
Adding back pdf_printer_media_sizes for values-zh-rCN to accomodate mediasize_default
Change-Id: I45cfd8babe813fa5dba49bb444e10517a3771f30
Ricardo Cerqueira [Thu, 22 Nov 2012 06:02:18 +0000 (06:02 +0000)]
telephony: SignalStrengh: Don't calculate a LTE snr if the srq is invalid
If the previous values are invalid and signal quality is -1, chances are there's
no LTE signal at all, so don't calculate the SNR and mark it invalid as well.
This fixes the strength indicator in GSM devices where it was being skewed
by the ghost LTE value
Change-Id: I070573401c141aa99941a332ee256246697abb90
Pawit Pornkitprasan [Sun, 1 Sep 2013 09:24:14 +0000 (16:24 +0700)]
PackageManager: allow build-time disabling of components
Allow components to be specified as disabled at build time
(applied on boot).
This allows stock OTA components to be marked as disabled in
CM builds.
Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f
SystemUpdateService: enable service but lock its receivers [1/2]
Added a check for ensure that disabled components are not
re-enabled at runtime
Added code for forcing enable of previously disabled components
Change-Id: Icfcfa26ccb85028d32edbb5cdb3dd7cdae85b720
Jon Evans [Mon, 1 Dec 2014 01:55:42 +0000 (20:55 -0500)]
Port: Wake on plug (1/2)
Change-Id: I5e50a7fd351857d76c1c2fd13c6e737d8902a2f3
Ricardo Cerqueira [Mon, 4 Nov 2013 02:17:27 +0000 (02:17 +0000)]
Framework: Forward port ADB over network (Part 2 of 2)
Includes:
- ADB Over Network, integration of the adb-host mode (already present)
The feature can be used/tested without the Settings part:
setprop service.adb.tcp.port 5555
Note: This ADB setting is not persistent (for security purpose) and
require init.rc implementation event like this : http://bit.ly/AdbTcpIP
Author: Tanguy Pruvot
Id: I5c61a53948349c785356cb5aae165110d75e3074
Author: sssemil <suleymanovemil8@gmail.com>
Show notification on adb over network too
Screenshots - http://goo.gl/TgsRI6
Id: I9ddc0aa9a4f330a06ab5d97a8645d1b31bb6f299
Change-Id: I101216c5b8ddff5040d9eeaf35afefc5cd98bbf3
Danny Baumann [Thu, 20 Nov 2014 11:55:05 +0000 (12:55 +0100)]
Also dump widget options in 'dumpsys appwidget'.
Change-Id: Ia002c4b93d453ecb94be9312371ec71853a9774b
Danny Baumann [Fri, 14 Nov 2014 17:44:51 +0000 (09:44 -0800)]
Treat default value that wasn't found as empty value.
Fixes http://code.google.com/p/android/issues/detail?id=33220
Change-Id: If22e8b245f688d922c168aa54c8acf743c0644d7
Ricardo Cerqueira [Wed, 4 May 2011 00:19:03 +0000 (01:19 +0100)]
PackageManager: Restrict system packages to protected storage
Don't allow packages signed with the platform key to be
installed into user (or app) controlled storage
Change-Id: I7390b3bdf5289411f7a335c69635bed9f74bbfb3
PackageManager: Limit the platform-key protection to test-keys builds
This block (change I7390b3bdf5289411f7a335c69635bed9f74bbfb3) is intended
to protect the system from abuse of well-known keys. That's not the case
if the system is signed with dev or release keys.
Change-Id: Ifb66f775dd28c577447634ae177442732a18b592
dh-harald [Fri, 21 Nov 2014 10:00:36 +0000 (10:00 +0000)]
Vectone UK (MNC01) considered non-roaming on T-Mobile (MNC30)
Change-Id: Id74c854f958be721be12451a124cfd2f8b150255
neatchee [Fri, 22 Aug 2014 00:25:13 +0000 (17:25 -0700)]
Lycamobile (MNC04) considered non-roaming on Vodafone (MNC01)
Change-Id: Icff916672e5ed666adf2cdfeb26d24bf43b64683
neatchee [Fri, 22 Aug 2014 00:22:03 +0000 (17:22 -0700)]
Vectone/Delight (MNC07) considered non-roaming on NOS (MNC03)
Change-Id: I743935b94bb531d78b784550e3028378cdc01959
neatchee [Fri, 27 Jun 2014 21:52:15 +0000 (14:52 -0700)]
Noverca (MNC07) considered non-romaing on TIM (MNC01)
Change-Id: I473e1f88db0fe0d5e1799f6d6d892649abb7dc74
neatchee [Thu, 15 May 2014 23:17:42 +0000 (16:17 -0700)]
Tele2 considered non-roaming on T-Mo
Change-Id: Ibb05f277b701861b8716168b54e96f63127e686d
neatchee [Wed, 21 May 2014 23:56:22 +0000 (16:56 -0700)]
Saunalahti considered non-roaming on Elisa
Change-Id: I51b554cf578c6027d52ad6e111e41d269c1f579f
Phil Eichinger [Tue, 13 May 2014 08:00:47 +0000 (10:00 +0200)]
National Roaming: Allow T-Mobile AT (MNC03) to roam on 3 AT (MNC10) in Austria
Change-Id: Ief827259fdcb5bfa13bd643f80a8547a56cc934c
Arne Coucheron [Mon, 12 May 2014 22:36:20 +0000 (00:36 +0200)]
Allow 3 AT (mnc05) to roam on T-Mobile in Austria
Change-Id: Ie1a62db9a48cfaf594ddda7b413299a9b587ddd4
Aditya Pandey [Sun, 4 May 2014 07:13:59 +0000 (12:43 +0530)]
Added Non-Roaming for carrier BSNL in UP East and WEST INDIA
Added No-roaming for BSNL from circle UP East to UP West, India
Change-Id: I45e804da143e844d794cca98652f5fc6ac4e209b
d95andek [Fri, 17 Jan 2014 21:20:33 +0000 (22:20 +0100)]
core: added national roaming info for Spring Mobil in Sweden...
Spring Mobil users in Sweden (MCC 240, MNC 10)
can roam on Sweden 3G (MNC 05) and on Sweden 2G (MNC 24).
Change-Id: Ie27ad3561de32557a1713d4962fcc9ec52a8b7fe
broodplank [Wed, 18 Dec 2013 23:15:21 +0000 (00:15 +0100)]
core: added national roaming info for Tesco Mobile in Ireland.
Users of Tesco Mobile in Ireland(MCC 272 MNC 11)
can roam on O2 Ireland (MNC 02)
Change-Id: Ie0b32d51511c2bbc726c43cdec78332397d1ecb9
Nebojsa Cvetkovic [Sun, 15 Dec 2013 19:23:49 +0000 (19:23 +0000)]
National roaming info for 3 in Ireland
Change-Id: I451831f4144b72feac1a38ef1e8693cb947d6d7e
Phil Eichinger [Fri, 13 Dec 2013 08:53:05 +0000 (09:53 +0100)]
National roaming info for Drei in Austria
3AT roams in T-Mobile AT networks
Change-Id: I915edccf92bcbb088fa25b958eb345c624f61597
maxwen [Sat, 7 Dec 2013 16:33:32 +0000 (17:33 +0100)]
base: added national roaming info for Play in Poland
Cherry-picked from OmniROM:
https://gerrit.omnirom.org/#/c/3382/
Users of Play in Poland (MCC 260 MNC 06) can roam on
Plus, T-Mobile, Orange (MNCs 01/02/03)
Change-Id: I8ea62b0ca40bac9ced11802ee8ef583d6392a199
Dave Daynard [Sun, 15 Dec 2013 20:35:04 +0000 (15:35 -0500)]
Allow override of DUN settings
Allow override of system DUN settings by setting
persist.sys.dun.override
to one of the following values:
2 = not set, 0 = DUN not required, 1 = DUN required
If the prop is not set or is set to an invalid value the system setting
will be used.
Change-Id: I296f303a23351e4ab29898895abfcd313c747db9
Vijay Kumar Tumati [Wed, 22 Apr 2015 07:20:02 +0000 (12:50 +0530)]
Camera: Longshot with Burst Functionality.
New Longshot stop command is sent after receiving all the required YUV
callbacks or releasing the shutter before reaching Max number.
Change-Id: I264d94cde624b5f2ead88236bdff8d6db41e12e6
Steve Kondik [Wed, 31 Aug 2016 08:32:13 +0000 (01:32 -0700)]
androidfw: Fix CMSDK resource handling on N
* Consider the CMSDK package identifier in the new dynamic resource
conditions.
Change-Id: I3e84d12ac86a6eb1d3407aa64234f80a0e945e70
Christopher R. Palmer [Thu, 29 Oct 2015 10:04:21 +0000 (06:04 -0400)]
aapt: Fix compiler warning (clobbered by longjmp)
The error handling can clobber the fp variable when the code is
being optimized and therefore fp must be marked as volatile to
stop it from doing unsafe optimizations.
Change-Id: Ib133587687c7fc0e788c4b9673669ef9b5bbe91a
Chirayu Desai [Sun, 5 May 2013 14:05:45 +0000 (19:35 +0530)]
aapt: add check for untranslatable "string-array"s
Change-Id: Id884af0505c0bcdfa20b400fcdd54f699f8ef38f
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
Christopher R. Palmer [Tue, 5 Jan 2016 01:29:02 +0000 (20:29 -0500)]
aapt: Use a std::map instead of a SortedVector
Android's SortedVectorImpl uses arrays that it must
insert into the middle of. Each insertion is O(N) time
because it must move on average half the elements of
the array to make room for the new element. That is,
O(N^2) time to build this sorted vector.
std::map on the other hand normally uses red/black
trees and has a cost of NlogN to add N elements to it.
Change-Id: I5da0363ba806ab615b2aad0fb2a43ef9a9bec327
Christopher R. Palmer [Mon, 4 Jan 2016 10:18:31 +0000 (05:18 -0500)]
aapt: Speed up the style pruning
Prior to this commit it removed each style one by one which
causes the vector to repeatedly be shrunk and reallocated and
copied (aka either quadratic or NlogN in the number of items
removed).
This commit simply makes it remove them all at once to make it
linear instead.
Change-Id: I541d151675ab19f37d9de1e7a323104d0d3b3c63
Clark Scheff [Thu, 27 Aug 2009 14:45:44 +0000 (07:45 -0700)]
androidfw: Allow package ID to be overriden at runtime
Modify aapt tool to provide proper support for -x option.
Change-Id: Icc118b1afdc64d9f19c646c63d40f7243bf5265c
Roman Birg [Wed, 10 Jun 2015 17:34:35 +0000 (10:34 -0700)]
Allow permissions to be granted via whitelisted signatures
When an application defines a permission, it can now add a new
attribute "allowViaWhitelist", a boolean value. If set to true,
the permission may be granted to a package signed with a predefined key,
if it is defined via <allow-permission> in
/system/etc/permissions/someapp.xml.
Since this is a hidden attribute, it must use the prv namespace XML
declaration. E.g.: add the following to the <manifest> tag:
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
In the permission declaration:
<permission
android:name=""
android:protectionLevel="signature"
androidprv:allowViaWhitelist"true" />
And a corresponding entry in /system/etc/permissions/someapp.xml:
<allow-permission
name="some.android.PERMISSION"
signature="<known public signature>" />
Note: if the permission never declares "allowViaWhitelist", then the
whitelisted permissions will be ignored.
Change-Id: Ie4597a07eb0a193375fa2724bd9cf468184a7926
Signed-off-by: Roman Birg <roman@cyngn.com>
PackageManager: copy allowViaWhitelist flag for perm trees
Ref: CYNGNOS-622
Change-Id: Ic52f179d79ac69a055f994df05a502f893435a26
Signed-off-by: Roman Birg <roman@cyngn.com>
Explicitly declare which permissions can be granted via signature
This moves the older <allow-permissions> implementation inline with the
newer one, which requires any permission that can be granted via a
signature to explicitly add the attribute allowViaWhitelist="true".
Change-Id: Ie9f9bf6e2138075b750c58090dcd7030eff174f1
Signed-off-by: Roman Birg <roman@cyngn.com>
Allow CAPTURE_AUDIO_HOTWORD to be whitelisted by signature.
Change-Id: Ia4589c0fd5480a6f462812f5081160262632f09f
Allow additional permissions to be whitelisted by signature.
- android.permission.SET_PREFERRED_APPLICATIONS.
- android.permission.INTERACT_ACROSS_USERS_FULL.
Change-Id: I3fdb3fd412d3eb641a5745eb298afa1121540ccf
allow GET_ACCOUNTS_PRIVELEGED to be whitelisted
Change-Id: Idc5e5535476015800e47f0a3a472729a926dd7b1
Signed-off-by: Roman Birg <roman@cyngn.com>
allow priveleged phone state permission to be whitelisted
Ref: CYNGNOS-1660
Change-Id: I377ad833e44d5c54bbcf2f7447fe5383edc457fb
Signed-off-by: Roman Birg <roman@cyngn.com>
allow whitelisting of ACCESS_KEYGUARD_SECURE_STORAGE
Ref: CYNGNOS-1727
Change-Id: I7151ce3fa7c57ee89fecf691d6e92c4ab39ecf37
Signed-off-by: Roman Birg <roman@cyngn.com>
Allow granting permissions based on signature in <allow-permission/>
This patch allows us to either specify a sharedUserId or a package
signature to use when granting the specific permission.
Change-Id: I8aed78d40316e0e94ac1bfefc7c4a3016a2a9a6b
Explicitly declare which permissions can be granted via signature
This moves the older <allow-permissions> implementation inline with the
newer one, which requires any permission that can be granted via a
signature to explicitly add the attribute allowViaWhitelist="true".
Change-Id: Ie9f9bf6e2138075b750c58090dcd7030eff174f1
Signed-off-by: Roman Birg <roman@cyngn.com>
Steve Kondik [Wed, 31 Aug 2016 01:11:35 +0000 (18:11 -0700)]
systemui: Fix compilation
Change-Id: I03fad10b746e2bba81c30ba396a5af92b1ea75c9
Michael Bestas [Thu, 3 Dec 2015 18:08:42 +0000 (20:08 +0200)]
WindowManager: Add clearPrivateFlags
Change-Id: I0b51a52bf26f3566e74063e22f5c1b187c74b525
Danesh M [Sun, 18 Jan 2015 08:33:46 +0000 (00:33 -0800)]
SettingsProvider : Add functions for delimited strings
Change-Id: Ie4660540de9c6a33ede46c4df7637c0b2b2fc8d4
LuK1337 [Mon, 9 Nov 2015 19:18:42 +0000 (20:18 +0100)]
pm: Use /system/bin/sh instead of /bin/sh
We aren't symlinking /system/bin to /bin.
Change-Id: Ic49fddfaa4c213b6b399ee53095772e6de45ed57
(cherry picked from commit
b373b628de273d1879359d15aa5f8c721074b168)
Steve Kondik [Mon, 29 Aug 2016 22:30:11 +0000 (15:30 -0700)]
fix: fw: Utilize CMSettings for specific buttons settings.
Change-Id: Ic6bdf6bd7753721dcf01df5f7463b810effdbfdc
Steve Kondik [Mon, 29 Aug 2016 22:29:36 +0000 (15:29 -0700)]
FIX: fw: Move Secure settings to CMSettings
Change-Id: I3f69ccd108edd3b0787ea6b093fd6bd06f8f4cb2
Steve Kondik [Mon, 29 Aug 2016 22:11:48 +0000 (15:11 -0700)]
Compilation fixes
Change-Id: Id9d70e26f2970a696abb77dd73a323347f673035
Danesh M [Thu, 12 Nov 2015 18:52:11 +0000 (10:52 -0800)]
Framework : Move System settings to CMSettings
Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727
Adnan Begovic [Wed, 11 Nov 2015 21:34:54 +0000 (13:34 -0800)]
fw: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.
Change-Id: I30824dc84bd32e335dde53cee7e40c085894827c
Adnan Begovic [Wed, 11 Nov 2015 20:38:00 +0000 (12:38 -0800)]
fw: Move STATUS_BAR_SHOW_WEATHER to CMSettings.
Change-Id: I00b547053ea02b4888cdde1a4ed3e842b14f5d70
Adnan Begovic [Wed, 11 Nov 2015 20:05:59 +0000 (12:05 -0800)]
fw: Move DOUBLE_TAP_SLEEP_GESTURE to CMSettings.
Change-Id: I8274b7c241cef6835a1114a702e68c95b6d2e036
Roman Birg [Sun, 23 Nov 2014 14:54:06 +0000 (06:54 -0800)]
SystemUI: double tap to sleep improvements
* Make it more reliable
* Add it to keyguard
* Add a content observer to not always query Settings.System on every
touch event
Change-Id: I292c4d9d9f810843590b7a9ec6e15b99ac44009d
Signed-off-by: Roman Birg <roman@cyngn.com>
Roman Birg [Mon, 10 Nov 2014 03:52:34 +0000 (19:52 -0800)]
SystemUI: add quick settings pull down with one finger
Logic is currently set to use 1/3 of right hand side of the statusbar to
trigger a quick settings quick pull down, quickly.
Change-Id: I3f536496f724f07d2419a5b2db5fa8f8261609e7
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: fix right hand side gestures on lockscreen
two finger quick pulldown was not accounting for being in the keyguard
adn was eating touch events when it shouldn't be.
Change-Id: I625d48a4002aaaf2d55d7efaed65d892ab7aa13c
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: add Settings.System toggle for quick-quick settings pulldown
Change-Id: I3c5dcfc23f39bf8be6c402e25f61e6f57a8add2c
Signed-off-by: Roman Birg <roman@cyngn.com>
AdrianDC [Wed, 11 Nov 2015 20:06:22 +0000 (21:06 +0100)]
LEDs Brightness: Update the slider for M
* Add notification details needed for M
* Sync with some changes made in the Display Brightness dialog
* Clean ic_settings indents with Settings ic_settings_24dp.xml
Change-Id: I8b6ac1920704f43f4776cbd3bdfb3d0ed8d223dc
Signed-off-by: AdrianDC <radian.dc@gmail.com>
AdrianDC [Wed, 11 Nov 2015 18:16:33 +0000 (19:16 +0100)]
fw: Move Notification LEDs settings to CMSettings
* Lights with Screen On
* LEDs Brightness
* Multiple LEDs
Change-Id: Ife49a2f8077e9361f56990fb4b0b49e1c44bdd5e
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Gabriele M [Sat, 7 Nov 2015 23:42:35 +0000 (00:42 +0100)]
PowerManager: don't pass NULL pointers to power HAL
Sending a NULL pointer here is likely going to cause system crashes and
doesn't seem to be the correct thing to do, a value equals to zero is
no different from the others.
Change-Id: I2678387715b3ec1d12627abe2dd5d3e189579dc4
Adnan Begovic [Tue, 10 Nov 2015 00:26:00 +0000 (16:26 -0800)]
fw: Move battery light settings to CMSettings.
Change-Id: I28e60473356b2a9af152df82d34ad7abc9918682
d34d [Tue, 10 Nov 2015 18:47:58 +0000 (10:47 -0800)]
fw: Move Secure settings to CMSettings
This moves all Settings.Secure.* settings that, were added to
CyanogenMod, to CMSettings.
* KEYBOARD_BRIGHTNESS
* BUTTON_BRIGHTNESS
* BUTTON_BACKLIGHT_TIMEOUT
* DEV_FORCE_SHOW_NAVBAR
* ADB_NOTIFY
* ADB_PORT
* DEVICE_HOSTNAME
* KILL_APP_LONGPRESS_BACK
* PROTECTED_COMPONENTS
* LIVE_DISPLAY_COLOR_MATRIX
* ADVANCED_REBOOT
* POWER_MENU_ACTIONS
* DEFAULT_THEME_COMPONENTS
* THEME_PREV_BOOT_API_LEVEL
Change-Id: I49e9160177ffc727b20008817ac2b5ce5e89ead5
Tanguy Pruvot [Tue, 27 Nov 2012 19:09:18 +0000 (14:09 -0500)]
Port "Option to hide Adb notification icon (2/2)"
Change-Id: I5d40f5b0990fa3a1d02210ad4cc2ff5ada15e69c
Christopher R. Palmer [Fri, 1 May 2015 10:15:47 +0000 (06:15 -0400)]
ambient display: Fix volume key music control
Previously the dream service would only report whether or not it was dreaming.
Ambient display counts as dreaming. When dreaming, the volume inputs are
passed back to the application which is not what we want for ambient
display.
Fix this by exposing isDozing() and allow volume keys to control music
when we are dreaming and have moved into doze mode (aka, sleeping).
Change-Id: I3b1e72b95ec8b1b63ef0219259dfee77a5d339d3
Roman Birg [Thu, 19 Mar 2015 21:32:33 +0000 (14:32 -0700)]
SystemUI: small optimization for notification icon numbers
Don't create the paint object used to draw notification icon count
badges in the status bar unless the user actually wants to see those
counts.
Change-Id: Iabba316102583a798acdc124d9fb51c0d7826a0d
Signed-off-by: Roman Birg <roman@cyngn.com>