android-security | app showcase of some techniques to improve Android app | Security library
kandi X-RAY | android-security Summary
kandi X-RAY | android-security Summary
A sandbox app with some tools and code to help you to better secure your Android apps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initializes the app
- Verify the installer
- Checks if alternative is available
- Check the signature of the package
- Creates an SSLSocket
- Creates a socket
- Create a new SSLSocket
- Initializes the OkHttpClient
- Sets up SSL SocketFactory
- Sets up github connection
- Performs an OK HTTP request
- Returns the OkHttpClient
- Performs a safety check on the safety net
- Generates a nonce
- Checks if this is an emulator
- Get a system property
- On create
- Gets the default cipher suites for this delegate
- Returns a list of supported cipher suites
- Handles a connection failure
- Displays a success result
android-security Key Features
android-security Examples and Code Snippets
Community Discussions
Trending Discussions on android-security
QUESTION
I'm playing around with keys in android and am trying to generate a public/private cryptographic key-pair. Unfortunately I keep getting a 'KeyStoreException: Invalid key blob'.
I'm following the instructions here:
https://developer.android.com/training/articles/keystore.html
Particularly the section entitled 'Generating a New Private Key', which I feel my code copies almost verbatim:
...ANSWER
Answered 2018-Apr-03 at 14:31I have the same issue while trying to run my app on Android-P, I think they made some changes on the keystore See the preview, I was wondering if your physical device was running with Android P?
QUESTION
I tryed to send a POST request to a remote secure server ( https call). First i used the OkHTTP lib to make the call, as this lib worked to make http calls in a previous app, but with https it does not work anymore, see my previous post : Cannot make HTTPS calls with OKHTTP lib
I decided to try the HttpURLConnection to make the call as explained here : https://developer.android.com/reference/java/net/HttpURLConnection.html The code I am using only works on certain devices.
It does work with a Wiko on android 6.0 equiped with SIM card and wifi and does not work on a Samsung on Android 4.2.2 only linked to internet via Wifi.
Here is a logcat of the problem I encounter :
...ANSWER
Answered 2018-Feb-23 at 11:58Android 4.2.2 on older device simply does not support new TLS version used on server. You need to allow to use at least TLS 1.1 on your server, nothing to do on client side.
UPD: TLS 1.2 support is not enabled by default on Android <5, but you can enable its usage using custom SSLSocketFactory
including the following method:
QUESTION
I'm getting this error when I try to fetch the previously chosen private key when I recreate the activity after rotating the screen.
I've seen this question here, which suggests that choosePrivateKeyAlias()
needs to be called "at least once after the application is installed". In this case it has been called numerous times, including when the app is started up before the screen rotation happens - so why is it considered to be a new app? Is the uid changing somehow?
Here's the call:
PrivateKey privateKey = KeyChain.getPrivateKey(getBaseContext(), alias);
I've just noticed that the other question was using getCertificateChain
rather than getPrivateKey
- is that the difference?
ANSWER
Answered 2017-Sep-26 at 13:22For posterity's sake, and to repeat my comment, the issue was that the alias was not being properly stored, and so this call attempted to access an entirely unrelated, or nonexistent, private key.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-security
You can use android-security like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-security component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page