1 |
frameworks/base/core/java/android/app/ApplicationPackageManager.java |
权限申请 |
int checkPermission(String permName, String pkgName) |
2 |
frameworks/base/core/java/android/app/ApplicationPackageManager.java |
获取APP安装列表 |
List<PackageInfo> getInstalledPackages(int flags) |
3 |
frameworks/base/core/java/android/app/ApplicationPackageManager.java |
获取APP安装列表 |
List<ApplicationInfo> getInstalledApplications(int flags) |
4 |
frameworks/base/core/java/android/app/ActivityManager.java |
正在运行的进程 |
List<RunningAppProcessInfo> getRunningAppProcesses() |
5 |
frameworks/base/core/java/android/app/ActivityManager.java |
正在运行的服务 |
PendingIntent getRunningServiceControlPanel(ComponentName service) |
6 |
frameworks/base/core/java/android/app/admin/DevicePolicyManager.java |
获取Mac地址 |
String getWifiMacAddress(ComponentName admin) |
7 |
frameworks/base/core/java/android/bluetooth/BluetoothAdapter.java |
获取蓝牙名称 |
String getName() |
8 |
frameworks/base/core/java/android/bluetooth/BluetoothDevice.java |
获取蓝牙Mac地址 |
String getAddress() |
9 |
frameworks/base/core/java/android/bluetooth/BluetoothDevice.java |
获取蓝牙名称 |
String getName() |
10 |
frameworks/base/core/java/android/content/ClipboardManager.java |
获取剪切板信息 |
void setPrimaryClip(ClipData clip) |
11 |
frameworks/base/core/java/android/content/ClipboardManager.java |
监测剪切板信息 |
boolean hasPrimaryClip() |
12 |
frameworks/base/core/java/android/content/ClipboardManager.java |
设置剪切板信息 |
void setPrimaryClip(ClipData clip) |
13 |
frameworks/base/core/java/android/content/Camera.java |
打开摄像头 |
Camera open(int cameraId) |
14 |
frameworks/base/core/java/android/hardware/camera2/CameraManager.java |
打开摄像头 |
openCameraDeviceUserAsync |
15 |
frameworks/base/core/java/android/hardware/SensorManager.java |
获取传感器信息 |
List<Sensor> getSensorList(int type) |
16 |
frameworks/base/core/java/android/os/Build.java |
获取设备序列号 |
String getSerial() |
17 |
frameworks/base/core/java/android/provider/Settings.java |
获取Android_id |
String getString(ContentResolver resolver, String name) |
18 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取IMEI |
String getDeviceId() |
19 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取IMEI |
String getImei(int slotIndex) |
20 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取MEID |
String getMeid(int slotIndex) |
21 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取MCC/MNC |
String getNetworkOperatorName(int subId) |
22 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取当前位置信息 |
CellLocation getCellLocation() |
23 |
frameworks/base/location/java/android/location/Location.java |
获取纬度信息 |
double getLatitude() |
24 |
frameworks/base/location/java/android/location/Location.java |
获取经度信息 |
double getLongitude() |
25 |
frameworks/base/location/java/android/location/LocationManager.java |
获取最后已知位置 |
Location getLastKnownLocation(@NonNull String provider) |
26 |
frameworks/base/location/java/android/location/LocationManager.java |
获取最后已知位置 |
Location getLastLocation() |
27 |
frameworks/base/telephony/java/android/telephony/gsm/GsmCellLocation.java |
获取基站cid信息 |
int getCid() |
28 |
frameworks/base/telephony/java/android/telephony/gsm/GsmCellLocation.java |
获取基站lac信息 |
int getLac() |
29 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取SIM卡国际代码 |
String getSimCountryIsoForPhone(int phoneId) |
30 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取IMSI/ICCID |
String getSimSerialNumber(int subId) |
31 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取IMSI |
String getSubscriberId(int subId) |
32 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取电话号码 |
String getLine1Number(int subId) |
33 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
获取IMSI |
int getSubscriptionId() |
34 |
frameworks/base/core/java/android/telephony/TelephonyManager.java |
检测sim卡是否可用 |
ServiceState getServiceStateForSubscriber(int subId) |
35 |
frameworks/base/core/java/android/os/SystemProperties.java |
获取系统属性 |
String get(@NonNull String key) |
36 |
frameworks/base/core/java/android/os/SystemProperties.java |
设置系统属性 |
void set(@NonNull String key, @Nullable String val) |
37 |
frameworks/base/wifi/java/android/net/wifi/WifiInfo.java |
获取附近Wifi列表 |
List<ScanResult> getScanResults() |
38 |
frameworks/base/wifi/java/android/net/wifi/WifiInfo.java |
获取Mac地址 |
String[] getFactoryMacAddresses() |