|
|
|
@ -33,6 +33,7 @@ import android.content.pm.ResolveInfo;
|
|
|
|
|
import android.content.res.TypedArray;
|
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
|
import android.graphics.BitmapFactory;
|
|
|
|
|
import android.graphics.Point;
|
|
|
|
|
import android.net.ConnectivityManager;
|
|
|
|
|
import android.net.Network;
|
|
|
|
|
import android.net.NetworkCapabilities;
|
|
|
|
@ -42,9 +43,11 @@ import android.os.Build;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.os.PowerManager;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.view.Display;
|
|
|
|
|
import android.view.Menu;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
|
import android.view.WindowManager;
|
|
|
|
|
import android.webkit.WebView;
|
|
|
|
|
import android.widget.Button;
|
|
|
|
|
import android.widget.CheckBox;
|
|
|
|
@ -461,6 +464,12 @@ public class Helper {
|
|
|
|
|
sb.append(String.format("Id: %s\r\n", Build.ID));
|
|
|
|
|
sb.append("\r\n");
|
|
|
|
|
|
|
|
|
|
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
|
|
|
|
|
Display display = wm.getDefaultDisplay();
|
|
|
|
|
Point size = new Point();
|
|
|
|
|
display.getSize(size);
|
|
|
|
|
sb.append(String.format("Resolution: %dx%d\r\n", size.x, size.y));
|
|
|
|
|
|
|
|
|
|
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
|
|
|
|
boolean ignoring = true;
|
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
|
|
|
|