Skip to content

IoTAccessControl/codeql-oh-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

测试CodeQL能力

下载codeql解压为codeql放在根目录:
https://github.com/github/codeql-cli-binaries/releases

 fripSide@oh-analysis % tree -L 2 .
.
├── README.md
├── analysis.sh
├── cg.ql
├── codeql
├── codeql-pack.lock.yml
├── oh-codes
│   ├── EntryAbility.ts
│   ├── Index.ts
│   └── InterstitialAdStatusHandler.ts
├── oh-db
│   ├── baseline-info.json
│   ├── codeql-database.yml
│   ├── db-javascript
│   ├── diagnostic
│   ├── log
│   └── src.zip
└── qlpack.yml

运行

fripside@oh-analysis % bash analysis.sh
Compiling query plan for /Users/fripside/Dev/CodeQL-Dev/oh-analysis/cg.ql.
[1/1 comp 9s] Compiled /Users/fripside/Dev/CodeQL-Dev/oh-analysis/cg.ql.
cg.ql: Evaluation completed (215ms).
|           col0           | col1 |        col2         |                col3                |
+--------------------------+------+---------------------+------------------------------------+
| onCreate@22              | ->   | hilog.info          | @EntryAbility.ts:23                |
| onDestroy@26             | ->   | hilog.info          | @EntryAbility.ts:27                |
| onWindowStageCreate@30   | ->   | hilog.info          | @EntryAbility.ts:32                |
| onWindowStageCreate@30   | ->   | windowS ... Content | @EntryAbility.ts:34                |
| onWindowStageDestroy@43  | ->   | hilog.info          | @EntryAbility.ts:45                |
| onForeground@48          | ->   | hilog.info          | @EntryAbility.ts:50                |
| onBackground@53          | ->   | hilog.info          | @EntryAbility.ts:55                |
| constructor@21           | ->   | super               | @EntryAbility.ts:21                |
| registerPPSReceiver@29   | ->   | commonE ... scriber | @InterstitialAdStatusHandler.ts:39 |
| registerPPSReceiver@29   | ->   | this.un ... eceiver | @InterstitialAdStatusHandler.ts:31 |
| unRegisterPPSReceiver@87 | ->   | commonE ... bscribe | @InterstitialAdStatusHandler.ts:88 |
Shutting down query evaluator.

About

Analysis the OpenHarmony App with CodeQL

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors