GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — linuxKernelRoot/testRoot/adb64_inject.h at master · anylayer/linuxKernelRoot

Expand file tree

/

adb64_inject.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
18 lines (15 loc) · 823 Bytes
/

adb64_inject.h

Copy path

File metadata and controls

18 lines (15 loc) · 823 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ADB_INJECT_H_
#define ADB_INJECT_H_
#include <unistd.h>
//安静输出模式
#define QUIET_PRINTF
#ifdef QUIET_PRINTF
#define TRACE(fmt, ...)
#else
#define TRACE(fmt, ...) printf(fmt, ##__VA_ARGS__)
#endif
//注入ADB进程远程执行命令(提权ROOT密匙,命令),备注:此命令会自动提权到ROOT、并且关闭SELinux。结束运行后可根据自己的需要决定是否手动重新打开SELinux
ssize_t inject_adb64_process_run_shell_wrapper(unsigned long rootKey, const char *lpszShell, bool bKeepAdbRoot = false, const char* lpOutResultBuf = NULL, size_t nOutResultBufSize = 0);
//fork安全版本(可用于安卓APP直接调用)
ssize_t safe_inject_adb64_process_run_shell_wrapper(unsigned long rootKey, const char *lpszShell, bool bKeepAdbRoot = false, const char* lpOutResultBuf = NULL, size_t nOutResultBufSize = 0);
#endif /* ADB_INJECT_H_ */
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.