Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public AuthRequest appIsGms() {
}

public AuthRequest callerIsGms() {
return caller(Constants.GMS_PACKAGE_NAME, Constants.GMS_PACKAGE_SIGNATURE_SHA1);
return caller(Constants.GOOGLE_GMS_PACKAGE_NAME, Constants.GMS_PACKAGE_SIGNATURE_SHA1);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want the auth request to have the caller as com.google.android.gms, not app.revanced.android.gms

}

public AuthRequest callerIsApp() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class AuthSignInActivity : AppCompatActivity() {
})
}
Log.d(TAG, "Result: ${data.extras?.also { it.keySet() }}")
setResult(statusCode, data)
setResult(RESULT_OK, data)
Copy link
Copy Markdown
Author

@hoo-dles hoo-dles Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused a problem where the initiating app got the ActivityResult back. The previously used CommonStatusCodes.SUCCESS maps to 0, which is defined as ActvityResult.RESULT_CANCELED. The expected RESULT_OK is equal to -1.

Copy link
Copy Markdown
Author

@hoo-dles hoo-dles Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finish()
}

Expand Down