Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaos1323 committed Dec 22, 2021
1 parent 359c5c7 commit 5d8cdb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 7 additions & 4 deletions src/SmaliDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export class ASDebugSession extends LoggingDebugSession
"eventKind" : JdwpEventKind.EK_SINGLE_STEP,
"requestID" : this.stepRequestId,
});

this.stepSeted = false;
this.stepRequestId = 0;
}
}

Expand Down Expand Up @@ -239,10 +242,10 @@ export class ASDebugSession extends LoggingDebugSession
log("DisconnectResponse", response);
}

private async getLocalFirstFlag() : Promise<boolean | undefined>
private async getLocalFirstFlag(clsName : string, mthName : string) : Promise<boolean | undefined>
{
let cls : ClassInfo | undefined = this.allclasses_signature['Ljava/lang/Integer;']
let mth : MethodInfo | undefined = await this.getMethodFromName('<init>(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({
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5d8cdb5

Please sign in to comment.