Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Pixel 6 Pro user agent #274

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ fun UserAgentUpdateDialog(

@Composable
fun UserAgentPropertyView(label: String, value: String?, onUpdate: ((String) -> Unit)? = null) {
val labels = arrayOf(stringResource(R.string.default_), stringResource(R.string.lgu))
val values = arrayOf(stringResource(R.string.ua_default), stringResource(R.string.ua_lgu))
val labels = arrayOf(stringResource(R.string.default_), stringResource(R.string.lgu), stringResource(R.string.pixel_6_pro))
val values = arrayOf(stringResource(R.string.ua_default), stringResource(R.string.ua_lgu), stringResource(R.string.p6p))

var typedText by rememberSaveable { mutableStateOf("") }
var openTextEditDialog by rememberSaveable { mutableStateOf(false) }
Expand Down Expand Up @@ -160,8 +160,8 @@ fun UserAgentPropertyView(label: String, value: String?, onUpdate: ((String) ->
@Preview
@Composable
fun UserAgentUpdateDialogPreview() {
val labels = arrayOf(stringResource(R.string.default_), stringResource(R.string.lgu))
val values = arrayOf(stringResource(R.string.ua_default), stringResource(R.string.ua_lgu))
val labels = arrayOf(stringResource(R.string.default_), stringResource(R.string.lgu), stringResource(R.string.pixel_6_pro))
val values = arrayOf(stringResource(R.string.ua_default), stringResource(R.string.ua_lgu), stringResource(R.string.p6p))

var typedText by rememberSaveable { mutableStateOf("") }
var openTextEditDialog by rememberSaveable { mutableStateOf(false) }
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<string name="version">Version</string>
<string name="update_value">Update Value</string>
<string name="lgu">LG U+</string>
<string name="pixel_6_pro">Pixel 6 Pro</string>
<string name="default_">Default</string>
<string name="manually_set_config">Manually set config</string>
<string name="cannot_find_key">Cannot find specified key</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/user_agent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<resources>
<string name="ua_default">#MANUFACTURE#_#MODEL#_Android #AV#_#BUILD#</string>
<string name="ua_lgu">TTA-VoLTE/3.0 GB17L/T1B1.220819.007 Device-Type/Android_Phone OMD</string>
<string name="ua_p6p">Google_Pixel 6 Pro_Android 14_AP1A.240305.019.A1</string>
</resources>
Loading