Skip to content

ALS Protobuf Parameter Order #1

@cdr-chakotay

Description

@cdr-chakotay

Hi there,

I recently looked into your great protobuf implementation of the ALS API.
However I recognized in the back of my head, that GrapheneOS implemented something similar recently for their Network Location feature.

I started comparing with their source-code and I stumpled accross the following diffrence.
In your implementation of the ALS Location, you assume the order of the fields reach and score as following:

optional uint32 reach = 0xb;
// Assumption: How often the wifi / cell was seen by Apple devices?
optional int32 score = 0xc;

GrapheneOS implemented this in reverse order:

https://github.com/GrapheneOS/platform_packages_apps_NetworkLocation/blob/f898b68801e0552ec96be8fcbcccf27d8b5c83dc/proto/apple_wps.proto#L71-L72

I would be happy if we could clarify this together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions