1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-25 16:17:29 +00:00

high definition?!

This commit is contained in:
Austin Huang 2021-03-16 22:40:05 -04:00
parent 4ee36305df
commit b5cd213e84
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -4,7 +4,7 @@ import androidx.annotation.NonNull;
public class UserAgentUtils { public class UserAgentUtils {
/* GraphQL user agents (which are just standard browser UA's). /* GraphQL user agents (which are just standard browser UA"s).
* Go to https://www.whatismybrowser.com/guides/the-latest-user-agent/ to update it * Go to https://www.whatismybrowser.com/guides/the-latest-user-agent/ to update it
* Windows first (Assume win64 not wow64): Chrome, Firefox, Edge * Windows first (Assume win64 not wow64): Chrome, Firefox, Edge
* Then macOS: Chrome, Firefox, Safari * Then macOS: Chrome, Firefox, Safari
@ -18,23 +18,59 @@ public class UserAgentUtils {
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15"
}; };
// use APKpure, assume x86 // use APKpure, assume x86
private static final String igVersion = "177.0.0.30.119"; private static final String igVersion = "179.0.0.31.132";
private static final String igVersionCode = "276028050"; private static final String igVersionCode = "278625454";
// only pick the ones that has width 1440 for maximum download quality // you can pick *any* device as long as you LEAVE OUT the resolution for maximum download quality
public static final String[] devices = { public static final String[] devices = {
// https://github.com/dilame/instagram-private-api/blob/master/src/samples/devices.json // https://github.com/dilame/instagram-private-api/blob/master/src/samples/devices.json
"26/8.0.0; 640dpi; 1440x2768; samsung; SM-G950F; dreamlte; samsungexynos8895", "25/7.1.1; 440dpi; Xiaomi; Mi Note 3; jason; qcom",
"26/8.0.0; 560dpi; 1440x2792; samsung; SM-G955F; dream2lte; samsungexynos8895", "23/6.0.1; 480dpi; Xiaomi; Redmi Note 3; kenzo; qcom",
"24/7.0; 640dpi; 1440x2560; samsung; SM-G925F; zerolte; samsungexynos7420", "23/6.0; 480dpi; Xiaomi; Redmi Note 4; nikel; mt6797",
"24/7.0; 640dpi; 1440x2560; samsung; SM-G920F; zeroflte; samsungexynos7420", "24/7.0; 480dpi; Xiaomi/xiaomi; Redmi Note 4; mido; qcom",
"23/6.0; 480dpi; Xiaomi; Redmi Note 4X; nikel; mt6797",
"27/8.1.0; 440dpi; Xiaomi/xiaomi; Redmi Note 5; whyred; qcom",
"23/6.0.1; 480dpi; Xiaomi; Redmi 4; markw; qcom",
"27/8.1.0; 440dpi; Xiaomi/xiaomi; Redmi 5 Plus; vince; qcom",
"25/7.1.2; 440dpi; Xiaomi/xiaomi; Redmi 5 Plus; vince; qcom",
"26/8.0.0; 480dpi; Xiaomi; MI 5; gemini; qcom",
"27/8.1.0; 480dpi; Xiaomi/xiaomi; Mi A1; tissot_sprout; qcom",
"26/8.0.0; 480dpi; Xiaomi; MI 6; sagit; qcom",
"25/7.1.1; 440dpi; Xiaomi; MI MAX 2; oxygen; qcom",
"24/7.0; 480dpi; Xiaomi; MI 5s; capricorn; qcom",
"26/8.0.0; 480dpi; samsung; SM-A520F; a5y17lte; samsungexynos7880",
"26/8.0.0; 480dpi; samsung; SM-G950F; dreamlte; samsungexynos8895",
"26/8.0.0; 640dpi; samsung; SM-G950F; dreamlte; samsungexynos8895",
"26/8.0.0; 420dpi; samsung; SM-G955F; dream2lte; samsungexynos8895",
"26/8.0.0; 560dpi; samsung; SM-G955F; dream2lte; samsungexynos8895",
"24/7.0; 480dpi; samsung; SM-A510F; a5xelte; samsungexynos7580",
"26/8.0.0; 480dpi; samsung; SM-G930F; herolte; samsungexynos8890",
"26/8.0.0; 480dpi; samsung; SM-G935F; hero2lte; samsungexynos8890",
"26/8.0.0; 420dpi; samsung; SM-G965F; star2lte; samsungexynos9810",
"26/8.0.0; 480dpi; samsung; SM-A530F; jackpotlte; samsungexynos7885",
"24/7.0; 640dpi; samsung; SM-G925F; zerolte; samsungexynos7420",
"26/8.0.0; 420dpi; samsung; SM-A720F; a7y17lte; samsungexynos7880",
"24/7.0; 640dpi; samsung; SM-G920F; zeroflte; samsungexynos7420",
"24/7.0; 420dpi; samsung; SM-J730FM; j7y17lte; samsungexynos7870",
"26/8.0.0; 480dpi; samsung; SM-G960F; starlte; samsungexynos9810",
"26/8.0.0; 420dpi; samsung; SM-N950F; greatlte; samsungexynos8895",
"26/8.0.0; 420dpi; samsung; SM-A730F; jackpot2lte; samsungexynos7885",
"26/8.0.0; 420dpi; samsung; SM-A605FN; a6plte; qcom",
"26/8.0.0; 480dpi; HUAWEI/HONOR; STF-L09; HWSTF; hi3660",
"27/8.1.0; 480dpi; HUAWEI/HONOR; COL-L29; HWCOL; kirin970",
"26/8.0.0; 480dpi; HUAWEI/HONOR; LLD-L31; HWLLD-H; hi6250",
"26/8.0.0; 480dpi; HUAWEI; ANE-LX1; HWANE; hi6250",
"26/8.0.0; 480dpi; HUAWEI; FIG-LX1; HWFIG-H; hi6250",
"27/8.1.0; 480dpi; HUAWEI/HONOR; COL-L29; HWCOL; kirin970",
"26/8.0.0; 480dpi; HUAWEI/HONOR; BND-L21; HWBND-H; hi6250",
"23/6.0.1; 420dpi; LeMobile/LeEco; Le X527; le_s2_ww; qcom",
// https://github.com/mimmi20/BrowserDetector/tree/master // https://github.com/mimmi20/BrowserDetector/tree/master
"28/9; 560dpi; 1440x2792; samsung; SM-N960F; crownlte; samsungexynos9810", "28/9; 560dpi; samsung; SM-N960F; crownlte; samsungexynos9810",
// mgp25 // mgp25
"23/6.0.1; 640dpi; 1440x2392; LGE/lge; RS988; h1; h1", "23/6.0.1; 640dpi; LGE/lge; RS988; h1; h1",
"24/7.0; 640dpi; 1440x2560; HUAWEI; LON-L29; HWLON; hi3660", "24/7.0; 640dpi; HUAWEI; LON-L29; HWLON; hi3660",
"23/6.0.1; 640dpi; 1440x2560; ZTE; ZTE A2017U; ailsa_ii; qcom", "23/6.0.1; 640dpi; ZTE; ZTE A2017U; ailsa_ii; qcom",
"23/6.0.1; 640dpi; 1440x2560; samsung; SM-G935F; hero2lte; samsungexynos8890", "23/6.0.1; 640dpi; samsung; SM-G935F; hero2lte; samsungexynos8890",
"23/6.0.1; 640dpi; 1440x2560; samsung; SM-G930F; herolte; samsungexynos8890" "23/6.0.1; 640dpi; samsung; SM-G930F; herolte; samsungexynos8890"
}; };
@NonNull @NonNull