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

TWRP website uses misplaced internal redirect for trlte downloads #931

Closed
CtrlAltCuteness opened this issue Apr 27, 2017 · 4 comments
Closed

Comments

@CtrlAltCuteness
Copy link

I try to download both the .img as well as the .img.tar but both instead download the page they were linked from with the filename that was linked to (first was tried with my ROM's browser).

Using Termux, I did the following, so-to-speak: $ file <filename> # stated as an HTML file $ # Then tried again $ wget <download-url> # stated file type was text/html

Device: Samsung Galaxy Note 4 (trltespr)
ROM: Old CyanogenMod nightly build (somewhere in 2015)

@nailyk-fr
Copy link
Contributor

You can't download with wget but only with browser.
See #625 (comment)

@CtrlAltCuteness
Copy link
Author

My outdated CyanogenMod build's stock browser got me the same file that wget retrieved.

@nailyk-fr
Copy link
Contributor

No problem for me trough browser. IIRC you need referer to get it working

nailyk@nailyk :) % file twrp-3.1.0-0-trlte.img                                                                                                                                                                                                                            /tmp
twrp-3.1.0-0-trlte.img: Android bootimg, kernel (0x8000), ramdisk (0x2600000), page size: 4096, cmdline (console=null androidboot.hardware=qcom androidboot.bootdevice=m)
nailyk@nailyk :) % hexdump -C  twrp-3.1.0-0-trlte.img | head                                                                                                                                                                                                              /tmp
00000000  41 4e 44 52 4f 49 44 21  b8 28 60 00 00 80 00 00  |ANDROID!.(`.....|
00000010  ce f5 49 00 00 00 60 02  00 00 00 00 00 00 f0 00  |..I...`.........|
00000020  00 00 40 02 00 10 00 00  00 c0 33 00 00 00 00 00  |..@.......3.....|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  63 6f 6e 73 6f 6c 65 3d  6e 75 6c 6c 20 61 6e 64  |console=null and|
00000050  72 6f 69 64 62 6f 6f 74  2e 68 61 72 64 77 61 72  |roidboot.hardwar|
00000060  65 3d 71 63 6f 6d 20 61  6e 64 72 6f 69 64 62 6f  |e=qcom androidbo|
00000070  6f 74 2e 62 6f 6f 74 64  65 76 69 63 65 3d 6d 73  |ot.bootdevice=ms|
00000080  6d 5f 73 64 63 63 2e 31  20 75 73 65 72 5f 64 65  |m_sdcc.1 user_de|
00000090  62 75 67 3d 33 31 20 6d  73 6d 5f 72 74 62 2e 66  |bug=31 msm_rtb.f|

@CtrlAltCuteness
Copy link
Author

I got it working somehow (I think XDA), but thanks anyways.

Closing as I assume "working as intended".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants