Entirely override build model on devices that don't have GPlay services

This commit is contained in:
Oizaro 2020-09-19 21:47:42 +02:00
parent d25c9cf24a
commit ef752e19e9
1 changed files with 8 additions and 9 deletions

View File

@ -84,18 +84,17 @@ public class CheckinClient {
.androidId(checkinInfo.androidId)
.checkin(new CheckinRequest.Checkin.Builder()
.build(new CheckinRequest.Checkin.Build.Builder()
.bootloader(build.bootloader)
.brand(build.brand)
.bootloader(hasGooglePlayServices ? build.bootloader : "c2f2-0.2-5799621")
.brand(hasGooglePlayServices ? build.brand : "google")
.clientId("android-google")
.device(build.device)
//.fingerprint(build.fingerprint)
.fingerprint(hasGooglePlayServices ? build.fingerprint : "google/sdk_gphone_x86/generic_x86_arm:11/RPB3.200720.005/6705141:user/release-keys")
.hardware(build.hardware)
.manufacturer(build.manufacturer)
.model(build.model)
.device(hasGooglePlayServices ? build.device : "generic")
.fingerprint(hasGooglePlayServices ? build.fingerprint : "google/coral/coral:10/QD1A.190821.007/5831595:user/release-keys")
.hardware(hasGooglePlayServices ? build.hardware : "coral")
.manufacturer(hasGooglePlayServices ? build.manufacturer : "Google")
.model(hasGooglePlayServices ? build.model : "mainline")
.otaInstalled(false) // TODO?
//.packageVersionCode(Constants.MAX_REFERENCE_VERSION)
.product(build.product)
.product(hasGooglePlayServices ? build.product : "coral")
.radio(build.radio)
.sdkVersion(build.sdk)
.time(build.time / 1000)