From 5d8cdb5509b324e1b9f576bebd1992c77fad42f9 Mon Sep 17 00:00:00 2001 From: chaos Date: Wed, 22 Dec 2021 10:40:27 +0800 Subject: [PATCH] update version --- package.json | 2 +- src/SmaliDebug.ts | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index bbb45e2..a232e67 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "asd", "displayName": "ASD", "description": "Android Smali bytecode Debugger", - "version": "1.0.0", + "version": "1.1.0", "publisher": "chaos", "author": { "name": "chaos", diff --git a/src/SmaliDebug.ts b/src/SmaliDebug.ts index e7dac46..3750825 100644 --- a/src/SmaliDebug.ts +++ b/src/SmaliDebug.ts @@ -110,6 +110,9 @@ export class ASDebugSession extends LoggingDebugSession "eventKind" : JdwpEventKind.EK_SINGLE_STEP, "requestID" : this.stepRequestId, }); + + this.stepSeted = false; + this.stepRequestId = 0; } } @@ -239,10 +242,10 @@ export class ASDebugSession extends LoggingDebugSession log("DisconnectResponse", response); } - private async getLocalFirstFlag() : Promise + private async getLocalFirstFlag(clsName : string, mthName : string) : Promise { - let cls : ClassInfo | undefined = this.allclasses_signature['Ljava/lang/Integer;'] - let mth : MethodInfo | undefined = await this.getMethodFromName('(I)V' , cls); + let cls : ClassInfo | undefined = this.allclasses_signature[clsName] + let mth : MethodInfo | undefined = await this.getMethodFromName(mthName, cls); if (mth) { let reply : M_VariableTableWithGenericReply | undefined = await this.client.M_VariableTableWithGeneric({ @@ -432,7 +435,7 @@ export class ASDebugSession extends LoggingDebugSession } //get flags - let localFirst : boolean | undefined = await this.getLocalFirstFlag(); + let localFirst : boolean | undefined = await this.getLocalFirstFlag('Ldalvik/system/BaseDexClassLoader;', 'addDexPath(Ljava/lang/String;)V'); if (undefined != localFirst) { log('setLocalFirstFlag', localFirst);