package g.i.a.c.p;

import g.h.a.i;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public class g {
    public byte[] a;

    public g(int i2, byte[] bArr, a aVar) {
        this.a = bArr;
    }

    public byte[] a() {
        byte[] bArr = new byte[17];
        bArr[0] = 1;
        byte[] bArr2 = this.a;
        if (bArr2 != null && bArr2.length >= 16) {
            System.arraycopy(bArr2, 0, bArr, 1, 16);
        }
        return bArr;
    }

    public String toString() {
        return String.format("StartDfuCmd(0x%02X) {", (byte) 1) + String.format(Locale.US, "\n\tparams=%s", i.y(this.a)) + "\n}";
    }
}
