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
deecdb11
Commit
deecdb11
authored
Aug 30, 2021
by
narinder Rana
Browse files
feedBack: remove unused comment and update some Code
parent
de5f4bbf
Pipeline
#132656
failed with stage
in 4 minutes and 3 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 @
deecdb11
...
...
@@ -61,7 +61,7 @@ class IntegrityVerificationTask(
override
fun
doInBackground
(
vararg
context
:
Context
):
Context
{
try
{
va
r
packageName
=
getAPK_PackageName
(
context
[
0
])
va
l
packageName
=
getAPK_PackageName
(
context
[
0
])
verificationSuccessful
=
if
(
isSystemApplication
(
packageName
.
toString
()))
{
verifyAPKSignature
(
context
[
0
])
}
else
if
(
isfDroidApplication
(
packageName
.
toString
()))
{
...
...
@@ -88,10 +88,9 @@ class IntegrityVerificationTask(
}
// get signature from apk and check
private
fun
verifyAPKSignature
(
context
:
Context
):
Boolean
{
// get Signature from APK
if
(
getAPKSignature
(
context
)
!=
null
)
{
return
getAPKSignature
(
context
)
?.
toCharsString
()
==
getSystemSignature
(
context
.
packageManager
)
?.
toCharsString
()
...
...
@@ -198,10 +197,8 @@ class IntegrityVerificationTask(
if
(
JSONObject
(
jsonResponse
).
has
(
packageName
))
{
systemJsonData
=
JSONObject
(
jsonResponse
).
getJSONObject
(
packageName
)
return
true
}
else
{
return
false
}
// return JSONObject(jsonResponse).has(packageName);
}
catch
(
e
:
Exception
)
{
if
(
e
is
JSONException
)
{
Log
.
d
(
TAG
,
"$packageName is not a system application"
)
...
...
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