File tree Expand file tree Collapse file tree 4 files changed +29
-6
lines changed Expand file tree Collapse file tree 4 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
3
+ * Not a Contribution.
4
+ *
2
5
* Copyright (C) 2010 The Android Open Source Project
3
6
*
4
7
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -28,6 +31,7 @@ import android.nfc.INfcTag;
28
31
import android.nfc.INfcCardEmulation ;
29
32
import android.nfc.INfcUnlockHandler ;
30
33
import android.os.Bundle ;
34
+ import android.os.IBinder ;
31
35
32
36
/**
33
37
* @hide
@@ -37,6 +41,7 @@ interface INfcAdapter
37
41
INfcTag getNfcTagInterface ();
38
42
INfcCardEmulation getNfcCardEmulationInterface ();
39
43
INfcAdapterExtras getNfcAdapterExtrasInterface (in String pkg );
44
+ IBinder getNfcAdapterVendorInterface (in String vendor );
40
45
41
46
int getState ();
42
47
boolean disable (boolean saveState );
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (C) 2015 The Android Open Source Project
3
3
*
4
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
5
+ * Not a Contribution.
6
+ *
4
7
* Licensed under the Apache License, Version 2.0 (the "License");
5
8
* you may not use this file except in compliance with the License.
6
9
* You may obtain a copy of the License at
37
40
*
38
41
* @hide
39
42
*/
40
- public final class AidGroup implements Parcelable {
43
+ public class AidGroup implements Parcelable {
41
44
/**
42
45
* The maximum number of AIDs that can be present in any one group.
43
46
*/
44
47
public static final int MAX_NUM_AIDS = 256 ;
45
48
46
49
static final String TAG = "AidGroup" ;
47
50
48
- final List <String > aids ;
49
- final String category ;
50
- final String description ;
51
+ protected List <String > aids ;
52
+ protected String category ;
53
+ protected String description ;
51
54
52
55
/**
53
56
* Creates a new AidGroup object.
Original file line number Diff line number Diff line change 1
1
/*
2
+ * Copyright (C) 2015 NXP Semiconductors
3
+ * The original Work has been changed by NXP Semiconductors.
2
4
* Copyright (C) 2010 The Android Open Source Project
3
5
*
4
6
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -173,6 +175,10 @@ public MifareClassic(Tag tag) throws RemoteException {
173
175
mType = TYPE_CLASSIC ;
174
176
mSize = SIZE_4K ;
175
177
break ;
178
+ case 0x19 :
179
+ mType = TYPE_CLASSIC ;
180
+ mSize = SIZE_2K ;
181
+ break ;
176
182
case 0x28 :
177
183
mType = TYPE_CLASSIC ;
178
184
mSize = SIZE_1K ;
Original file line number Diff line number Diff line change 1
1
/*
2
+ * Copyright (C) 2015 NXP Semiconductors
3
+ * The original Work has been changed by NXP Semiconductors.
2
4
* Copyright (C) 2010 The Android Open Source Project
3
5
*
4
6
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -66,8 +68,15 @@ public static NfcA get(Tag tag) {
66
68
/** @hide */
67
69
public NfcA (Tag tag ) throws RemoteException {
68
70
super (tag , TagTechnology .NFC_A );
69
- Bundle extras = tag .getTechExtras (TagTechnology .NFC_A );
70
- mSak = extras .getShort (EXTRA_SAK );
71
+ Bundle extras ;
72
+ mSak = 0 ;
73
+ if (tag .hasTech (TagTechnology .MIFARE_CLASSIC ))
74
+ {
75
+ extras = tag .getTechExtras (TagTechnology .MIFARE_CLASSIC );
76
+ mSak = extras .getShort (EXTRA_SAK );
77
+ }
78
+ extras = tag .getTechExtras (TagTechnology .NFC_A );
79
+ mSak |= extras .getShort (EXTRA_SAK );
71
80
mAtqa = extras .getByteArray (EXTRA_ATQA );
72
81
}
73
82
You can’t perform that action at this time.
0 commit comments