Skip to content

Commit

Permalink
add SM-N970U support
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Nov 11, 2019
1 parent be95096 commit d2ad986
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private enum Stage {
"SM-N960F",
"SM-N960U",
"SM-N970F",
"SM-N970U",
"SM-N975U",
"SM-S367VL",
"SM-T510",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,15 @@ private static class DeviceInfo {
"Pixel 3 XL",
"Pixel 3a",
"Pixel 3a XL",
"SM-N970U",
"SM-N975U").contains(Build.MODEL);

private static final ImmutableSet<Integer> extraPatchLevelMissing = ImmutableSet.of(
R.string.device_sm_a705fn,
R.string.device_sm_g970f,
R.string.device_sm_g975f,
R.string.device_sm_n970f,
R.string.device_sm_n970u,
R.string.device_sm_n975u,
R.string.device_sm_t510);

Expand Down Expand Up @@ -372,6 +374,8 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_sm_n960u, 1, 2, false, false, R.string.os_stock))
.put("E94BC43B97F98CD10C22CD9D8469DBE621116ECFA624FE291A1D53CF3CD685D1",
new DeviceInfo(R.string.device_sm_n970f, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("466011C44BBF883DB38CF96617ED35C796CE2552C5357F9230258329E943DB70",
new DeviceInfo(R.string.device_sm_n970u, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("52946676088007755EB586B3E3F3E8D3821BE5DF73513E6C13640507976420E6",
new DeviceInfo(R.string.device_sm_n975u, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("F3688C02D9676DEDB6909CADE364C271901FD66EA4F691AEB8B8921195E469C5",
Expand Down Expand Up @@ -443,6 +447,8 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_3_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("8CA89AF1A6DAA74B00810849356DE929CFC4498EF36AF964757BDE8A113BF46D",
new DeviceInfo(R.string.device_pixel_3a_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("3D3DEB132A89551D0A700D230BABAE4E3E80E3C7926ACDD7BAEDF9B57AD316D0",
new DeviceInfo(R.string.device_sm_n970u, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("9AC63842137D92C119A1B1BE2C9270B9EBB6083BBE6350B7823571942B5869F0",
new DeviceInfo(R.string.device_sm_n975u, 3, 4, false /* uses new API */, true, R.string.os_stock))
.build();
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 @@ -104,6 +104,7 @@
<string name="device_sm_n960f">Samsung Galaxy Note 9 (SM-N960F)</string>
<string name="device_sm_n960u">Samsung Galaxy Note 9 (SM-N960U)</string>
<string name="device_sm_n970f">Samsung Galaxy Note 10 (SM-N970F)</string>
<string name="device_sm_n970u">Samsung Galaxy Note 10 (SM-N970U)</string>
<string name="device_sm_n975u">Samsung Galaxy Note 10+ (SM-N975U)</string>
<string name="device_sm_t510">Samsung Galaxy Tab A 10.1 (2019)</string>
<string name="device_sm_t835">Samsung Galaxy Tab S4</string>
Expand Down

0 comments on commit d2ad986

Please sign in to comment.