yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] Zathu:
Anyone else seeing constant Bluetooth crashes on a tb8704v? I get "Bluetooth keeps stopping" pop-ups as soon as I try to turn it on. I'm getting it in both 202006101 from OP and 20200607 from lancebuks.

Here's my full log: https://pastebin.com/6TK7hKiX

And here's ramdump_bt_state_2020-06-08_14-27-11.log:

Primary Reason for SoC Crash:SOC init failed during patch downloading
Secondary Reason for SoC Crash:Default at time :Mon Jun 8 14:27:11 2020
TS System 00:00:00:000- TS kernel 000:00000
18:27:11:060-HCI initialize rcvd from client type = 0
00:00:00:000-HCI close not rcvd from client
00:00:00:000-Get Version CMD not sent to SOC
00:00:00:000-Get Version CMD rsp not yet read
00:00:00:000-Get Version CMD RSP not rcvd from SOC
00:00:00:000:Soc Initialization not completed
BT SoC FW SU Build info: Not Known
Read thread not started
00:00:00:000:Diag not initialized
18:27:11:136-Controller Init status = 0
00:00:00:000-Init callback not sent
00:00:00:000-UART Flow On
00:00:00:000-UART Flow Off
00:00:00:000:Pre Diag deinit not started
00:00:00:000:Post Diag deinit not started
Health timer not started
Last health stats info:
00:00:00:000-Last HCI cmd from stack
00:00:00:000-Last sequence num
00:00:00:000-Writing FD to SOC
00:00:00:000-Received FC from SOC
00:00:00:000-Received FD from SOC
00:00:00:000-Writing FC to SOC
00:00:00:000-Writing FE to SoC
00:00:00:000-Received FE from SOC
00:00:00:000-Pre stack event callback
00:00:00:000-Post stack event callback
00:00:00:000--Pre stack ACL callback
00:00:00:000--Pre stack ACL callback
00:00:00:000--Pre select callback
00:00:00:000--Pre select callback
00:00:00:000-UART Clock on
00:00:00:000-UART Clock off
00:00:00:000-last tx packet

Actual last TX pkt len = 0
00:00:00:000-last rx before ssr

Actual RX pkt len before SSR = 0
00:00:00:000-last rx packet

Actual last RX pkt len = 0
00:00:00:000-Wakelock :: Acquire
00:00:00:000-Wakelock :: Release
PC address of FW crash: 0x00
[Thinkpad Tablet Android Development] Ecthelion3:
Also thanks from my side for the updated TWRP version. For months I always had to use the Universal Disable Force Encryption zip to install a custom ROM. And this seemingly did not work with LOS 17.1. It looks like this was only necessary because the format data I executed did not work properly. Now, after running a format data from Lance's version, it looks like the data partition was really formatted. In any case I can now install LOS 16 or LOS 17.1 without using the Universal Disable Force Encryption zip :).

---------- Post added at 09:13 PM ---------- Previous post was at 09:12 PM ----------

Having the same problem.
[Thinkpad Tablet Android Development] ashu.droid:
I am on the previous build which had may security patch so how do I update it? Which things I have to wipe before installing this newer version please explain in detail.
[Thinkpad Tablet Android Development] WiteWulf:
You can "dirty flash" a minor version update, no need to wipe anything before installing:

- restart your device in TWRP recovery mode

- use adb to push the update file to local storage on your device (or download it before rebooting directly on the device, up to you)

- install the update

- wipe cache and dalvik

- reboot into system

The last reboot into system will take a little longer than usual as some files are moved into place.
[Thinkpad Tablet Android Development] mistersixt:
Same here: as long as I have the power supply connected the version 20200607 from lancebuks is running fine, when disconnecting the power supply the tablet reboots straight away into TWRP (also have version TB8704F). Any help is welcome.

Kind regards, mistersixt.

[edit]I can confirm that version 20200601 from highwaystar_ru is not having the above mentioned issue[/edit]
[Thinkpad Tablet Android Development] lancebuks:
That's strange so the newer build that I uploaded only works if the power supply is connected with the TB8704F? I have the TB8704X and am not getting this issue. All I did was resync the repo after the LOS team merged with Android 10.0.0 Release 37 (QQ3A.200605.001)

Is there anyone with the TB8704X that's experiencing this problem?
[Thinkpad Tablet Android Development] mistersixt:
Exactly: when starting the tablet without the power supply connected, the device boots up, and a few seconds after the home screen is displayed the tablet shuts down again (like if the tablet "thinks" that the battery was empty or something). When having the power supply connected the tablet boots and works fine with your version... but unplugging the supply brings down the tablet instantly (displaying "Shutting down" or something similar)... and reboots directly into TWRP afterwards. And with version 20200601 everything is fine. Very odd.

Kind regards, mistersixt.
[Thinkpad Tablet Android Development] dahawthorne:
Nope. I've just rebooted my TB8704F and, as usual, it boots straight into the normal system UI. Either you genuinely have a dying battery or your clean flash wasn't exact. Presumably you wiped and formatted before installing the new version? I'm not saying that my installation was pain-free (see post 55 just above), but it works perfectly for everything that I use.
[Thinkpad Tablet Android Development] turiato:
I see there are at least 3 people having the same issue with TB8704F.

we have not a dying battery since it works fine with LOS 17.1 20200601 or LOS 16.

I have tried both a dirty flash and a clean flash wiping everything and formatting data. The result is always the same.
[Thinkpad Tablet Android Development] WiteWulf:
After initially installing 17.1 on my TB87094F, and subsequently lancebuks' update, I never observed this problem. Last night, however, my tablet locked up and I held down the power button to force a reboot and it went into this exact same loop that others are observing. Each reboot would put me into TWRP, when I selected reboot into system I would get the Lenovo logo, then the Lineage loading screen and PIN/pattern unlock, then it would reboot again and go back to TWRP. I did this three times, then connected power (nb. cable connected to an AC adapter, not a computer) and rebooted again and it booted straight into the system properly.

I definitely have no problem with my battery.
[Thinkpad Tablet Android Development] dahawthorne:
In that case I'm as baffled as you. The only thing I can suggest - did you use the TWRP 3.2.3 on the OP or [MENTION=4567848]lancebuks[/MENTION] newer TWRP 3.3.1? I'd copy the link, but I'm having trouble tracking it down.
[Thinkpad Tablet Android Development] WiteWulf:
I'm using lancebuks' TWRP 3.3.1-0 as it was the only one that would reliably unlock the encrypted partitions on my device.
[Thinkpad Tablet Android Development] mistersixt:
I am also on TWRP 3.3.1-0, and my battery was always fine with LOS 16 (and still is with LOS 17.1 20200601).

Something seems to be broken in the other version unfortunately, maybe I get a logcat tonight.

Kind regards, mistersixt.
[Thinkpad Tablet Android Development] lancebuks:
Hi - the links to my twrp are listed on this thread
[Thinkpad Tablet Android Development] WiteWulf:
If anything, to be honest, I've felt that battery life is better under 17.1 than it was on 16.0
[Thinkpad Tablet Android Development] lancebuks:
hopefully this is something that [MENTION=7737930]highwaystar_ru[/MENTION] can fix. All I'm doing is syncing to his sources :confused:
[Thinkpad Tablet Android Development] WiteWulf:
A little tinkering this morning: I manually rebooted my tb8704f on 17.1 (@lancebuks 20200607 build) and it went into TWRP with something I've not noticed before in the log: "RescueParty"

Selecting Reboot->System from within TWRP rebooted the device, got the Lineage boot animation followed by another reboot and back to TWRP and "RescueParty"

Connecting the device up to a power source via USB and rebooting again got me straight into the OS properly.

Definitely something wierd going on here. The device is mnostly stable while it's loaded into LOS, but any reboot requires it be connected to power. This is like the tethered iOS jailbreak days ?

Question: can I dirtyflash *downgrade* back to [MENTION=7737930]highwaystar_ru[/MENTION]'s 20200601 build, or do I need to clean install to downgrade?
[Thinkpad Tablet Android Development] lancebuks:
I compiled a freggin tethered LineageOS? I am so sorry to all :silly:
[Thinkpad Tablet Android Development] mistersixt:
Downgrade dirtyflash worked fine on my device.
[Thinkpad Tablet Android Development] WiteWulf:
Okay: dirty flashed back to 20200601 and it's going to TWRP with "RescueParty" every time, now, regardless of whether it's connected to USB power or not.

Time to start again, I think ¯\_(ツ)_/¯
[Thinkpad Tablet Android Development] DarkwaterV2:
I'm a little confused, which DFE can we use on this device (or, specifically, my TB-8704X)? Looking for it to speed mine up.
[Thinkpad Tablet Android Development] Ecthelion3:
The Universal Force Encryption zip (see https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389) can be used to disable the forced encryption if the data partition cannot be formatted correctly via TWRP. I don't think it will speed up anything. And it may be that it does not work in conjunction with LOS 17.1 for the TB-8704X/F. At least for me it did not work. For LOS 16 I was using the zip because - unknown to me - the format data that I did with TWRP 3.2.3 did not work. Then the Universal Disable Force Encryption zip was the only way I found to install LOS with Gapps. With Lance's corrected TWRP 3.3.1 the format data works and disabling encryption through the zip is not necessary.
[Thinkpad Tablet Android Development] DarkwaterV2:
Hold up, how does not encrypting the tablet's data not speed it up? It saves time decrypting whatever it needs, right?
[Thinkpad Tablet Android Development] Ecthelion3:
If you think that it's noticeable, then just give it a try.
[Thinkpad Tablet Android Development] dahawthorne:
Maybe in theory. In practice without electronic measuring instruments I doubt you'll notice any difference. You may imagine you do, but even with a side-by-side test the difference would be unnoticeable. It's the placebo effect in action - you put effort into avoiding encryption and therefore, regardless of real-world usage, you may imagine it's a lot faster, but any difference will be minuscule. Not worth worrying about.
[Thinkpad Tablet Android Development] DarkwaterV2:
Then I'll leave it. Thanks!
[Thinkpad Tablet Android Development] WiteWulf:
Factory reset and reflash of LOS 17.1 20200601, Open GApps and Magisk and I'm back in business again. Did the safetynet/fingerprint thing before logging into a Google account, as suggested, and doing a restore from cloud backup now ?
[Thinkpad Tablet Android Development] lancebuks:
lineage-17.1-20200610-UNOFFICIAL-TB8704

I'm not sure what happened to the last build there's a possibility that something got messed up during compile so cleared out the .ccache, there's a possibility that the LOS team was working on something when I synced last time, I don't know; so I synced the repo again and did another compile.

First I did a dirty flash by just clearing the cache and flashing the new build and gapps over it. I didn't experience any reboot to recovery issues.

I then ran another test by performing a factory wipe and wiping everything in twrp and starting over fresh. I'm still not experiencing any reboots to recovery.

Hopefully the problem has been fixed, if not then hopefully [MENTION=7737930]highwaystar_ru[/MENTION] can provide some help. Strange that it only seems to happen with TB8704F

Download
[Thinkpad Tablet Android Development] turiato:
Thank you,

I will test the new build this afternoon

Regards,
[Thinkpad Tablet Android Development] turiato:
Bad news,

ROM 20200610 also reboots to recovery on TB8704B.

coming back to 20200601.
[Thinkpad Tablet Android Development] lancebuks:
the only thing i can suggest is providing logs and see if [MENTION=7737930]highwaystar_ru[/MENTION] can help
[Thinkpad Tablet Android Development] WiteWulf:
Does it boot to system with power connected?
[Thinkpad Tablet Android Development] turiato:
No, Contrary to 20200607, the 20200610 version does not boot with power connected. i can see the lineage boot animation for a while but suddenly the tablet reboots to recovery.
[Thinkpad Tablet Android Development] lancebuks:
Is there anyone with a TB-8704X that's also seeing this issue? I'm wondering if this is only limited to the TB-8704F
[Thinkpad Tablet Android Development] venom04:
Hi, I'm on TB-8704X and last build works perfectly for me!
[Thinkpad Tablet Android Development] Zathu:
Can confirm that Bluetooth still crashes on 20200610 with the TB8704V.
[Thinkpad Tablet Android Development] climent:
Flashing boot image on TB-8704V

Instructions say I have to flash a boot kernel. How do i do that?
[Thinkpad Tablet Android Development] climent:
I think I found it: install --> install image --> select image --> select target (boot).

Fingers crossed while it looks like it is booting...
[Thinkpad Tablet Android Development] climent:
Yep, same here.
[Thinkpad Tablet Android Development] WiteWulf:
No problems with BT on TB8704F, FWIW. Use mine lots with bluetooth keyboard, headphones and gamepad on 20200601
[Thinkpad Tablet Android Development] ashu.droid:
Videos in whatsapp doesn't play and it takes a lot of time to load a video in gallery also. Does anyone has a fix to this problem??
[Thinkpad Tablet Android Development] venom04:
The same in Google photos, it would be great if someone will fix this bug! Thanks in advance
[Thinkpad Tablet Android Development] ashu.droid:
Yes this is also the issue which I forgot to mention. And please add a screenshot shortcut in qs tiles instead of power menu because it makes it difficult to take screenshot in hurry, also as my power button is wearing off it makes it more fragile. Thanks
[Thinkpad Tablet Android Development] venom04:
Hi, I found a solution for the video bug! You have to edit build.prop in /system by adb! Heres the link how to do this: https://www.theandroidsoul.com/edit-build-prop-without-root-using-adb-in-twrp-recovery/

Please note, the build.prop is located in /system/system !! You have to seach for "audio.deep_buffer.media" under section ADDITIONAL_BUILD_PROPERTIES and set from true to false. From now on video in WhatsApp; Google Photos, etc works like a charm :D
[Thinkpad Tablet Android Development] ashu.droid:
Please explain this process in detail I couldn't understand the steps and their synchronisation with the article in the link which you have provided. Thanks

---------- Post added at 07:48 PM ---------- Previous post was at 07:36 PM ----------

I have tried the rooted method and downloaded buildprop editor from play store and I located the audio.offload.video but their it was already set to false, please help
[Thinkpad Tablet Android Development] venom04:
Sorry, my bad! You have to search for another string:

Steps:

- Boot into recovery

- In recovery mount system

- Now connect with your pc

- Use this command for pushing build.prop to your pc: "adb pull /system/system/build.prop"

- Now edit build.prop and search for audio.deep_buffer.media=true

- Replace "true" with "false" and save

- Now use this command to write back edited file to your tablet: adb push build.prop /system/system/

then type

- adb shell

- cd system/system

- chmod 644 build.prop

That's all, reboot by using TWRP and test it!
[Thinkpad Tablet Android Development] ashu.droid:
I could not find the buil.prop file in the folder in which I am running adb fastboot after pulling the file successfully to the pc. Where should I search for the file?
[Thinkpad Tablet Android Development] venom04:
I'm using Linux, the file is located in my home folder! If you are using Windows I can't help, sorry!
[Thinkpad Tablet Android Development] ashu.droid:
I have now executed all steps successfully but the problem still persists. Any other solution? Any help will be greatly appreciated
[Thinkpad Tablet Android Development] venom04:
Please check with buildprop editor if the changes really applied! The tablet from my girlfriend (also LTE variant) works now, too!
[Thinkpad Tablet Android Development] ashu.droid:
Yes the changes are applied
[Thinkpad Tablet Android Development] venom04:
What model do you have? If you have also tb8704x, I can provide my build.prop you can test with!
[Thinkpad Tablet Android Development] ashu.droid:
Yes I have the TB8704X LTE veraion. If you have the file please provide me. Thanks
[Thinkpad Tablet Android Development] venom04:
See attachment!
[Thinkpad Tablet Android Development] ashu.droid:
I have replaced the build.prop file but nothing changed. Any help?

One thing that I was missing from beginning is that when I type ''adb shell'' command in command prompt it returns ''~ # ?[6n''. Any idea about this?
[Thinkpad Tablet Android Development] suhridkhan:
Great rom, thanks for the amazing work. I installed this in 2 of my family tablets. 8704V and 8704X, working fantastic on both. Specially the 8704V, with only 2gb of ram it was getting sluggish. Even on that the rom is awesome, the tablet is back to life again!
[Thinkpad Tablet Android Development] swieder711:
I am excited to upgrade my Tab 4 8 plus to LOS 17.1. I am currently on LOS 16. I am having a bit of trouble.

I updated TWRP to 3.3.1 and did a NANDROID. Also backed up all my Apps+Data to the Cloud via TiBU.

First I tried a default wipe (data, cache and dalvik) via TWRP and than flashed lineage-17.1-20200607. I did a reboot and the device booted, but quickly went back to TWRP. I then wiped data, system, cache and dalvik followed by flashing LOS17.1 and gapps. Same problem where the device boots up but within 5 seconds, it boots back to TWRP. I also tried FORMAT data, but same problem.

Do I need to wipe boot? I downloaded the LOS17 file again, thinking maybe it was corrupt. No improvement. I am currently restoring LOS 16 via TWRP

This feels l familiar. It has been awhile since I played around with this device. I dont see anyone else reporting this issue here. Any suggestions on what to try next?
[Thinkpad Tablet Android Development] WiteWulf:
Exactly what model device are you using? A number of us with the TB8704F have reported reboot loop issues with any release past higwaystar_ru's second release on 2020-06-01.

Any subsequent releases from lancebuks go into the bootloop on TB8704F devices.
[Thinkpad Tablet Android Development] swieder711:
I am on TB8704F and will go back to the 2020-06-01 release. THANKS!

Update: I installed the 2020-06-01 release and micro gapps. Now my TB8704F boots up and does not crash.

Now I just need to figure out why Wi-Fi wont turn on/stay on. Any suggestions would be greatly appreciated.

Update2: I still dont have Wifi. I went back and installed the old Lenovo OS and Wifi worked with it. Should I be wiping the Lenovo System OS before installing LOS17? I did format data before installing the new OS. I cant get too far without WiFi, so any help is welcome.

Update3: I restored a NANDROID back to LOS16 and everything seems to be working fine, especially Wi-Fi. I am not sure what I should try next. Maybe dirty flash of LOS17.1 over LOS16. I know that could be unstable. I could try wiping data, cache and dalvik on LOS16 b4 installing LOS17. Any suggestions?
[Thinkpad Tablet Android Development] huunn:
On 8704V,

1. BT doesn't turn on.

2. USB Type-C AC adapters with 5V~20V 45W output for don't charge the device. (They did with stock rom.)

Thanks for the port!
[Thinkpad Tablet Android Development] swieder711:
Along with my WiFi problem of not turning on/staying on, I was also getting a message that Bluetooth had stopped. I never got to the BT problem since I was stuck on WiFi. I tried resetting the network settings and doing a factory reset. No Good.

Can someone with a TB8704F that has working WiFi (and BT) outline the steps you took to upgrade? What OS were you on previously? What did you wipe before installing LOS17.1 (06-01-2020)? Did you install Gapps? Which Gapps package and in what order (at the same time as LOS or after an initial reboot)?

Since i can reliably restore my LOS 16 NANDROID via TWRP 3.3-1, I can do some testing and capture some logs if that helps and you have any suggestions.

Thanks

Scott
[Thinkpad Tablet Android Development] dahawthorne:
[MENTION=4239524]swieder711[/MENTION]

Since you helped me such a long time ago when I was ready to bin my TB8704F, it seems appropriate that I should try to help you in return - though I would have anyway... :)

As best I remember, I was on LOS 16. I did a full wipe, all partitions, formatted Data in TWRP (checking just now, it looks like the standard TWRP 3.3.1, not the one specially designed for this device), installed LOS 17.1, OpenGapps Pico, Magisk 20.4. TWRP starts by asking me for a password (duh...) but when I cancel it proceeds as normal.

I've been streaming BBC iPlayer & Netflix without problems, despite root, with no stutters or interruptions. I've just tried my BT earbuds, and they connected immediately and work, though I can't speak for the stability or longevity of the connection, since I normally just rely on the stereo speakers.

Hope this helps, if only to give you a bit of encouragement to keep trying, as you did for me. Thanks again for that, by the way.
[Thinkpad Tablet Android Development] WiteWulf:
I did the same, except I used lancebuks's device specific TWRP build, and have no problems with BT or WiFi and am using both regularly.
[Thinkpad Tablet Android Development] swieder711:
Thanks for the karma inspired info.

Can you be a little more specific about what you wiped? Did you wipe System or Boot? Or just data, cache and dalvik?

Did you reboot between installing LOS, Gapps and Magisk?

Lastly, Do you need to format data since you wiped it? I thought wiping also formatted. No harm in an extra format, just wondering.
[Thinkpad Tablet Android Development] dahawthorne:
I wiped only the partitions offered by TWRP, and I don't believe Boot is one of them. Just a total TWRP nuke to create an "empty" device. No intermediate reboots, just one by one flashing of ROM, Gapps, Magisk, then reboot. I did the advanced wipe of everything and then data format before the flashing. As you say, an additional data format can't hurt.
[Thinkpad Tablet Android Development] swieder711:
On my twrp advanced wipe screen I see the options shown below.

Shall I select to Wipe: Dalvik, System Data, Internal, and cache for wiping?

No wipe for Boot, microSd or OTG?
[Thinkpad Tablet Android Development] swieder711:
(deleted)
[Thinkpad Tablet Android Development] dahawthorne:
I don't think I've ever wiped boot, though I'm old and have a bad memory. You don't want to wipe OTG or MicroSD, since they may have things that you want (movies, TV, photos...). In fact, if you don't have them attached I'd be surprised if you can even select them.

Me. I'd wipe and format everything apart from boot - total nuke from space - then try installing ROM, Pico Gapps, Magisk. If it still doesn't work, then in desperation I'd also nuke boot and try again. Android has always seemed to me to be very resilient, and you can usually recover from most problems.

And bottom line - you're the guy who dug me out of my pit. You can certainly dig yourself out of yours. :)
[Thinkpad Tablet Android Development] hunnia41:
I have 9705f. Updated with dirty flash from 16. It works for me. Incl. wifi
[Thinkpad Tablet Android Development] suhridkhan:
Is there a way for a volume boost on this device with lineage?

The speaker volume feels somewhat lower on LOS compared to stock.
[Thinkpad Tablet Android Development] swieder711:
3rd time worked. Coming from los16, I wiped cache, Dalvik, system, data and internal storage (all twice). Than I formatted. Lastly, I installed los17.1 (06-01-20), gapps and magisk.

Device booted with no errors. WiFi and BT are working.

Thanks for the help.
[Thinkpad Tablet Android Development] dahawthorne:
Is that a misprint? LOS 16? Not 17.1? Anyway, I'm glad we're both up and running.
[Thinkpad Tablet Android Development] huunn:
Try bumping up EQ in AudioFX app's custom setting.
[Thinkpad Tablet Android Development] swieder711:
Typo fixed. Los 17.1