Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ReyunSecureSdk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daiwenjie
ReyunSecureSdk
Commits
c79eb0d0
Commit
c79eb0d0
authored
Apr 02, 2021
by
Fear1ess
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4/2
parent
6f830481
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
collect.c
wandun/src/main/cpp/collect.c
+15
-0
No files found.
wandun/src/main/cpp/collect.c
View file @
c79eb0d0
...
@@ -30,7 +30,22 @@ void collect_app_info(JNIEnv* env, cJSON *json) {
...
@@ -30,7 +30,22 @@ void collect_app_info(JNIEnv* env, cJSON *json) {
jlong
lastUpdateTime
=
wdGetLongField
(
env
,
pkgInfo
,
"lastUpdateTime"
,
"J"
);
jlong
lastUpdateTime
=
wdGetLongField
(
env
,
pkgInfo
,
"lastUpdateTime"
,
"J"
);
cJSON_AddNumberToObject
(
json
,
"last_update_time"
,
lastUpdateTime
);
cJSON_AddNumberToObject
(
json
,
"last_update_time"
,
lastUpdateTime
);
//
//first install time
jlong
firstInstallTime
=
wdGetLongField
(
env
,
pkgInfo
,
"firstInstallTime"
,
"J"
);
cJSON_AddNumberToObject
(
json
,
"first_install_time"
,
firstInstallTime
);
//version code
jint
versionCode
=
wdGetIntField
(
env
,
pkgInfo
,
"versionCode"
,
"I"
);
cJSON_AddNumberToObject
(
json
,
"ver_code"
,
versionCode
);
//version name
jobject
versionName
=
wdGetObjectField
(
env
,
pkgInfo
,
"versionCode"
,
"Ljava/lang/String;"
);
cJSON_AddNumberToObject
(
json
,
"ver_code"
,
versionCode
);
const
char
*
info
=
cJSON_Print
(
json
);
const
char
*
info
=
cJSON_Print
(
json
);
// const char* info = cJSON_Print(json);
(
*
env
)
->
DeleteLocalRef
(
env
,
pkgName
);
(
*
env
)
->
DeleteLocalRef
(
env
,
pkgName
);
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment