|
|
|
@ -1843,6 +1843,9 @@ public class Log {
|
|
|
|
|
|
|
|
|
|
ContentResolver resolver = context.getContentResolver();
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
boolean main_log = prefs.getBoolean("main_log", false);
|
|
|
|
|
boolean protocol = prefs.getBoolean("protocol", false);
|
|
|
|
|
int level = prefs.getInt("log_level", Log.getDefaultLogLevel());
|
|
|
|
|
long last_cleanup = prefs.getLong("last_cleanup", 0);
|
|
|
|
|
|
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
@ -1895,6 +1898,8 @@ public class Log {
|
|
|
|
|
sb.append(String.format("SoC: %s/%s\r\n", Build.SOC_MANUFACTURER, Build.SOC_MODEL));
|
|
|
|
|
sb.append(String.format("OS version: %s\r\n", osVersion));
|
|
|
|
|
sb.append(String.format("uid: %d\r\n", android.os.Process.myUid()));
|
|
|
|
|
sb.append(String.format("Log main: %b protocol: %b level: %d=%b\r\n",
|
|
|
|
|
main_log, protocol, level, level <= android.util.Log.INFO));
|
|
|
|
|
sb.append("\r\n");
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
|
|
|