55package org.microg.gms.tapandpay
66
77import android.os.Parcel
8- import android.os.RemoteException
98import android.util.Log
109import android.util.SparseArray
1110import com.google.android.gms.common.Feature
@@ -36,20 +35,38 @@ class TapAndPayService : BaseService(TAG, GmsService.TAP_AND_PAY) {
3635 features = arrayOf(
3736 Feature (" tapandpay" , 1 ),
3837 Feature (" tapandpay_account_linking" , 1 ),
38+ Feature (" tapandpay_add_service_listener" , 1 ),
3939 Feature (" tapandpay_block_payment_cards" , 1 ),
4040 Feature (" tapandpay_check_contactless_eligibility" , 1 ),
4141 Feature (" tapandpay_dismiss_quick_access_wallet" , 1 ),
42+ Feature (" tapandpay_enable_secure_keyguard" , 1 ),
43+ Feature (" tapandpay_felica_tos" , 1 ),
44+ Feature (" tapandpay_get_active_wallet_infos" , 1L ),
4245 Feature (" tapandpay_get_all_cards_for_account" , 1 ),
4346 Feature (" tapandpay_get_contactless_setup_configuration" , 1 ),
47+ Feature (" tapandpay_get_environment" , 1L ),
4448 Feature (" tapandpay_get_last_attestation_result" , 1 ),
45- Feature (" tapandpay_get_token_pan" , 1 ),
49+ Feature (" tapandpay_get_stable_hardware_id" , 1L ),
50+ Feature (" tapandpay_get_token_details" , 1L ),
51+ Feature (" tapandpay_get_token_status" , 1L ),
4652 Feature (" tapandpay_global_actions" , 1 ),
53+ Feature (" tapandpay_has_eligible_tokenization_target" , 1L ),
4754 Feature (" tapandpay_issuer_api" , 2 ),
4855 Feature (" tapandpay_perform_tokenization_operation" , 1 ),
4956 Feature (" tapandpay_push_tokenize" , 1 ),
57+ Feature (" tapandpay_override_payment_network" , 3L ),
58+ Feature (" tapandpay_get_parental_consent_intent" , 1L ),
59+ Feature (" tapandpay_perform_secure_element_management_operation" , 1L ),
60+ Feature (" tapandpay_perform_tokenization_operation" , 1L ),
5061 Feature (" tapandpay_push_tokenize_session" , 6 ),
62+ Feature (" tapandpay_push_tokenize" , 1L ),
5163 Feature (" tapandpay_quick_access_wallet" , 1 ),
64+ Feature (" tapandpay_report_unlock" , 1L ),
65+ Feature (" tapandpay_request_delete_token" , 1L ),
66+ Feature (" tapandpay_request_select_token" , 1L ),
5267 Feature (" tapandpay_secureelement" , 1 ),
68+ Feature (" tapandpay_settings" , 2L ),
69+ Feature (" tapandpay_token_listing_with_request" , 1L ),
5370 Feature (" tapandpay_show_wear_card_management_view" , 1 ),
5471 Feature (" tapandpay_send_wear_request_to_phone" , 1 ),
5572 Feature (" tapandpay_sync_device_info" , 1 ),
@@ -58,6 +75,8 @@ class TapAndPayService : BaseService(TAG, GmsService.TAP_AND_PAY) {
5875 Feature (" tapandpay_tokenize_pan" , 1 ),
5976 Feature (" tapandpay_transmission_event" , 1 ),
6077 Feature (" tapandpay_token_listing" , 3 ),
78+ Feature (" tapandpay_wallet_ui_shown_status" , 1L ),
79+ Feature (" tapandpay_wallet_set_tap_doodle_enabled" , 1L ),
6180 Feature (" tapandpay_wallet_feedback_psd" , 1 )
6281 )
6382 })
@@ -101,6 +120,11 @@ class TapAndPayImpl : ITapAndPayService.Stub() {
101120 callbacks.onRefreshSeCardsResponse(Status .SUCCESS , RefreshSeCardsResponse ())
102121 }
103122
123+ override fun getListTokens (callbacks : ITapAndPayServiceCallbacks ) {
124+ Log .d(TAG , " getListTokensRequest: " )
125+ callbacks.onListTokensRetrieved(Status .SUCCESS , emptyArray())
126+ }
127+
104128 override fun onTransact (code : Int , data : Parcel , reply : Parcel ? , flags : Int ): Boolean =
105129 warnOnTransactionIssues(code, reply, flags, TAG ) { super .onTransact(code, data, reply, flags) }
106130}
0 commit comments