Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1004620 // quickRunDex - load .dex, call _calc() and return result

JavaX fragment (include)

1  
static S quickRunDex(byte[] dex) {
2  
  S s = loadDex(dex, false);
3  
  new Matches m;
4  
  if (!match("OK, injection id: *", s, m)) fail(s);
5  
  S injectionID = m.unq(0);
6  
  O paa = call(getJavaX(), "findInjection", injectionID);
7  
  O c = get(paa, "mainClass");
8  
  call(getJavaX(), "setVars", c, null);
9  
  try {
10  
    ret ok(callOpt(c, "_calc"));
11  
  } finally {
12  
    call(getJavaX(), "removeInjection", paa);
13  
  }
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004620
Snippet name: quickRunDex - load .dex, call _calc() and return result
Eternal ID of this version: #1004620/1
Text MD5: e976014fa11217801b4bcadfb54f9666
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 01:54:54
Source code size: 409 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 608 / 608
Referenced in: [show references]