277237 Commits

Author SHA1 Message Date
Treehugger Robot
a5f968806e Merge "Fix clipping for date and time on QS" 2017-01-19 22:17:35 +00:00
Rebecca Silberstein
4c937464eb Merge "SystemServer: cherry-pick p2p service start" 2017-01-19 21:21:23 +00:00
Treehugger Robot
a83222e4fb Merge "Fixed NPE in canAddMoreManagedProfiles" 2017-01-19 18:53:25 +00:00
Treehugger Robot
3a7253a09d Merge "Adding self-managed connection service APIs." 2017-01-19 18:23:34 +00:00
Jeff Sharkey
915f279556 Merge "Follow installd API changes." 2017-01-19 16:16:03 +00:00
Przemyslaw Szczepaniak
76edc3b8a5 Merge "Track libcore java.util.logging update to ojdk8u60" 2017-01-19 14:11:13 +00:00
Orion Hodson
e5c3aed8dc Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" 2017-01-19 13:35:52 +00:00
Treehugger Robot
c74ccf1588 Merge "Prepare for removal of legacy-test from default targets" 2017-01-19 11:32:11 +00:00
Treehugger Robot
c8223d0874 Merge "Try to deduplicate observer iteration code" 2017-01-19 11:10:21 +00:00
Paul Duffin
ccb0445027 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

(cherry picked from 6387604f9e672ece85e07c4bcbd7be396867f06f)

Bug: 30188076
Test: make checkbuild
Merged-In: I13e88297731253420e4e5f5291d503f13a39a156
Change-Id: I58446eb8c45d8ac2bcdbc9fa40d1321e811bdd4b
2017-01-19 09:43:05 +00:00
Treehugger Robot
0ac7232b7c Merge "Eschew unspecified IP addresses for DNS servers" 2017-01-19 09:38:27 +00:00
Erik Kline
b2cfdfbbb0 Try to deduplicate observer iteration code
Later on, registerObserver() can take a handler argument and
invokeForAllObservers() can be updated to post to it when
provided.

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Change-Id: Ibc32079e1084e2e43f7826fe6b2bdbb83c482e26
2017-01-19 18:05:27 +09:00
Erik Kline
fed4194af0 Eschew unspecified IP addresses for DNS servers
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-wifi passes (though no test covers this code yet)
Bug: 34210527
Change-Id: I2d44445982dfb3221f7b6394daf0479c1fa8a6e1
2017-01-19 17:01:46 +09:00
yuanhao
47f9f7cbcb Fixed NPE in canAddMoreManagedProfiles
We can use the command 'adb shell pm create-user --profileOf -10000
--managed TestProfile_12345678' to reproduce the problem.

Signed-off-by: yuanhao <yuanhao@xiaomi.com>
2017-01-19 06:56:22 +00:00
Tao Bao
9311dbf9e4 Merge "Revert "RecoverySystem: Fix the issue in installPackage()."" 2017-01-19 01:47:10 +00:00
Tao Bao
cc76991f37 Revert "RecoverySystem: Fix the issue in installPackage()."
This reverts commit 9f7a0acd2d383b825bcdcbef25d6b42f9875acfe.

Bug: 34350643
Bug: 34396955
Test: installPackage() doesn't cause deadlock if it doesn't call
      processPackage() prior to that.
Change-Id: I1da055c86a3326ae341da1b4d5dc79ab4be256fb
2017-01-19 01:31:57 +00:00
Peng Xu
cec2ebf676 Merge "TYPE_DYNAMIC_SENSOR_META should be wake up sensor" 2017-01-19 01:11:49 +00:00
Josh Gao
cfb19e3ac8 Merge changes from topic 'kill_debuggerd'
* changes:
  Switch android.os.Debug to libdebuggerd_client.
  app_process: don't use PR_SET_NO_NEW_PRIVS.
  Remove peercred check from NativeCrashListener.
2017-01-18 23:04:09 +00:00
Tyler Gunn
f50354363c Adding self-managed connection service APIs.
1. Adding new APIs for self-managed connection services.
2. Adding Telecom package-level documentation.

Test: Manual (unit, cts pending; this is just scaffolding for now)
Bug: 34159263
Change-Id: Ic226ec8bfcb2fbcc02fe802b47499e47aab17d0a
2017-01-18 14:44:43 -08:00
Treehugger Robot
5fd543ec34 Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" 2017-01-18 20:20:48 +00:00
Jeff Sharkey
36ba022316 Follow installd API changes.
Test: builds, boots, clearing strategy looks sane
Bug: 33965858
Change-Id: Ie5bbb71fb7a464999215c22e5a1fef0c07a620a4
2017-01-18 12:18:21 -07:00
Pavlin Radoslavov
0e038dec6f Update/cleanup Bluetooth Codec strings in Developer Settings
Misc. fixes and cleanup related to the Bluetooth Codec strings
in Developer Settings:

 * Update the codec name "aptX-HD" -> "aptX HD" to reflect the vendor
   defined writing:
   https://www.aptx.com/aptx-hd
 * Increase some of the "CHAR LIMIT" values for the purpose
   of translation to other languages
 * Update some of the text in the UI (for clarity)
 * Added new string: "Streaming: " that is used in the UI summary

Test: UI visual observation
Bug: b/34188102 b/34206536 b/34209576 b/34210861 b/34207126 b/34211204
Bug: b/34206992 b/34210910 b/34210162 b/34205434 b/34198432 b/34186749
Bug: b/34188141 b/34188657 b/34192932 b/34188655
Change-Id: I9dc609594864b5d29394c49e0bce64416706c81c
2017-01-18 19:03:44 +00:00
Wei Liu
5f506939fa SystemServer: cherry-pick p2p service start
Cherry-pick change that only starts P2P service if p2p is supported for
the device.

Disable WiFi p2p service if it's not supported.

b/26877020

Bug:34193861
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually verified wifi connection
Test: manually checked for p2p peers

Change-Id: I84b822fa57423711de75d2147effe73a1fc40eb4
Merged-In: I84b822fa57423711de75d2147effe73a1fc40eb4
2017-01-18 11:01:10 -08:00
Glen Kuhne
c82d1ddaf4 Merge "Unhide WifiConfiguration proxy accessors" 2017-01-18 18:08:36 +00:00
Treehugger Robot
1aa24246cf Merge "Notify user switch event to NetworkController" 2017-01-18 15:32:28 +00:00
Orion Hodson
ac85c0f5c9 API: Unhide dalvik.system.InMemoryDexClassLoader
Bug: 26878838
Test: make docs
Change-Id: Ica969089dd82d1b610d6a307bb414690e736a1c7
2017-01-18 15:31:32 +00:00
Jason Monk
943a52862e Merge "SystemUI: Add NFC tile" 2017-01-18 14:07:53 +00:00
Anas Karbila
f7648f4483 SystemUI: Add NFC tile
This patch adds a tile for QuickSettings
which controls the setting of NFC.

The drawable is from material.io.

Test: Enable and disable NFC using tile

Change-Id: I7dfaf3a4dca0c01d24be397e43ab131eb9885f62
Signed-off-by: Anas Karbila <anaskarbila@aospa.co>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-01-18 12:12:03 +00:00
Przemyslaw Szczepaniak
d71203f1a0 Track libcore java.util.logging update to ojdk8u60
Test: CtsLibcoreTestCases
Bug: 28666126
Change-Id: I3d8a7046e339a4a327e04574a4479fe2a1291d4c
2017-01-18 11:40:22 +00:00
Paul Duffin
c20518139a Merge "Add legacy-android-test target containing android.test classes" 2017-01-18 11:19:58 +00:00
Narayan Kamath
71b1d50531 Merge "API: Unhide MethodHandles API (java.lang.invoke)." 2017-01-18 09:46:16 +00:00
Treehugger Robot
85f67dc60a Merge "Restore legacy types when registering mobile requests" 2017-01-18 09:34:36 +00:00
Erik Kline
dd8e8911c6 Restore legacy types when registering mobile requests
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - vanilla wifi to mobile tethering (no DUN)
    - tested with DUN by:
        - adding "dun" to the APN type
        - adb shell settings put global tether_dun_required 1
        - verified the bug exists without this fix
Bug: 32163131
Bug: 34364553
Change-Id: Idf1a9a2c8191c40abed29e1789f62aefb83ed1ce
2017-01-18 17:27:31 +09:00
Kazuki Kobayashi
205fd0f5fc Fix clipping for date and time on QS
The bottom part of date and time on Quick Settings is cut off
when changing font size to "Largest" and display size to "Small".
To fix this issue, the height should be changed from 19dp
to "wrap_content".

Bug: 34365385
Test: manual - change font size to "Largest" and
               display size to "Small", and then open QS panel

Change-Id: I37047e57f535dfa8fcaccc8f9dd78c4ef699bc27
2017-01-18 06:33:31 +00:00
Calin Juravle
b3edbd7432 Merge "Refactor PackageDexOptimizer" 2017-01-18 03:59:20 +00:00
Treehugger Robot
228123dd53 Merge "PackageDexOptimizer: fix typo in log message." 2017-01-18 03:42:47 +00:00
Calin Juravle
bb10525a66 Refactor PackageDexOptimizer
Split performDexoptLI in multiple smaller helpers. This will help in
adding the logic to process secondary dex files.

The goal is to move towards simple logic which can be reused between
compiling the package's code and its secondary dex files.

Test: device boots, packages get compiled in the background job,
      adb shell cmd package compile -m speed|speed-profile packageName

Bug: 32871170

(cherry picked from commit 2d4b6ad7f38a3308d4f7be95219f0f9a6dde2d4d)

Change-Id: I802c16ec5c142d89b23c788011ef8f3daf5a9a61
Merged-In: I2d55edf42baa768f990939a82b3d52edf5f68a2c
2017-01-17 18:30:44 -08:00
Jorge Lucangeli Obes
ae9ad65e99 PackageDexOptimizer: fix typo in log message.
'oatDir' is the only token that has a space around the '='. None of the
other tokens in the log message do. Make the log message consistent so
that grepping is easier -- and the log message looks better.

Before:
PackageManager.DexOptimizer: Running dexopt (dex2oat) on:
/system/priv-app/Telecom/Telecom.apk pkg=com.android.server.telecom
isa=arm64 vmSafeMode=false debuggable=false
target-filter=interpret-only oatDir = null sharedLibraries=null

After:
PackageManager.DexOptimizer: Running dexopt (dex2oat) on:
/system/priv-app/Telecom/Telecom.apk pkg=com.android.server.telecom
isa=arm64 vmSafeMode=false debuggable=false
target-filter=interpret-only oatDir=null sharedLibraries=null

Bug: None
Test: Build, flash, grep for log message.

(cherry picked from commit 0f6250823612b2a43784bef12f833ac850bf2e2f)

Change-Id: Ic14ed7f634f1b36a76ed7b1e658c85078b87b4ad
Merged-In: I84162ec3535e3f83a60a62d40cbaf8e74d2051c6
2017-01-17 18:30:32 -08:00
Jeff Sharkey
32aac7b9c9 Merge "Only measure each UID once in InstallerTest." 2017-01-18 01:11:00 +00:00
Glen Kuhne
6862d2f6c6 Unhide WifiConfiguration proxy accessors
Unhiding HttpProxy accessors in WifiConfiguration.
This change occurs in parrallel with changes that restrict updating of
WifiConfigurations with new or updated proxy info to uids
holding permission OVERRIDE_WIFI_CONFIG, or holding DeviceOwner or
ProfileOwner policies.

Bug: 14669153
Test: None
Change-Id: Id69525cfec152ea52697693f9a3bd6f86019c694
Merged-In: Id69525cfec152ea52697693f9a3bd6f86019c694
2017-01-17 15:33:12 -08:00
Jeff Sharkey
dd0edac92f Only measure each UID once in InstallerTest.
Test: builds, boots
Bug: 34341727
Change-Id: Ic8250b7383f52adf30139ceed02469a9d278dc18
2017-01-17 15:25:35 -07:00
Josh Gao
3ce369601e Switch android.os.Debug to libdebuggerd_client.
Bug: http://b/30705528
Test: m
Change-Id: Iac3860d0e63660b91a4b08075fca8a4a222ac913
2017-01-17 13:55:20 -08:00
Josh Gao
92517e4c03 app_process: don't use PR_SET_NO_NEW_PRIVS.
selinux should provide equivalent protection, and this prevents
transitioning to a helper binary for crash dumping.

Bug: http://b/30705528
Change-Id: I64b05236931d418f268b193418e937ab6b0985e0
2017-01-17 13:55:20 -08:00
Josh Gao
b9eb093c3c Remove peercred check from NativeCrashListener.
crash_dump will be running as the user of the process that crashed. Use
selinux to restrict access instead.

Bug: http://b/30705528
Change-Id: Ief69b16499d9cb56b120d58eca8db511b521a11a
2017-01-17 13:55:20 -08:00
Paul Duffin
2ffc4addb0 Add legacy-android-test target containing android.test classes
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds a
legacy-android-test target, containing only the android.test
classes, for use by any targets that depend on those classes.

Bug: 30188076
Test: make checkbuild
Change-Id: Ifc0a9a23d4ac3c78428bb9dde38e547e6978ba7e
2017-01-17 20:37:35 +00:00
Ta-wei Yen
68d03b23bb Merge "Add getNetworkSpecifier() and getCarrierConfig()" 2017-01-17 19:38:27 +00:00
Randy Pan
cdad7f334b Merge "Keep WIFI_FEATURE defines in sync with HAL" 2017-01-17 18:10:02 +00:00
Treehugger Robot
751e3af81e Merge "Track libcore change 7d105d591c14afd00f894e8f3483adcbee6e901a" 2017-01-17 17:55:18 +00:00
Narayan Kamath
0ad648f301 API: Unhide MethodHandles API (java.lang.invoke).
Tracks libcore change 58a12375dd5c2dc721f8d0433b5cb11737bc349d.

Test: make docs
Change-Id: I6e35fef1078d3c26a56bcea79eb2a3e993ca8714
2017-01-17 13:33:46 +00:00
Tobias Thierer
a2343a7e78 Merge "API: Update java.util.Date to OpenJDK8u60" 2017-01-17 10:41:36 +00:00