14724 Commits

Author SHA1 Message Date
Yohei Yukawa
ce3f338040 Merge changes I0f79243e,Ia27e19f9,Iec6b89f0,I276c7eb0 into nyc-dev
* changes:
  Have unified setter/getter for Secure Settings.
  Remove redundant arguments.
  Use Context#getSystemService(Class<T>) in IMMS.
  Use Java7 diamond operator in InputMethodUtils.
2016-02-16 16:11:50 +00:00
Shreyas Basarge
b55fa08c74 Merge "Fixes JobScheduler not persisting flex and sourcePackage" into nyc-dev 2016-02-16 14:55:44 +00:00
Arunesh Mishra
4e0bdf3a38 Fix boot loop problem for volantis.
Bug: 27192965

Change-Id: I90febaf6a750d539847f45c2795d74b2a4b69f02
2016-02-16 00:05:53 -08:00
Jeff Sharkey
115d2c189a Add feature versions for devices and apps.
We're starting to see more instances of device features that will
increment separately from the SDK API level, such as camera HAL,
GPU capabilities, Bluetooth, and other hardware standards.

This change adds the ability for device features to specify a
version, which is defined to be backwards compatible.  That is, apps
requesting an older version of a feature must continue working on
devices with a newer version of that same feature.

When a version is undefined, we assume the default version "0".

Bug: 27162500
Change-Id: If890bf3f3dbb715e8feb80e7059a0d65618482ea
2016-02-15 17:45:42 -07:00
Jeff Sharkey
c6ca265902 Filter components, prevent app start in safe mode.
When device is in safe mode, we're trying to keep third-party code
from running to give us a stable platform.  The ideal approach would
be to treat these apps as temporarily "uninstalled" when in safe mode,
but not all system internals are ready for this.

Instead, go back to previous behavior where we simply filtered
non-system components.  This isn't perfect, since there are still
cracks through which components can leak out (GET_ACTIVITIES, etc).

So as a last-ditch sanity effort, refuse to fork any third-party apps
while running in safe mode.

Bug: 27165374
Change-Id: I044ede02e923c499159faf59b12e79b97fe77fba
2016-02-15 15:33:34 -07:00
Shreyas Basarge
8e64e2e6a4 Fixes JobScheduler not persisting flex and sourcePackage
There was a bug with persisteing and restoring flex and
sourcePackage. Fixed it and added tests.

Change-Id: Ie8e4714b4727ecef4254773fd4339b28f4a47c01
2016-02-15 15:51:52 +00:00
Rubin Xu
6bdd7cab5a Merge "Fix typo in filling ACTION_MANAGED_PROFILE_UNLOCKED extras." into nyc-dev 2016-02-15 14:30:00 +00:00
Rubin Xu
b5f0049f98 Fix typo in filling ACTION_MANAGED_PROFILE_UNLOCKED extras.
Change-Id: Ic949a0d7f72d46d7cc36018b4b0fc54024c3b180
2016-02-15 14:12:32 +00:00
Paul Crowley
d94ab73152 Send extra argument to unlock_user_keys on non-FBE startup
Non-FBE startup has a loop which sets up the appropriate lock state
for each user depending on whether FBE is being emulated; this loop
calls unlock_user_keys when emulation is off. I didn't modify this
loop when adding the extra arguemnt to unlock_user_keys.

Bug: 27155768
Change-Id: I825a61552383552eafb88c77c1f30591bdfd077c
2016-02-15 06:48:10 +00:00
Ian Pedowitz
e4c1ccec72 Revert "Fix missing observer reply callbacks"
This should not have merged from mnc-dr-dev, the underlying implementation has changed

This reverts commit dbb75248b19366d76cfdd7d4536d68467e7322c1.
2016-02-14 15:36:48 -08:00
Akshay Thakker
b9f686968c Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5 am: a3798d7a92
am: d6de840957

* commit 'd6de84095735a32e160f5ae9ce93489b0b19eeed':
  Fix missing observer reply callbacks
2016-02-14 22:48:31 +00:00
Akshay Thakker
d6de840957 Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5
am: a3798d7a92

* commit 'a3798d7a92ecefe1117b99a2e0f5edce1644f1d0':
  Fix missing observer reply callbacks
2016-02-14 22:37:55 +00:00
Akshay Thakker
a3798d7a92 Merge "Fix missing observer reply callbacks" into mnc-dr-dev
am: d1811e07d5

* commit 'd1811e07d5ee751cbdc37a3ff84e2e010ead7adf':
  Fix missing observer reply callbacks
2016-02-14 22:30:47 +00:00
Chong Zhang
3dbcd203c5 Merge "Clearing mDestroying flag when app is made visible again" into nyc-dev 2016-02-13 18:09:47 +00:00
Svet Ganov
f4ff39c92b Multi packages per APK - broadcasts
This change introduces the ability to have multiple packages per
APK. The feature is currently restricted to privileged apps and
updates to such apps.

In essence the manifest can have multiple child package declarations.
A child package can declare everything an Android package can except
some tags or attributes that are not applicable and instead inherited
from the parent when needed. For example, the target SDK of the parent
applies to all children.

A child package can be updated only through the parent package.
A package with multiple child packages is installed, uninstalled
atomically - no partial installs where some child packages are not
installed.

This change ensures that we send package broadcasts for child packages
when they are updated, removed, disabled, replaced, etc.

Sample app:ag/848432

Change-Id: I25b29c98152dcad9ede4d4eb040cc897b7f93426
2016-02-12 20:20:29 -08:00
Yohei Yukawa
94e3330e63 Remove redundant arguments.
The "list" and "map" arguments of IMMS#buildInputMethodListLocked() are
nothing more than synonyms of IMMS#mMethodList and IMMS#mMethodMap,
respectively.  There is no reason to pass them as parameters.  We can
access them directly as we have done there for other member fields.

This is kind of a mechanical refactoring.  No behavior change is
intended.

Bug: 26279466
Change-Id: Ia27e19f9358ba33abbb1e5a27cebe7c9953c998f
2016-02-12 19:37:03 -08:00
Yohei Yukawa
d34e1486ee Use Context#getSystemService(Class<T>) in IMMS.
This is a mechanical replacement of
  Object Context#getSystemService(String)
with
  T Context#getSystemService(Class<T>)
in InputMethodManagerService.java.

No behavior change is intended.

Bug: 26279466
Change-Id: Iec6b89f0367140f98d3ca4caa1dae7375e27f3ad
2016-02-12 19:36:50 -08:00
Amith Yamasani
dbb75248b1 Fix missing observer reply callbacks
This was causing upto 2 seconds in user switching delay.

Bug: 25813588
Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
2016-02-12 18:13:00 -08:00
Vladislav Kaznacheev
989b58a633 Update pointer icon when View.setPointerIcon is called
Currently the updated pointer icon is only displayed after
the next mouse move.

Bug:27107871
Change-Id: Ieed57b07fe44699735179cf57968a9bb08981396
2016-02-12 16:55:53 -08:00
Chong Zhang
5471e90ef9 Clearing mDestroying flag when app is made visible again
If not cleared window will remain invisible and can't receive inputs,
which coud lead to ANR.

Also continue looking for windows to be destroyed instead of stopping
on first one that's not removed by client.

bug: 27123118
Change-Id: I27048779886c69eb6e7ad5e21210be511416d8b6
2016-02-12 23:55:47 +00:00
Amith Yamasani
6b6b9c6425 Merge "Use hasInternetPermission method" into nyc-dev 2016-02-12 21:29:15 +00:00
Shreyas Basarge
e4f490cc69 Merge "Add defaultPeriodic to every authority" into nyc-dev 2016-02-12 21:16:32 +00:00
Jae Seo
b6748a2aec Merge "TIF: Check the CEC message length before copying the data" into nyc-dev 2016-02-12 20:50:44 +00:00
Shreyas Basarge
6275d49007 Add defaultPeriodic to every authority
Adds a default periodic sync to every
authority on boot so that subscribedfeeds
adapter gets back its periodic sync if lost.
This change will bereverted in the next droidfood
build.

Change-Id: Icae76c2baafb471ad69d01a4c65023dc6f6525c0
2016-02-12 20:44:31 +00:00
Amith Yamasani
2a4ac4e5ef Use hasInternetPermission method
Followup to Bug: 27165396

Change-Id: Ibdf6f5dd15197d4e19d7c7729612c13a02cdbf2b
2016-02-12 12:43:15 -08:00
Julia Reynolds
597c6d8c5d Merge "Show topic settings inline if user has configured topics." into nyc-dev 2016-02-12 20:31:55 +00:00
Amith Yamasani
b8849e6891 Merge "When the device boots up, netd works more than required" into nyc-dev 2016-02-12 20:27:55 +00:00
Jorim Jaggi
9f6798a936 Fix layout for full-screen floating windows
When the app doesn't set IN_SCREEN and INSET_DECOR but the window is
still full-screen, we force SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN but then
we still need to communicate the content insets to the DecorView.

In DecorView, we consume these insets in this mode and set it as
layout params so this behavior is completely transparent for the
app.

Bug: 26464646
Change-Id: Ib7332b845767a5bbc0266c380bf6240e322db943
2016-02-12 19:31:07 +00:00
Julia Reynolds
a0424c729f Merge "Possibly fix deadlock." into nyc-dev 2016-02-12 19:00:43 +00:00
Julia Reynolds
0f50e4ebab Possibly fix deadlock.
Bug: 27122790
Change-Id: I4361cc09e34ea71d7d69a54330ce52574c2b9b3d
2016-02-12 19:00:07 +00:00
Soi, Yoshinari
a065da1703 When the device boots up, netd works more than required
When the device boots up, netd adds rules for applications
which do not have the NETWORK permission to iptables.
Therefore, optimize NetworkPolicyManagerService to not touch
uids that do not have the NETWORK permission.
This modification is similar to Google commit 88e98dfa5.

Cherry picked from AOSP commit to master.

Bug: 27165396
Change-Id: Ic8bb837143b9e349859210654248195d62b73d17
2016-02-12 10:41:09 -08:00
Vladislav Kaznacheev
0a253a67d9 Merge "Make drag and drop comply with cross profile copy paste policy" into nyc-dev 2016-02-12 18:22:23 +00:00
Vladislav Kaznacheev
da2f1943df Make drag and drop comply with cross profile copy paste policy
If UserManager.DISALLOW_CROSS_PROFILE_COPY_PASTE is false
then drag and drop is only possible between apps from the same
profile.

This CL also supports cross-profile content URI grants.

Bug:26772503
Change-Id: I2e160cfdc6259fee2ea5e561c6e21fc0547dca2e
2016-02-12 10:04:31 -08:00
Rubin Xu
faf9bdcdba Small refactoring to eliminate the need to allocate array.
Change-Id: Ib08a16e40c342b12e4f7106376f46d6279f29f2b
2016-02-12 17:22:48 +00:00
Julia Reynolds
fec58c263c Show topic settings inline if user has configured topics.
Change-Id: Icf51faad61b3ae4261991691a1d679b190ea712a
2016-02-12 11:42:02 -05:00
Ritesh Reddy
ae0bcddc86 Stashing SyncSettings for accounts added aft SUW
Stashing SyncSettings for accounts not added by SUW Restore time
and restoring these settings whenever the account is added.

Bug: 26181613
Change-Id: Ia83e3fd43385a05424a8991115aa21ac90f4cd49
2016-02-12 15:49:01 +00:00
Kenny Guy
716a9e1892 Merge "Support FBE for managed profiles." into nyc-dev 2016-02-12 15:01:35 +00:00
Kenny Guy
b1b302660c Support FBE for managed profiles.
Allow launcher to see and attempt to launch non-crypto
aware application when profile is locked.
Hide unlock notification until parent user is unlocked.
Have unlock notitication use confirm credentials to unlock
the profile.
Updated notification strings as per suggestions in mocks
to make it clearer between users and profiles.

Bug: 27038260

Change-Id: If2d2c8148670d814544f4edd44193d15da32a289
2016-02-12 14:29:37 +00:00
Rubin Xu
5eb0f3b300 Maintain mSetupCompletedUsers for profiles correctly
When listening for USER_SETUP_COMPLETE changes, refresh the state for
the affected user instead of the current foreground user which excludes
the active managed profile.

Bug: 27061092
Change-Id: Iae525464d3d3faab9afb76aaf4304b9f10382e01
2016-02-12 14:11:27 +00:00
Gustav Sennton
7a002a215d Merge "Move current WebView provider from Settings.Secure to Settings.Global" into nyc-dev 2016-02-12 10:35:24 +00:00
Jae Seo
d0efcbbbb5 TIF: Check the CEC message length before copying the data
Bug: 25768736
Change-Id: Ife46891e785fe816c0ee6ba65bd57512366ce84d
2016-02-12 00:12:36 -08:00
Jorim Jaggi
e26334ba1a Merge "Handle light status bar for split-screen" into nyc-dev 2016-02-12 03:12:18 +00:00
Fyodor Kupolov
50b5616dcc Merge "Clear calling identity before setting restrictions" into nyc-dev 2016-02-12 01:37:38 +00:00
Felipe Leme
089c9c0c6c Merge "Optimized add|removeRestrictBackgroundWhitelistedUid()." into nyc-dev 2016-02-12 00:50:47 +00:00
Winson Chung
34f5c494df Merge changes If90955f4,I9fa48c06,Ib4681a43 into nyc-dev
* changes:
  Adding view debug annotations to simplifying debugging state.
  Disallow launching third party apps in safe mode.
  Drawing thumbnail background color for empty space in view.
2016-02-12 00:29:43 +00:00
Fyodor Kupolov
aa72470acb Merge "During update enable system apps for requested users only" into nyc-dev 2016-02-12 00:04:04 +00:00
Rob Carr
2b63730837 Merge "Correct error in window lifetime." into nyc-dev 2016-02-11 23:06:25 +00:00
Shreyas Basarge
73f1025f2d Fix for JobScheduler dropping periodic jobs
Skip writing to disk when a periodic job is
removed from jobStore after it completes
execution.

Change-Id: Ib4f2cf18554bf9c87138c1984c96cc62f8dbf7e2
Bug: 27147454
2016-02-11 22:53:09 +00:00
Lifu Tang
94093b94cc Merge "Fixed the build break" into nyc-dev 2016-02-11 21:06:01 +00:00
Lifu Tang
a2b74fd268 Fixed the build break
Change-Id: I02ee9b3f44d79510f174a1041f28b9c60450aa9c
2016-02-11 12:57:59 -08:00