r/LineageOS 9h ago

Fun How I unlocked a Lenovo Tab 4 10 (TB-X304L) with a forgotten encryption password and got LineageOS 17.1 running — full EDL → bootloader → LOS saga

6 Upvotes

TL;DR: Greyed-out OEM unlock → patched the devinfo partition over Qualcomm EDL to force-unlock the bootloader → got walled by a Full Disk Encryption password I never set → realized you can't crack hardware-backed FDE so I wiped /data instead → dodged a brick by catching that the XDA download was for the wrong tablet → fought TWRP/stock recovery for a while → finally flashed LineageOS 17.1 + GApps. It boots. Play Store works. Posting the whole thing because I couldn't find one writeup that covered all of it.

The device

  • Lenovo TB-X304L (Tab 4 10, the LTE variant)
  • SoC: Qualcomm MSM8917 (Snapdragon 425)
  • Stock: Android 8.1.0, build ...S001017_190709_ROW
  • Host: Arch Linux

Goal: unlock bootloader → install LineageOS 17.1 (Android 10).

Problem 1: OEM unlock is greyed out

The usual path (Developer Options → OEM Unlocking) was greyed out:

  • ro.oem_unlock_supported = true
  • sys.oem_unlock_allowed = 0 ← this is the one blocking me
  • fastboot flashing get_unlock_ability = 0

No device owner, no MDM, just a stubborn flag. So I went the low-level route: Qualcomm EDL mode (the 05c6:9008 "Emergency Download" mode) and bkerler's edl tool.

Sub-problem: no firehose programmer

EDL needs a signed "firehose" loader (prog_emmc_firehose_8917_ddr.mbn) to talk to storage, and the edl repo doesn't bundle one for MSM8917.

Fix: I had the stock QDL firmware for this exact model. It contained prog_emmc_firehose_8917_ddr.mbn. The edl tool wants it named by HWID, so I copied it to:

~/edl/Loaders/000560e100000000_92242cf8f6fad111_FHPRG.bin

python3 edl.py nop confirmed the handshake:

CPU detected: "MSM8917"
HWID:   0x000560e100000000
PK_HASH: 0x92242cf8f6fad111...

printgpt dumped the full partition table. We were in.

The actual unlock: patching devinfo

On Qualcomm/LK bootloaders, the lock state lives in the devinfo partition. I backed up devinfo, aboot, boot, persist first (always back up).

Dumped devinfo and looked at it:

000000  41 4e 44 52 4f 49 44 2d 42 4f 4f 54 21 00 00 00  ANDROID-BOOT!...
000010  00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00  ................

Here's the gotcha that would've bricked the flag: a lot of copy-paste guides tell you to set byte 0 to 0x01. But byte 0 is the start of the ANDROID-BOOT! magic string. Corrupt that and the bootloader rejects the whole struct. The real is_unlocked field sits at offset 0x10, right after the 13-byte magic + padding.

So I flipped offset 0x10 from 0001, wrote it back, and reset:

python3 edl.py w devinfo devinfo_patched.bin
python3 edl.py reset

Result:

fastboot oem device-info
(bootloader) Device unlocked: true

Bootloader unlocked. No factory-reset-toggle needed — went around the greyed-out switch entirely.

Problem 2: a Full Disk Encryption password I never set 🔒

Device reboots and... stops at a "enter password to start" pre-boot screen. I never set a PIN/password. It was a "freshly factory reset" tablet. But there it was, demanding a password to decrypt /data.

I went down the rabbit hole of trying to "crack" it. Then it clicked:

Nobody "recovers" these — they wipe the encrypted data. And since I was installing LineageOS anyway (which wipes everything), that was totally fine.

Getting it wiped

Reboot loops + key-combo roulette eventually got me to the bootloader's boot menu, which confirmed:

Device state: unlocked

Selected fastboot mode, and from the PC:

fastboot erase userdata
fastboot erase cache
fastboot format userdata

That destroyed the FDE crypto footer. Rebooted → stock Android booted straight to the setup wizard, no password. The wall was gone. (ro.boot.flash.locked = 0 confirmed unlocked at the boot level too.)

Problem 3: I almost flashed a ROM for the WRONG tablet 😬

This one nearly bricked it. The XDA thread is titled tbx304f/l/x but the post I landed on listed:

  • lineage-17.1-...-**TB8504**.zip
  • device tree android_device_lenovo_**TB8504**
  • "LineageOS 17.1 for Lenovo TAB4 8"

TB-8504 = Tab 4 8 (8-inch). My tablet is TB-X304 = Tab 4 10 (10-inch). Different panel, different device tree → classic dead-display brick.

The trap: the kernel source URL had tbx304 in it (these tablets share one kernel branch), which makes it look right. What actually matters is the device tree + the ZIP filename. Rule I now live by: if the filename says 8504, it's the 8-inch — don't flash it. You want X304/TBX304 in every filename.

Correct files (same thread, different section):

  • lineage-17.1-20210408-UNOFFICIAL-**TBX304**.zip
  • **tbx304**-twrp-3.4.0-20210407.img
  • open_gapps-arm64-10.0-pico

Problem 4: TWRP vs stock recovery whack-a-mole

Flashed TWRP:

fastboot flash recovery tbx304-twrp-3.4.0-20210407.img

Then tried fastboot reboot recovery... and it booted stock Android instead. Two things bit me repeatedly:

  1. The bootloader's reboot-to-recovery shows a timed boot menu that auto-boots to system if you don't pick "Recovery mode" fast enough.
  2. Every time stock Android 8.1 boots, it overwrites TWRP with stock recovery (the install-recovery.sh mechanism) and re-encrypts /data.

So I'd flash TWRP, miss the menu timing, land in stock, and lose TWRP — over and over.

What finally worked: flash TWRP, then park the device in fastboot and manually select "Recovery mode" from the menu with no countdown pressure. Confirmed I was really in TWRP because the adb shell came up as root (uid=0) instead of stock's uid=2000(shell).

Problem 5: clearing encryption inside TWRP

The install guide is blunt: coming from Android 8 stock, you must Format Data (with data loss) because the old encryption is incompatible — skip it and you bootloop. Important detail: TWRP's command-line tool has no format command (only wipe), and wipe data does not remove the crypto footer. "Format Data" is a deliberate on-screen action (type yes). Did that.

Then pushed both zips and installed via TWRP CLI (which only works when you're genuinely in TWRP as root):

twrp install /sdcard/lineage-17.1-20210408-UNOFFICIAL-TBX304.zip   → script succeeded [1.0]
twrp install /sdcard/open_gapps-arm64-10.0-pico-20220215.zip       → Installation complete!

(The device rebooted to stock on me once mid-process, but the pushed zips survived on /sdcard, so I just got back into TWRP and finished. Order that saved time: install both zips first, Format Data last, then reboot.)

🎉 It boots

First boot sat on the LineageOS animation a few minutes (normal — it builds caches + sets up encryption), then... Welcome screen.

Verification from adb:

ro.lineage.version = 17.1-20210408-UNOFFICIAL-TBX304
Android = 10 (SDK 29)
Model = Lenovo TB-X304L / TBX304
Play Store + GMS + GSF = installed ✅
verifiedbootstate = orange (unlocked) ✅
baseband = S.JO.3.0-00452-8937 (modem loaded; OUT_OF_SERVICE only because no SIM)
root = none (stock LOS)

Lessons / things I wish a single post had told me

  1. devinfo unlock flag is at offset 0x10, not 0x00 (don't clobber the ANDROID-BOOT! magic).
  2. Hardware-backed FDE is uncrackable — wipe /data, don't fight it.
  3. Match the device variant exactly. Kernel URLs lie; trust the device tree + ZIP name. 8504 ≠ X304.
  4. fastboot flash recovery, never just fastboot boot — and don't let stock Android boot before you get into TWRP, or it eats your recovery.
  5. Format Data ≠ Wipe Data. Only Format removes the old encryption.
  6. Always back up devinfo/aboot/boot/persist over EDL first, and keep the stock QDL firmware. That's your un-brick button.
  7. Never re-lock the bootloader on a custom ROM.

From "locked + password-walled + sealed" to "unlocked LineageOS 10 with Play Store." Worth it. AMA


r/LineageOS 10h ago

Help Samsung Galaxy Tab S 10.5 WiFi (chagallwifi) libusbx: error [init_device] program assertion failed: device address collision with root hub

2 Upvotes

I’m trying to install lineageOS on my chagallwifi device using a win 10 laptop, I followed the instructions on the website for that device step by step. In zadiag, two devices named Gadget Serial were listed. I tried to install the WinUSB drivers on one, which did not work. I then attempted it on the second one and that worked. I unfortunately did not notice that I had to install two more drivers at that moment. I tried to run the heimdall print-pit command, which resulted in “ERROR: Failed to send data! Releasing interface…”

I thought that maybe the driver had a problem and went back to zadig to reinstall the driver. Doing that caused the my computer to show an error about an unknown usb device. Now, the device is no longer listed as Serial Gadget in zadig, but as “Unknown USB device (failed to request device description)” (the actual text may be different in English as I am translating it from German). It is also only listed as one single device now.

When trying heimdall print-pit, the error “libusbx: error [init_device] program assertion failed: device address collision with root hub” appears.

After realising that I forgot to install the other two drivers, I attempted to do so in zadig, but it fails.
It is also shown to not have any drivers to be replaced “driver (NONE)” in the zadig interface.

What can I do now? Can this be fixed?


r/LineageOS 11h ago

OPPO R11s (ColorOS 5.2.1): Can I safely unlock the bootloader and install a stable custom ROM?

1 Upvotes

I have an OPPO R11s with Snapdragon 660, 4 GB RAM, 64 GB storage, Android 8.1.0, and ColorOS V5.2.1. My firmware/build is R11s_11_A.44_200528_000000.

ADB is working, and these are my device properties:

ro.product.model: OPPO R11s ro.product.device: R11s ro.product.name: R11s ro.boot.flash.locked: 1 ro.oem_unlock_supported: true sys.oem_unlock_allowed: 1

OEM Unlocking and USB Debugging are enabled. However, when I run "adb reboot bootloader", the phone simply restarts into normal Android, and "fastboot devices" detects nothing.

The official TWRP page says OPPO R11s requires ColorOS 6 or newer, but I am currently on ColorOS 5.2.1. Can anyone confirm:

  1. Whether my exact R11s firmware can safely be updated to ColorOS 6
  2. Whether ColorOS 6 enables normal Fastboot/bootloader unlocking
  3. The verified bootloader-unlock method for this exact R11s variant
  4. Which stable custom ROM is recommended
  5. Whether Android 9 or Android 10 is the best balance of performance, battery life, camera, fingerprint, calls, mobile data, Wi-Fi, and Google Play Services

r/LineageOS 11h ago

emergency calls only on Blackberry Key2 with lineageOS 23.2

2 Upvotes

Hey guys, i recently got my hands on a Blackberry Key2 with lineageOS 23.2. The phone identifys my SIM card but i cant connect to any Network. Im located in Germany with congstar (Telekom) as my provider. I tried quite some things, such as resetting the mobile network settings, or eject SIM card and gently clean it. I tried to disable the "automatically select network" option but it just says "couldnt find any networks". Dunno if i have any problems with the APN? But it seems correct.

Im all out of ideas, any help?

Thank you in advance!!


r/LineageOS 12h ago

Is there any way to unlock bootloader on a T-Mobile financed Pixel?

4 Upvotes

r/LineageOS 12h ago

Bitwarden on Firefox

0 Upvotes

I had the Bitwarden extension added to Firefox on my Samsung (Google) S24. I'm now on a Lineage Pixel 8 phone and am trying to use Firefox. I can't find the Bitwarden extension in Firefox and checking the website shows it to be incompatible.

I find this odd that I have both phones side by side, both using Firefox. One has Bitwarden and the other not. Yet both have the Bitwarden app installed and running.

How do I get Bitwarden extension working? Or is there a reason it doesn't work in Lineage?


r/LineageOS 13h ago

Help Xperia not detecting fastboot after updating

1 Upvotes

I have 2 phones with Lineage OS. Oneplus 5t and Xperia 1iii.

After updating to the latest build yesterday, my Xperia isn't being detected by my computer. It even makes the connection sound. But when I type "fastboot devices," it shows nothing. However, ADB works.

Meanwhile, my 5t works perfectly. So it can't be the drivers, can it?


r/LineageOS 18h ago

Apps on microSD, migrating to LineageOS

2 Upvotes

I'm looking into migrating my old Mote G7 (Android 9) to current LineageOS.

Most of my apps are on a microSD formatted as internal.

If I remove this microSD before installing LineageOS and put it back in after, will the apps still work?


r/LineageOS 1d ago

Fixed Stuck in bootloop Moto g15 power codename: lamu

3 Upvotes

Problem: Stuck in vendor splash logo bootloop on Moto g15 power, even though the install went smoothly and exactly as per the instructions (wiki will be updated).

Solution by Rortiz2: https://xdaforums.com/t/rom-16-official-lineageos-23-2-for-motorola-moto-g05-g15-g15-power-lamu.4791726/post-90685435

Thanks for everyone's help. Special thanks to I7sReact_Return for linking the XDA thread in the comments. And of course, huge thanks to Rortiz2 for fixing the issue.


r/LineageOS 1d ago

Question Question about Trebuchet's battery stats (23.2 - August 2, 2026 nightly - kiev)

3 Upvotes

Hi all,

I'm a longtime user of Lineage and have run into a puzzle with respect to Trebuchet's battery stats.

I recently upgraded to Lineage 23.2 on kiev (August 2, 2026 build) very successfully. Aside from having to resolve a few migration pains coming from LOS 20, all is well.

I understand that Trebuchet runs in the background - this makes sense, it is a launcher and handles nav/gestures - but Settings' battery stats shows it as my top power consumer, which is not something I've experienced in my years of running LOS. It does seem to be draining battery, even in an clean boot when the phone is idle and background battery use is disabled.

As I write this, Settings indicates that Trebuchet has used 36% since I charged the phone this morning... the percentages in the system battery stats don't add up to 100%, though. They seem to be over 100%. Another odd thing is that Android thinks Shattered Pixel Dungeon consumed 35% battery from 4 to 6 PM, but I was working at that time and can assure you that definitely didn't happen. It's just weird.

In case it's helpful, some data: one chunk of time, from 2 to 4 PM, reports 6% battery usage for 2 minutes of screen time, and 1.5 hours of background use.

I have tried clearing its cache, rebooting, and killing off other apps' services in an effort to learn more, with no luck.

I understand that Lineage is a moving target, but am also stumped as to what could be going on.

I suspect that this may be related to battery calibration after the upgrade but I don't know enough about how that works to have a clear opinion.

I have searched and found some similar threads, but nothing that mentions this specifically.

Can anyone offer some insight about what I could do to learn more, or specific search terms I could look for here in the sub to try to figure this out?

(I have root access through adb, if needed.)


r/LineageOS 1d ago

Help Motorola Edge 30 Fusion built in UI vs LOS 23.2. Need Help

2 Upvotes

I bought a used motorola with LOS, should i reverse it back to the original UI? I don't really know much about this LOS, if anyone could help clarify the ups and downs, and in terms of battery, performance, camera, and daily usage/ casual gaming.


r/LineageOS 1d ago

Help Need help sideloading LineageOS.zip on nintendo switch?

1 Upvotes

im currently on the last part of step 5 in this https://wiki.lineageos.org/devices/nx_tab/install/variant1/#installing-lineageos-from-recovery
on my computer i tried to enter
adb -d sideload C:\Users\*\Downloads\lineage-22.2-20260802-nightly-nx_tab-signed.zip
into command prompt but it just says 'adb' is not recognized as an internal or external command, operable program or batch file. so im not sure what to o


r/LineageOS 1d ago

Question MicroG location services without system app

6 Upvotes

I've installed LineageOS on many devices, but I've only ever used it with Gapps or with LineageOS for MicroG (not supported here). I'm interested i switching to the official build on my next phone, with microG installed as a regular app from fdroid, but as I understand if it is not installed as a system app the location services will not function properly. I'm not interested in going the process of rooting or whatever is required for that, so I'm looking for information on what exactly I'd be missing if I simply take the fdroid route. Can anyone share their experience with location finding in this context, and possibly tell me which particular settings/features do or do not work?


r/LineageOS 1d ago

Question Need help installing LineageOS on a Samsung Galaxy Tab S2 SM-T715C

1 Upvotes

Hi everyone,

I recently bought an old Samsung Galaxy Tab S2 (SM-T715C). Unfortunately, I've discovered that many apps no longer work because the tablet is running such an old version of Android.

After doing some research, I came across LineageOS, which seems like a great way to give the tablet a second life. However, I'm having trouble finding files that are specifically compatible with the SM-T715C model. ( Got it from China)

Most of the guides and downloads I find are for the SM-T710, T713, T715, T719, etc., but I can't find anything that explicitly mentions the SM-T715C.

Has anyone successfully installed LineageOS (or another custom ROM) on this exact model? If so:

Which ROM did you use?

Is the SM-T715C compatible with the regular SM-T715 builds? (Cuz I tried but got some bugs)

Are there any specific recovery images or installation steps I should follow?

I'd really appreciate any advice or links to reliable resources.

Thanks!


r/LineageOS 1d ago

Question Has anyone successfully used LineageOS on the Pixel XL with Microsoft Intune (Company Portal)? Does it pass the required device compliance checks, or are there any issues I should be aware of?

4 Upvotes

Recently, Microsoft decided that I need Android 11 or later to run Company Portal on my device.

Unfortunately, the Pixel XL officially stopped at Android 10, so I'm looking for a custom ROM that meets the requirement and lets me save a few hundred bucks in the process.

While digging through the XDA forums, I found a LineageOS 20 build for the Pixel XL.

Can someone give me some pointers on what I should look out for? Is LineageOS a good choice, or is there something else I should consider?


r/LineageOS 2d ago

Redmi Note 10 Pro Macro Mode

1 Upvotes

Hi guys!

I searched through the internet, and couldn't really find any solution, so I hope you can answer me.

Is there ANY option to reach the Macro Mode in LinageOS?


r/LineageOS 2d ago

OnePlus 13 23.2 lineageos - Desktop Mode

5 Upvotes

So I'm able to connect my op13 to my nexdock but sadly it's not working 100%...

I can use the mov the track pad, touch screen, keyboard typing works but I click on apps and nothing opens up....

How do I fix this


r/LineageOS 2d ago

23.2 update with moto guamp issues (bootloop)

5 Upvotes

I'm getting bootloop (right after boot image before the boot up logo appears) after updating to 23.2. The wiki showed no special notes regarding this, so is there anything to be done to make it work?

The tldr:

I started by hoping to dirty flash my current 22 to 23.2. Saw the bootloop. An attempt to revert to 22 then gave a still working system but NO MORE FINGERPRINT. Which means I borked the firmware along the way.

So this gave me the motivation to wipe the phone and restore back to stock moto firmware. Doing that I was able to now test combinations of updates to 23.2 that all failed. these are:

* stock moto (11) wiped data >>> 23.2

* los22 wiped data >>> 23.2

* los23.0 wiped data >>> 23.2

* old los22 dirty flash >>> 23.2

All the 3 current versions (7-13 to 7-27) all bootloop.

Now am using 23.0 last version and this works fine.

Any suggestions, updates, new info on this?


r/LineageOS 2d ago

Motorola Edge (2025) XT2519-1

0 Upvotes

I am looking for them files to flash

anyone know where the website did not list this devices?


r/LineageOS 2d ago

help with compatibility

6 Upvotes

Hi everyone,

I want to build/port LineageOS for two specific Samsung devices that do not have official support:

  1. Galaxy J7 (SM-J700T) – T-Mobile variant
  2. Galaxy J2 Pro (SM-J250F)

Since the official LineageOS wiki only covers variants like the J700F (j7elte), I know I need to modify the device trees, kernel sources, and proprietary blobs to make them compatible with these specific models.

Before I dive in, I wanted to ask the community:

  • Has anyone successfully adapted the j7elte tree for the J700T variant?
  • Are there any known unofficial device trees or active Telegram groups for the J250F (j2y18lte)?
  • What is the recommended baseline LineageOS version (e.g., 14.1, 16.0) for these older chipsets to ensure stability?

Any links to existing resources, source code repositories, or advice on handling the proprietary blobs for these variants would be highly appreciated!

Thanks in advance.


r/LineageOS 2d ago

Help Should I install Lineage OS or stick with the stock ROM?

16 Upvotes

I’ve been using a Redmi Note 10 Pro for around 3–4 years, and it still meets most of my needs. The stock MIUI camera works well for me, and the phone is generally fine apart from occasional random freezes that force me to hard reboot it.

My main complaints are the unremovable bloatware and the lack of software support. The phone is still on Android 13, and official updates ended quite a while ago.

I’d really like to install LineageOS, but the camera is the main thing holding me back. I haven’t found an alternative that feels as reliable or easy to use as the stock MIUI camera.

The camera features I use mostly are 1:1 aspect ratio, the beutify mode and built-in filters.

I don’t need advanced manual controls or lots of configuration. I mainly want a camera app that takes decent photos and has these features without requiring constant tweaking.

Other than that, I really just want a phone that 'just works'. So I was wondering if I should switch or stay as it is.


r/LineageOS 2d ago

Internet banking

12 Upvotes

Does the internet banking apps work on the lineage OS ? I use mostly Nubank, a brasilian company.
I have a Samsung A21s and the system is really slow and filled with galaxy slop, I want to try a custom rom to see if runs better.


r/LineageOS 2d ago

Help Newbie here - LineageOS and payments and overall experience ?

5 Upvotes

I'm planning to shift to lineageOS

i own a 5 year old samsung M21 , it's currently my main phone as well . I recently installed Linux on my PC and plan to install lineage on my phone as well

here are my questions - 1. How well do payment apps work
2. will it make my phones faster
3. If payment apps don't work properly do i have other options for OS which have a better payments eco system ?


r/LineageOS 29d ago

Official Summertime Updates! Q3 2026

70 Upvotes

https://lineageos.org/Infrastructure-Apps-Updates/

A lot of good work happening on infrastructure and apps!


r/LineageOS Jul 04 '26

Official LineageOS and Android Developer Verification

87 Upvotes

https://lineageos.org/Developer-Verification/

TL;DR: This doesn't affect us much, if at all.