Commit Graph

322556 Commits

Author SHA1 Message Date
Steven Moreland
3068930f99 fingerprint: remove use of -static hidl java
These libraries are being removed. Now, the regular java
library can be used as both a static and non-static library,
we are removing these duplicate libraries which cause
several types problems (such as undefined behavior when
both the static and non-static libs are loaded).

Bug: 36376126
Test: boot marlin, add/use fingerprint, check logs
Change-Id: I546d8f5d5788a31b3f70009e687246a4b7e59569
2017-08-02 16:18:54 +00:00
Steven Moreland
f53501098c SurfaceTexture.cpp: use proper nativehelper headers
libnativehelper exports headers under nativehelper. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: SurfaceTexture.cpp finds headers
Bug: 63762847
Change-Id: I3ec1b888c226c2894649d9f9a8f8203891c1ab02
(cherry picked from commit 849252c469)
2017-07-31 16:41:45 +00:00
Neil Fuller
b65356709e Merge "Remove redundant TODOs from PackageTracker"
am: 01d686b85e

Change-Id: If74fa1bcd6be188079de231e7903795ea7d0b5be
2017-07-31 13:00:50 +00:00
Neil Fuller
01d686b85e Merge "Remove redundant TODOs from PackageTracker" 2017-07-31 12:51:05 +00:00
Hugo Benichi
bdfb4ee19c Merge "Logging improvements when NetworkCapabilities change"
am: f60a38e152

Change-Id: I886e39db8969eb1ac1dfe06c6f448e53a90fd92c
2017-07-31 01:50:38 +00:00
Treehugger Robot
f60a38e152 Merge "Logging improvements when NetworkCapabilities change" 2017-07-31 01:38:29 +00:00
Hugo Benichi
eae7a22944 Logging improvements when NetworkCapabilities change
This patch improves the wtf() logging in updateCapabilities to
better distinguish between the cases of a changed specifiers, changed
transports, or changed capabilities. The case of NOT_METERED being added
or removed is ignored.

Bug: 63326103
Test: runtest frameworks-net, runtest frameworks-wifi
Merged-In: I05c6e78891e1eac658f1cf883223af520a9a4f8f
Merged-In: I4f6cbc0adb461cef6610460daeba72ca38b8f10c
Merged-In: I165a8bbe8362100f1e2bb909459fb45b1c68d5ae
Merged-In: Iec6d92e9a3a12bab87c5adfaf17f776465077060
Merged-In: I633d6347a7f852c27c03fc96b36ca2a60f70c73c
Merged-In: I38739184fc0db105bfd3b4c02cce01e803739e5d
Merged-In: Ia58b877056e2442136cc8b145ac8f4e6560cfc2c

(cherry pick from commit 683ea489d3)

Change-Id: Id32ca66068c8ff549627e8e8c0e50897ef928c58
2017-07-31 09:25:37 +09:00
Neil Fuller
6f14377e21 Remove redundant TODOs from PackageTracker
The permission checks are either not required (for the data app)
or have been moved to validateUpdaterAppManifest()
(for the updater app).

Bug: 64142062
Test: make droid
Change-Id: Ie1791d64484f53ea2c2476f866fbd75358960de3
2017-07-28 17:35:24 +01:00
Hall Liu
8c4179e88c Merge "Un-hide the MBMS streaming APIs"
am: a50e17aea2

Change-Id: Icd8ebf0e351914cdfb0f0c15343e2d2024706d6b
2017-07-28 02:40:20 +00:00
Treehugger Robot
a50e17aea2 Merge "Un-hide the MBMS streaming APIs" 2017-07-28 02:31:52 +00:00
Hall Liu
2398921320 Un-hide the MBMS streaming APIs
Unhides the MBMS streaming APIs and modifies the vendor base classes to
no longer pass raw AIDLs to the vendor code.

Test: builds
Change-Id: I56030d646c2a1160277d85779c6ed431cda4efa7
2017-07-27 15:38:36 -07:00
Colin Cross
6b13ebc7f1 Enable multi-dex for dx
Add LOCAL_DX_FLAGS := --multi-dex where it is enabled for jack.
Also stop enabling multi-dex when coverge is enabled, since
multi-dex is now enalbed unconditionally.

Test: builds
Change-Id: I67fedcdd5bb5d7091468bddcb0c22bab720a51d2
Merged-In: I67fedcdd5bb5d7091468bddcb0c22bab720a51d2
(cherry picked from commit 17ffa24277)
2017-07-27 17:48:44 +00:00
Steven Moreland
4d28662818 Merge "ActivityManagerService: fix nativehelper includes"
am: c372715beb  -s ours

Change-Id: I57d45557c585238f9e98e0bf81c06058235d7e74
2017-07-27 17:13:38 +00:00
Treehugger Robot
c372715beb Merge "ActivityManagerService: fix nativehelper includes" 2017-07-27 17:00:13 +00:00
Neil Fuller
ef21b72dd1 Merge "Tidy up RulesManagerService code"
am: d5517c39e8

Change-Id: I56afb0031c2768ea5aed0797b64c9ebda91be8e8
2017-07-27 16:58:02 +00:00
Neil Fuller
d5517c39e8 Merge "Tidy up RulesManagerService code" 2017-07-27 16:48:58 +00:00
Steven Moreland
5410568e8c ActivityManagerService: fix nativehelper includes
Bug: 63762847
Test: none

Merged-In: I9f9497990fbf0697d05445f563ad46a28d6d6eeb
Change-Id: I964c88cb74f0287dfc6634fbfcd3210a7d984213
2017-07-27 15:58:09 +00:00
Hugo Benichi
ef7d6d93c3 Merge "NetworkNotificationManager: correctly handle existing notifications"
am: 3451fb6156

Change-Id: I4432f66067ea1ab02e1d2dfe42530bcdafa52df6
2017-07-27 14:43:48 +00:00
Treehugger Robot
3451fb6156 Merge "NetworkNotificationManager: correctly handle existing notifications" 2017-07-27 14:36:47 +00:00
Neil Fuller
3e928af733 Merge "Alter condition for starting RulesManagerService"
am: a338679173

Change-Id: I442dd6a30f022f92fb3fd8a0a5cca58d4ec77208
2017-07-27 13:35:23 +00:00
Treehugger Robot
a338679173 Merge "Alter condition for starting RulesManagerService" 2017-07-27 13:25:49 +00:00
Przemyslaw Szczepaniak
7dc29d076f Merge "Revert "Default 'persist.sys.timezone' property to GMT if not set on init.""
am: 9b9e823096

Change-Id: I54b658a7911d604af79916f92c8406472e3c9ccb
2017-07-27 13:11:44 +00:00
Treehugger Robot
9b9e823096 Merge "Revert "Default 'persist.sys.timezone' property to GMT if not set on init."" 2017-07-27 13:01:05 +00:00
Hugo Benichi
5fcd050e0e NetworkNotificationManager: correctly handle existing notifications
This patch corrects a regression added by commit fb2609d3ee that did
not take into account the case of multiple notifications shown for a
single network id. Given how network notifications are triggered, it can
happen that NO_INTERNET and SIGN_IN notifications are both triggered for
the same network when captive portal detection is slow.

Contrary to the situation before commit fb2609d3ee, a notification
priority order is introduced so that SIGN_IN always overrides
NO_INTERNET, and NO_INTERNET is ignored if SIGN_IN is already present.

Bug: 63676954
Bug: 62503737
Test: runtest frameworks-net, added new unit tests
Change-Id: Ib8658601e8d4dc6c41b335ab7dd8caa0cccd9531
2017-07-27 21:20:20 +09:00
Narayan Kamath
19d39ee384 Merge "Remove CoreTests: HeapTest"
am: c3fd3b8c7d

Change-Id: If6565f8bc8a655d3d7422f57db3dd6160459b092
2017-07-27 11:37:02 +00:00
Narayan Kamath
c3fd3b8c7d Merge "Remove CoreTests: HeapTest" 2017-07-27 11:26:10 +00:00
Przemyslaw Szczepaniak
27c461ab3c Revert "Default 'persist.sys.timezone' property to GMT if not set on init."
Telephony code depends on persist.sys.timezone not being set as a signal 
to deduce a timezone from sim card information.

This reverts commit 20e020536e.

Bug: 64056758
Change-Id: I8db204bcffbdb960124b1ae0e02d53b27dd310a4
2017-07-27 10:37:55 +00:00
Neil Fuller
a47c3637f1 Tidy up RulesManagerService code
1) Remove error handling TODO; no obvious issues.
2) Avoid avoid a NullPointerException in dumpsys code when current
state cannot be read.
3) Remove unnecessary public modifier.

Bug: 31008728
Test: make
Change-Id: Iab5fae74b74f54bf9d19410f0f4c9ed94365a162
2017-07-26 14:06:57 +01:00
Lucas Gomez Jimenez
b3787b9ce7 Remove CoreTests: HeapTest
It is largely redundant due to other tests in art/ and libcore/

Test: Run CoreTests

Change-Id: I97485c522fed157d650b95225ad6641e4184d7bf
2017-07-26 13:31:08 +02:00
Neil Fuller
e0af2bb2bf Alter condition for starting RulesManagerService
Modify the condition used for starting RulesManagerService:
use mOnlyCore rather than disableNonCoreServices. mOnlyCore is
important for the secure lock screen and when mOnlyCore is true
the RulesManagerService cannot perform trust checks. Therefore,
disable the RulesManagerService when mOnlyCore == true.

disableNonCoreServices is apparently not used.

Bug: 64057583
Test: Boot device with time zone updates enabled and with a lock
pattern set.
Merged-In: Idd7cb6e11b1a91dfe7394f6c98f8fa3e0eec9dce
Change-Id: Idd7cb6e11b1a91dfe7394f6c98f8fa3e0eec9dce
2017-07-26 12:15:48 +01:00
George Burgess IV
20674ac1eb Merge "Silence a memory leak warning from the static analyzer"
am: f44ebf5fcb

Change-Id: Ic0b97fb0689b4d322aa6ed25fe55ec192bff07a5
2017-07-26 00:26:12 +00:00
Treehugger Robot
f44ebf5fcb Merge "Silence a memory leak warning from the static analyzer" 2017-07-26 00:12:51 +00:00
George Burgess IV
13d7ddac23 Silence a memory leak warning from the static analyzer
The analyzer assumes that the given `put` operation may fail. This
shouldn't be the case, so mark it with a LOG_ALWAYS_FATAL_IF. Doing so
silences a warning about potential memory leaks originating from
TessellationCache::getRoundRect.

Bug: 27101951
Test: mma. Warning is gone.
Change-Id: I3adeacd6c2c9c03caecd989e2a1267c51e8ef905
2017-07-25 14:30:49 -07:00
Carlos Vinueza
b7e104d0a3 Merge "Adding 4 standard short codes required by Android Constellation"
am: d00de318f9

Change-Id: Ib17b53a72e737a7b584c65b63c89bd7524c1a2c4
2017-07-25 16:27:10 +00:00
Treehugger Robot
d00de318f9 Merge "Adding 4 standard short codes required by Android Constellation" 2017-07-25 16:12:23 +00:00
Neil Fuller
069bb850d8 Merge "Remove TODO related to WakeLocks"
am: 12d08bf9a0

Change-Id: Id94118a9b687493f6f6879bf6bbe23cfad86dfa9
2017-07-25 14:54:46 +00:00
Treehugger Robot
12d08bf9a0 Merge "Remove TODO related to WakeLocks" 2017-07-25 14:42:40 +00:00
Hugo Benichi
39a707813b Merge "Bootstrap IpReachabilityMonitor unit tests"
am: a9889c94aa

Change-Id: Ic3b145159a4c0430cc248a19b8527af40fa67696
2017-07-25 14:33:45 +00:00
Treehugger Robot
a9889c94aa Merge "Bootstrap IpReachabilityMonitor unit tests" 2017-07-25 13:05:47 +00:00
Neil Fuller
6995c57d8e Remove TODO related to WakeLocks
There's no need to keep a WakeLock in the RulesManager - if
the device goes to sleep it should continue the work when
it wakes up again. All I/O is handled via AtomicFile and should
be robust to corruption, etc. and this reduces the likelihood
of issues caused by sudden sleeps.

Bug: 31008728
Test: make
Change-Id: I3d5076ca7d2f39076f76bdb745cedde214eac21b
2017-07-25 13:18:28 +01:00
Hugo Benichi
06b1f2b173 Bootstrap IpReachabilityMonitor unit tests
Bug: 62918393
Test: runtest frameworks-net

Change-Id: I236029f460dc3631ef9f5d8312dc1c6faf9807df
2017-07-25 14:59:48 +09:00
ludi
3f3c4f6da4 Merge "Add dump info to IpSecService"
am: ec5fc4872e

Change-Id: Idd4c051e4536d32504718fdfd201c7effdeb62e3
2017-07-25 03:07:00 +00:00
Treehugger Robot
ec5fc4872e Merge "Add dump info to IpSecService" 2017-07-25 02:38:47 +00:00
Andreas Gampe
d795bbcdcc Merge "Zygote: Increase wrap-pid timeout to thirty seconds"
am: 81f66ce5ab

Change-Id: I1cc8856ebb68ee83a8d3e62d86b48d497d0eb237
2017-07-25 00:18:19 +00:00
Treehugger Robot
81f66ce5ab Merge "Zygote: Increase wrap-pid timeout to thirty seconds" 2017-07-25 00:06:02 +00:00
ludi
b0c95b19ab Add dump info to IpSecService
Bug:38350824

Test: runtest frameworks-net

Change-Id: Ifa11d55e9d337016ad865baada627db3aa8c2db3
2017-07-24 16:03:33 -07:00
Shubham Ajmera
52c8620c19 Update DexFile#getDexOptNeeded usages to reflect API change
Test: make and boot
Merged-in: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51
Bug: 36598475
(partially cherry-picked from commit 246dccf932)

Change-Id: Idfc9276eb2b61244bbd634f49a3912dab6fcabfa
2017-07-24 15:21:04 -07:00
Shubham Ajmera
925a08df7c Merge "Update DexFile#getDexOptNeeded usages to reflect API change"
am: 515e6443aa  -s ours

Change-Id: I5553eaa94705b4dd3f3bde0d5a7a6acb23826f84
2017-07-24 20:07:27 +00:00
Shubham Ajmera
515e6443aa Merge "Update DexFile#getDexOptNeeded usages to reflect API change" 2017-07-24 19:11:29 +00:00
Carlos Vinueza
0cf87a0abd Adding 4 standard short codes required by Android Constellation
This set is last minute addition to the whitelist free short code batch
2017 Q2 - Android Partner Engineering
Includes 4 country wide SMS standard short codes required by the
Constellation team.

Test: manual - uploaded modified file onto test device and tested
sending SMS to changed shortcodes to verify behaviour.

Bug: 37355429

Change-Id: Iffad649a74dcc7afd6a3574a92825d309df2d3ba
Signed-off-by: Carlos Vinueza <chinesco@google.com>
2017-07-24 19:02:14 +00:00