android-security

How check programmaticallly TEE support on Android?

扶醉桌前 提交于 2021-02-18 07:47:06
问题 How check programmaticallly TEE support on Android? In a project we need check if TEE (Trusted Execution Environment) is supported in order to make a decision. Regards. 回答1: Android 7.0 introduced this feature: Key Attestation, which gives you more confidence that the keys you use in your app are stored in a device's hardware-backed keystore. but not perfect since only a small number of devices running Android 7.0 (API level 24) support hardware-level key attestation; all other devices

how to fix hostname verifier interface while uploading app to google play console

前提是你 提交于 2021-02-05 06:42:07
问题 I updated the version code and version name of app but i got warning message from google play Your app(s) are using an unsafe implementation of the HostnameVerifier interface. You can find more information about how resolve the issue in this Google Help Center article. thanks in advance 回答1: Had plenty of versions we assumed were right in this Flutter project and had been rejected over and over again but finally, we figured out. Pubspec.yaml - previous version. flutter_html: ^0.11.1 flutter:

Gradle task for classes.dex CRC calculation

与世无争的帅哥 提交于 2021-01-29 07:54:31
问题 I'd like to create a Gradle task that computes the classes.dex CRC, then writes the resulting value into a resource string. This value will be checked at runtime to determine whether the APK has been tampered or not. The problem is that beginning with Gradle plugin 1.4.+ it is not possible to access the dex task anymore. Instead, we should use Transform API. I found very little documentation about Gradle tasks in the Android environment, so I would ask a few questions: What's the Gradle task

Apksigner does not verify signature

≯℡__Kan透↙ 提交于 2021-01-21 09:16:11
问题 i was trying to verify the signature of the latest Gmail App (Version 8.11.25.224) with apksigner and it failed. I used: apksigner verifiy --verbose --print-certs <apk.file> The result was: DOES NOT VERIFY ERROR: APK Signature Scheme v2 signer #1 Malformed additional attribute #1 I was searching for an explanation why this happend but I couldn't find any solution to this problem. I have experimented a little and if you add --min-sdk-version 28 to the options of apksigner command then the

Apksigner does not verify signature

感情迁移 提交于 2021-01-21 09:15:47
问题 i was trying to verify the signature of the latest Gmail App (Version 8.11.25.224) with apksigner and it failed. I used: apksigner verifiy --verbose --print-certs <apk.file> The result was: DOES NOT VERIFY ERROR: APK Signature Scheme v2 signer #1 Malformed additional attribute #1 I was searching for an explanation why this happend but I couldn't find any solution to this problem. I have experimented a little and if you add --min-sdk-version 28 to the options of apksigner command then the

How do i make shared libs extracted by Android for AAB?

二次信任 提交于 2021-01-07 06:34:55
问题 I set android:extractNativeLibs="true" and target to Android 29 to make my shared libs extracted to /data/app/%package%/... by Android. If works just fine with APK to workaround Android 10 permissions issue. Recently i had to switch to AAB due to increased to 150Mb download size as my APK size exceeds Google Play limit of 100Mb. When testing APK installation from AAB ["APK from app bundle" deploy option in Android Studio] i noticed /data/app/%package%/.. is empty (in contrast to pure single

How disable screenshots in Nativescript mobile application?

荒凉一梦 提交于 2020-12-07 06:48:49
问题 In native Android application for disabling screenshors need to add code getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE); but how use this security option in NativeScript application? 回答1: This solution is done in Nativescript-Vue, please adjust it according to the varient of Nativescript you use. Import these : import { isAndroid, isIOS, device, screen} from "tns-core-modules/platform"; const app = require("tns-core-modules/application"); Add a pageLoad function to