Skip to content

Commit 5d8cdb5

Browse files
committed
update version
1 parent 359c5c7 commit 5d8cdb5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "asd",
33
"displayName": "ASD",
44
"description": "Android Smali bytecode Debugger",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"publisher": "chaos",
77
"author": {
88
"name": "chaos",

src/SmaliDebug.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export class ASDebugSession extends LoggingDebugSession
110110
"eventKind" : JdwpEventKind.EK_SINGLE_STEP,
111111
"requestID" : this.stepRequestId,
112112
});
113+
114+
this.stepSeted = false;
115+
this.stepRequestId = 0;
113116
}
114117
}
115118

@@ -239,10 +242,10 @@ export class ASDebugSession extends LoggingDebugSession
239242
log("DisconnectResponse", response);
240243
}
241244

242-
private async getLocalFirstFlag() : Promise<boolean | undefined>
245+
private async getLocalFirstFlag(clsName : string, mthName : string) : Promise<boolean | undefined>
243246
{
244-
let cls : ClassInfo | undefined = this.allclasses_signature['Ljava/lang/Integer;']
245-
let mth : MethodInfo | undefined = await this.getMethodFromName('<init>(I)V' , cls);
247+
let cls : ClassInfo | undefined = this.allclasses_signature[clsName]
248+
let mth : MethodInfo | undefined = await this.getMethodFromName(mthName, cls);
246249
if (mth)
247250
{
248251
let reply : M_VariableTableWithGenericReply | undefined = await this.client.M_VariableTableWithGeneric({
@@ -432,7 +435,7 @@ export class ASDebugSession extends LoggingDebugSession
432435
}
433436

434437
//get flags
435-
let localFirst : boolean | undefined = await this.getLocalFirstFlag();
438+
let localFirst : boolean | undefined = await this.getLocalFirstFlag('Ldalvik/system/BaseDexClassLoader;', 'addDexPath(Ljava/lang/String;)V');
436439
if (undefined != localFirst)
437440
{
438441
log('setLocalFirstFlag', localFirst);

0 commit comments

Comments
 (0)