[Android Software/Hacking General [Developers Only]] afr33sl4ve:
So, I got far enough to edit the values, as needed. Now, I can't recompile it.

C:\stuff>java -Xmx512M -jar smali.jar classout -o classes.dex
classout\com\android\server\am\ActivityManagerService.smali[12786,16] missing REGISTER at ','

C:\stuff>pause
Press any key to continue . . .

EDIT 3: Missed a v2

Now, I'm getting this;

C:\stuff>java -Xmx512M -jar smali.jar classout -o classes.dex
classout\com\android\server\am\ActivityManagerService.smali[14340,0] Cannot get
the location of a label that hasn't been placed yet.

C:\stuff>pause
Press any key to continue . . .

Lines 14340-15059

.method private crashApplication(Lcom/android/server/am/ProcessRecord;Landroid/app/ApplicationErrorReport$CrashInfo;)V
.registers 27
.param p1, "r" # Lcom/android/server/am/ProcessRecord;
.param p2, "crashInfo" # Landroid/app/ApplicationErrorReport$CrashInfo;

.prologue
.line 12599
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v8

.line 12600
.local v8, "timeMillis":J
move-object/from16 v0, p2

iget-object v6, v0, Landroid/app/ApplicationErrorReport$CrashInfo;->exceptionClassName:Ljava/lang/String;

.line 12601
.local v6, "shortMsg":Ljava/lang/String;
move-object/from16 v0, p2

iget-object v7, v0, Landroid/app/ApplicationErrorReport$CrashInfo;->exceptionMessage:Ljava/lang/String;

.line 12602
.local v7, "longMsg":Ljava/lang/String;
move-object/from16 v0, p2

iget-object v0, v0, Landroid/app/ApplicationErrorReport$CrashInfo;->stackTrace:Ljava/lang/String;

move-object/from16 v20, v0

.line 12603
.local v20, "stackTrace":Ljava/lang/String;
if-eqz v6, :cond_a7

if-eqz v7, :cond_a7

.line 12604
new-instance v3, Ljava/lang/StringBuilder;

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

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

move-result-object v3

const-string v10, ": "

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

move-result-object v3

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

move-result-object v3

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

move-result-object v7

.line 12610
:cond_2d
:goto_2d
invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v3

const-string v10, "CscFeature_CIQ_BroadcastState"

invoke-virtual {v3, v10}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

move-result v3

if-eqz v3, :cond_5a

if-eqz p1, :cond_5a

move-object/from16 v0, p1

iget-object v3, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

if-eqz v3, :cond_5a

.line 12613
const/16 v3, 0x190

move-object/from16 v0, p1

iget-object v10, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

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

move-object/from16 v0, p1

iget v0, v0, Lcom/android/server/am/ProcessRecord;->pid:I

move/from16 v21, v0

const/16 v22, 0x3

move-object/from16 v0, p0

move/from16 v1, v21

move/from16 v2, v22

invoke-direct {v0, v3, v10, v1, v2}, Lcom/android/server/am/ActivityManagerService;->sendAppStateMsg(ILjava/lang/String;II)V

.line 12617
:cond_5a
new-instance v19, Lcom/android/server/am/AppErrorResult;

invoke-direct/range {v19 .. v19}, Lcom/android/server/am/AppErrorResult;-><init>()V

.line 12618
.local v19, "result":Lcom/android/server/am/AppErrorResult;
monitor-enter p0

.line 12619
:try_start_60
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mController:Landroid/app/IActivityController;
:try_end_64
.catchall {:try_start_60 .. :try_end_64} :catchall_160

if-eqz v3, :cond_c0

.line 12621
if-eqz p1, :cond_ab

:try_start_68
move-object/from16 v0, p1

iget-object v4, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;

.line 12622
.local v4, "name":Ljava/lang/String;
:goto_6c
if-eqz p1, :cond_ad

move-object/from16 v0, p1

iget v5, v0, Lcom/android/server/am/ProcessRecord;->pid:I

.line 12623
.local v5, "pid":I
:goto_72
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mController:Landroid/app/IActivityController;

move-object/from16 v0, p2

iget-object v10, v0, Landroid/app/ApplicationErrorReport$CrashInfo;->stackTrace:Ljava/lang/String;

invoke-interface/range {v3 .. v10}, Landroid/app/IActivityController;->appCrashed(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;JLjava/lang/String;)Z

move-result v3

if-nez v3, :cond_c0

.line 12625
const-string v3, "ActivityManager"

new-instance v10, Ljava/lang/StringBuilder;

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

const-string v21, "Force-killing crashed app "

move-object/from16 v0, v21

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

move-result-object v10

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

move-result-object v10

const-string v21, " at watcher\'s request"

move-object/from16 v0, v21

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

move-result-object v10

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

move-result-object v10

invoke-static {v3, v10}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

.line 12627
invoke-static {v5}, Landroid/os/Process;->killProcess(I)V
:try_end_a5
.catch Landroid/os/RemoteException; {:try_start_68 .. :try_end_a5} :catch_b2
.catchall {:try_start_68 .. :try_end_a5} :catchall_160

.line 12628
:try_start_a5
monitor-exit p0
:try_end_a6
.catchall {:try_start_a5 .. :try_end_a6} :catchall_160

.line 12707
.end local v4 # "name":Ljava/lang/String;
.end local v5 # "pid":I
:cond_a6
:goto_a6
return-void

.line 12605
.end local v19 # "result":Lcom/android/server/am/AppErrorResult;
:cond_a7
if-eqz v6, :cond_2d

.line 12606
move-object v7, v6

goto :goto_2d

.line 12621
.restart local v19 # "result":Lcom/android/server/am/AppErrorResult;
:cond_ab
const/4 v4, 0x0

goto :goto_6c

.line 12622
.restart local v4 # "name":Ljava/lang/String;
:cond_ad
:try_start_ad
invoke-static {}, Landroid/os/Binder;->getCallingPid()I
:try_end_b0
.catch Landroid/os/RemoteException; {:try_start_ad .. :try_end_b0} :catch_b2
.catchall {:try_start_ad .. :try_end_b0} :catchall_160

move-result v5

goto :goto_72

.line 12630
.end local v4 # "name":Ljava/lang/String;
:catch_b2
move-exception v13

.line 12631
.local v13, "e":Landroid/os/RemoteException;
const/4 v3, 0x0

:try_start_b4
move-object/from16 v0, p0

iput-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mController:Landroid/app/IActivityController;

.line 12632
invoke-static {}, Lcom/android/server/Watchdog;->getInstance()Lcom/android/server/Watchdog;

move-result-object v3

const/4 v10, 0x0

invoke-virtual {v3, v10}, Lcom/android/server/Watchdog;->setActivityController(Landroid/app/IActivityController;)V

.line 12636
.end local v13 # "e":Landroid/os/RemoteException;
:cond_c0
invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J

move-result-wide v16

.line 12639
.local v16, "origId":J
if-eqz p1, :cond_163

move-object/from16 v0, p1

iget-object v3, v0, Lcom/android/server/am/ProcessRecord;->instrumentationClass:Landroid/content/ComponentName;

if-eqz v3, :cond_163

.line 12640
const-string v3, "ActivityManager"

new-instance v10, Ljava/lang/StringBuilder;

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

const-string v21, "Error in app "

move-object/from16 v0, v21

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

move-result-object v10

move-object/from16 v0, p1

iget-object v0, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;

move-object/from16 v21, v0

move-object/from16 v0, v21

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

move-result-object v10

const-string v21, " running instrumentation "

move-object/from16 v0, v21

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

move-result-object v10

move-object/from16 v0, p1

iget-object v0, v0, Lcom/android/server/am/ProcessRecord;->instrumentationClass:Landroid/content/ComponentName;

move-object/from16 v21, v0

move-object/from16 v0, v21

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

move-result-object v10

const-string v21, ":"

move-object/from16 v0, v21

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

move-result-object v10

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

move-result-object v10

invoke-static {v3, v10}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

.line 12642
if-eqz v6, :cond_126

const-string v3, "ActivityManager"

new-instance v10, Ljava/lang/StringBuilder;

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

const-string v21, " "

move-object/from16 v0, v21

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

move-result-object v10

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

move-result-object v10

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

move-result-object v10

invoke-static {v3, v10}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

.line 12643
:cond_126
if-eqz v7, :cond_142

const-string v3, "ActivityManager"

new-instance v10, Ljava/lang/StringBuilder;

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

const-string v21, " "

move-object/from16 v0, v21

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

move-result-object v10

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

move-result-object v10

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

move-result-object v10

invoke-static {v3, v10}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

.line 12644
:cond_142
new-instance v14, Landroid/os/Bundle;

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

.line 12645
.local v14, "info":Landroid/os/Bundle;
const-string/jumbo v3, "shortMsg"

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

.line 12646
const-string v3, "longMsg"

invoke-virtual {v14, v3, v7}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

.line 12647
const/4 v3, 0x0

move-object/from16 v0, p0

move-object/from16 v1, p1

invoke-virtual {v0, v1, v3, v14}, Lcom/android/server/am/ActivityManagerService;->finishInstrumentationLocked(Lcom/android/server/am/ProcessRecord;ILandroid/os/Bundle;)V

.line 12648
invoke-static/range {v16 .. v17}, Landroid/os/Binder;->restoreCallingIdentity(J)V

.line 12649
monitor-exit p0

goto/16 :goto_a6

.line 12683
.end local v14 # "info":Landroid/os/Bundle;
.end local v16 # "origId":J
:catchall_160
move-exception v3

monitor-exit p0
:try_end_162
.catchall {:try_start_b4 .. :try_end_162} :catchall_160

throw v3

.line 12654
.restart local v16 # "origId":J
:cond_163
if-eqz p1, :cond_171

:try_start_165
move-object/from16 v0, p0

move-object/from16 v1, p1

move-object/from16 v2, v20

invoke-direct {v0, v1, v6, v7, v2}, Lcom/android/server/am/ActivityManagerService;->makeAppCrashingLocked(Lcom/android/server/am/ProcessRecord;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

move-result v3

if-nez v3, :cond_177

.line 12655
:cond_171
invoke-static/range {v16 .. v17}, Landroid/os/Binder;->restoreCallingIdentity(J)V

.line 12656
monitor-exit p0

goto/16 :goto_a6

.line 12659
:cond_177
new-instance v12, Ljava/util/HashMap;

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

.line 12660
.local v12, "data":Ljava/util/HashMap;
const-string v3, "result"

move-object/from16 v0, v19

invoke-virtual {v12, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 12661
const-string v3, "app"

move-object/from16 v0, p1

invoke-virtual {v12, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 12664
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

move-result-object v15

.line 12665
.local v15, "msg":Landroid/os/Message;
sget-boolean v3, Lcom/android/server/am/ActivityManagerService;->mCMManagedPermissionError:Z

const/4 v10, 0x1

if-ne v3, v10, :cond_225

.line 12666
const/4 v3, 0x0

sput-boolean v3, Lcom/android/server/am/ActivityManagerService;->mCMManagedPermissionError:Z

.line 12667
sget-object v3, Lcom/android/server/am/ActivityManagerService;->mCMMessageByApp:Ljava/util/HashSet;

move-object/from16 v0, p1

iget-object v10, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

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

invoke-virtual {v3, v10}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

move-result v3

const/4 v10, 0x1

if-ne v3, v10, :cond_221

.line 12669
sget-object v3, Lcom/android/server/am/ActivityManagerService;->mCMMessageByApp:Ljava/util/HashSet;

invoke-virtual {v3}, Ljava/util/HashSet;->clear()V

.line 12670
const/16 v3, 0x28

iput v3, v15, Landroid/os/Message;->what:I

.line 12671
const-string v3, "errorpermission"

sget-object v10, Lcom/android/server/am/ActivityManagerService;->mCMErrorPermissionName:Ljava/lang/String;

invoke-virtual {v12, v3, v10}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 12679
:goto_1b5
iput-object v12, v15, Landroid/os/Message;->obj:Ljava/lang/Object;

.line 12680
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mHandler:Landroid/os/Handler;

invoke-virtual {v3, v15}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

.line 12682
invoke-static/range {v16 .. v17}, Landroid/os/Binder;->restoreCallingIdentity(J)V

.line 12683
monitor-exit p0
:try_end_1c2
.catchall {:try_start_165 .. :try_end_1c2} :catchall_160

.line 12685
invoke-virtual/range {v19 .. v19}, Lcom/android/server/am/AppErrorResult;->get()I

move-result v18

.line 12687
.local v18, "res":I
const/4 v11, 0x0

.line 12688
.local v11, "appErrorIntent":Landroid/content/Intent;
monitor-enter p0

.line 12689
if-eqz p1, :cond_1ef

:try_start_1ca
move-object/from16 v0, p1

iget-boolean v3, v0, Lcom/android/server/am/ProcessRecord;->isolated:Z

if-nez v3, :cond_1ef

.line 12692
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mProcessCrashTimes:Lcom/android/internal/app/ProcessMap;

move-object/from16 v0, p1

iget-object v10, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo;

iget-object v10, v10, Landroid/content/pm/ApplicationInfo;->processName:Ljava/lang/String;

move-object/from16 v0, p1

iget v0, v0, Lcom/android/server/am/ProcessRecord;->uid:I

move/from16 v21, v0

invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

move-result-wide v22

invoke-static/range {v22 .. v23}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v22

move/from16 v0, v21

move-object/from16 v1, v22

invoke-virtual {v3, v10, v0, v1}, Lcom/android/internal/app/ProcessMap;->put(Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/Object;

.line 12695
:cond_1ef
const/4 v3, 0x1

move/from16 v0, v18

if-ne v0, v3, :cond_1fe

.line 12696
move-object/from16 v0, p0

move-object/from16 v1, p1

move-object/from16 v2, p2

invoke-virtual {v0, v1, v8, v9, v2}, Lcom/android/server/am/ActivityManagerService;->createAppErrorIntentLocked(Lcom/android/server/am/ProcessRecord;JLandroid/app/ApplicationErrorReport$CrashInfo;)Landroid/content/Intent;

move-result-object v11

.line 12698
:cond_1fe
monitor-exit p0
:try_end_1ff
.catchall {:try_start_1ca .. :try_end_1ff} :catchall_229

.line 12700
if-eqz v11, :cond_a6

.line 12702
:try_start_201
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/am/ActivityManagerService;->mContext:Landroid/content/Context;

new-instance v10, Landroid/os/UserHandle;

move-object/from16 v0, p1

iget v0, v0, Lcom/android/server/am/ProcessRecord;->userId:I

move/from16 v21, v0

move/from16 v0, v21

invoke-direct {v10, v0}, Landroid/os/UserHandle;-><init>(I)V

invoke-virtual {v3, v11, v10}, Landroid/content/Context;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V
:try_end_215
.catch Landroid/content/ActivityNotFoundException; {:try_start_201 .. :try_end_215} :catch_217

goto/16 :goto_a6

.line 12703
:catch_217
move-exception v13

.line 12704
.local v13, "e":Landroid/content/ActivityNotFoundException;
const-string v3, "ActivityManager"

const-string v10, "bug report receiver dissappeared"

invoke-static {v3, v10, v13}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

goto/16 :goto_a6

.line 12673
.end local v11 # "appErrorIntent":Landroid/content/Intent;
.end local v13 # "e":Landroid/content/ActivityNotFoundException;
.end local v18 # "res":I
:cond_221
const/4 v3, 0x1

:try_start_222
iput v3, v15, Landroid/os/Message;->what:I

goto :goto_1b5

.line 12676
:cond_225
const/4 v3, 0x1

iput v3, v15, Landroid/os/Message;->what:I
:try_end_228
.catchall {:try_start_222 .. :try_end_228} :catchall_160

goto :goto_1b5

.line 12698
.restart local v11 # "appErrorIntent":Landroid/content/Intent;
.restart local v18 # "res":I
:catchall_229
move-exception v3

:try_start_22a
monitor-exit p0
:try_end_22b
.catchall {:try_start_22a .. :try_end_22b} :catchall_229

throw v3
.end method