Skip to content

Conversation

fengqianliuli
Copy link

(cherry picked from commit 249650d)
Add mobile (Android) UAs to the default configuration, and add buttons to restore them to the default UA list

@awaLiny2333
Copy link
Owner

Could you please explain the feature of resetting default UA list in detail (?
If Liny did get it right, it may refer to deleting all other UAs and restore the stock ones (?

@awaLiny2333
Copy link
Owner

Thank you for that UA~
(Though that looked weird, for an Android 12 label with version 5.0.0.107 (= ̄ω ̄=

@fengqianliuli
Copy link
Author

Could you please explain the feature of resetting default UA list in detail (? If Liny did get it right, it may refer to deleting all other UAs and restore the stock ones (?

Yes. Because I found that the current logic is to prioritize reading the UA saved in the KVS if the device's process is upgraded and installed, which will save the previous version of the KVS (of course, this is reasonable). However, it will cause the default UA of the new version to be unable to be displayed (used). So I added this button that can delete all UAs and restore the built-in UA of the current version. If you have a better suggestion, I look forward to your reply!

@fengqianliuli
Copy link
Author

Thank you for that UA~ (Though that looked weird, for an Android 12 label with version 5.0.0.107 (= ̄ω ̄=

'Cause this is the UA of my own device, the Mate60 Pro, that I'm using directly. So the build version looks a bit odd. I'm sorry that I'm not super familiar with the UA format, but it seems to work fine on some common websites like Baidu and Bilibili.

@awaLiny2333
Copy link
Owner

Thank you for that UA~ (Though that looked weird, for an Android 12 label with version 5.0.0.107 (= ̄ω ̄=

'Cause this is the UA of my own device, the Mate60 Pro, that I'm using directly. So the build version looks a bit odd. I'm sorry that I'm not super familiar with the UA format, but it seems to work fine on some common websites like Baidu and Bilibili.

Great! Adding this to the next version...
While as for the UA resetting, perhaps Liny would like to reconsider and look for a better solution based on the stuff you've kindly provided!! (So this PR may not be merged, or merged so quickly... Thank you!!!

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