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 — PrivacyCheck/ApkCheck at master · infinite-android-app/PrivacyCheck

Expand file tree

/

ApkCheck

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

ApkCheck

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
gradle/wrapper
gradle/wrapper
 
 
libs
libs
 
 
release
release
 
 
src/main/kotlin
src/main/kotlin
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

README.md

Outline

Java Console Application Project

一、使用

1、执行命令:

在 release 目录下有一份已经打包好的工具,下载 ApkCheck-1.0.0.tar 解压到当前目录,进入 bin 目录,执行如下命令:

./ApkCheck /user/xx/xxx.apk /user/xx/privacy_api.json

  • .apk 后缀为自己需要分析的 apk 文件绝对路径
  • privacy_api.json 为隐私合规配置文件,可下载 PrivacyCheck/privacy_api.json 文件使用

2、产物说明:

执行命令后会在当前目录生成 out/ApiCall.json 文件,示例内容:

{
  "android.location.Location_getLatitude": [
    {
      "clazz": "Landroidx.appcompat.app.TwilightManager;",
      "method": "private updateState(Landroid/location/Location;)V"
    }
  ]
}

该 json 文件描述的是,在 TwilightManager 类的 updateState 方法有调用 Location.getLatitude 这个隐私 Api

二、项目结构说明

1、项目打包:

  • 打包命令 ./gradlew assemble
  • 产物输出:/build/distributions/xxx.tar
  • 解压产物,执行 cli 命令: sh bin/xx.sh /user/xx/xxx.apk /user/xx/privacy_api.json

2、工具原理:

  1. 解压 apk 文件,找到 .dex 结尾的文件
  2. 执行 baksmali ,将 dex 文件转成 smali 文件
  3. 解析 smali 文件,检查 privacy_api.json 的调用情况
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.