Skip to content

Instantly share code, notes, and snippets.

@Nithanim
Last active July 29, 2023 21:48
Show Gist options
  • Save Nithanim/a345d6584f557baebc74d8859c54baf8 to your computer and use it in GitHub Desktop.
Save Nithanim/a345d6584f557baebc74d8859c54baf8 to your computer and use it in GitHub Desktop.
Detailed Guide for LineageOS 17.1 on Samsung Galaxy Tab S (SM-T805)

This guide is based on the work of https://forum.xda-developers.com/t/rom-unofficial-10-lineageos-17-1-for-samsung-galaxy-tab-s-sm-t700-sm-t705-sm-t800-sm-t800-sm-p600.4270943/ Just a tiny bit more detailed. You can adapt it for the other devices mentioned there. Please make sure that you always download and use only files specifically for your device (never close-enough!).

As always: THIS WILL VOID YOUR WARRANTY AND I AM NOT RESPONSIBLE FOR ANY DAMAGES! YOU ARE DOING THIS AT OUR OWN RISK. ADDITIONALLY ALL YOUR DATA WILL BE DELETED IN THE PROCESS!

Preparation

Firmware

WIP

Update to latest Firmware.

Basiacally go to https://samfrew.com and use the model search on the right. (For SM-T805: https://samfrew.com/de/model/SM-T805/.) Select you country.

You are then presented wiht a list of Firmware versions. In the best case the newest matches the one that the stock rom (the original OS on your device) shows in the settings menu. If not, you can try to update the device via it integrated updater.

If that doesnt work you could either try without firmware update.

Alternatively you can downloaded the newest firmeware manually. Either via https://samfrew.com or one of the firmware downloader tools like samfirm.js.

Example https://github.com/jesec/samfirm.js: It requres node to be installed but you can use it under an unprivileged user by installing it with npm i samfirm. You execute it with npx samfirm -r <REGION> -m SM-T805 where you replace <REGION> with the region-code you can see on samfrew.com website earlier. (Also replace the device name if you follow for a different device.)

You get 4 files,starting with AP, BL, CP, and CSC. These correspond to the flash-buttons in Odin (We donwload Odin later. You can read ahead if you need it here already.). So - theoretically - you would just flash them and be done. I have NOT done that since I was already on the latest firmware so I can'T help you here.

Downloading

First and foremost, you will need Odin. Since no version and download url is mentioned anywhere, https://forum.xda-developers.com/t/patched-odin-3-13-1.3762572/ looked most trustworthy. I used the oldest version, Odin3_v3.13.1.zip.

Odin is only for flashing a custon recovery, like TWRP which is then used to flash LOS. You can get TWRP from https://twrp.me/Devices/Samsung/ or more specifically https://twrp.me/samsung/samsunggalaxytabs105lte.html. You can find the downloads under "Download Links" (https://eu.dl.twrp.me/chagalllte/). I used twrp-3.5.2_9-0-chagalllte.img. Maybe .tar works too.

Also get a build of LOS itself, like the one from the mentinoned tutorial in the beginning: https://luis-builds.de/downloads/lineageos/misc/ I don't know what crDroidAndroid is. I downloaded lineage-17.1-20211011-UNOFFICIAL-chagalllte.zip and its .md5sum.

I you want Google stuff, go to https://opengapps.org/ and select Platform: ARM (not 64) and Android: 10 (or what you cursom ROM is) For Variant it is basically "how many Google you want". I am still not sure what to select. (aroma works flawlessly on SM-T805)

In case you want to root your device, also download Magisk from https://github.com/topjohnwu/Magisk/releases. From the newest relese go down to "Assets" and then downlaod the Magisk apk. (At time of writing, the ewest release was https://github.com/topjohnwu/Magisk/releases/tag/v23.0 and the apk Magisk-v23.0.apk.)

Moving data

The LOS package and gapps (and Magisk) need to be accessible for TWRP to be able to flash it.

You basically have two choices:

  1. Move the required data to the internal storage
  2. Use a USB flash drive

Internal storage

Upload the data to the internal storage of your device. You could do that via ADB or via the USB file transfer.

SM-T805 stock rom only supports MTP which apparently corrupts large files sometimes was written somewhere. I did not encounter that but it does not hurt to download the files again after uploading and check sha256sum to be equal.

Flashing

Downlaod mode

Bring you device in download mode.

You can use adb via adb reboot download. Buttons seem to be "Power button + Volume Down + Home button" (https://www.hardreset.info/devices/samsung/samsung-t805-galaxy-tab-s-105-lte/download-mode/).

(In case you want to know: Yes, it is fine to initiate download mode on one PC and then connect it to another for Odin, e.g. in case you are on Linux.)

Odin

Open Odin. Check in the Log on the left if there is one entry that says "added". If there is none, your device was not recognised. Disconnect and reconnect your device. If that does not help:

  • try another USB port
  • don't use USB extension cables
  • use the original cable of the device
  • use a port on the back of the computer directly on the mainboard, not in the front of the case

If you have an unstable connection, do NOT attempt to flash!

If everything looks alright, click on the "AP"-button and select the TWRP file. Click on the second tab (Options) and uncheck "Auto Reboot" (allows us to take our time and not rush things).

DO NOT TOUCH ANYTHING ELSE!

When you are ready, press "Start". Flasing TWRP should only take a couple of seconds.

You can now disconnect the device. Now you have to be careful (and quick) so read beforehand:

Exit download mode by holding "Power + volume down" (the one nearest to the powe button) for like 7 seconds (yes, a long time!).

Directly after, switch to "Power button + Volume Up + Home button". This might not be 100% necessary but bettersafe than sorry. In any case, keep pressing "Volume Up + Home button" at all times, thisdoes not hurt.

A big battery might appear if youare still connected to the PC.

If nothing happenes, shortly release the Power button and then immediatly press it agian. You might finally see the screen turn on (though in black).

It does not hurt to keep holding all buttons (incl. Power).

If the TWRP logo appears you were successful and release all buttons.

If you see the animated samsung logo, you failed. Don't feel bad, I had that multiple times. The problem though is, that it now boots the stock rom again which overwrites TWRP wich we just flashed. You will have to start over with flashing TWRP agian.

WIP

backup stock rom

Broken play services:

  • Download apk compatible with android 10, arm, (nodpi)
  • unlock develoepr options
  • enable adb debugging + root debugging
  • adb root
  • adb remount
  • copy apk into /system/app
  • chmod 644 this apk
  • reboot
@friedam63
Copy link

friedam63 commented Feb 14, 2023

Hello,
the instructions worked well for my Galaxytab S 10.5 with LTE ( chagalllte ). I have always used the latest files. Only with the GAPPS did only the MINI version work for me, because the larger ones got error code 70 - the space provided for the Gapps is smaller than the file to be installed. Maybe it will help someone.
friedam63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment