Android獲取手機配置資訊
StringBuilder phoneInfo = new StringBuilder();
phoneInfo.append("Product: " + android.os.Build.PRODUCT + System.getProperty("line.separator"));
phoneInfo.append( "CPU_ABI: " + android.os.Build.CPU_ABI + System.getProperty("line.separator"));
phoneInfo.append( "TAGS: " + android.os.Build.TAGS + System.getProperty("line.separator"));
phoneInfo.append( "VERSION_CODES.BASE: " + android.os.Build.VERSION_CODES.BASE + System.getProperty("line.separator"));
phoneInfo.append( "MODEL: " + android.os.Build.MODEL + System.getProperty("line.separator"));
phoneInfo.append( "SDK: " + android.os.Build.VERSION.SDK + System.getProperty("line.separator"));
phoneInfo.append( "VERSION.RELEASE: " + android.os.Build.VERSION.RELEASE + System.getProperty("line.separator"));
phoneInfo.append( "DEVICE: " + android.os.Build.DEVICE + System.getProperty("line.separator"));
phoneInfo.append( "DISPLAY: " + android.os.Build.DISPLAY + System.getProperty("line.separator"));
phoneInfo.append( "BRAND: " + android.os.Build.BRAND + System.getProperty("line.separator"));
phoneInfo.append( "BOARD: " + android.os.Build.BOARD + System.getProperty("line.separator"));
phoneInfo.append( "FINGERPRINT: " + android.os.Build.FINGERPRINT + System.getProperty("line.separator"));
phoneInfo.append( "ID: " + android.os.Build.ID + System.getProperty("line.separator"));
phoneInfo.append( "MANUFACTURER: " + android.os.Build.MANUFACTURER + System.getProperty("line.separator"));
phoneInfo.append( "USER: " + android.os.Build.USER + System.getProperty("line.separator"));
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
phoneInfo.append("DeviceId(IMEI) = " + tm.getDeviceId() + System.getProperty("line.separator"));
phoneInfo.append("DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + System.getProperty("line.separator"));
phoneInfo.append("Line1Number = " + tm.getLine1Number() + System.getProperty("line.separator"));
phoneInfo.append("NetworkCountryIso = " + tm.getNetworkCountryIso() + System.getProperty("line.separator"));
phoneInfo.append("NetworkOperator = " + tm.getNetworkOperator() + System.getProperty("line.separator"));
phoneInfo.append("NetworkOperatorName = " + tm.getNetworkOperatorName() + System.getProperty("line.separator"));
phoneInfo.append("NetworkType = " + tm.getNetworkType() + System.getProperty("line.separator"));
phoneInfo.append("PhoneType = " + tm.getPhoneType() + System.getProperty("line.separator"));
phoneInfo.append("SimCountryIso = " + tm.getSimCountryIso() + System.getProperty("line.separator"));
phoneInfo.append("SimOperator = " + tm.getSimOperator() + System.getProperty("line.separator"));
phoneInfo.append("SimOperatorName = " + tm.getSimOperatorName() + System.getProperty("line.separator"));
phoneInfo.append("SimSerialNumber = " + tm.getSimSerialNumber() + System.getProperty("line.separator"));
phoneInfo.append("SimState = " + tm.getSimState() + System.getProperty("line.separator"));
phoneInfo.append("SubscriberId(IMSI) = " + tm.getSubscriberId() + System.getProperty("line.separator"));
phoneInfo.append("VoiceMailNumber = " + tm.getVoiceMailNumber() + System.getProperty("line.separator"));
記得加許可權:
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
相關文章
- Android之獲取手機UDIDAndroid
- android 獲取手機號碼Android
- Android手機獲取Root許可權Android
- Java解析微信獲取手機號資訊Java
- 【android】獲取手機安裝的所有程式Android
- android之實現跳轉手機通訊錄獲取指定姓名和手機號碼Android
- Android 從手機相簿獲取圖片 uri 路徑 從相機獲取照片Android
- uniapp微信小程式獲取手機號 位置資訊APP微信小程式
- 【Python】獲取機器使用資訊Python
- SpringBoot專案中獲取配置檔案的配置資訊Spring Boot
- iOS 獲取裝置uuid,公網ip,手機ip等資訊iOSUI
- Android CameraX ImageAnalysis 獲取視訊幀Android
- 奇思妙想,獲取對方手機通訊錄
- 獲取位置資訊
- spring boot學習(7)— 配置資訊的獲取方式Spring Boot
- 蘋果手機獲取UDID蘋果
- 獲取手機外網IP
- iOS 獲取本機的裝置資訊UIDeviceiOSUIIDEdev
- 獲取計算機系統唯一資訊計算機
- Android12以上獲取裝置網路訊號資料Android
- 在Java中獲取Android端登陸的裝置資訊JavaAndroid
- ios 手機驗證碼獲取iOS
- Python自動化測試之獲取配置檔案資訊Python
- Oracle獲取所有表名資訊和獲取指定表名欄位資訊Oracle
- iOS獲取SIM卡資訊iOS
- 獲取AFP服務資訊
- 基於隨機定位的地圖資訊獲取方式隨機地圖
- 短視訊平臺原始碼,獲取安卓手機驗證碼原始碼安卓
- Linux: 獲取硬碟的UUID資訊Linux硬碟UI
- 獲取.crt證書的資訊
- ipmitool獲取伺服器資訊MIT伺服器
- ABL獲取XBL資訊記錄
- Android 通過名稱獲取資源IDAndroid
- 使用捕獲 獲取身份證號的資訊
- 資訊爆炸時代,如何獲取優質資訊?
- 男子非法獲取手機號惡意套現 洩露65萬餘條個人資訊
- iOS 獲取手機型號,XR,XS,MAXiOS
- 小程式獲取手機號親測成功
- 獲取手機上 APP 或者 APK 圖示APPAPK