CodePudding user response:
If is three parties can use the android OS. Build to obtain, if is the application or system can root also could be obtained by SystempropertiesPublic void printDeviceInfo (String tag) {
StringBuilder sb=new StringBuilder();
Sb. Append (" PRODUCT "). Append (android. OS. Build. The PRODUCT), append (" \ n ");
Sb. Append (" BOARD "). Append (android. OS. Build. BOARD), append (" \ n ");
Sb. Append (" BOOTLOADER "). Append (android. OS. Build. BOOTLOADER), append (" \ n ");
Sb. Append (" BRAND "), append (android. OS. Build. BRAND), append (" \ n ");
Sb. Append (" CPU_ABI "). Append (android. OS. Build. CPU_ABI). Append (" \ n ");
Sb. Append (" CPU_ABI2 "). Append (android. OS. Build. CPU_ABI2). Append (" \ n ");
Sb. Append (" DEVICE "), append (android. OS. Build. DEVICE), append (" \ n ");
Sb. Append (" DISPLAY "), append (android. OS. Build. The DISPLAY), append (" \ n ");
Sb. Append (" FINGERPRINT "). Append (android. OS. Build. FINGERPRINT), append (" \ n ");
Sb. Append (" HARDWARE "), append (android. OS. Build. The HARDWARE), append (" \ n ");
Sb. Append (" HOST "). Append (android. OS. Build. The HOST), append (" \ n ");
Sb. Append (" ID "). Append (). The android OS. Build. ID. Append (" \ n ");
Sb. Append (" MANUFACTURER "), append (android. OS. Build. MANUFACTURER), append (" \ n ");
Sb. Append (" MODEL "). Append (android. OS. Build. MODEL), append (" \ n ");
Sb. Append (" PRODUCT "). Append (android. OS. Build. The PRODUCT), append (" \ n ");
Sb. Append (" RADIO "). Append (android. OS. Build. RADIO), append (" \ n ");
Sb. Append (" SERIAL "). Append (android. OS. Build. SERIAL), append (" \ n ");
Sb. Append (" TAGS "). Append (android. OS. Build. TAGS), append (" \ n ");
Sb. Append (" TIME "). Append (android. OS. Build. TIME). The append (" \ n ");
Sb. Append (" TYPE "). Append (android. OS. Build. TYPE), append (" \ n ");
Sb. Append (" USER "), append (android. OS. Build. The USER), append (" \ n ");
The Log i. (tag, sb. ToString ());
}
CodePudding user response:
I've tried... Android. OS. Build, Systemproperties class can't get, and you send the code is also not a cpuid ahCodePudding user response:
Phone kiss measuring effectiveThe import android. OS. Build. VERSION;
The import android. OS. Build. VERSION_CODES;
Sb. Append (" CPU_ABI "). Append (android. OS. Build. CPU_ABI). Append (" \ n ");
Sb. Append (" CPU_ABI2 "). Append (android. OS. Build. CPU_ABI2). Append (" \ n ");
Getprop can see
I have time to write a blog
CodePudding user response:
Sb. Append (" CPU_ABI "). Append (android. OS. Build. CPU_ABI). Append (" \ n ");Sb. Append (" CPU_ABI2 "). Append (android. OS. Build. CPU_ABI2). Append (" \ n ");
The access to the CPU model, not a cpuid ah,,,,
CodePudding user response:
The building Lord try cat/proc/cpuinfo, including Serial fields should be cpuid you wantCodePudding user response:
Some mobile phone no Serial, some mobile phone Serial is 0000000