Skip to content

Commit ef666b2

Browse files
authored
Make modem fallback to PDA if empty
Wi-Fi only tablets don't have modem version. Test: run samfirm -m SM-T720 -r BTU
1 parent e4cc76d commit ef666b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const main = async (region: string, model: string): Promise<void> => {
4545
Latest version:
4646
PDA: ${pda}
4747
CSC: ${csc}
48-
MODEM: ${modem}`);
48+
MODEM: ${modem !== "" ? modem : "N/A"}`);
4949

5050
const nonce = {
5151
encrypted: "",
@@ -101,7 +101,7 @@ const main = async (region: string, model: string): Promise<void> => {
101101
.post(
102102
"https://neofussvr.sslcs.cdngc.net/NF_DownloadBinaryInform.do",
103103
getBinaryInformMsg(
104-
`${pda}/${csc}/${modem}/${pda}`,
104+
`${pda}/${csc}/${modem !== "" ? modem : pda}/${pda}`,
105105
region,
106106
model,
107107
nonce.decrypted

0 commit comments

Comments
 (0)