Change spoofed Huawei device properties
To get around the USA Huawei ban, Aurora Store currently spoofs certain Huawei device properties in the requests it makes to Google - see this commit. The problem is that the spoofed values are those of a fictional device (the i-Phoney):
private fun stripHuaweiProperties(properties: Properties): Properties {
//Add i-Phoney properties
properties["Build.HARDWARE"] = "unknown"
properties["Build.BOOTLOADER"] = "unknown"
properties["Build.BRAND"] = "PassionFruit"
properties["Build.DEVICE"] = "ProPlus5GFold"
properties["Build.MODEL"] = "iPhoney"
properties["Build.MANUFACTURER"] = "PassionFruit"
properties["Build.PRODUCT"] = "iPhoney_24"
properties["Build.ID"] = "ABC.123"
return properties
}
This is Aurora-specific behavior that Google can detect and use for blocking and/or tracking. It would be better for Aurora to use the properties of a model that actually exists instead. This would make Huawei phones stand out less when Aurora makes requests to Google.
The best way of doing this would be automatically choosing a model that matches the hardware architecture of the user's Huawei phone, if possible.
The simpler option would be to just replace the spoofed values with those of the most popular device model currently available. I don't know what that is, but it looks like Samsung Galaxy S23 is popular enough.