[Galaxy S 5 Android Development (Snapdragon)] squatch04:
At least help me out here man.

This is what the AllowBindAppWidgetActivity.smali looks like:

.class public Lcom/android/settings/AllowBindAppWidgetActivity;
.super Lcom/android/internal/app/AlertActivity;
.source "AllowBindAppWidgetActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;

# instance fields
.field private mAlwaysUse:Landroid/widget/CheckBox;

.field private mAppWidgetId:I

.field private mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

.field private mCallingPackage:Ljava/lang/String;

.field private mClicked:Z

.field private mComponentName:Landroid/content/ComponentName;

.field private mProfile:Landroid/os/UserHandle;

# direct methods
.method public constructor <init>()V
.registers 1

invoke-direct {p0}, Lcom/android/internal/app/AlertActivity;-><init>()V

return-void
.end method

# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.registers 12

const/4 v5, -0x1

if-ne p2, v5, :cond_49

const/4 v4, 0x0

invoke-virtual {p0, v4}, Lcom/android/settings/AllowBindAppWidgetActivity;->setResult(I)V

iget v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

if-eq v4, v5, :cond_49

iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mComponentName:Landroid/content/ComponentName;

if-eqz v4, :cond_49

iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

if-eqz v4, :cond_49

:try_start_13
iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

iget v5, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

iget-object v6, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mProfile:Landroid/os/UserHandle;

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mComponentName:Landroid/content/ComponentName;

const/4 v8, 0x0

invoke-virtual {v4, v5, v6, v7, v8}, Landroid/appwidget/AppWidgetManager;->bindAppWidgetIdIfAllowed(ILandroid/os/UserHandle;Landroid/content/ComponentName;Landroid/os/Bundle;)Z

move-result v1

if-eqz v1, :cond_32

new-instance v3, Landroid/content/Intent;

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

const-string v4, "appWidgetId"

iget v5, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

const/4 v4, -0x1

invoke-virtual {p0, v4, v3}, Lcom/android/settings/AllowBindAppWidgetActivity;->setResult(ILandroid/content/Intent;)V
:try_end_32
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_32} :catch_4d

:cond_32
:goto_32
iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

invoke-virtual {v4}, Landroid/widget/CheckBox;->isChecked()Z

move-result v0

iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

iget-object v5, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

invoke-virtual {v4, v5}, Landroid/appwidget/AppWidgetManager;->hasBindAppWidgetPermission(Ljava/lang/String;)Z

move-result v4

if-eq v0, v4, :cond_49

iget-object v4, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

iget-object v5, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

invoke-virtual {v4, v5, v0}, Landroid/appwidget/AppWidgetManager;->setBindAppWidgetPermission(Ljava/lang/String;Z)V

:cond_49
invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->finish()V

return-void

:catch_4d
move-exception v2

const-string v4, "BIND_APPWIDGET"

new-instance v5, Ljava/lang/StringBuilder;

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

const-string v6, "Error binding widget with id "

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

move-result-object v5

iget v6, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v5

const-string v6, " and component "

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

move-result-object v5

iget-object v6, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mComponentName:Landroid/content/ComponentName;

invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

move-result-object v5

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

move-result-object v5

invoke-static {v4, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

goto :goto_32
.end method

.method protected onCreate(Landroid/os/Bundle;)V
.registers 16

const/4 v12, 0x1

const/4 v11, -0x1

const/4 v9, 0x0

const/4 v10, 0x0

invoke-super {p0, p1}, Lcom/android/internal/app/AlertActivity;->onCreate(Landroid/os/Bundle;)V

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->getIntent()Landroid/content/Intent;

move-result-object v4

const-string v5, ""

if-eqz v4, :cond_4b

:try_start_f
const-string v7, "appWidgetId"

const/4 v8, -0x1

invoke-virtual {v4, v7, v8}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

move-result v7

iput v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

const-string v7, "appWidgetProviderProfile"

invoke-virtual {v4, v7}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

move-result-object v7

check-cast v7, Landroid/os/UserHandle;

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mProfile:Landroid/os/UserHandle;

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mProfile:Landroid/os/UserHandle;

if-nez v7, :cond_2c

invoke-static {}, Landroid/os/Process;->myUserHandle()Landroid/os/UserHandle;

move-result-object v7

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mProfile:Landroid/os/UserHandle;

:cond_2c
const-string v7, "appWidgetProvider"

invoke-virtual {v4, v7}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

move-result-object v7

check-cast v7, Landroid/content/ComponentName;

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mComponentName:Landroid/content/ComponentName;

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->getCallingPackage()Ljava/lang/String;

move-result-object v7

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v6

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

const/4 v8, 0x0

invoke-virtual {v6, v7, v8}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

move-result-object v0

invoke-virtual {v6, v0}, Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;
:try_end_4a
.catch Ljava/lang/Exception; {:try_start_f .. :try_end_4a} :catch_ee

move-result-object v5

:cond_4b
iget-object v1, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlertParams:Lcom/android/internal/app/AlertController$AlertParams;

const v7, 0x7f0e08f5

invoke-virtual {p0, v7}, Lcom/android/settings/AllowBindAppWidgetActivity;->getString(I)Ljava/lang/String;

move-result-object v7

iput-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mTitle:Ljava/lang/CharSequence;

const v7, 0x7f0e08f6

new-array v8, v12, [Ljava/lang/Object;

aput-object v5, v8, v10

invoke-virtual {p0, v7, v8}, Lcom/android/settings/AllowBindAppWidgetActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v7

iput-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mMessage:Ljava/lang/CharSequence;

const v7, 0x7f0e00ba

invoke-virtual {p0, v7}, Lcom/android/settings/AllowBindAppWidgetActivity;->getString(I)Ljava/lang/String;

move-result-object v7

iput-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mPositiveButtonText:Ljava/lang/CharSequence;

const/high16 v7, 0x1040000

invoke-virtual {p0, v7}, Lcom/android/settings/AllowBindAppWidgetActivity;->getString(I)Ljava/lang/String;

move-result-object v7

iput-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mNegativeButtonText:Ljava/lang/CharSequence;

iput-object p0, v1, Lcom/android/internal/app/AlertController$AlertParams;->mPositiveButtonListener:Landroid/content/DialogInterface$OnClickListener;

iput-object p0, v1, Lcom/android/internal/app/AlertController$AlertParams;->mNegativeButtonListener:Landroid/content/DialogInterface$OnClickListener;

const-string v7, "layout_inflater"

invoke-virtual {p0, v7}, Lcom/android/settings/AllowBindAppWidgetActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v3

check-cast v3, Landroid/view/LayoutInflater;

const v7, 0x1090031

invoke-virtual {v3, v7, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v7

iput-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mView:Landroid/view/View;

iget-object v7, v1, Lcom/android/internal/app/AlertController$AlertParams;->mView:Landroid/view/View;

const v8, 0x102036d

invoke-virtual {v7, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v7

check-cast v7, Landroid/widget/CheckBox;

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

const v8, 0x7f0e08f7

new-array v9, v12, [Ljava/lang/Object;

aput-object v5, v9, v10

invoke-virtual {p0, v8, v9}, Lcom/android/settings/AllowBindAppWidgetActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v8

invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setText(Ljava/lang/CharSequence;)V

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

iget-object v8, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

invoke-virtual {v8}, Landroid/widget/CheckBox;->getPaddingLeft()I

move-result v8

iget-object v9, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

invoke-virtual {v9}, Landroid/widget/CheckBox;->getPaddingTop()I

move-result v9

iget-object v10, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

invoke-virtual {v10}, Landroid/widget/CheckBox;->getPaddingRight()I

move-result v10

iget-object v11, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

invoke-virtual {v11}, Landroid/widget/CheckBox;->getPaddingBottom()I

move-result v11

int-to-float v11, v11

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->getResources()Landroid/content/res/Resources;

move-result-object v12

const v13, 0x7f0c0127

invoke-virtual {v12, v13}, Landroid/content/res/Resources;->getDimension(I)F

move-result v12

add-float/2addr v11, v12

float-to-int v11, v11

invoke-virtual {v7, v8, v9, v10, v11}, Landroid/widget/CheckBox;->setPadding(IIII)V

invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

move-result-object v7

iput-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

iget-object v7, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAlwaysUse:Landroid/widget/CheckBox;

iget-object v8, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

iget-object v9, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

iget-object v10, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mProfile:Landroid/os/UserHandle;

invoke-virtual {v10}, Landroid/os/UserHandle;->getIdentifier()I

move-result v10

invoke-virtual {v8, v9, v10}, Landroid/appwidget/AppWidgetManager;->hasBindAppWidgetPermission(Ljava/lang/String;I)Z

move-result v8

invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setChecked(Z)V

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->setupAlert()V

:goto_ed
return-void

:catch_ee
move-exception v2

iput v11, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mAppWidgetId:I

iput-object v9, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mComponentName:Landroid/content/ComponentName;

iput-object v9, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mCallingPackage:Ljava/lang/String;

const-string v7, "BIND_APPWIDGET"

const-string v8, "Error getting parameters"

invoke-static {v7, v8}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

invoke-virtual {p0, v10}, Lcom/android/settings/AllowBindAppWidgetActivity;->setResult(I)V

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->finish()V

goto :goto_ed
.end method

.method protected onPause()V
.registers 2

invoke-virtual {p0}, Lcom/android/settings/AllowBindAppWidgetActivity;->isDestroyed()Z

move-result v0

if-eqz v0, :cond_e

iget-boolean v0, p0, Lcom/android/settings/AllowBindAppWidgetActivity;->mClicked:Z

if-nez v0, :cond_e

const/4 v0, 0x0

invoke-virtual {p0, v0}, Lcom/android/settings/AllowBindAppWidgetActivity;->setResult(I)V

:cond_e
invoke-super {p0}, Lcom/android/internal/app/AlertActivity;->onDestroy()V

return-void
.end method

What IDs should i replace? Any help would be appreciated.