Skip to content

Commit

Permalink
opt: getapps - device modify (remove 24129PN74C, add xiaomi 15 pro an…
Browse files Browse the repository at this point in the history
…d redmi k70 ultra and muyu)
  • Loading branch information
Sevtinge committed May 27, 2024
1 parent c2a2670 commit 5eb1a13
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class DeviceModify extends BaseHook {

@Override
public void init() {
if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 105) {
// 15
mDevice = "haotian";
mModel = "24129PN74C";
if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 106) {
// 15p
mDevice = "haotian"; //O2
mModel = "24101PNB7C";
mManufacturer = "Xiaomi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 104) {
// 14u
Expand Down Expand Up @@ -72,6 +72,11 @@ public void init() {
mDevice = "avenger";
mModel = "MIX Alpha";
mManufacturer = "Xiaomi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 210) {
// pad7
mDevice = "muyu"; //O81
mModel = "240xxRPxCC";
mManufacturer = "Xiaomi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 209) {
// pad6sp
mDevice = "sheng";
Expand All @@ -82,6 +87,11 @@ public void init() {
mDevice = "corot";
mModel = "23078RKD5C";
mManufacturer = "Redmi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 310) {
// k70u
mDevice = "rothko";
mModel = "2407FRK8EC";
mManufacturer = "Redmi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 309) {
// k70p
mDevice = "manet";
Expand All @@ -93,7 +103,7 @@ public void init() {
mModel = "23113RKC6C";
mManufacturer = "Redmi";
} else if (mPrefsMap.getStringAsInt("market_device_modify_new", 0) == 335) {
// t
// t3
mDevice = "peridot";
mModel = "24069PC21C";
mManufacturer = "Redmi";
Expand Down
10 changes: 6 additions & 4 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@

<string-array name="market_device_modify_list">
<item>@string/array_default</item>
<item>Xiaomi 15</item>
<item>Xiaomi 15 Pro</item>
<item>Xiaomi 14 Ultra</item>
<item>Xiaomi 14 Pro</item>
<item>Xiaomi CIVI 4 Pro</item>
Expand All @@ -688,16 +688,17 @@
<item>Xiaomi MIX Fold 3</item>
<item>Xiaomi MIX Alpha</item>
<item>Xiaomi Pad 6S Pro 12.4</item>
<item>Redmi K60 Ultra</item>
<item>Redmi K70 Ultra</item>
<item>Redmi K70 Pro</item>
<item>Redmi K70E</item>
<item>Redmi K60 Ultra</item>
<item>Redmi Turbo 3</item>
<item>Redmi 13C / Redmi 13R</item>
</string-array>

<string-array name="market_device_modify_value">
<item>0</item>
<item>105</item>
<item>106</item>
<item>104</item>
<item>102</item>
<item>155</item>
Expand All @@ -706,9 +707,10 @@
<item>223</item>
<item>190</item>
<item>209</item>
<item>307</item>
<item>310</item>
<item>309</item>
<item>351</item>
<item>307</item>
<item>335</item>
<item>402</item>
</string-array>
Expand Down

0 comments on commit 5eb1a13

Please sign in to comment.