309489 Commits

Author SHA1 Message Date
Chad Brubaker
816c83bf03 Enforce visibleToInstantApps for receivers
Instant apps can only send broadcasts to receivers that are declared in
the manifest with android:visibleToInstantApps=true or if the app
registers a receiver at runtime using the new methods that take
visibleToInstantApps.

Bug:33350280
Test: Manually sending broadcasts from Instant Apps only goes to
receivers with visibleToInstantApps set to true.
Test: Receiving a broadcast from within the same app does not require
visibleToInstantApps to be set.

Change-Id: I54d79a502ba9c5fd03ede3c09e08afc88fe2775f
2017-03-07 15:28:03 -08:00
Chad Brubaker
b7e34d5508 Only send exposed broadcasts to Instant Apps
In order to prevent Instant Apps from receiving potentially sensitive
broadcasts they will only receive those that the sender explicitly
exposes to Instant Apps by setting
Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS.

Bug:33350280
Test: `adb shell am broadcast` does not get delivered to Instant App
Test: `adb shell am broadcast -f 0x0x200000` gets delivered to Instant
App
Test: Verified that an Instant App can send a broadcast to itself
without FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS
Change-Id: Ie363448bf224abba530dd4caf69258939fff00af
2017-03-06 11:11:33 -08:00
Mathieu Chartier
748bf77274 Merge "Generate app image for system-server" 2017-03-06 16:49:24 +00:00
TreeHugger Robot
5f19b59491 Merge "Import translations. DO NOT MERGE" 2017-03-06 16:31:59 +00:00
TreeHugger Robot
627c9476e8 Merge "Import translations. DO NOT MERGE" 2017-03-06 16:26:26 +00:00
Charlie Tsai
072d7ac548 Merge "Implement drawPoint and drawPoints of BaseCanvas_Delegate" 2017-03-06 13:43:42 +00:00
Filip Pavlis
ac24f094f6 Merge "Improve preferences for PreferenceDataStore." 2017-03-06 13:29:32 +00:00
Bill Yi
7fab80002c Import translations. DO NOT MERGE
Change-Id: Id4a9d4c2e278304cbc4bb76cc59a266b9a6f693e
Auto-generated-cl: translation import
2017-03-06 04:46:32 -08:00
Hugo Benichi
45deba76fc Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." am: 704520c392 am: 4cf199383f
am: 22d4258a75

Change-Id: I8e66e223003a38735b707d21d7bedb19170b1937
2017-03-06 12:45:10 +00:00
Hugo Benichi
22d4258a75 Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." am: 704520c392
am: 4cf199383f

Change-Id: I79234b267fccb31dfd53cf970a8da039654e684b
2017-03-06 12:37:36 +00:00
Hugo Benichi
4cf199383f Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499."
am: 704520c392

Change-Id: Ia0ae78f8406b81377491407cf5ef8ca339952def
2017-03-06 12:30:05 +00:00
Hugo Benichi
704520c392 Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." 2017-03-06 12:20:45 +00:00
Charlie Tsai
dea48d61df Implement drawPoint and drawPoints of BaseCanvas_Delegate
Test: Layoutlib tests
Change-Id: Ic6d81b9581db9dab4ecbacb8f08ab41e0077bab0
2017-03-06 11:39:22 +00:00
Bill Yi
f030bb39c5 Import translations. DO NOT MERGE
Change-Id: Iff822fac67b1b27301b96e63af899e7e1279875f
Auto-generated-cl: translation import
2017-03-06 03:29:50 -08:00
Clara Bayarri
e1be1dfbc3 Merge "Ignore non-font resource references in TextView constructor" 2017-03-06 10:40:24 +00:00
Anton Philippov
1363ab3d7b Merge "Pass an empty list to PerformBackupTask constructor instead of null" 2017-03-06 10:25:25 +00:00
TreeHugger Robot
4c368d5502 Merge "Import translations. DO NOT MERGE" 2017-03-06 06:39:39 +00:00
Hugo Benichi
649e32484e Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499.
This reverts commit faa70976b490116323107166f90fdd944c5bdc77.

Change-Id: I86c07c113f24753be7c977e6d7f570b99391e1b5
2017-03-06 06:16:51 +00:00
Andrii Kulian
d25db710d4 Merge "Compute merged configuration changes" 2017-03-06 06:12:38 +00:00
Bill Yi
895c18c096 Import translations. DO NOT MERGE
Change-Id: I3af1430764f59d462cc653f0a1870611d5ac51a9
Auto-generated-cl: translation import
2017-03-05 19:29:15 -08:00
Jaewan Kim
8427837e6c Merge "MediaSessionService: Leave volume key event logs by default" 2017-03-06 02:57:32 +00:00
Mathieu Chartier
a30bc6add0 Generate app image for system-server
Use new override properties.

Bug: 34929159

Test: phone boot

Change-Id: Iea7f50d34020255d27a5a303da2801afecb60f25
2017-03-05 16:11:08 -08:00
Hyundo Moon
e0c121a4b7 Merge "Modify JavaDoc of MediaBrowserService.getBrowserRootHints" 2017-03-05 14:18:12 +00:00
Jason Monk
e5b770e47d Updated QS UI
- Adds footer to QS which contains the date/alarm info
   and all touch targets (settings, edit, etc.)
 - Swaps out emergency + carrier text on cell tile for a
   standard CarrierText from lock screen in the header
   to make the header only contain status info.
 - Add dividing line
 - Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
2017-03-04 20:02:09 -05:00
Jason Monk
702e2ebf9f Add plugin API for individual QS tiles
This will allow prototyping of individual QS tiles and/or their
visual representation without having to write a plugin for the
entire panel. This will allow quick iteration on QS UI + dual
target tiles.

Test: Install plugin using new API
Change-Id: I05ca9d9f5a200a1dad2c3582251a36edb5cb9aba
2017-03-04 16:01:26 -05:00
TreeHugger Robot
5a4e12e143 Merge "Don't set auto-fill options when Spinner has no adapter." 2017-03-04 10:10:58 +00:00
TreeHugger Robot
f4537dcf3b Merge "Minor changes on AutoFill Save UI." 2017-03-04 10:03:59 +00:00
Felipe Leme
5591044864 Don't set auto-fill options when Spinner has no adapter.
Change-Id: Ib42fe5ba57d5ef31a00b39945ac3bcacbb217cc8
Fixes: 35965642
Bug: 33550221
Test: compilation only
2017-03-04 00:23:23 -08:00
TreeHugger Robot
3056c61155 Merge "Don't run autoFill on detached view or mode=manual" 2017-03-04 06:57:25 +00:00
TreeHugger Robot
3c64ca7d95 Merge "Fix bug #35673706 - null verifier component..." 2017-03-04 03:25:45 +00:00
Paul Lawrence
1ee4025af0 Merge "Make seccomp honor setenforce" am: c337e32bb0 am: 071dcc02b4
am: fb350eb0c7

Change-Id: Id8d8c478d9e1d929d216286bbf0fbdc423018c17
2017-03-04 02:29:36 +00:00
TreeHugger Robot
943d4e8224 Merge "Bluetooth: Use content observer for airplane mode" 2017-03-04 02:27:07 +00:00
Paul Lawrence
fb350eb0c7 Merge "Make seccomp honor setenforce" am: c337e32bb0
am: 071dcc02b4

Change-Id: I95d2303229f38c3d0719d830deefd58cc3280278
2017-03-04 02:23:14 +00:00
Paul Lawrence
071dcc02b4 Merge "Make seccomp honor setenforce"
am: c337e32bb0

Change-Id: I9d1bfd35f7da304188da2d6aff6b937108ae4680
2017-03-04 02:17:43 +00:00
Treehugger Robot
c337e32bb0 Merge "Make seccomp honor setenforce" 2017-03-04 02:08:54 +00:00
Christopher Tate
0fdb3a84cf Fix bug #35673706 - null verifier component...
...causing an NPE when we attempted to call getPackageName() on it.

This patch avoids the NPE, but does not address the underlying
question of why the component we're attempting to target is coming
back null.  This new approach guarantees the security of the broadcast,
though, so we needn't worry further about that.

Test: install app & note verifier action

Change-Id: I0d316e0815210ba1fbb14da6b76d5c23a85c96a4
2017-03-03 17:31:19 -08:00
TreeHugger Robot
227bdecf02 Merge "fallout of cleaning-up libutils includes" 2017-03-04 00:52:50 +00:00
TreeHugger Robot
ae3c244944 Merge "AAPT2: Fix Plural::Equals() method" 2017-03-04 00:50:51 +00:00
TreeHugger Robot
64979aacb5 Merge "expose isSealed() from the installer session" 2017-03-04 00:47:36 +00:00
Ashutosh Joshi
41cbfd830a Merge "Pass on the Apps Query Response to clients." 2017-03-04 00:37:36 +00:00
TreeHugger Robot
a515299d29 Merge "Add forAutoFill suffix on ViewStructure methods that add children." 2017-03-04 00:37:14 +00:00
Billy Lamberta
7fe805b137 Merge "Set hdf var 'dac' to true in droiddoc options. Allows for DAC template customizations in Doclava." 2017-03-04 00:19:16 +00:00
TreeHugger Robot
ba1c72b07f Merge "Restrict access from apps to bluetooth_address setting" 2017-03-04 00:03:46 +00:00
TreeHugger Robot
4992dbb6f7 Merge "Mark ACTION_VOICE_ASSIST as SystemApi" 2017-03-03 23:58:19 +00:00
TreeHugger Robot
870c26af90 Merge "Minor documentation fixes." 2017-03-03 23:44:05 +00:00
TreeHugger Robot
c2c345d613 Merge "Fix crash in secondary user" 2017-03-03 23:10:32 +00:00
Todd Kennedy
04cc191c3c expose isSealed() from the installer session
Change-Id: I5232a012fbee8931b0e3f584d6bb2e273a789dee
Fixes: 35948628
Test: Manual
2017-03-03 15:03:30 -08:00
Nathan Harold
de02aeb92b Merge changes from topic 'sms-file-refactor'
* changes:
  Permit privileged system apps to send SMS without persisting.
  Move newFromRil() function to a utility class
  Remove dependency on telephony-common from services/core
  Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
  Port Utility Functions from DefaultPhoneNotifier
  Remove dependency on IccConstants from SmsManager
  Merge branch 'stage-telephony-refactor' into master
2017-03-03 22:51:43 +00:00
TreeHugger Robot
f1e54c9a1c Merge "Modify SurfaceView to use SurfaceFlinger child surfaces." 2017-03-03 22:45:24 +00:00
Felipe Leme
dbe07a587c Add forAutoFill suffix on ViewStructure methods that add children.
Change-Id: I36f7bd26b7d45fd809d7398cc86de3d2671f2b28
Fixes: 35764877
Test: m update-api
2017-03-03 14:33:07 -08:00