Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit 4b90b06

Browse files
committed
monitor: Read cpuinfo
1 parent 4a45b63 commit 4b90b06

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

app/src/main/java/com/grarak/kerneladiutor/services/monitor/Monitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ private void postCreate(final Long[] times) {
9494
public void run() {
9595
try {
9696
JSONObject data = new JSONObject();
97-
data.put("android_id", Utils.getAndroidId(Monitor.this));
97+
data.put("android_id", Utils.decodeString(Utils.getAndroidId(Monitor.this)));
9898
data.put("android_version", Device.getVersion());
9999
data.put("kernel_version", Device.getKernelVersion(true, false));
100100
data.put("app_version", BuildConfig.VERSION_NAME);
101101
data.put("board", Device.getBoard(false));
102102
data.put("model", Device.getModel());
103103
data.put("vendor", Device.getVendor());
104+
data.put("cpuinfo", Utils.decodeString(Device.CPUInfo.getCpuInfo(false)));
104105

105106
JSONArray commands = new JSONArray();
106107
Settings settings = new Settings(Monitor.this);

app/src/main/java/com/grarak/kerneladiutor/utils/Device.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ public static String getVendor(boolean root) {
233233
return getString("vendor_id", root);
234234
}
235235

236+
public static String getCpuInfo(boolean root) {
237+
if (CPUINFO == null) {
238+
load(root);
239+
}
240+
return CPUINFO;
241+
}
242+
236243
private static String getString(String prefix, boolean root) {
237244
if (CPUINFO == null) {
238245
load(root);

0 commit comments

Comments
 (0)