GoogleSignatureVerifier signature not valid message (google play services 9.0.0)
Sorry, thats a bug! It's just spurious logging though: Google Play services does some checking to see whether you are a Google app or a regular third party one.
As part of that, it calls the signature verifier and the logging ended up more verbose than intended - it will be fixed in a future version.This shouldn't affect the behavior of your app at all.
Android app is crashing due to V/GoogleSignatureVerifier: Signature not valid
This logcat warning is caused by a bug introduced in Google Play Services 9.x. It can be safely ignored, I don't believe it causes a crash, so your crash may be caused by a different issue. The message should go away with a future update to play services.
This issue has been acknowledged by an engineer at Google in the answer to this post.
Google Map Api v2 shows V/GoogleSignatureVerifier : signature not valid error message in log
Apparently it's a known issue acknowledged by a google developer
stating this in a more recent post:
Sorry, thats a bug! It's just spurious logging though: Google Play
services does some checking to see whether you are a Google app or a
regular third party one.As part of that, it calls the signature verifier and the logging ended
up more verbose than intended - it will be fixed in a future
version.This shouldn't affect the behavior of your app at all.
So it should just be ignored until the future update...
Signature vertification failed in Google Play purchase
I would say: post the signature you're trying to verify, the plaintext and post the key you're using to do the verification. As is, it seems quite likely to me that (1) the signature is base64 encoded (ie. you'd need to run it through base64_decode
and (2) that Google is using PKCS1 padding whereas phpseclib defaults to PSS padding for signatures. You can change the signature padding to PKCS1 by doing $rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
Google Play services out of date. Requires 12800000 but found 8703448
I solved the error by updating the Google play services version using this code,
//On button click of the google signIn
googleSignIn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent,GOOGLE_SIGNIN_ID);
}
//onActivity Result code.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == GOOGLE_SIGNIN_ID){
Task<GoogleSignInAccount> googleSignInAccountTask = GoogleSignIn.getSignedInAccountFromIntent(data);
try {
GoogleSignInAccount googleSignInAccount = googleSignInAccountTask.getResult(ApiException.class);
fireBaseAuthenticationWithGoogle(googleSignInAccount);
}catch (ApiException e){
//if user doesn't have updated google play services version
if (e.getStatusCode() == 12500){
try{
// show your own AlertDialog for example:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
// set the message
builder.setMessage("This app uses google play services for signing in")
.setTitle("Do you want to update?");
builder.setPositiveButton("Ok", (dialog, id) -> {
//final String appPackageName = "com.google.android.gms";
final String appPackageName = "com.google.android.gms&hl=en_IN";
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
}catch (android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName)));
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// User cancelled the dialog
}
});
AlertDialog dialog = builder.create();
dialog.show();
}catch (Exception err){
err.printStackTrace();
}
}
}
}
put this where you got the exception. I hope it helps @matdev.
Related Topics
Android Studio Gradle Icon Error, Manifest Merger
Android Edittext - Finished Typing Event
Sending a Notification from a Service in Android
Pendingintent Works Correctly for the First Notification But Incorrectly for the Rest
Actionbarsherlock + Tabs + Multi Fragments
Get Ssid When Wifi Is Connected
How to Make an Android Slidingdrawer Slide Out from the Left
How to Tell If the Sdcard Is Mounted in Android
Android\Intent: Send an Email with Image Attachment
Can't Run a Java Android Program with Valgrind
Android Studio 3.1 "Run" Not Compiling Code
How to Automatically Add Thousand Separators as Number Is Input in Edittext
How to Browse Localhost on Android Device
Service Not Available - Geocoder Android