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

19
LINES

< > BotCompany Repo | #1002648 // Android: Check if our PermanentService (bots & such) is running

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (249L/2K/7K).

!752

p {
  Class serviceClass = Class.forName("de.tinybrain.javax_allperms.PermanentService");
  print("serviceClass: " + serviceClass);
  
  if (serviceClass == null) ret;
  
  O service = get(serviceClass, "instance");
  print("Instance: " + service);
  
  if (service == null) ret;
  //print("Starts: " + getOpt(service, "startCommands"));
  
  StringBuffer bootbuf = cast get(service, "bootbuf");
  print("SERVICE OUTPUT:\n");
  print(str(bootbuf));
  print("\nSERVICE OUTPUT END");
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002648
Snippet name: Android: Check if our PermanentService (bots & such) is running
Eternal ID of this version: #1002648/1
Text MD5: 958c46c71bf5d1f1f9c2df0ada0c3a6a
Transpilation MD5: 35fcd225e93506be9fca55f538d04d6d
Author: stefan
Category: javax
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-16 21:39:58
Source code size: 507 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 640 / 706
Referenced in: [show references]