Age | Commit message (Collapse) | Author |
|
It need to break the deadlock between the objects of
Terminal.mLock and Channel to avoid the potentially ANR issue
Bug: 158132553
Test: OMAPI works normal after multi-thread stress tests
Signed-off-by: Maoliang Tang <tangmaoliang@xiaomi.com>
Change-Id: I94676d45cabb65665d9336167d9814dfbca7a5bb
(cherry picked from commit 8c52cf75b958f690457be330c52ba2487186f2d8)
|
|
Allow privilege app access to open channel even if
AccessControlEnforcer is not available.
Throw exception only for non privileged access.
Bug: 149632580
Test: OpenBasicChannel from Privileged/Non privileged app
Merged-In: Ie188d397f6bf641923d010ad3a9d00d21bc9351b
Change-Id: Ie188d397f6bf641923d010ad3a9d00d21bc9351b
|
|
When applications with privilege permission or carrier privilege, allow
basic channel access and select operation in an opened channel.
Bug: 139701995
Test: build pass
Change-Id: I823202b9eadf012cfdf89bde5678c01bc8f77314
|
|
If an application uses a partial AID while opening a
channel, and select response returns the full AID, then
selectNext() fails because there is a mismatch in the AID.
Storing the AID that was used to open the channel fixes the
issue.
Test: OMAPI CTS Test
Bug: 74436845
Change-Id: I3c2c5c36bae818367c0fd010c041eadb59fcbe49
|
|
IOException shall be thrown to client application if communication
problem happens between the terminal and the secure element while the
terminal retrieves the access rules. That is the expected behavior
described in the clause 6.2.7 (h) of Open Mobile API Specification.
Bug: 74094356
Test: OMAPI TC 6.4.7 ID8 and TC 6.4.10 ID8 pass with this change.
Change-Id: If444384541d3425e9a0dc052e933c9739a9f1025
|
|
Throw an exception when NO_SUCH_ELEMENT_ERROR is encountered.
selectResponse should be null if SELECT has not been performed.
mDefaultApplicationSelectedOnBasicChannel should only be reset if the
Secure Element has gone through a reset.
Test: Secure Element initializes
Change-Id: Ibd7f44b1b999d265e39336b764cd729f0156d468
|
|
Any APDU command with invalid format shall not be sent to the lower
layer. IllegalArgumentException shall be thrown if anything wrong is
found in the command format.
Bug: 72873579
Test: Confirmed that 6.5.6 ID25 can pass with this change.
Change-Id: I1c9b9631b380bc66cdd4f6ebd814491b5acb7ee2
|
|
This contribution is an implementation of the GlobalPlatform
Open Mobile API for Android with some modifications to
namespaces and packages to make it suitable as a core
Android component.
This contribution is based on:
0001-Open-Source-Contribution-of-Smartcard-Service-for-fr.patch
which can be found in
https://portland.source.codeaurora.org/patches/quic/la/PATCH_217881_OpenMobileAPI_20171208.tar.gz
and
0001-Code-reorganization-of-Open-Mobile-API-packages-apps.patch
which can be found in
https://portland.source.codeaurora.org/patches/quic/la/PATCH_217881_OpenMobileAPI_20171206.tar.gz
The first patch should be applied, followed by the second.
The submitted patchs were originally derived from
https://source.codeaurora.org/quic/la/platform/packages/apps/SmartCardService/commit/?h=LA.BF64.1.2.1&id=06ecea9abb8264049f52c7e31c0bc13330a425d5.
Test: Basic functionality test on target device
- Verify access rules are read from ARF on start-up
- Verify that access rules are updated on refresh tag
- Verify basic APDU transfer
Test performed in conjunction with commit
0269d238c1fc1212c8e7eb1717b47977f8f3b1fa on frameworks/base
Change-Id: Ia6c5b3657f83efa1551a067bd6aee03c68876c09
Signed-off-by: Jeremy O'Donoghue <jodonogh@codeaurora.org>
|