Skip to content

Conversation

@hmzakhan12
Copy link

@hmzakhan12 hmzakhan12 commented Aug 6, 2025

This PR introduces a new feature: the RanDeviceGen module, designed to generate random yet configurable device data for authentication purposes.

Key Changes:

  • Added RanDeviceGen module for generating random device attributes

  • Integrated RanDeviceGen into auth.py to allow finer control over device behavior during authentication

  • Introduced helper methods:

    • set_country_details
    • set_locale
    • set_country_code
    • set_timezone_offset

Purpose:
Enables more realistic and customizable device parameter simulation, which can be useful for improving authentication flexibility and testing under varied regional/device configurations.

Copy link
Contributor

Choose a reason for hiding this comment

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

name should be ran_device_gen.py according to PEP 8.

"cpu": "qcom",
"version_code": "314665256",
}
self.device_settings = device or DeviceGen.random_device()
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks current behavior, you might want to add a parameter or configuration flag for setting a random device. Or better, you can leave here alone and let callers pass DeviceGen.random_device().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants