mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Debug Android ID
This commit is contained in:
@@ -150,6 +150,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private TextView tvMemoryUsage;
|
||||
private TextView tvStorageUsage;
|
||||
private TextView tvSuffixes;
|
||||
private TextView tvAndroidId;
|
||||
private TextView tvFingerprint;
|
||||
private TextView tvCursorWindow;
|
||||
private Button btnGC;
|
||||
@@ -276,6 +277,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
tvMemoryUsage = view.findViewById(R.id.tvMemoryUsage);
|
||||
tvStorageUsage = view.findViewById(R.id.tvStorageUsage);
|
||||
tvSuffixes = view.findViewById(R.id.tvSuffixes);
|
||||
tvAndroidId = view.findViewById(R.id.tvAndroidId);
|
||||
tvFingerprint = view.findViewById(R.id.tvFingerprint);
|
||||
tvCursorWindow = view.findViewById(R.id.tvCursorWindow);
|
||||
btnGC = view.findViewById(R.id.btnGC);
|
||||
@@ -1270,6 +1272,19 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
class_large_mb + " MB",
|
||||
Helper.humanReadableByteCount(mi.totalMem)));
|
||||
|
||||
String android_id;
|
||||
try {
|
||||
android_id = Settings.Secure.getString(
|
||||
getContext().getContentResolver(),
|
||||
Settings.Secure.ANDROID_ID);
|
||||
if (android_id == null)
|
||||
android_id = "<null>";
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
android_id = "?";
|
||||
}
|
||||
tvAndroidId.setText(getString(R.string.title_advanced_android_id, android_id));
|
||||
|
||||
tvFingerprint.setText(Helper.getFingerprint(getContext()));
|
||||
|
||||
int cursorWindowSize = -1;
|
||||
|
||||
Reference in New Issue
Block a user