當前位置: 首頁>>代碼示例>>Java>>正文


Java Build.FINGERPRINT屬性代碼示例

本文整理匯總了Java中android.os.Build.FINGERPRINT屬性的典型用法代碼示例。如果您正苦於以下問題:Java Build.FINGERPRINT屬性的具體用法?Java Build.FINGERPRINT怎麽用?Java Build.FINGERPRINT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.os.Build的用法示例。


在下文中一共展示了Build.FINGERPRINT屬性的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getBuildFingerprintAndDeviceSerial

private static byte[] getBuildFingerprintAndDeviceSerial() {
    StringBuilder result = new StringBuilder();
    String fingerprint = Build.FINGERPRINT;
    if (fingerprint != null) {
        result.append(fingerprint);
    }
    String serial = getDeviceSerialNumber();
    if (serial != null) {
        result.append(serial);
    }
    try {
        return result.toString().getBytes("UTF-8");
    } catch (UnsupportedEncodingException e) {
        throw new RuntimeException("UTF-8 encoding not supported");
    }
}
 
開發者ID:YoeriNijs,項目名稱:NoteBuddy,代碼行數:16,代碼來源:AesCbcWithIntegrity.java

示例2: isSystemOTA

public static boolean isSystemOTA(String lastFingerPrint) {
    String currentFingerprint = Build.FINGERPRINT;
    if (lastFingerPrint == null
        || lastFingerPrint.equals("")
        || currentFingerprint == null
        || currentFingerprint.equals("")) {
        Log.d(TAG, "fingerprint empty:" + lastFingerPrint + ",current:" + currentFingerprint);
        return false;
    } else {
        if (lastFingerPrint.equals(currentFingerprint)) {
            Log.d(TAG, "same fingerprint:" + currentFingerprint);
            return false;
        } else {
            Log.d(TAG, "system OTA,fingerprint not equal:" + lastFingerPrint + "," + currentFingerprint);
            return true;
        }
    }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:18,代碼來源:ShareTinkerInternals.java

示例3: getBuildFingerprintAndDeviceSerial

private static byte[] getBuildFingerprintAndDeviceSerial() {
    StringBuilder result = new StringBuilder();
    String fingerprint = Build.FINGERPRINT;
    if (fingerprint != null) {
        result.append(fingerprint);
    }
    String serial = Build.SERIAL;
    if (serial != null) {
        result.append(serial);
    }
    try {
        return result.toString().getBytes("UTF-8");
    } catch (UnsupportedEncodingException e) {
        throw new RuntimeException("UTF-8 encoding not supported");
    }
}
 
開發者ID:uhuru-mobile,項目名稱:mobile-store,代碼行數:16,代碼來源:PRNGFixes.java

示例4: getBuildFingerprintAndDeviceSerial

private static byte[] getBuildFingerprintAndDeviceSerial() {
  StringBuilder result = new StringBuilder();
  String fingerprint = Build.FINGERPRINT;
  if (fingerprint != null) {
    result.append(fingerprint);
  }
  String serial = getDeviceSerialNumber();
  if (serial != null) {
    result.append(serial);
  }
  try {
    return result.toString().getBytes("UTF-8");
  } catch (UnsupportedEncodingException e) {
    throw new RuntimeException("UTF-8 encoding not supported");
  }
}
 
開發者ID:CableIM,項目名稱:Cable-Android,代碼行數:16,代碼來源:PRNGFixes.java

示例5: writeToEntropyPool

@Override
protected void writeToEntropyPool(DataOutputStream out) throws IOException {
	super.writeToEntropyPool(out);
	out.writeInt(android.os.Process.myPid());
	out.writeInt(android.os.Process.myTid());
	out.writeInt(android.os.Process.myUid());
	if (Build.FINGERPRINT != null) out.writeUTF(Build.FINGERPRINT);
	if (Build.SERIAL != null) out.writeUTF(Build.SERIAL);
	ContentResolver contentResolver = appContext.getContentResolver();
	String id = Settings.Secure.getString(contentResolver, ANDROID_ID);
	if (id != null) out.writeUTF(id);
	Parcel parcel = Parcel.obtain();
	WifiManager wm =
			(WifiManager) appContext.getSystemService(WIFI_SERVICE);
	List<WifiConfiguration> configs = wm.getConfiguredNetworks();
	if (configs != null) {
		for (WifiConfiguration config : configs)
			parcel.writeParcelable(config, 0);
	}
	BluetoothAdapter bt = BluetoothAdapter.getDefaultAdapter();
	if (bt != null) {
		for (BluetoothDevice device : bt.getBondedDevices())
			parcel.writeParcelable(device, 0);
	}
	out.write(parcel.marshall());
	parcel.recycle();
}
 
開發者ID:rafjordao,項目名稱:Nird2,代碼行數:27,代碼來源:AndroidSecureRandomProvider.java

示例6: onPostResume

@Override
protected void onPostResume() {
    super.onPostResume();
    force = true;
    if (mHandler != null) {
        mHandler.sendEmptyMessage(MESSAGE_CHECK_NETWORK);
    }
    if (BuildConfig.RELEASE) {
        ((BreventApplication) getApplication()).decodeFromClipboard();
    }
    if (BreventIntent.ACTION_FEEDBACK.equals(getIntent().getAction())) {
        String path = getIntent().getStringExtra(BreventIntent.EXTRA_PATH);
        UILog.d("path: " + path);
        if (hasEmailClient(this)) {
            String content = Build.FINGERPRINT + "\n" +
                    getString(R.string.brevent_status_stopped);
            sendEmail(this, new File(path), content);
        }
    }
    if (shouldUpdateConfiguration) {
        updateConfiguration();
    }
}
 
開發者ID:brevent,項目名稱:Brevent,代碼行數:23,代碼來源:BreventActivity.java

示例7: getBuildFingerprintAndDeviceSerial

private static byte[] getBuildFingerprintAndDeviceSerial() {
    StringBuilder result = new StringBuilder();
    String fingerprint = Build.FINGERPRINT;
    if (fingerprint != null) {
        result.append(fingerprint);
    }
    String serial = getDeviceSerialNumber();
    if (serial != null) {
        result.append(serial);
    }

    return result.toString().getBytes(Charset.forName("UTF-8"));
}
 
開發者ID:philipwhiuk,項目名稱:q-mail,代碼行數:13,代碼來源:PRNGFixes.java

示例8: getDeviceInfo

/**
 * 獲取設備信息
 */
public String getDeviceInfo(Context context) {
    return getEmulatorName(context) + "\n" + "Build.PRODUCT: " + Build.PRODUCT + "\n" +
            "Build.MANUFACTURER: " + Build.MANUFACTURER + "\n" +
            "Build.BRAND: " + Build.BRAND + "\n" +
            "Build.DEVICE: " + Build.DEVICE + "\n" +
            "Build.MODEL: " + Build.MODEL + "\n" +
            "Build.HARDWARE: " + Build.HARDWARE + "\n" +
            "Build.FINGERPRINT: " + Build.FINGERPRINT;
}
 
開發者ID:CodyyAndroid,項目名稱:EmulatorDetect,代碼行數:12,代碼來源:EmulatorDetectorService.java

示例9: getDeviceListing

/**
 *
 * @return all involved Build.* parameters and its values
 */
public static String getDeviceListing() {
    return "Build.PRODUCT: " + Build.PRODUCT + "\n" +
            "Build.MANUFACTURER: " + Build.MANUFACTURER + "\n" +
            "Build.BRAND: " + Build.BRAND + "\n" +
            "Build.DEVICE: " + Build.DEVICE + "\n" +
            "Build.MODEL: " + Build.MODEL + "\n" +
            "Build.HARDWARE: " + Build.HARDWARE + "\n" +
            "Build.FINGERPRINT: " + Build.FINGERPRINT + "\n" +
            "Build.CPU_ABI: " + Build.CPU_ABI + "\n" +
            "Build.CPU_ABI2: " + Build.CPU_ABI2 + "\n" +
            "Build.HOST: " + Build.HOST;
}
 
開發者ID:zhuangzaiku,項目名稱:AndroidCollection,代碼行數:16,代碼來源:EmulatorDetector.java

示例10: getBrand

public static String getBrand() {
    return Build.FINGERPRINT;
}
 
開發者ID:WrBug,項目名稱:GravityBox,代碼行數:3,代碼來源:DevicesUtils.java

示例11: getDeviceInfo

public String getDeviceInfo() {
    return "\n" +
            "Brand:" +
            Build.BRAND +
            "\n" +
            "Manufacturer:" +
            Build.MANUFACTURER +
            "\n" +
            "Product:" +
            Build.PRODUCT +
            "\n" +
            "Board:" +
            Build.BOARD +
            "\n" +
            "Bootloader:" +
            Build.BOOTLOADER +
            "\n" +
            "CPU_abi:" +
            Build.CPU_ABI +
            "\n" +
            "CPU_abi2:" +
            Build.CPU_ABI2 +
            "\n" +
            "DEVICE:" +
            Build.DEVICE +
            "\n" +
            "Display:" +
            Build.DISPLAY +
            "\n" +
            "Fingerprint:" +
            Build.FINGERPRINT +
            "\n" +
            "Hardware:" +
            Build.HARDWARE +
            "\n" +
            "Host:" +
            Build.HOST +
            "\n" +
            "ID:" +
            Build.ID +
            "\n" +
            "Model:" +
            Build.MODEL +
            "\n" +
            "Time:" +
            Build.TIME +
            "\n" +
            "Type:" +
            Build.TYPE +
            "\n" +
            "User:" +
            Build.USER +
            "\n" +
            "CodeName:" +
            Build.VERSION.CODENAME +
            "\n" +
            "Incremental:" +
            Build.VERSION.INCREMENTAL +
            "\n" +
            "Release:" +
            Build.VERSION.RELEASE +
            "\n" +
            "SDK:" +
            Build.VERSION.SDK_INT +
            "\n";
}
 
開發者ID:alphater,項目名稱:garras,代碼行數:66,代碼來源:BaseFragment.java

示例12: getFingerprint

public static String getFingerprint() {
    return Build.FINGERPRINT;
}
 
開發者ID:jeasinlee,項目名稱:AndroidBasicLibs,代碼行數:3,代碼來源:DeviceUtils.java


注:本文中的android.os.Build.FINGERPRINT屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。