Commit Graph

333765 Commits

Author SHA1 Message Date
Ruthwar Kumar Ambeer
118e574ea4 Fix available/remaining PIN/PUK attempts.
* Fix to properly display attempts remaining for PIN/PUK.
* On bootup show the available PIN/PUK attempts if sim
is locked on PIN/PUK.
* Show incorrect password message on entering wrong PIN/PUK
password.

In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on
PIN and reset the flags to show the default message.

Bug: 37782683
Change-Id: I46d7d5dd86977cddecf3147add73ef6ccc64b257
2017-12-07 14:45:43 +05:30
Treehugger Robot
a0c52a8ace Merge "Add odm sepolicy support to SELinuxMMAC.java" 2017-12-06 10:00:46 +00:00
Treehugger Robot
39f58678db Merge "Cleanup of resource limit tests" 2017-12-06 02:58:41 +00:00
Treehugger Robot
5747c2b81c Merge "Support scanDirectories with JNI callback function" 2017-12-06 02:06:49 +00:00
Treehugger Robot
d5410ca51b Merge "Don't remove bonding device from cached device list during inquiry" 2017-12-06 00:48:40 +00:00
Chih-hung Hsieh
d5dca64f72 Merge "Use -Werror in frameworks/base/tests/backup" 2017-12-06 00:25:20 +00:00
Venkata Jagadeesh
5ea726b51f Don't remove bonding device from cached device list during inquiry
Use case: DUT unable to start auto connect after pairing to remote devices

Steps:
1. pair with remote device
2. unpair remote device.
3. Pair again to same remote from available devices list and initiate inquiry same time

Failure: DUT unable to start auto connect after pairing to remote device

Root Cause: As bonding device is removed from cached device list,a new cached device
entry is created after bonding with auto connection variable reset.

Fix: This issue fixed by deleting only non bonded and non bonding devices during inquiry.

Test: Tested with Beats Wireless

Bug: 35415106

Change-Id: I9d1c399292420fa2e321a4f6410e672a2abcc423
2017-12-05 22:31:49 +00:00
Chih-Hung Hsieh
b40ec900e2 Use -Werror in frameworks/base/tests/backup
* Ommit unused parameter names.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ie073fd911480960673b24d5b4d84b4f8dd0d0302
2017-12-05 09:58:06 -08:00
Treehugger Robot
cdb84d2fc7 Merge "Fix bug in MacAddress.fromString()" 2017-12-05 09:38:42 +00:00
Treehugger Robot
1a2a45667b Merge "Don't use path to find protoc-gen-javastream" 2017-12-05 05:22:25 +00:00
Hugo Benichi
d2c5b1925b Fix bug in MacAddress.fromString()
Test: runtest frameworks-net
Bug: 69390696
Change-Id: I83f01e4915092e08ed201d9b6738bb02498d3bba
2017-12-05 13:14:08 +09:00
Treehugger Robot
7e717e09cd Merge "Frameworks: Silently ignore InterruptedException" 2017-12-05 02:25:14 +00:00
nharold
68b81299d2 Merge "Validate IpSecAlgorithm Length" 2017-12-05 02:13:55 +00:00
Colin Cross
6471db9b71 Don't use path to find protoc-gen-javastream
Previous attempts to use a full path in the --plugin argument
failed, but that was because the --plugin argument had the wrong
name (protoc-gen-java-stream instead of protoc-gen-javastream)
and was being completely ignored.  Passing a full path where
the last element of the path is protoc-gen-javastream works fine.

Fixes issues where the command line is expanded with $PATH in
it 58 times which could hit command length limits if $PATH was
even a little bit larger than the default.

Test: m framework
Change-Id: Icd336f522fb8770d9058d18d8a04d24a96405615
2017-12-05 01:09:52 +00:00
Colin Cross
85f095e246 Merge "Fix droiddoc when OUT_DIR is an absolute path" 2017-12-05 01:08:41 +00:00
Colin Cross
0c7609553d Fix droiddoc when OUT_DIR is an absolute path
The droiddoc rules were passing the sources in through
LOCAL_SRC_FILES, which gets prefixed with $(LOCAL_PATH).  They
were prefixing ../.. to try to counter frameworks/base in
$(LOCAL_PATH), but that doesn't work for absolute paths to
generated files in an absolute $(OUT_DIR).

Use $(LOCAL_GENERATED_SOURCES) for anything that is in $(OUT_DIR)
instead, which takes paths that are relative to the top of the tree
or absolute.

Bug: 70166718
Test: m OUT_DIR=/tmp/out docs
Change-Id: I93b743607c2b8ce05512ecd4bbe860747cb48428
Merged-In: I93b743607c2b8ce05512ecd4bbe860747cb48428
(cherry-picked from commit bd200ce7d4)
2017-12-05 01:07:53 +00:00
Jeff Sharkey
3fb2711ede Merge "Match network roaming state to avoid wtf()." 2017-12-05 00:58:46 +00:00
Treehugger Robot
d0abc863f4 Merge "Remove unused AIDL files" 2017-12-04 23:35:35 +00:00
Jordan Liu
febd180254 Merge "Make it possible to hide signal strength via Carrier Config" 2017-12-04 23:20:31 +00:00
Nathan Harold
3349b26630 Validate IpSecAlgorithm Length
Improve the Validation of IpSecAlgorithm by
explicitly checking the length in addition to
the truncation length (previously an oversight).
In addition, we now check the lengths during
un-parceling, which will catch someone maliciously
manually building a parcel and passing it, bypassing
the checks in the constructor.

Bug: 68780091
Test: runtest -x IpSecAlgorithmTest.java
Change-Id: I8172762617264d34f47d5144336464510f07a701
2017-12-04 15:12:14 -08:00
Treehugger Robot
d871cab32d Merge "MacAddress: light refactors and improve documentation" 2017-12-04 23:01:11 +00:00
Andreas Gampe
c8d5fc8572 Frameworks: Silently ignore InterruptedException
Apps seem to rely on this undocumented behavior so that the
threaded sync adapter doesn't crash an app. That's really
bad on the app side, but we will have to live with it.

Bug: 67986472
Bug: 70122540
Test: m
Test: Device boots
Test: m cts && cts-tradefed run commandAndExit cts-dev --module CtsContentTestCases -c android.content.cts.SharedPreferencesTest
Change-Id: I1ee4dfba4ad29c4f66fa60d3c8f8a99900b3447a
2017-12-04 15:00:24 -08:00
Jeff Sharkey
62262160ad Match network roaming state to avoid wtf().
Test: sure
Bug: 70174865
Change-Id: I02faef05e3fb918c3c023fb2fdd1886d45cc8c71
Exempt-From-Owner-Approval: P0 bug
2017-12-04 15:52:54 -07:00
Ying Xu
a9494954d9 Merge "Convert ICarrierService to oneway." 2017-12-04 22:11:36 +00:00
Colin Cross
4e1b9c199d Remove unused AIDL files
These files show up in a glob for all AIDL files, but are not listed
in AIDL files to be built, and have no references in codesearch
except for one unused import.

Bug: 70046217
Test: m checkbuild
Change-Id: I7d6a3bb19d2e16b5f09473f3058afcf5b4edd9b6
2017-12-04 11:14:25 -08:00
Colin Cross
3d16ff7a4a Merge "Convert framework.jar to Android.bp" 2017-12-04 18:53:39 +00:00
Jonathan Basseri
e05afb03c8 Convert ICarrierService to oneway.
Change the carrier config AIDL used by CarrierService to a oneway call.
This is the IPC used to fetch carrier config bundles from carrier apps.
Converting to oneway allows CarrierConfigLoader to be non-blocking while
it fetches config.

Bug: 63176442
Test: runtest carrierconfig-unit & manual
(cherry picked from commit 49b54d64ca)
Merged-in: Iceaf0446321f719011f67897398da7d5998c5fc7
Change-Id: I436f6c920f68f8bbc0fd66a5ff10676ed1529383
2017-12-04 17:56:33 +00:00
Evan Laird
e441298a11 Merge "SystemUI: Display RAT icon when data is off" 2017-12-04 14:37:16 +00:00
Hugo Benichi
84bb7fc761 MacAddress: light refactors and improve documentation
This patch does some light refactoring in MacAddress to prepare for
exposing MacAddress in the public api:
 - documention is improved
 - some method names are renamed
 - a toSafeString method is added
 - a padding bug in the conversion methods outputting strings for
   mac addresses is fixed

Bug: 69390696
Test: runtest frameworks-net
Change-Id: I399a97dabc2dfa8df9c5518c8b12484e43ca05c9
2017-12-04 22:34:43 +09:00
Joachim Sauer
809062c26d Merge "Adjust tests to new android-support-test + espresso libraries." 2017-12-04 10:56:21 +00:00
Colin Cross
943e2aa7ef Convert framework.jar to Android.bp
Use Soong to build framework-res.apk and framework.jar.
See build/soong/README.md for more information.

Bug: 69917341
Test: m checkbuild tests docs
Test: manually compare framework.jar and framework-res.apk
Test: manually compare out/target/common/docs
Change-Id: Ibdfe1cbf34d97c43f4857c2c5d7604fa72d5b5a4
Merged-In: Ibdfe1cbf34d97c43f4857c2c5d7604fa72d5b5a4
(cherry picked from commit cf3a0b5355)
2017-12-03 20:23:43 -08:00
Treehugger Robot
aa3e9d351e Merge "Frameworks: Move SharedPreferencesImpl to Future" 2017-12-02 23:36:14 +00:00
Treehugger Robot
5cac6ed047 Merge "Prevent system app upgrading from multi-arch to single-arch" 2017-12-02 02:54:33 +00:00
Hall Liu
a0a70be251 Merge "Set sIsInitialized to false and add logging" 2017-12-02 01:35:15 +00:00
wangmingming1
03b74909ef Prevent system app upgrading from multi-arch to single-arch
We should not let user to manully upgrade a system app which supports
multi-arch to a newer version which supports only one cpu abi. Take
webview as an example, if the user upgraded the webview to a version
supports only armeabi-v7a on Nexus 5X by mistake, then any app supports
only arm64-v8a and uses webview to display web contents would not work
properly then as loading a 32bit native lib inside a 64bit mode process
is not allowed.

Test: Manual

Change-Id: I567be7707fc18421ff686c1e8b1110dec517e06d
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
2017-12-01 23:39:59 +00:00
Hall Liu
5e9727f5df Set sIsInitialized to false and add logging
When the service goes away due to a remote exception, set sIsInitialized
to false as well as setting the service to null.
Also log the serviceconnection disconnect.

Bug: 70032958
Test: cts
Change-Id: I34c1ea804537c62bd4348ba3aeeca7ba2c0becb6
2017-12-01 14:01:15 -08:00
Brett Chabot
e1843d67b6 Adjust tests to new android-support-test + espresso libraries.
(cherry picked from commit 85544ba5eb)

Bug: 69455082
Test: make tests
Change-Id: I563776a0dd821af4abba47df79e14c255097836d
Merged-In: I7a41199cd7f0739f660a49b1af32e64f58590301
2017-12-01 16:50:03 +00:00
Hans Boehm
db122f90d9 Merge "Ensure that debug builds crash again if there is a BinderProxy leak." 2017-12-01 15:34:29 +00:00
Paul Duffin
ce2362fc7d Merge "Build overlaytests as part of the normal build" 2017-12-01 10:16:56 +00:00
Treehugger Robot
298d2a46dc Merge "Quick fix the getMobileNetworkOperator() in CellIdentity." 2017-12-01 05:19:29 +00:00
Treehugger Robot
de7be840a7 Merge changes I80504f43,Ifc372eef
* changes:
  Fix package install flow w.r.t. dexopt
  Do not apply app-link autoVerify policy to instant app installs
2017-12-01 01:09:30 +00:00
Jordan Liu
c1c29dbf45 Merge "IMS: Add new APIs for call barring operations" 2017-12-01 00:25:43 +00:00
Cassie
b799fcdd69 Quick fix the getMobileNetworkOperator() in CellIdentity.
Bug: 69915536
Test: Basic telephony sanity
Change-Id: Iac8222055aea95fbb5334876124ce9d1571ae2f6
2017-11-30 15:54:51 -08:00
Calin Juravle
b4236711af Fix package install flow w.r.t. dexopt
Calling dexopt before the applicationInfo gets the uid is wrong.
Dexopt needs to be able to set the GID of the odex file to the
UserHandle.getSharedAppGid(pkg.applicationInfo.uid) and that is
possible only with a valid uid.

Move the dexopt logic after installNewPackageLIF/replacePackageLIF
to ensure that we get a valid uid.

Bug: 69331247
Test: adb install & check the GID of the compiler artifacts

(cherry picked from commit c6540daf83)

Merged-In: I2434a1a0b9015091a9af2009b3f785b7a16e1256
Change-Id: I80504f434e1507f30f366d1122224ff959bec4a1
2017-11-30 15:36:33 -08:00
Christopher Tate
d5d79a9f0d Do not apply app-link autoVerify policy to instant app installs
Bug: 66698768
Test: manual

(cherry picked from commit 05941b396a)

Merged-In: Ib9bea22bf8096e708eef93934e0e972be3a2a4c5
Change-Id: Ifc372eef9bc2a140b9252c85f9be0c2ff9cdbb4c
2017-11-30 15:35:18 -08:00
Hans Boehm
c79595fefa Ensure that debug builds crash again if there is a BinderProxy leak.
This fails when trying to run the AOSP mailer with CRASH_AT_SIZE = 500,
when the check interval is reduced sufficiently so that the test is
actually executed. System server has been observed to use more than
1000 BinderProxies. Thus 5000 seems like roughly the lowest safe limit.

Note that the test is executed somewhat rarely, so we may exceed
this number by quite a few before we actually crash.

Bug: 65760710
Test: Builds, AOSP boots & works for a few tasks. Fails as expected
with reduced limit.

Change-Id: I1c999b85e1ba1bd1d166a9ffba4f0b3992ffee45
2017-11-30 15:29:11 -08:00
Dan Willemsen
7fce15dc5e Merge "Fix warning from clang+mingw" 2017-11-30 23:07:47 +00:00
Treehugger Robot
74445ed311 Merge "Add SMS over IMS APIs" 2017-11-30 15:56:30 +00:00
Benergy Meenan Ravuri
f6e372b1fb IMS: Add new APIs for call barring operations
Add below APIs to perform call barring operations for a
specified service class.

queryCallBarringForServiceClass
updateCallBarringForServiceClass

Test: Manual
Bug: 37559543
Change-Id: I438d3527f0e4b2c09de3f7e44e6b80df82b915ae
2017-11-30 18:03:12 +05:30
Paul Duffin
69f9ee77c4 Build overlaytests as part of the normal build
Test: make checkbuild
Change-Id: I1ebdbfd309246b24f1f64e3555c6dfdc592b1868
2017-11-30 12:30:25 +00:00