// Path: src/main/java/com/felhr/usbmassstorageforandroid/utilities/HexUtil.java
// public class HexUtil
// {
//     private static final String HEXES = "0123456789ABCDEF";
//     private static final String HEX_INDICATOR = "0x";
//     private static final String SPACE = " ";
// 
//     private HexUtil()
//     {
// 
//     }
// 
//     public static String hexToString(byte[] data)
//     {
//         if(data != null)
//         {
//             StringBuilder hex = new StringBuilder(2*data.length);
//             for(int i=0;i<=data.length-1;i++)
//             {
//                 byte dataAtIndex = data[i];
//                 hex.append(HEX_INDICATOR);
//                 hex.append(HEXES.charAt((dataAtIndex & 0xF0) >> 4))
//                         .append(HEXES.charAt((dataAtIndex & 0x0F)));
//                 hex.append(SPACE);
//             }
//             return hex.toString();
//         }else
//         {
//             return null;
//         }
//     }
// }


import android.os.Bundle;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;
import java.util.Arrays;
    private boolean hisup;
    private int dataFormatResponse;
    private int aditionalLength;
    private boolean sccs;
    private boolean acc;
    private int tpgs;
    private boolean thirdPartyCommands;
    private boolean protect;
    private boolean bque;
    private boolean encserv;
    private boolean vs;
    private boolean multip;
    private boolean mchngr;
    private boolean addr16; // Not used with USB interface
    private boolean wbus16; // Not used with USB interface
    private boolean sync;   // Not used with USB interface
    private boolean linked;
    private boolean cmdque;
    private boolean vendorSpecific;
    private byte[] t10VendorIdentification; //8..15
    private byte[] productIdentification;   //16..31
    private byte[] productRevisionLevel;    //32..35

    private SCSIInquiryResponse()
    {

    }

    public static SCSIInquiryResponse getResponse(byte[] data)
    {
// Path: src/main/java/com/felhr/usbmassstorageforandroid/utilities/HexUtil.java
// public class HexUtil
// {
//     private static final String HEXES = "0123456789ABCDEF";
//     private static final String HEX_INDICATOR = "0x";
//     private static final String SPACE = " ";
// 
//     private HexUtil()
//     {
// 
//     }
// 
//     public static String hexToString(byte[] data)
//     {
//         if(data != null)
//         {
//             StringBuilder hex = new StringBuilder(2*data.length);
//             for(int i=0;i<=data.length-1;i++)
//             {
//                 byte dataAtIndex = data[i];
//                 hex.append(HEX_INDICATOR);
//                 hex.append(HEXES.charAt((dataAtIndex & 0xF0) >> 4))
//                         .append(HEXES.charAt((dataAtIndex & 0x0F)));
//                 hex.append(SPACE);
//             }
//             return hex.toString();
//         }else
//         {
//             return null;
//         }
//     }
// }


// Path: src/main/java/com/felhr/usbmassstorageforandroid/scsi/SCSIInquiryResponse.java
import android.os.Bundle;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;
import java.util.Arrays;

    private boolean hisup;
    private int dataFormatResponse;
    private int aditionalLength;
    private boolean sccs;
    private boolean acc;
    private int tpgs;
    private boolean thirdPartyCommands;
    private boolean protect;
    private boolean bque;
    private boolean encserv;
    private boolean vs;
    private boolean multip;
    private boolean mchngr;
    private boolean addr16; // Not used with USB interface
    private boolean wbus16; // Not used with USB interface
    private boolean sync;   // Not used with USB interface
    private boolean linked;
    private boolean cmdque;
    private boolean vendorSpecific;
    private byte[] t10VendorIdentification; //8..15
    private byte[] productIdentification;   //16..31
    private byte[] productRevisionLevel;    //32..35

    private SCSIInquiryResponse()
    {

    }

    public static SCSIInquiryResponse getResponse(byte[] data)
    {
        Log.i("Buffer state", "Data to host: " + HexUtil.hexToString(data));