Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
ab195e91
Commit
ab195e91
authored
Aug 24, 2021
by
narinder Rana
Browse files
undo
parent
4c5fa201
Pipeline
#131628
failed with stage
in 4 minutes and 33 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/apps/application/model/IntegrityVerificationTask.kt
View file @
ab195e91
...
...
@@ -65,8 +65,8 @@ class IntegrityVerificationTask(
override
fun
doInBackground
(
vararg
context
:
Context
):
Context
{
try
{
verificationSuccessful
=
if
(
isSystemApplication
(
fullData
.
packageName
))
{
//
verifySystemSignature(context[0])
verifySystemValues
(
context
[
0
])
verifySystemSignature
(
context
[
0
])
//
verifySystemValues(context[0])
}
else
if
(
isfDroidApplication
(
fullData
.
packageName
))
{
verifyFdroidSignature
(
context
[
0
])
...
...
@@ -95,12 +95,14 @@ class IntegrityVerificationTask(
if
(!
fullData
.
getLastVersion
()
?.
signature
.
isNullOrEmpty
())
{
return
fullData
.
getLastVersion
()
?.
signature
==
getSystemSignature
(
context
.
packageManager
)
?.
toCharsString
()
}
else
{
}
return
false
}
//get signature from apk and check
private
fun
verifySystemValues
(
context
:
Context
):
Boolean
{
val
pm
:
PackageManager
=
context
.
packageManager
...
...
@@ -112,7 +114,7 @@ class IntegrityVerificationTask(
if
(
info
!=
null
)
{
Log
.
e
(
"TAG"
,
".................."
+
info
.
packageName
)
Log
.
e
(
"TAG"
,
".................."
+
info
.
signatures
)
}
;
}
return
false
;
//
...
...
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