Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions helper/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ function getSystemData() {
hook('android.provider.Settings$System', [
{'methodName': 'getString', 'args': ['android_id'], 'action': action, 'messages': '获取安卓ID'}
]);
hook('android.provider.Settings$NameValueCache', [
{'methodName': 'getStringForUser', 'action': action, 'messages': '获取安卓ID'},
]);


hook('android.os.Build', [
Expand Down Expand Up @@ -390,6 +393,11 @@ function getPackageManager() {
{'methodName': 'getRunningAppProcesses', 'action': action, 'messages': '获取了正在运行的App'},
{'methodName': 'getRunningServiceControlPanel', 'action': action, 'messages': '获取了正在运行的服务面板'},
]);

hook('android.app.ApplicationPackageManager', [
{'methodName': 'getPackageInfoAsUser', 'action': action, 'messages': '获取已安装的app信息'},
])

//需排除应用本身
hookApplicationPackageManagerExceptSelf('getApplicationInfo', action);
hookApplicationPackageManagerExceptSelf('getPackageInfoAsUser', action);
Expand Down Expand Up @@ -546,10 +554,13 @@ function getFileMessage() {
hook('java.io.RandomAccessFile', [
{'methodName': '$init', 'action': action, 'messages': 'RandomAccessFile写文件'}
]);
hook('java.io.File', [
{'methodName': 'mkdirs', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'},
{'methodName': 'mkdir', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'}
]);
hook('android.os.Environment', [
{'methodName': 'getExternalStorageDirectory', 'action': action, 'messages': '读取手机外置存储信息'},
])
// hook('java.io.File', [
// {'methodName': 'mkdirs', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'},
// {'methodName': 'mkdir', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'}
// ]);
}

//获取麦克风信息
Expand Down
16 changes: 12 additions & 4 deletions helper/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ function getSystemData() {
hook('android.provider.Settings$System', [
{'methodName': 'getString', 'args': ['android_id'], 'action': action, 'messages': '获取安卓ID'}
]);
hook('android.provider.Settings$NameValueCache', [
{'methodName': 'getStringForUser', 'action': action, 'messages': '获取安卓ID'},
]);



hook('android.os.Build', [
Expand Down Expand Up @@ -380,6 +384,10 @@ function getPackageManager() {
{'methodName': 'getRunningAppProcesses', 'action': action, 'messages': '获取了正在运行的App'},
{'methodName': 'getRunningServiceControlPanel', 'action': action, 'messages': '获取了正在运行的服务面板'},
]);
hook('android.app.ApplicationPackageManager', [
{'methodName': 'getPackageInfoAsUser', 'action': action, 'messages': '获取已安装的app信息'},
])

//需排除应用本身
hookApplicationPackageManagerExceptSelf('getApplicationInfo', action);
hookApplicationPackageManagerExceptSelf('getPackageInfoAsUser', action);
Expand Down Expand Up @@ -536,10 +544,10 @@ function getFileMessage() {
hook('java.io.RandomAccessFile', [
{'methodName': '$init', 'action': action, 'messages': 'RandomAccessFile写文件'}
]);
hook('java.io.File', [
{'methodName': 'mkdirs', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'},
{'methodName': 'mkdir', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'}
]);
// hook('java.io.File', [
// {'methodName': 'mkdirs', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'},
// {'methodName': 'mkdir', 'action': action, 'messages': '尝试写入sdcard创建小米市场审核可能不通过'}
// ]);
}

//获取麦克风信息
Expand Down
2 changes: 1 addition & 1 deletion view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-scan",
"version": "2.1.2",
"version": "2.1.3",
"description": "自动化隐私检测工具",
"productName": "app-scan",
"author": "TongchengSecurityTeam <anquan@ly.com>",
Expand Down
1 change: 1 addition & 0 deletions view/src/indexed_db/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var typeGroup = {
获取相册内容: "相册",
APP获取了其他app信息: "已安装程序",
获取了正在运行的App: "已安装程序",
获取已安装的app信息: "已安装程序",
获取位置信息: "位置",
调用摄像头: "拍照",
获取Mac地址: "MAC地址",
Expand Down
1 change: 1 addition & 0 deletions view/src/utils/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ const sdk = [
{ sdk_name: "高德SDK", package_name: "com.amap.api." },
{ sdk_name: "智齿客服SDK", package_name: "com.sobot.chat" },
{ sdk_name: "科大讯飞 SDK", package_name: "com.iflytek." },
{ sdk_name: "QuickGame SDK", package_name: "com.quickgamesdk." },
];

function getSdkNameByPackage(package_name) {
Expand Down