277916 Commits

Author SHA1 Message Date
Tyler Gunn
c0bf6deced Add api to retrieve call creation time.
Test: CTS
Bug: 36124432
Change-Id: Ic8288dec73adda7870377f189f560acef0a575f6
2017-03-24 16:04:25 -07:00
Jack Yu
ad2e7405ad Merge "Deprecated getDeviceId and added getMeid and getImei" 2017-03-24 17:02:59 +00:00
Treehugger Robot
44ef19d131 Merge "wifi: use android.graphics.drawable.Icon for Passpoint icon data" 2017-03-23 22:53:46 +00:00
Jack Yu
f301dab471 Deprecated getDeviceId and added getMeid and getImei
Added two new public APIs getMeid and getImei. Deprecated the exisintg
getDeviceId API because it can't return a constant id when phone type
changes.

Test: CTS and manual
bug: 34233620, 10831289

Merged-In: Iad4c05d2fd2efc538214f466861497c973882dfe
Change-Id: Iad4c05d2fd2efc538214f466861497c973882dfe
2017-03-23 14:42:33 -07:00
Brad Ebinger
0805b3486f Merge "Notification for MM reject cause code" 2017-03-23 21:04:40 +00:00
Doris Xi
423b9bfc78 Notification for MM reject cause code
Display notification when UE fails to register network with specific
reject cause code. Define strings for each reject cause code and add
icon to be shown in notification.

Test: manual with simulated RIL
Bug: 28923693
Merged-In: I95d5d768b6daa49a59d34e2af8cb1d225362f0a8
Change-Id: I95d5d768b6daa49a59d34e2af8cb1d225362f0a8
2017-03-23 13:03:31 -07:00
Treehugger Robot
7a7bb444cb Merge "hotspot2: ignore uninterested headers and content type attributes" 2017-03-23 19:53:59 +00:00
Peter Qiu
ed1fc64efd wifi: use android.graphics.drawable.Icon for Passpoint icon data
Bug: 35857805
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ib076cd7f565638613173c7373ea5ea61affb876d
2017-03-23 11:42:49 -07:00
Peter Qiu
5a493241d9 hotspot2: ignore uninterested headers and content type attributes
Each vendor might put additional headers and content type attributes
in the installation file, and will not be useful for us.  So just
ignore them when parsing the installation file instead of error out.

While there, add support for parsing "Extension" node in PpsMoParser.
This an interior node containing vendor specific information, only
meaningful to the vendor.  So we will ignore fields under this node.

Bug: 36477333
Test: frameworks/base/wifi/tests/runtests.sh
Test: manual test by installing ruckus Passpoint profile
Change-Id: I9954ed000387bc8048d0452a5bfb0f339e676659
2017-03-23 11:40:05 -07:00
Treehugger Robot
48ce402668 Merge "AVRCP version interop pereference (3/3)" 2017-03-23 17:49:58 +00:00
Treehugger Robot
4aa106a790 Merge "Track libcore commit a2d9879b" 2017-03-23 16:20:24 +00:00
Alan Viverette
c45b10a9cb Merge "Skip ListPopupWindow position update if detached" 2017-03-23 14:17:29 +00:00
Treehugger Robot
302b7a7075 Merge "Default 'persist.sys.timezone' property to GMT if not set on init." 2017-03-23 14:14:19 +00:00
Jakub Pawlowski
fa69eeac5c Merge "Bluetooth 5 Enable->Enabled (1/2)" 2017-03-23 01:17:43 +00:00
Treehugger Robot
0aae170841 Merge "Update IBatteryPropertiesRegistrar.aidl to support force updates" 2017-03-22 23:54:01 +00:00
Jakub Pawlowski
7998be9e44 Bluetooth 5 Enable->Enabled (1/2)
Test: manual
Bug: 30622771
Change-Id: I37b198927076a0267de67e1bd94eaea9e88e53bb
2017-03-22 15:42:53 -07:00
Sanket Padawe
1df4c1ae54 Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." 2017-03-22 21:27:22 +00:00
Ajay Panicker
5f88837886 AVRCP version interop pereference (3/3)
Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Merged-In: Ibc271063058b6324b1a0517c6b853f8d7e6eb0f3
Change-Id: Ibc271063058b6324b1a0517c6b853f8d7e6eb0f3
2017-03-22 20:55:13 +00:00
Jakub Pawlowski
e2ddacaff4 Merge "BluetoothGattCallbackExt removal" 2017-03-22 20:09:38 +00:00
Adam Lesinski
2392cbd888 Update IBatteryPropertiesRegistrar.aidl to support force updates
Change-Id: Ic4f705a20db32369d106462c47eb150850a3f638
Test: builds
2017-03-22 19:32:43 +00:00
Jakub Pawlowski
d64bb883d8 BluetoothGattCallbackExt removal
New methods should be added to BluetoothGattCallback, instead of
creating Ext class.

Test: manual
Bug: 30622771
Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0
2017-03-22 18:27:10 +00:00
Przemyslaw Szczepaniak
20e020536e Default 'persist.sys.timezone' property to GMT if not set on init.
Test: make, flashall -w and tested persist.sys.timezone value
Bug: 36488101
Change-Id: I6d0dab1e247dd7c303153bbe0e997581e36a973d
2017-03-22 18:02:30 +00:00
Treehugger Robot
25b6f08ece Merge "Bluetooth: log unexpected crashes and restarts" 2017-03-22 16:09:04 +00:00
Treehugger Robot
7b26041ccc Merge "Stop holding mProxyLock while downloading PAC script data." 2017-03-22 07:47:20 +00:00
Daichi Hirono
ce522835ea Stop holding mProxyLock while downloading PAC script data.
Holding PacManager#mProxyLock for long time eventually causes ANR when
launching new applications.

1. ActivityThread#handleBindApplication blocks until

   ActivityThread#handleBindApplication
   -> ConnectivityService#getProxyForNetwork()
   -> ConnectivityService#getDefaultProxy()

  obtains the lock of ConnectivityService#mProxyLock

2. ConnectivityService#mProxyLock can be held by
   ConnectivityService#setGlobalProxy() running on another thread until

   ConnectivityService#setGlobalProxy()
   -> ConnectivityService#sendProxyBroadcast()
   -> PacManager#setCurrentProxyScriptUrl()

  obtains the lock of PacManager#mProxyLock

3. Before the CL, PacManager#mProxyLock could be held by
   mPacDownloader#run() on mNetThread until downloading a PAC script
   completed.

The CL fixes the step 3 so that mPacDownloader#run does not keep the
lock of PacManager#mProxyLock. It eventually fixes long blocking at
ActivityThread#handleBindApplication and ANR when launching an
application.

Bug: 36317236
Test: Build succeeded
Merged-In: I864e41e1142178681f8f1b4fb7750d37e3ab2076
Change-Id: I864e41e1142178681f8f1b4fb7750d37e3ab2076
2017-03-22 05:58:20 +00:00
Treehugger Robot
58ba53bd53 Merge "Fix warning: Potential leak of memory pointed to by 'set'" 2017-03-22 00:17:33 +00:00
Sanket Padawe
90e022a73c Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis.
Bug: 35767068
Test: No build failure.
Change-Id: I3b15901ff18742b5e99f03e74a6412d352461458
Merged-in: I3b15901ff18742b5e99f03e74a6412d352461458
2017-03-21 22:29:12 +00:00
Treehugger Robot
c6c19bd6c0 Merge "Remove bg_non_interactive cgroup" 2017-03-21 22:09:50 +00:00
Andreas Gampe
1ae7af10ff Merge "Zygote: Preserve capabilities in WrapperInit" 2017-03-21 18:45:02 +00:00
Marie Janssen
e54b42237f Bluetooth: log unexpected crashes and restarts
Add some reasons to the log when:
 - the Bluetooth stack crashes underneath us
 - user switches
 - we automatically restart

List every instance of the stack crashing underneath us in the dumpsys.
Clean up some unused constants.

Test: notice a Bluetooth crash, adb bugreport
Change-Id: I79195f0a574de1bf48a976d31c64084d3ce2e14a
2017-03-21 18:39:35 +00:00
Jakub Pawlowski
7f14b8f095 Merge "Add setScannable to AdvertisingSetParameters (1/2)" 2017-03-21 18:37:35 +00:00
Jakub Pawlowski
d12b5688f0 Add setScannable to AdvertisingSetParameters (1/2)
There must be a proper way to specify if advertisment is scannable, when
updating the parameters.

Test: manual
Bug: 30622771
Change-Id: Ie520609d3fff07ccc2960015c19311d773842852
2017-03-21 18:37:16 +00:00
Jakub Pawlowski
a6c1f6def1 Merge "Add missing txPower parameter" 2017-03-21 18:36:16 +00:00
Jakub Pawlowski
bcf671b7eb Add missing txPower parameter
Test: manual
Bug: 30622771
Change-Id: Iaf3111d7545f9bb046b5a23b680347a75125ca7e
2017-03-21 18:36:05 +00:00
Treehugger Robot
2ca0abc8de Merge "Update to 2017a." 2017-03-21 18:09:34 +00:00
Przemyslaw Szczepaniak
f3638be2b2 Track libcore commit a2d9879b
Test: make -j 32
Bug: 36461944
Change-Id: I0cf924a0f07d3d048f75edb4061b20f065ba80b1
2017-03-21 17:23:50 +00:00
Andreas Gampe
220aba254b Zygote: Preserve capabilities in WrapperInit
Preserve the capabilities a zygote fork has across the sh exec in
WrapperInit. Use ambient capabilities.

Test: m
Test: adb shell setprop wrap.com.android.bluetooth logwrapper && adb shell kill `pid com.android.bluetooth`
Merged-In: I3526d6a31aaadf082365c9ce31da0950e17677eb
Change-Id: I3526d6a31aaadf082365c9ce31da0950e17677eb
2017-03-21 08:39:26 -07:00
Joachim Sauer
8c0d36854b Update to 2017a.
This commit adds America/Punta_Arenas to time_zones_by_country.xml to
allow it to automatically be picked based on cell network information.

Bug: 35861784
Test: builds & boots & automatic timezone detection still works
Change-Id: I1bfa327fbb58f82eb951028e288fad819bf0f231
2017-03-21 12:49:31 +00:00
Treehugger Robot
9eb959320f Merge "add and incorporate TetheringConfiguration.dump()" 2017-03-21 10:05:43 +00:00
Treehugger Robot
2d3fb48b39 Merge "Added ETWS primary message default message support" 2017-03-21 09:11:46 +00:00
Jack Yu
5889c0d3b5 Added ETWS primary message default message support
ETWS primary message does not contain messagy body. We used
to use hardcoded "ETWS" as the body, which is not easy for
end users to understand what happened. Added the built-in
default messages provided by Japanese government guideline
for earthquake, Tsunami, test, and other channels support to
enhance the user experience.

Test: manual
bug: 33595007
Merged-In: I53659298d8ce3b3ba5c751c14c1b36e76d6dc562
Change-Id: I53659298d8ce3b3ba5c751c14c1b36e76d6dc562
2017-03-21 00:39:54 -07:00
Wei Wang
3adba7202f Remove bg_non_interactive cgroup
Bug: 34193533
Test: mma
Change-Id: I0d255f47eaded15eda02a4654193a4e49c63a2c5
2017-03-20 22:16:29 -07:00
Jeremy Klein
4a8953094f Merge "In isTetheringSupported, call isAdmin user from system." 2017-03-20 23:50:58 +00:00
Jakub Pawlowski
f0c963a5b6 Merge "Bluetooth 5 AdvertisingSet implementation (1/4)" 2017-03-20 22:19:08 +00:00
Jeremy Klein
246a1feeb7 In isTetheringSupported, call isAdmin user from system.
This avoids requiring the MANAGE_USERS permission in this function.

Bug: 32671528
Test: Manual. Also seeking unit test guidance from reviewer.
Change-Id: I841e721013b0e4b6db34d629a1e97b3cd54cd73b
2017-03-20 15:02:30 -07:00
Treehugger Robot
b6ed343e85 Merge "Add support for MTP perceived device type property." 2017-03-20 21:23:10 +00:00
Jakub Pawlowski
6a55da9018 Bluetooth 5 AdvertisingSet implementation (1/4)
Test: manual
Bug: 30622771
Change-Id: Ia89718c0c2ab2eaa71b158ecdcae989af907769f
2017-03-20 20:00:36 +00:00
Treehugger Robot
cb4a3c55cf Merge "Fix crash issue on Storage Manager app" 2017-03-20 17:05:20 +00:00
Treehugger Robot
a6ce3f3021 Merge "Fix NPE while performing NetworkStatsService.removeUidsLocked()" 2017-03-20 16:54:35 +00:00
Narayan Kamath
5d3f14fe02 Merge "TelephonyManager: Avoid unnecessary object allocation." 2017-03-20 10:49:18 +00:00