Commit ab195e91 authored by narinder Rana's avatar narinder Rana
Browse files

undo

parent 4c5fa201
Pipeline #131628 failed with stage
in 4 minutes and 33 seconds
......@@ -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;
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment