Code example for MifareClassic

Methods: connectgetSectorCount

0
	public static final int TYPE_MANUFACTURER = 3;
 
	public Mifare(MifareClassic m) throws IOException {
		mf = m;
 
		mf.connect();
 
		keysA = new byte[mf.getSectorCount()][6];
		keysB = new byte[mf.getSectorCount()][6];
	} 
 
	public ArrayList<String[]> testDefaultKeys() {
		ArrayList<String[]> mItems = new ArrayList<String[]>();
 
		try { 
			// Check default key 
			boolean auth;
 
			for (int s = 0; s < mf.getSectorCount(); s++) {
				// Clave A 
Experience pair programming with AI  Get Codota for Java