[Android Q&A, Help & Troubleshooting] zwave:
With a really harder try/fail with another working version I found that the problem was a specific smali file:

xr.smali

.class public La/xr;
.super Ljava/lang/Object;
.source ""

# static fields
.field public static final a:[Landroid/content/Intent;

.field public static b:[Ljava/lang/String;

# direct methods
.method public static constructor <clinit>()V
.locals 14

const/16 v0, 0x12

new-array v0, v0, [Landroid/content/Intent;

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v2, Landroid/content/ComponentName;

const-string v3, "com.htc.pitroad"

const-string v4, "com.htc.pitroad.landingpage.activity.LandingPageActivity"

invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v2, 0x0

aput-object v1, v0, v2

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v5, Landroid/content/ComponentName;

const-string v6, "com.samsung.android.lool"

const-string v7, "com.samsung.android.sm.ui.battery.BatteryActivity"

invoke-direct {v5, v6, v7}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v5}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v5, 0x1

aput-object v1, v0, v5

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v8, Landroid/content/ComponentName;

const-string v9, "com.miui.securitycenter"

const-string v10, "com.miui.permcenter.autostart.AutoStartManagementActivity"

invoke-direct {v8, v9, v10}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v8}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v8, 0x2

aput-object v1, v0, v8

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v11, "com.miui.powercenter.PowerSettings"

invoke-direct {v10, v9, v11}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v9, 0x3

aput-object v1, v0, v9

new-instance v1, Landroid/content/Intent;

const-string v10, "miui.intent.action.POWER_HIDE_MODE_APP_LIST"

invoke-direct {v1, v10}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

const-string v10, "android.intent.category.DEFAULT"

invoke-virtual {v1, v10}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

move-result-object v1

const/4 v11, 0x4

aput-object v1, v0, v11

new-instance v1, Landroid/content/Intent;

const-string v12, "miui.intent.action.OP_AUTO_START"

invoke-direct {v1, v12}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

move-result-object v1

const/4 v10, 0x5

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.letv.android.letvsafe"

const-string v13, "com.letv.android.letvsafe.AutobootManageActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v10, 0x6

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.huawei.systemmanager"

const-string v13, "com.huawei.systemmanager.optimize.process.ProtectActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/4 v10, 0x7

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v13, "com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0x8

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.coloros.safecenter"

const-string v13, "com.coloros.safecenter.permission.startup.StartupAppListActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0x9

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v13, "com.coloros.safecenter.startupapp.StartupAppListActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0xa

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.oppo.safe"

const-string v13, "com.oppo.safe.permission.startup.StartupAppListActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0xb

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.iqoo.secure"

const-string v13, "com.iqoo.secure.ui.phoneoptimize.AddWhiteListActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0xc

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v13, "com.iqoo.secure.ui.phoneoptimize.BgStartUpManager"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0xd

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

const-string v12, "com.vivo.permissionmanager"

const-string v13, "com.vivo.permissionmanager.activity.BgStartUpManagerActivity"

invoke-direct {v10, v12, v13}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v10, 0xe

aput-object v1, v0, v10

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v10, Landroid/content/ComponentName;

invoke-direct {v10, v6, v7}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v10}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v6, 0xf

aput-object v1, v0, v6

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v6, Landroid/content/ComponentName;

invoke-direct {v6, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v6}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v3, 0x10

aput-object v1, v0, v3

new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

new-instance v3, Landroid/content/ComponentName;

const-string v4, "com.asus.mobilemanager"

const-string v6, "com.asus.mobilemanager.MainActivity"

invoke-direct {v3, v4, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v3}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v1

const/16 v3, 0x11

aput-object v1, v0, v3

sput-object v0, La/xr;->a:[Landroid/content/Intent;

new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

new-instance v1, Landroid/content/ComponentName;

const-string v3, "com.android.settings"

const-string v4, "com.android.settings.deviceinfo.aboutphone.MyDeviceInfoFragment"

invoke-direct {v1, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

new-instance v1, Landroid/content/ComponentName;

const-string v4, "com.android.settings.SubSettings"

invoke-direct {v1, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

move-result-object v0

const-string v1, ":android:show_fragment"

const-string v3, "com.android.settings.DeviceInfoSettings"

invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

const-string v1, "android.settings.SETTINGS"

invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

new-array v0, v11, [Ljava/lang/String;

const-string v1, "QgtGAAkQBlUOFRIJFkIDXEIUVEgDGg5VUQgDCgsDC1FEAxQ="

aput-object v1, v0, v2

const-string v1, "SQcQB0gXEVlPSBwPFkw/WVMjCBIUGw=="

aput-object v1, v0, v5

const-string v1, "RAMSJRQB"

aput-object v1, v0, v8

const-string v1, "QAoHFRUHFh5HAx4="

aput-object v1, v0, v9

sput-object v0, La/xr;->b:[Ljava/lang/String;

return-void
.end method

.method public static A(Landroid/content/Context;)J
.locals 5

invoke-static {p0}, La/xr;->K(Landroid/content/Context;)[Ljava/lang/String;

move-result-object v0

const/4 v1, 0x5

invoke-static {v1}, La/xr;->J(I)Ljava/lang/String;

move-result-object v1

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2

const v3, 0x7f060129

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v2

const/4 v3, 0x1

invoke-static {v3, v1, v2}, La/xr;->M(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object v1

const/4 v2, 0x0

:try_start_0
aget-object v4, v0, v2

invoke-static {v4}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

move-result-object v4

aget-object v0, v0, v3

const/4 v3, 0x0

invoke-virtual {v4, v0, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

move-result-object v0

new-instance v3, Ljava/util/zip/ZipFile;

invoke-virtual {p0}, Landroid/content/Context;->getPackageCodePath()Ljava/lang/String;

move-result-object p0

invoke-direct {v3, p0}, Ljava/util/zip/ZipFile;-><init>(Ljava/lang/String;)V

invoke-virtual {v3, v1}, Ljava/util/zip/ZipFile;->getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;

move-result-object p0

new-array v1, v2, [Ljava/lang/Object;

invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Ljava/lang/Long;

invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

move-result-wide v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

return-wide v0

:catch_0
const-wide/16 v0, 0x0

return-wide v0
.end method

.method public static B()I
.locals 2

new-instance v0, Ljava/util/Random;

invoke-direct {v0}, Ljava/util/Random;-><init>()V

const/16 v1, 0x5dc1

invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I

move-result v0

add-int/lit16 v0, v0, 0xfa0

return v0
.end method

.method public static C(Ljava/lang/String;)V
.locals 0

invoke-static {p0}, La/gm;->e(Ljava/lang/String;)V

return-void
.end method

.method public static D(Ljava/lang/String;)Ljava/lang/String;
.locals 0

invoke-static {p0}, La/gm;->d(Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

return-object p0
.end method

.method public static E(Z)Z
.locals 2

sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

const/16 v1, 0x1c

if-lt v0, v1, :cond_0

if-eqz p0, :cond_1

:cond_0
const/16 p0, 0x1b

if-ne v0, p0, :cond_2

invoke-static {}, La/xr;->w()Z

move-result p0

if-eqz p0, :cond_2

:cond_1
const/4 p0, 0x1

goto :goto_0

:cond_2
const/4 p0, 0x0

:goto_0
return p0
.end method

.method public static F(Landroid/content/Context;)V
.locals 10

new-instance v0, La/oi;

invoke-direct {v0, p0}, La/oi;-><init>(Landroid/content/Context;)V

const-string v1, "pref_enable_service"

const/4 v2, 0x1

invoke-virtual {v0, v1, v2}, La/oi;->h(Ljava/lang/String;Z)V

invoke-static {p0}, La/xr;->z(Landroid/content/Context;)Z

move-result v0

const/high16 v1, 0x10000000

const-string v3, "android.settings.SETTINGS"

if-eqz v0, :cond_1

:try_start_0
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

sget-object v2, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

const-string v4, "sony"

invoke-virtual {v2, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

move-result v2
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

const-string v4, "com.android.tv.settings"

if-eqz v2, :cond_0

:try_start_1
new-instance v2, Landroid/content/ComponentName;

const-string v5, "com.sony.dtv.settings.system.AccessibilityActivity"

invoke-direct {v2, v4, v5}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

:goto_0
invoke-virtual {v0, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

goto :goto_1

:cond_0
new-instance v2, Landroid/content/ComponentName;

const-string v5, "com.android.tv.settings.system.AccessibilityActivity"

invoke-direct {v2, v4, v5}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

goto :goto_0

:goto_1
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

goto/16 :goto_3

:catch_0
:try_start_2
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

invoke-virtual {v0, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

goto/16 :goto_3

:catch_1
invoke-static {p0}, La/he;->f2(Landroid/content/Context;)V

goto/16 :goto_3

:cond_1
sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

const-string v4, "samsung"

invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

move-result v0

const v4, 0x7f12001d

const/high16 v5, 0x10800000

const-string v6, "android.settings.ACCESSIBILITY_SETTINGS"

if-eqz v0, :cond_2

sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

const/16 v7, 0x1c

if-lt v0, v7, :cond_2

:try_start_3
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

new-instance v7, Landroid/content/ComponentName;

const-string v8, "com.android.settings"

const-string v9, "com.android.settings.Settings$AccessibilityInstalledServiceActivity"

invoke-direct {v7, v8, v9}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v0, v7}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

goto :goto_3

:catch_2
move-exception v0

invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

new-instance v0, Landroid/content/Intent;

invoke-direct {v0, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

:try_start_4
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_4
.catch Landroid/content/ActivityNotFoundException; {:try_start_4 .. :try_end_4} :catch_3

goto :goto_3

:catch_3
:try_start_5
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v0

new-instance v1, Landroid/content/Intent;

invoke-direct {v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

:goto_2
invoke-static {p0, v4, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

move-result-object p0

invoke-virtual {p0}, Landroid/widget/Toast;->show()V
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5

goto :goto_3

:cond_2
new-instance v0, Landroid/content/Intent;

invoke-direct {v0, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

new-instance v1, Landroid/os/Bundle;

invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

new-instance v5, Landroid/content/ComponentName;

const-class v6, La/i;

invoke-virtual {v6}, Ljava/lang/Class;->getName()Ljava/lang/String;

move-result-object v6

const-string v7, "test2.hbutton"

invoke-direct {v5, v7, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v5}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

move-result-object v5

const-string v6, ":settings:fragment_args_key"

invoke-virtual {v1, v6, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v0, v6, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const-string v5, ":settings:show_fragment_args"

invoke-virtual {v0, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;

:try_start_6
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_6
.catch Landroid/content/ActivityNotFoundException; {:try_start_6 .. :try_end_6} :catch_4

goto :goto_3

:catch_4
:try_start_7
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v0

new-instance v1, Landroid/content/Intent;

invoke-direct {v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_5

goto :goto_2

:catch_5
:goto_3
return-void
.end method

.method public static G(Landroid/app/Activity;)V
.locals 0

invoke-virtual {p0}, Landroid/app/Activity;->finish()V

return-void
.end method

.method public static H(Landroid/content/Context;I)Ljava/lang/String;
.locals 1

const/4 v0, 0x4

if-eq p1, v0, :cond_2

const/4 v0, 0x5

if-eq p1, v0, :cond_1

const/4 v0, 0x6

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object p0

if-eq p1, v0, :cond_0

const p1, 0x7f060129

:goto_0
invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object p0

return-object p0

:cond_0
const p1, 0x7f060108

goto :goto_0

:cond_1
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object p0

const p1, 0x7f060107

goto :goto_0

:cond_2
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object p0

const p1, 0x7f060024

goto :goto_0
.end method

.method public static I(I)I
.locals 0

packed-switch p0, :pswitch_data_0

const/16 p0, 0x2674

return p0

:pswitch_0
const/16 p0, 0x7f4

return p0

:pswitch_1
const/16 p0, 0x196f

return p0

:pswitch_2
const/16 p0, 0x12f7

return p0

:pswitch_3
const/16 p0, 0x130d

return p0

:pswitch_4
const/16 p0, 0x16be

return p0

:pswitch_5
const/16 p0, 0x9f0

return p0

:pswitch_6
const/16 p0, 0x195d

return p0

:pswitch_7
const/16 p0, 0x11a0

return p0

:pswitch_8
const/16 p0, 0x11de

return p0

:pswitch_9
const/16 p0, 0x223d

return p0

:pswitch_a
const/16 p0, 0x220c

return p0

nop

:pswitch_data_0
.packed-switch 0x32
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method

.method public static J(I)Ljava/lang/String;
.locals 2

const/4 v0, 0x2

if-eq p0, v0, :cond_1

const/4 v1, 0x6

if-eq p0, v1, :cond_0

const/4 p0, 0x3

:try_start_0
invoke-static {p0}, La/xr;->n(I)Ljava/lang/String;

move-result-object p0

return-object p0

:cond_0
invoke-static {v0}, La/xr;->n(I)Ljava/lang/String;

move-result-object p0

return-object p0

:cond_1
const/4 p0, 0x1

invoke-static {p0}, La/xr;->n(I)Ljava/lang/String;

move-result-object p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

return-object p0

:catch_0
const/4 p0, 0x0

return-object p0
.end method

.method public static K(Landroid/content/Context;)[Ljava/lang/String;
.locals 7

const/4 v0, 0x2

:try_start_0
new-array v1, v0, [Ljava/lang/String;

const/4 v2, 0x0

const/16 v3, 0x37

invoke-static {v3}, La/xr;->I(I)I

move-result v3

const/4 v4, 0x1

invoke-static {v4}, La/xr;->n(I)Ljava/lang/String;

move-result-object v5

invoke-static {p0, v0}, La/xr;->H(Landroid/content/Context;I)Ljava/lang/String;

move-result-object v6

invoke-static {v3, v5, v6}, La/xr;->M(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object v3

aput-object v3, v1, v2

const/16 v2, 0x3c

invoke-static {v2}, La/xr;->I(I)I

move-result v2

invoke-static {v0}, La/xr;->n(I)Ljava/lang/String;

move-result-object v3

invoke-static {p0, v0}, La/xr;->H(Landroid/content/Context;I)Ljava/lang/String;

move-result-object p0

invoke-static {v2, v3, p0}, La/xr;->M(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

aput-object p0, v1, v4
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

return-object v1

:catch_0
const/4 p0, 0x0

return-object p0
.end method

.method public static L(Landroid/content/Context;)J
.locals 2

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object p0

const v0, 0x7f0600d0

invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object p0

const/4 v0, 0x3

const/16 v1, 0x9

invoke-virtual {p0, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

move-result-object p0

invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

move-result-wide v0

return-wide v0
.end method

.method public static M(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 1

const/4 v0, 0x1

if-ne p0, v0, :cond_0

:try_start_0
invoke-static {p1, p2}, La/q8;->e0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

return-object p0

:cond_0
invoke-static {p1, p2}, La/q8;->e0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object p0
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

return-object p0

:catch_0
invoke-static {p1, p2}, La/q8;->e0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

return-object p0
.end method

.method public static a(Landroid/content/Context;)Z
.locals 3

const/4 v0, 0x0

:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v1

const-string v2, "com.samsung.android.bixby.agent"

invoke-virtual {v1, v2, v0}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

move-result-object v1

invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object p0

iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

invoke-virtual {p0, v1, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

move-result-object p0

iget-object p0, p0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

const-string v1, "2."

invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

return p0

:catch_0
return v0
.end method

.method public static b(Landroid/content/Context;)Z
.locals 5

new-instance v0, La/oi;

invoke-direct {v0, p0}, La/oi;-><init>(Landroid/content/Context;)V

const-string p0, "pref_simulate_keycodes"

invoke-virtual {v0, p0}, La/oi;->b(Ljava/lang/String;)Ljava/lang/Boolean;

move-result-object v1

invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

move-result v1

const/4 v2, 0x1

if-eqz v1, :cond_0

return v2

:cond_0
const/4 v1, 0x0

:try_start_0
new-instance v3, La/cd;

invoke-direct {v3}, La/cd;-><init>()V

const-string v4, ""

invoke-virtual {v3, v4}, La/cd;->a(Ljava/lang/String;)Z

move-result v3
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

const-string v4, "keycode_server_disabled"

if-nez v3, :cond_1

:try_start_1
invoke-virtual {v0, v4, v2}, La/oi;->h(Ljava/lang/String;Z)V

invoke-virtual {v0, p0, v1}, La/oi;->h(Ljava/lang/String;Z)V

return v1

:cond_1
invoke-virtual {v0, v4, v1}, La/oi;->h(Ljava/lang/String;Z)V

invoke-virtual {v0, p0, v2}, La/oi;->h(Ljava/lang/String;Z)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

return v2

:catch_0
move-exception p0

invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

return v1
.end method

.method public static c(Landroid/content/Context;)Z
.locals 3

sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

const/4 v1, 0x0

const/16 v2, 0x1a

if-lt v0, v2, :cond_0

const/16 v2, 0x1e

if-ge v0, v2, :cond_0

const-string v0, "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER"

invoke-virtual {p0, v0}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I

move-result p0

if-nez p0, :cond_0

const/4 v1, 0x1

:cond_0
return v1
.end method

.method public static d(Landroid/content/Context;)Z
.locals 5

const/4 v0, 0x0

:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "enabled_notification_listeners"

invoke-static {v1, v2}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

move-result-object v1

if-eqz v1, :cond_1

const-string v2, ":"

invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v1

new-instance v2, Landroid/content/ComponentName;

const-class v3, La/q;

invoke-direct {v2, p0, v3}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

invoke-virtual {v2}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

move-result-object p0

array-length v2, v1

const/4 v3, 0x0

:goto_0
if-ge v3, v2, :cond_2

aget-object v4, v1, v3

invoke-virtual {p0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v4
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

if-eqz v4, :cond_0

const/4 p0, 0x1

return p0

:cond_0
add-int/lit8 v3, v3, 0x1

goto :goto_0

:cond_1
return v0

:catch_0
move-exception p0

invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

:cond_2
return v0
.end method

.method public static e()Z
.locals 6

const/4 v0, 0x0

const/4 v1, 0x0

:try_start_0
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

move-result-object v2

const/4 v3, 0x2

new-array v3, v3, [Ljava/lang/String;

const-string v4, "which"

aput-object v4, v3, v0

const-string v4, "su"

const/4 v5, 0x1

aput-object v4, v3, v5

invoke-virtual {v2, v3}, Ljava/lang/Runtime;->exec([Ljava/lang/String;)Ljava/lang/Process;

move-result-object v1

new-instance v2, Ljava/io/BufferedReader;

new-instance v3, Ljava/io/InputStreamReader;

invoke-virtual {v1}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

move-result-object v4

invoke-direct {v3, v4}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

invoke-direct {v2, v3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0

if-eqz v2, :cond_0

const/4 v0, 0x1

:cond_0
invoke-virtual {v1}, Ljava/lang/Process;->destroy()V

return v0

:catchall_0
nop

if-eqz v1, :cond_1

invoke-virtual {v1}, Ljava/lang/Process;->destroy()V

:cond_1
return v0
.end method

.method public static f()Z
.locals 7

const/16 v0, 0x9

new-array v1, v0, [Ljava/lang/String;

const-string v2, "/sbin/su"

const/4 v3, 0x0

aput-object v2, v1, v3

const-string v2, "/system/bin/su"

const/4 v4, 0x1

aput-object v2, v1, v4

const/4 v2, 0x2

const-string v5, "/system/xbin/su"

aput-object v5, v1, v2

const/4 v2, 0x3

const-string v5, "/data/local/xbin/su"

aput-object v5, v1, v2

const/4 v2, 0x4

const-string v5, "/data/local/bin/su"

aput-object v5, v1, v2

const/4 v2, 0x5

const-string v5, "/system/sd/xbin/su"

aput-object v5, v1, v2

const/4 v2, 0x6

const-string v5, "/system/bin/failsafe/su"

aput-object v5, v1, v2

const/4 v2, 0x7

const-string v5, "/data/local/su"

aput-object v5, v1, v2

const/16 v2, 0x8

const-string v5, "/system/app/Superuser.apk"

aput-object v5, v1, v2

const/4 v2, 0x0

:goto_0
if-ge v2, v0, :cond_1

aget-object v5, v1, v2

new-instance v6, Ljava/io/File;

invoke-direct {v6, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

invoke-virtual {v6}, Ljava/io/File;->exists()Z

move-result v5

if-eqz v5, :cond_0

return v4

:cond_0
add-int/lit8 v2, v2, 0x1

goto :goto_0

:cond_1
return v3
.end method

.method public static g(Ljava/lang/String;)Ljava/lang/String;
.locals 5

:try_start_0
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

move-result-object v0

new-instance v1, Ljava/lang/StringBuilder;

invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

const-string v2, "timeout -s SIGKILL -k 3s 2s "

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object p0

invoke-virtual {v0, p0}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;

move-result-object p0

invoke-virtual {p0}, Ljava/lang/Process;->waitFor()I

new-instance v0, Ljava/io/BufferedReader;

new-instance v1, Ljava/io/InputStreamReader;

invoke-virtual {p0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

move-result-object v2

invoke-direct {v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

const-string v1, ""

:goto_0
:try_start_1
invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object v2

const/16 v3, 0xa

if-eqz v2, :cond_0

new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v1

goto :goto_0

:cond_0
new-instance v2, Ljava/io/BufferedReader;

new-instance v4, Ljava/io/InputStreamReader;

invoke-virtual {p0}, Ljava/lang/Process;->getErrorStream()Ljava/io/InputStream;

move-result-object p0

invoke-direct {v4, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

invoke-direct {v2, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

:goto_1
invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object p0

if-eqz p0, :cond_1

new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v1

goto :goto_1

:cond_1
invoke-virtual {v0}, Ljava/io/BufferedReader;->close()V

invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0

goto :goto_2

:catch_0
const-string v1, "Interrupted"

goto :goto_2

:catch_1
const-string v1, "NA"

:goto_2
return-object v1
.end method

.method public static h(Landroid/content/Context;)V
.locals 6

const-string v0, "busybox"

:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

move-result-object v1

invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

move-result-object v1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

new-instance v2, Ljava/lang/StringBuilder;

invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

const-string v3, "/busybox"

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v2

new-instance v3, Ljava/io/File;

invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

invoke-virtual {v3}, Ljava/io/File;->exists()Z

move-result v2

const/4 v4, 0x1

if-eqz v2, :cond_0

:catch_0
:goto_0
invoke-virtual {v3, v4}, Ljava/io/File;->setExecutable(Z)Z

invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;

goto :goto_2

:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

move-result-object p0

:try_start_1
invoke-virtual {p0, v0}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

move-result-object p0

new-instance v2, Ljava/io/File;

invoke-direct {v2, v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

new-instance v0, Ljava/io/FileOutputStream;

invoke-direct {v0, v2}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

const/16 v1, 0x400

new-array v1, v1, [B

:goto_1
invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I

move-result v2

if-lez v2, :cond_1

const/4 v5, 0x0

invoke-virtual {v0, v1, v5, v2}, Ljava/io/OutputStream;->write([BII)V

goto :goto_1

:cond_1
invoke-virtual {p0}, Ljava/io/InputStream;->close()V

invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V

invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

goto :goto_0

:catch_1
:goto_2
return-void
.end method

.method public static i(Landroid/app/Activity;)V
.locals 3

const v0, 0x7f060024

invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v0

:try_start_0
const-string v1, "sJidssIls5swz="

const-string v2, "2"

invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v1

const/4 v2, 0x1

aget-object v0, v1, v2
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

goto :goto_0

:catch_0
invoke-static {p0}, La/oi;->n(Landroid/app/Activity;)V

:goto_0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result p0

invoke-static {p0}, La/oi;->o(I)I

return-void
.end method

.method public static j(Ljava/lang/String;Z)Z
.locals 1

if-eqz p0, :cond_1

new-instance v0, Ljava/io/File;

invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

invoke-virtual {v0}, Ljava/io/File;->exists()Z

move-result v0

if-nez v0, :cond_0

if-eqz p1, :cond_0

new-instance p1, Ljava/lang/StringBuilder;

invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

const-string v0, "[ -e "

invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

const-string p0, " ] && echo 1"

invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object p0

invoke-static {p0}, La/xr;->D(Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

const-string p1, "1"

invoke-virtual {p0, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

:cond_0
return v0

:cond_1
const/4 p0, 0x0

return p0
.end method

.method public static k(Landroid/content/Context;)Z
.locals 6
.annotation build Landroid/annotation/TargetApi;
value = 0x14
.end annotation

const/4 v0, 0x1

:try_start_0
const-string v1, "display"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Landroid/hardware/display/DisplayManager;

invoke-virtual {p0}, Landroid/hardware/display/DisplayManager;->getDisplays()[Landroid/view/Display;

move-result-object p0

array-length v1, p0

const/4 v2, 0x0

const/4 v3, 0x0

:goto_0
if-ge v3, v1, :cond_2

aget-object v4, p0, v3

invoke-virtual {v4}, Landroid/view/Display;->getState()I

move-result v5

if-ne v5, v0, :cond_1

invoke-virtual {v4}, Landroid/view/Display;->getState()I

move-result v4
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

const/4 v5, 0x5

if-ne v4, v5, :cond_0

goto :goto_1

:cond_0
add-int/lit8 v3, v3, 0x1

goto :goto_0

:cond_1
:goto_1
return v0

:cond_2
return v2

:catch_0
return v0
.end method

.method public static l(Landroid/content/Context;)I
.locals 6

invoke-static {p0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewConfiguration;->hasPermanentMenuKey()Z

move-result v0

const/4 v1, 0x4

invoke-static {v1}, Landroid/view/KeyCharacterMap;->deviceHasKey(I)Z

move-result v1

if-nez v0, :cond_3

if-nez v1, :cond_3

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

move-result-object v1

iget v1, v1, Landroid/content/res/Configuration;->orientation:I

invoke-static {p0}, La/xr;->y(Landroid/content/Context;)Z

move-result p0

const-string v2, "android"

const-string v3, "dimen"

const-string v4, "navigation_bar_height"

const/4 v5, 0x1

if-eqz p0, :cond_1

if-ne v1, v5, :cond_0

goto :goto_0

:cond_0
const-string v4, "navigation_bar_height_landscape"

goto :goto_0

:cond_1
if-ne v1, v5, :cond_2

goto :goto_0

:cond_2
const-string v4, "navigation_bar_width"

:goto_0
invoke-virtual {v0, v4, v3, v2}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result p0

if-lez p0, :cond_3

invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result p0

return p0

:cond_3
const/4 p0, 0x0

return p0
.end method

.method public static m(Ljava/lang/String;)Ljava/lang/String;
.locals 4

const/4 v0, 0x0

:try_start_0
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

move-result-object v1

new-instance v2, Ljava/lang/StringBuilder;

invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

const-string v3, "getprop "

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object p0

invoke-virtual {v1, p0}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;

move-result-object p0

new-instance v1, Ljava/io/BufferedReader;

new-instance v2, Ljava/io/InputStreamReader;

invoke-virtual {p0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

move-result-object p0

invoke-direct {v2, p0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

const/16 p0, 0x400

invoke-direct {v1, v2, p0}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
.catchall {:try_start_0 .. :try_end_0} :catchall_1

:try_start_1
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object p0

invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0

:try_start_2
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

goto :goto_0

:catch_0
move-exception v0

invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

:goto_0
return-object p0

:catchall_0
move-exception p0

move-object v0, v1

goto :goto_1

:catch_1
nop

goto :goto_3

:catchall_1
move-exception p0

:goto_1
if-eqz v0, :cond_0

:try_start_3
invoke-virtual {v0}, Ljava/io/BufferedReader;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

goto :goto_2

:catch_2
move-exception v0

invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

:cond_0
:goto_2
throw p0

:catch_3
move-object v1, v0

:goto_3
if-eqz v1, :cond_1

:try_start_4
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_4

goto :goto_4

:catch_4
move-exception p0

invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

:cond_1
:goto_4
return-object v0
.end method

.method public static n(I)Ljava/lang/String;
.locals 1

sget-object v0, La/xr;->b:[Ljava/lang/String;

aget-object p0, v0, p0

return-object p0
.end method

.method public static o()Z
.locals 2

sget-object v0, Landroid/os/Build;->DEVICE:Ljava/lang/String;

const-string v1, "walleye"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "taimen"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "blueline"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "crosshatch"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "coral"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "flame"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "sargo"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "bonito"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_0

goto :goto_0

:cond_0
const/4 v0, 0x0

goto :goto_1

:cond_1
:goto_0
const/4 v0, 0x1

:goto_1
return v0
.end method

.method public static p()Z
.locals 2

sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

const-string v1, "lge"

invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

move-result v0

return v0
.end method

.method public static q()Z
.locals 2

sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;

const-string v1, "SM-G950"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G955"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-N950"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G960"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G965"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G893"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G885"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G887"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G970"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G973"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G975"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G977"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-G892"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-A920"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "SM-N960"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_0

goto :goto_0

:cond_0
const/4 v0, 0x0

goto :goto_1

:cond_1
:goto_0
const/4 v0, 0x1

:goto_1
return v0
.end method

.method public static r()Z
.locals 2

sget-object v0, Landroid/os/Build;->DEVICE:Ljava/lang/String;

const-string v1, "coral"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v1

if-nez v1, :cond_1

const-string v1, "flame"

invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_0

goto :goto_0

:cond_0
const/4 v0, 0x0

goto :goto_1

:cond_1
:goto_0
const/4 v0, 0x1

:goto_1
return v0
.end method

.method public static s(Landroid/content/Context;)Z
.locals 4

const/4 v0, 0x0

:try_start_0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

const/16 v2, 0x15

if-lt v1, v2, :cond_0

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v1

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2, v0}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

move-result-object v1

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object p0

const-string v2, "appops"

invoke-virtual {p0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Landroid/app/AppOpsManager;

const-string v2, "android:get_usage_stats"

iget v3, v1, Landroid/content/pm/ApplicationInfo;->uid:I

iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

invoke-virtual {p0, v2, v3, v1}, Landroid/app/AppOpsManager;->checkOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I

move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

if-nez p0, :cond_0

const/4 v0, 0x1

:catch_0
:cond_0
return v0
.end method

.method public static t(Z)Z
.locals 2

const/4 v0, 0x0

if-eqz p0, :cond_0

:try_start_0
const-string v1, "/sys/android_touch/wake_gestures"

invoke-static {v1, p0}, La/xr;->j(Ljava/lang/String;Z)Z

move-result p0
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

return p0

:catch_0
:cond_0
return v0
.end method

.method public static u(Landroid/content/Context;)Z
.locals 1

const-string v0, "uimode"

invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Landroid/app/UiModeManager;

invoke-virtual {p0}, Landroid/app/UiModeManager;->getCurrentModeType()I

move-result p0

const/4 v0, 0x3

if-ne p0, v0, :cond_0

const/4 p0, 0x1

goto :goto_0

:cond_0
const/4 p0, 0x0

:goto_0
return p0
.end method

.method public static v(Ljava/lang/String;)Z
.locals 2

new-instance v0, Ljava/lang/StringBuilder;

invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

const-string v1, "if test -f "

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

const-string p0, " ; then echo 1; fi"

invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object p0

invoke-static {p0}, La/gm;->d(Ljava/lang/String;)Ljava/lang/String;

move-result-object p0

const-string v0, "1"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

return p0
.end method

.method public static w()Z
.locals 1

const-string v0, "ro.miui.ui.version.name"

invoke-static {v0}, La/xr;->m(Ljava/lang/String;)Ljava/lang/String;

move-result-object v0

invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

move-result v0

xor-int/lit8 v0, v0, 0x1

return v0
.end method

.method public static x(Landroid/content/Context;)Z
.locals 1

const-string v0, "connectivity"

invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Landroid/net/ConnectivityManager;

invoke-virtual {p0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

move-result-object p0

if-eqz p0, :cond_0

invoke-virtual {p0}, Landroid/net/NetworkInfo;->isConnected()Z

move-result p0

if-eqz p0, :cond_0

const/4 p0, 0x1

goto :goto_0

:cond_0
const/4 p0, 0x0

:goto_0
return p0
.end method

.method public static y(Landroid/content/Context;)Z
.locals 1

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object p0

invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

move-result-object p0

iget p0, p0, Landroid/content/res/Configuration;->screenLayout:I

and-int/lit8 p0, p0, 0xf

const/4 v0, 0x3

if-lt p0, v0, :cond_0

const/4 p0, 0x1

goto :goto_0

:cond_0
const/4 p0, 0x0

:goto_0
return p0
.end method

.method public static z(Landroid/content/Context;)Z
.locals 1

const-string v0, "uimode"

invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object p0

check-cast p0, Landroid/app/UiModeManager;

invoke-virtual {p0}, Landroid/app/UiModeManager;->getCurrentModeType()I

move-result p0

const/4 v0, 0x4

if-ne p0, v0, :cond_0

const/4 p0, 0x1

goto :goto_0

:cond_0
const/4 p0, 0x0

:goto_0
return p0
.end method

I was not able to understand from any log what's going on, and also from this smali file I cannot understand why broke the app.

Basically replacing this single file with the same one from another working build (decompiled), it recompile and run fine.

I compared with a diff tool to investigate what could be the reason but didn't find anything that could be related, at least for my knowledge.

Well, it will probably remain a mistery for me!

PS:

Here the Java equivalent:

package a.xr;
import android.content.Intent;
import android.content.ComponentName;
import java.lang.String;
import android.content.Context;
import android.content.res.Resources;
import java.lang.Class;
import java.lang.reflect.Method;
import java.util.zip.ZipFile;
import java.util.zip.ZipEntry;
import java.lang.Object;
import java.lang.Long;
import java.util.Random;
import a.gm;
import android.os.Build$VERSION;
import a.oi;
import android.os.Build;
import a.he;
import java.lang.Exception;
import android.widget.Toast;
import android.os.Bundle;
import a.i;
import android.app.Activity;
import a.q8;
import android.content.pm.PackageManager;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import java.lang.Boolean;
import a.cd;
import android.content.ContentResolver;
import android.provider.Settings$Secure;
import a.q;
import java.lang.Runtime;
import java.lang.Process;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.io.Reader;
import java.io.File;
import java.lang.StringBuilder;
import android.content.res.AssetManager;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.lang.Integer;
import java.lang.CharSequence;
import android.hardware.display.DisplayManager;
import android.view.Display;
import android.view.ViewConfiguration;
import android.view.KeyCharacterMap;
import android.content.res.Configuration;
import java.io.IOException;
import android.app.AppOpsManager;
import android.app.UiModeManager;
import android.text.TextUtils;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class xr // class@000610 from classes.dex
{
public static final Intent[] a;
public static String[] b;

static {
Intent[] intentArray = new Intent[18];
intentArray[0] = new Intent().setComponent(new ComponentName("com.htc.pitroad", "com.htc.pitroad.landingpage.activity.LandingPageActivity"));
intentArray[1] = new Intent().setComponent(new ComponentName("com.samsung.android.lool", "com.samsung.android.sm.ui.battery.BatteryActivity"));
intentArray[2] = new Intent().setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity"));
intentArray[3] = new Intent().setComponent(new ComponentName("com.miui.securitycenter", "com.miui.powercenter.PowerSettings"));
intentArray[4] = new Intent("miui.intent.action.POWER_HIDE_MODE_APP_LIST").addCategory("android.intent.category.DEFAULT");
intentArray[5] = new Intent("miui.intent.action.OP_AUTO_START").addCategory("android.intent.category.DEFAULT");
intentArray[6] = new Intent().setComponent(new ComponentName("com.letv.android.letvsafe", "com.letv.android.letvsafe.AutobootManageActivity"));
intentArray[7] = new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity"));
intentArray[8] = new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity"));
intentArray[9] = new Intent().setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.permission.startup.StartupAppListActivity"));
intentArray[10] = new Intent().setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.startupapp.StartupAppListActivity"));
intentArray[11] = new Intent().setComponent(new ComponentName("com.oppo.safe", "com.oppo.safe.permission.startup.StartupAppListActivity"));
intentArray[12] = new Intent().setComponent(new ComponentName("com.iqoo.secure", "com.iqoo.secure.ui.phoneoptimize.AddWhiteListActivity"));
intentArray[13] = new Intent().setComponent(new ComponentName("com.iqoo.secure", "com.iqoo.secure.ui.phoneoptimize.BgStartUpManager"));
intentArray[14] = new Intent().setComponent(new ComponentName("com.vivo.permissionmanager", "com.vivo.permissionmanager.activity.BgStartUpManagerActivity"));
intentArray[15] = new Intent().setComponent(new ComponentName("com.samsung.android.lool", "com.samsung.android.sm.ui.battery.BatteryActivity"));
intentArray[16] = new Intent().setComponent(new ComponentName("com.htc.pitroad", "com.htc.pitroad.landingpage.activity.LandingPageActivity"));
intentArray[17] = new Intent().setComponent(new ComponentName("com.asus.mobilemanager", "com.asus.mobilemanager.MainActivity"));
xr.a = intentArray;
new Intent().setComponent(new ComponentName("com.android.settings", "com.android.settings.deviceinfo.aboutphone.MyDeviceInfoFragment"));
new Intent().setComponent(new ComponentName("com.android.settings", "com.android.settings.SubSettings")).putExtra(":android:show_fragment", "com.android.settings.DeviceInfoSettings");
new Intent().setAction("android.settings.SETTINGS");
String[] stringArray = new String[]{"QgtGAAkQBlUOFRIJFkIDXEIUVEgDGg5VUQgDCgsDC1FEAxQ=","SQcQB0gXEVlPSBwPFkw/WVMjCBIUGw==","RAMSJRQB","QAoHFRUHFh5HAx4="};
xr.b = stringArray;
}
public static long A(Context p0){
String[] stringArray = xr.K(p0);
int i = 1;
String str = xr.M(i, xr.J(5), p0.getResources().getString(R.color.yellow));
try{
int i1 = 0;
Object[] objArray = new Object[i1];
return Class.forName(stringArray[i1]).getMethod(stringArray[i], null).invoke(new ZipFile(p0.getPackageCodePath()).getEntry(str), objArray).longValue();
}catch(java.lang.Exception e0){
return 0;
}
}
public static int B(){
return (new Random().nextInt(0x5dc1) + 4000);
}
public static void C(String p0){
gm.e(p0);
}
public static String D(String p0){
return gm.d(p0);
}
public static boolean E(boolean p0){
int sDK_INT;
p0 = ((sDK_INT = Build$VERSION.SDK_INT) >= 28 && (!p0 || (sDK_INT == 27 && xr.w())))? true: false;
return p0;
}
public static void F(Context p0){
Intent intent;
new oi(p0).h("pref_enable_service", true);
int i = 0x10000000;
if (xr.z(p0)) {
try{
intent = new Intent();
ComponentName uComponentNa = (Build.MANUFACTURER.equalsIgnoreCase("sony"))? new ComponentName("com.android.tv.settings", "com.sony.dtv.settings.system.AccessibilityActivity"): new ComponentName("com.android.tv.settings", "com.android.tv.settings.system.AccessibilityActivity");
intent.setComponent(uComponentNa);
intent.addFlags(i);
p0.startActivity(intent);
}catch(java.lang.Exception e0){
try{
intent = new Intent();
intent.setAction("android.settings.SETTINGS");
intent.addFlags(i);
p0.getApplicationContext().startActivity(intent);
}catch(java.lang.Exception e0){
he.f2(p0);
}
}
}else {
try{
int i1 = 0x10800000;
String str = "android.settings.ACCESSIBILITY_SETTINGS";
if (Build.MANUFACTURER.equalsIgnoreCase("samsung") && Build$VERSION.SDK_INT >= 28) {
try{
intent = new Intent();
intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings$AccessibilityInstalledServiceActivity"));
intent.addFlags(i);
p0.startActivity(intent);
}catch(java.lang.Exception e0){
e0.printStackTrace();
intent = new Intent(str);
try{
intent.addFlags(i1);
p0.getApplicationContext().startActivity(intent);
}catch(android.content.ActivityNotFoundException e0){
try{
p0.getApplicationContext().startActivity(new Intent("android.settings.SETTINGS"));
}catch(java.lang.Exception e0){
}
}
Toast.makeText(p0, R.string.accessibility_msg, true).show();
}
}else {
intent = new Intent(str);
intent.addFlags(i1);
Bundle uBundle = new Bundle();
String str1 = new ComponentName("test2.hbutton", i.class.getName()).flattenToString();
uBundle.putString(":settings:fragment_args_key", str1);
intent.putExtra(":settings:fragment_args_key", str1);
intent.putExtra(":settings:show_fragment_args", uBundle);
p0.getApplicationContext().startActivity(intent);
}
}catch(android.content.ActivityNotFoundException e0){
p0.getApplicationContext().startActivity(new Intent("android.settings.SETTINGS"));
}
}
return;
}
public static void G(Activity p0){
p0.finish();
}
public static String H(Context p0,int p1){
Resources resources;
if (p1 != 4) {
if (p1 != 5) {
resources = p0.getResources();
p1 = (p1 != 6)? 0x7f060129: 0x7f060108;
}else {
resources = p0.getResources();
p1 = 0x7f060107;
}
}else {
resources = p0.getResources();
p1 = 0x7f060024;
}
return resources.getString(p1);
}
public static int I(int p0){
switch (p0){
case '2':
return 8716;
case '3':
return 8765;
case '4':
return 4574;
case '5':
return 4512;
case '6':
return 6493;
case '7':
return 2544;
case '8':
return 5822;
case '9':
return 4877;
case ':':
return 4855;
case ';':
return 6511;
case '<':
return 2036;
default:
return 9844;
}
}
public static String J(int p0){
try{
if (p0 == 2) {
return xr.n(1);
}
if (p0 == 6) {
return xr.n(2);
}
p0 = 3;
return xr.n(p0);
}catch(java.lang.Exception e0){
return null;
}
}
public static String[] K(Context p0){
int i = 2;
try{
String[] stringArray = new String[i];
stringArray[0] = xr.M(xr.I(55), xr.n(1), xr.H(p0, i));
stringArray[1] = xr.M(xr.I(60), xr.n(i), xr.H(p0, i));
return stringArray;
}catch(java.lang.Exception e0){
return null;
}
}
public static long L(Context p0){
return Long.parseLong(p0.getResources().getString(R.color.mauve).substring(3, 9));
}
public static String M(int p0,String p1,String p2){
try{
if (p0 == 1) {
return q8.e0(p1, p2);
}
return q8.e0(p1, p2);
}catch(java.lang.NullPointerException e0){
return q8.e0(p1, p2);
}
}
public static boolean a(Context p0){
int i = 0;
try{
return p0.getPackageManager().getPackageInfo(p0.getPackageManager().getApplicationInfo("com.samsung.android.bixby.agent", i).packageName, i).versionName.startsWith("2.");
}catch(java.lang.Exception e0){
return e0;
}
}
public static boolean b(Context p0){
oi ooi = new oi(p0);
if (ooi.b("pref_simulate_keycodes").booleanValue()) {
return true;
}
boolean b = false;
try{
if (!new cd().a("")) {
ooi.h("keycode_server_disabled", true);
ooi.h("pref_simulate_keycodes", b);
return b;
}else {
ooi.h("keycode_server_disabled", b);
ooi.h("pref_simulate_keycodes", true);
return true;
}
}catch(java.lang.Exception e5){
e5.printStackTrace();
return b;
}
}
public static boolean c(Context p0){
int sDK_INT = Build$VERSION.SDK_INT;
boolean b = false;
if (sDK_INT >= 26 && (sDK_INT < 30 && !p0.checkSelfPermission("android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER"))) {
b = true;
}
return b;
}
public static boolean d(Context p0){
String str;
boolean b = false;
try{
if ((str = Settings$Secure.getString(p0.getContentResolver(), "enabled_notification_listeners")) != null) {
String[] stringArray = str.split(":");
String str1 = new ComponentName(p0, q.class).flattenToString();
int len = stringArray.length;
int i = 0;
while (i < len) {
if (str1.equals(stringArray[i])) {
return true;
}
i = i + 1;
}
}else {
return b;
}
}catch(java.lang.Exception e5){
e5.printStackTrace();
}
return b;
}
public static boolean e(){
int i = 0;
String[] stringArray = new String[]{"which","su"};
Process process = Runtime.getRuntime().exec(stringArray);
if (new BufferedReader(new InputStreamReader(process.getInputStream())).readLine() != null) {
i = true;
}
process.destroy();
return i;
}
public static boolean f(){
String[] stringArray = new String[9];
stringArray[0] = "/sbin/su";
stringArray[1] = "/system/bin/su";
stringArray[2] = "/system/xbin/su";
stringArray[3] = "/data/local/xbin/su";
stringArray[4] = "/data/local/bin/su";
stringArray[5] = "/system/sd/xbin/su";
stringArray[6] = "/system/bin/failsafe/su";
stringArray[7] = "/data/local/su";
stringArray[8] = "/system/app/Superuser.apk";
int i = 0;
while (true) {
if (i >= 9) {
return 0;
}
if (new File(stringArray[i]).exists()) {
break ;
}else {
i = i + 1;
}
}
return 1;
}
public static String g(String p0){
String str;
String str1;
try{
Process process = Runtime.getRuntime().exec("timeout -s SIGKILL -k 3s 2s "+p0);
process.waitFor();
BufferedReader uBufferedRea = new BufferedReader(new InputStreamReader(process.getInputStream()));
str = "";
while ((str1 = uBufferedRea.readLine()) != null) {
str = "".append(str).append(str1).append(10).toString();
}
BufferedReader uBufferedRea1 = new BufferedReader(new InputStreamReader(process.getErrorStream()));
while ((process = uBufferedRea1.readLine()) != null) {
str = "".append(str).append(process).append(10).toString();
}
uBufferedRea.close();
uBufferedRea1.close();
}catch(java.io.IOException e0){
str = "NA";
}catch(java.lang.InterruptedException e0){
str = "Interrupted";
}
return str;
}
public static void h(Context p0){
int i;
String str = "busybox";
try{
String path = p0.getFilesDir().getPath();
File uFile = new File(path+"/busybox");
if (!uFile.exists()) {
AssetManager assets = p0.getAssets();
try{
InputStream inputStream = assets.open(str);
FileOutputStream uFileOutputS = new FileOutputStream(new File(path, str));
byte[] uobyteArray = new byte[1024];
while ((i = inputStream.read(uobyteArray)) > 0) {
uFileOutputS.write(uobyteArray, 0, i);
}
inputStream.close();
uFileOutputS.flush();
uFileOutputS.close();
}catch(java.io.IOException e0){
}
}
uFile.setExecutable(true);
uFile.getPath();
return;
}catch(java.lang.Exception e0){
}
}
public static void i(Activity p0){
String str = Integer.toString(R.color.aqua);
try{
object oobject = "sJidssIls5swz=".split("2")[1];
}catch(java.lang.Exception e0){
oi.n(p0);
}
oi.o(Integer.parseInt(e0));
return;
}
public static boolean j(String p0,boolean p1){
boolean b;
if (p0 == null) {
return false;
}
if (!(b = new File(p0).exists()) && p1) {
b = (xr.D("[ -e "+p0+" ] && echo 1")).contains("1");
}
return b;
}
public static boolean k(Context p0){
boolean b = true;
try{
Display[] displays = p0.getSystemService("display").getDisplays();
int len = displays.length;
int i = 0;
while (true) {
if (i >= len) {
return false;
}
object oobject = displays[i];
if (oobject.getState() == b && oobject.getState() != 5) {
i = i + 1;
}else {
break ;
}
}
return b;
}catch(java.lang.NullPointerException e0){
return e0;
}
}
public static int l(Context p0){
int identifier;
boolean b = KeyCharacterMap.deviceHasKey(4);
if (!ViewConfiguration.get(p0).hasPermanentMenuKey() && !b) {
Resources resources = p0.getResources();
Configuration orientation = resources.getConfiguration().orientation;
String str = "navigation_bar_height";
if (xr.y(p0)) {
if (orientation != 1) {
str = "navigation_bar_height_landscape";
}
}else if(orientation == 1){
str = "navigation_bar_width";
}
if ((identifier = resources.getIdentifier(str, "dimen", "android")) > 0) {
return resources.getDimensionPixelSize(identifier);
}
}
return 0;
}
public static String m(String p0){
BufferedReader uBufferedRea;
String str = null;
try{
InputStreamReader inputStreamR = new InputStreamReader(Runtime.getRuntime().exec("getprop "+p0).getInputStream());
int i = 1024;
try{
uBufferedRea = new BufferedReader(inputStreamR, i);
i = uBufferedRea.readLine();
try{
uBufferedRea.close();
uBufferedRea.close();
}catch(java.io.IOException e0){
e0.printStackTrace();
}
return i;
}catch(java.io.IOException e0){
}
if (uBufferedRea) {
try{
uBufferedRea.close();
}catch(java.io.IOException e4){
e4.printStackTrace();
}
}
return e0;
}catch(java.io.IOException e0){
uBufferedRea = e0;
}
}
public static String n(int p0){
return xr.b[p0];
}
public static boolean o(){
String dEVICE = Build.DEVICE;
boolean b = (!dEVICE.contains("walleye") && (!dEVICE.contains("taimen") && (!dEVICE.contains("blueline") && (!dEVICE.contains("crosshatch") && (!dEVICE.contains("coral") && (!dEVICE.contains("flame") && (!dEVICE.contains("sargo") && !dEVICE.contains("bonito"))))))))? false: true;
return b;
}
public static boolean p(){
return Build.MANUFACTURER.equalsIgnoreCase("lge");
}
public static boolean q(){
String mODEL = Build.MODEL;
boolean b = (!mODEL.contains("SM-G950") && (!mODEL.contains("SM-G955") && (!mODEL.contains("SM-N950") && (!mODEL.contains("SM-G960") && (!mODEL.contains("SM-G965") && (!mODEL.contains("SM-G893") && (!mODEL.contains("SM-G885") && (!mODEL.contains("SM-G887") && (!mODEL.contains("SM-G970") && (!mODEL.contains("SM-G973") && (!mODEL.contains("SM-G975") && (!mODEL.contains("SM-G977") && (!mODEL.contains("SM-G892") && (!mODEL.contains("SM-A920") && !mODEL.contains("SM-N960")))))))))))))))? false: true;
return b;
}
public static boolean r(){
String dEVICE = Build.DEVICE;
boolean b = (!dEVICE.contains("coral") && !dEVICE.contains("flame"))? false: true;
return b;
}
public static boolean s(Context p0){
int i = 0;
try{
if (Build$VERSION.SDK_INT >= 21) {
ApplicationInfo applicationI = p0.getApplicationContext().getPackageManager().getApplicationInfo(p0.getApplicationContext().getPackageName(), i);
if (!p0.getApplicationContext().getSystemService("appops").checkOpNoThrow("android:get_usage_stats", applicationI.uid, applicationI.packageName)) {
i = true;
}
}
return e0;
}catch(java.lang.Exception e0){
}
}
public static boolean t(boolean p0){
if (p0) {
return xr.j("/sys/android_touch/wake_gestures", p0);
}
return e0;
}
public static boolean u(Context p0){
boolean b = (p0.getSystemService("uimode").getCurrentModeType() == 3)? true: false;
return b;
}
public static boolean v(String p0){
return (gm.d("if test -f "+p0+" ; then echo 1; fi")).equals("1");
}
public static boolean w(){
return (TextUtils.isEmpty(xr.m("ro.miui.ui.version.name")) ^ 0x01);
}
public static boolean x(Context p0){
NetworkInfo activeNetwor;
boolean b = ((activeNetwor = p0.getSystemService("connectivity").getActiveNetworkInfo()) != null && activeNetwor.isConnected())? true: false;
return b;
}
public static boolean y(Context p0){
boolean b = (((p0.getResources().getConfiguration().screenLayout & 0x0f)) >= 3)? true: false;
return b;
}
public static boolean z(Context p0){
boolean b = (p0.getSystemService("uimode").getCurrentModeType() == 4)? true: false;
return b;
}
}