yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] alekdavis:
Yay, the Chinese TWRP version loaded. Thank you so much!!!

UPDATE: Just finished the installation of lineage-16.0-20200106_082920-UNOFFICIAL-TBX704 using the Chinese version of TWRP end everything went smooth. The original instructions were a bit sketchy to me, so I followed the tutorial from https://www.youtube.com/watch?v=NFCrtD2prJ8. Everything went great. Installed all the apps I normally use and the only one missing from Google Play Store was Netflix, which I installed via the APK from the link at https://www.reddit.com/r/LineageOS/comments/bb1xiw/cant_find_netflix_on_the_app_store/. Haven't used the apps, yet, but so far, everything looks good. I had an issue with auto-rotation initially (it would auto-rotate at the 90 degree angle for some reason), but after the first reboot, it self corrected. I will post if I run into any other problems, but so far, TB-X704A looks good. I cannot believe how much snappier it is now.
[Thinkpad Tablet Android Development] dkoek:
deleted
[Thinkpad Tablet Android Development] Frankyg:
Prevent Apps from Closing

Hi,

Is there an option to 'pin' or prevent apps from closing automatically? When mutitasking I would like a specfic app to stay open, and other apps to be closed if required. I've switched OFF battery optimization for the app, but it's still being closed by Android as part of memory management. Any suggestions?

Thanks
[Thinkpad Tablet Android Development] Googole:
I have installed the latest build of Lineage OS 16 for Lenovo Tab 4 10 Plus but some thing went wrong.

After I installed the update, my tablet couldn't boot to Android, instead: My device booted into TWRP all the time.

I wiped it, and it worked.

But there was no Google apps, so I flashed Mind The Gapps, but after that: My tablet booted into TWRP all the time.

I tried to solve the problem by to wiped it, but it still booted into TWRP.

I have then something very dumb and that is that I wiped the OS, so the error: No OS installed, are you sure that you want to reboot?

So I'm panicking as ****, and I don't really know what to do.

Can someone explain me how to solve the issue?
[Thinkpad Tablet Android Development] Sparkrite:
When you say 'I wiped it' what EXACTLY did you wipe?
[Thinkpad Tablet Android Development] Googole:
I wiped data, Cache and Dalvik

And the stupid thing I have done is doing a advanced wipe and that is that I wiped Dalvik Cache, System, Data, Internal Storage, Cache, Micro SD and USB OTG.

I searched on Google and on a forum, I readed that it is a no brainer:

I have to download Lineage OS on a laptop, and copy it to my device.

After that I must boot into TWRP and flash the zip file and then it should work according to the forum.

Is this true?

If the answer is no, what should I do then?
[Thinkpad Tablet Android Development] apotsi:
I would restore it back with Lenovo Smart Assistant (https://support.lenovo.com/gr/el/downloads/ds101291) and start from the beginning.
[Thinkpad Tablet Android Development] Googole:
So you mean, I should install the stock ROM and from there, I should install Lineage OS again, right?
[Thinkpad Tablet Android Development] Sparkrite:
Exactly that, as encryption will have been compromised by the wipe/format.
[Thinkpad Tablet Android Development] Googole:
Okay, I understand it now

How do I actually install the stock ROM?

From the Lenovo Assistant?

---------- Post added at 08:25 PM ---------- Previous post was at 08:24 PM ----------

Okay, I understand it now

How do I actually install the stock ROM?

From Lenovo Smart Assitant?

How do I install GApps?

And should I install a kernel, or should I just install Lineage OS?
[Thinkpad Tablet Android Development] Sparkrite:
Use Lenovo Smart Assistant to get back to stock.

Then read the OP, as I strongly suspect you haven't.
[Thinkpad Tablet Android Development] Googole:
I understand it right now and know exactly what to do.

Thank you for your time and for your help.

My panic is completely over :laugh:
[Thinkpad Tablet Android Development] Googole:
I have readed the OP, but that is if I don't have TWRP.

But I have TWRP, so should I just copy Lineage OS and GApps to my device and flash them in TWRP?
[Thinkpad Tablet Android Development] xmetric:
fingerprint sensor

Weird issue: with latest ROM fingerprint sensor always quits reading a print at about 90% through and then complains it could not register the print properly. Tried it with three fingers.
[Thinkpad Tablet Android Development] bwguy:
Yeah I've just wiped and done a clean install on the latest rom and having the same issue with fingerprint scanner.

[MENTION=9613333]yener90[/MENTION] a clean install didn't help the PS4 controller issue either. Still reboots on usb or does nothing on Bluetooth.
[Thinkpad Tablet Android Development] acidsweet:
los on x704a

dude, I got a A version Tab4 10 plus. So what can i offer to get LOS works on x704a?
[Thinkpad Tablet Android Development] at5dmvi1:
TWRP on TB-X704V

After installing TWRP on my TB-X704V I am able to select Fastboot Mode and then Recovery Mode but I am getting into Lenovo default Android recovery menu. (Yellow text on top and then blue text with available options and then on bottom of the screen I can see green robot for less than a one second).) I dont have TWRP menu after successfully installing TWRP (fastboot flash recovery twrp.img/fastboot boot twrp.img). Fastboot mode says about Device State - unlocket.

Any advises?

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (25226 KB)...

OKAY [ 0.119s]

writing 'recovery'...

OKAY [ 0.628s]

finished. total time: 0.752s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot twrp.img

downloading 'boot.img'...

OKAY [ 0.096s]

booting...

OKAY [ 1.612s]

finished. total time: 1.713s
[Thinkpad Tablet Android Development] Tschumi:
Can't you choose "recovery" from the options of the fastboot menu? you can navigate using the volume keys and choose with the power button.
[Thinkpad Tablet Android Development] yener90:
Don't use the boot option. With that you can't flash ROMS.

Go to bootloader, then flash twrp with following command: fastboot flash recovery twrp.img

Choose with volume buttons recovery mode and boot to it.

TWRP will be started. Flash ROM then wipe data (not just reset, you need to format data, to geet rid of stock encryption of your internal sd)

Reboot, now you have LOS 16 :)
[Thinkpad Tablet Android Development] yener90:
I now added a little tutorial how to upload logs.

Guys I get 0 information from you.

And if the bug would appear on my side, I would inform you or fix it before releasing new build.

SELinux is a lil bit difficult to maintain as there are different variants of our tablets which require different actions on situations.

the fingerprint issue looks like SELinux permits creation of config files. I can reproduce this error and can fix it.

All other bugs mentioned here, is currently impossible for me to maintain.

PS4 controller is difficult to maintain. Although Pie supports the config files of PS4 controller doesn't mean, that the libraries we are using from Xiaomi Mi A1 supporting properly detecting it.

It looks like PS4 controller uses special kind of bluetooth identification, which also mades troubles on Linux systems

Maybe it's just some kind of permission error what I could fix, but then my xbox controller wouldn't also work.

I really don't know how to fix this.
[Thinkpad Tablet Android Development] bwguy:
It's all good Yener90. PS4 controller would have been a nice to have but not essential. Thank you for trying though! I do appreciate it.
[Thinkpad Tablet Android Development] xmetric:
Hi Yener, sorry for not including a logfile. Can the fix be applied by means of a command or do we need to wait for a new rom?

Your effort is much appreciated Yener, this is a brilliant piece of work.

Not your concern but does maybe somebody know how to stop the pixellauncher from crashing?
[Thinkpad Tablet Android Development] at5dmvi1:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (25226 KB)...

OKAY [ 0.129s]

writing 'recovery'...

OKAY [ 0.621s]

finished. total time: 0.755s

C:\Program Files (x86)\Minimal ADB and Fastboot>

Then I selected Recovery mode with volume buttons and select with Power button .

What is scare me that it is flash 25 MB in less than 1 sec.

Is this normal?

Do I have to wait after entering command fastboot flash recovery twrp.img?

It reboots in to orange Lenovo logo than it is just boot into tablet User normal mode.

After if I power off tablet and get back to the recovery mode I still getting Def Lenovo Android Recovery with boot options. No change.
[Thinkpad Tablet Android Development] yener90:
You could fix it if you disable SELinux (adb shell setenforce 0). Add your fingerprint, then launch (adb shell setenforce 1) or restart.

If you added one fingerprint, it doesnt make any troubles anymore.

Yes its normal and you don't need to wait.

If your system starts, it writes back the original recovery. that's pretty normal. The only strange thing here is that TWRP doesn't boot, although you selected it.

If I remember correctly, TB-X704A required a special TWRP. It will not work with my one.

Although wait for the next update, I will include TB-X704A. IF someone could show me which TWRP was used, so I could include it to the post :confused:

What happens if you boot from TWRP? I mean fastboot boot twrp.img?

Is there an error message? If it boots don't flash anything. It will break your system.
[Thinkpad Tablet Android Development] Sparkrite:
You're not alone on this as some posters here:-

https://xdaforums.com/thinkpad-tablet/general/twrp-root-tab-4-plus-tb-x704l-f-tb-t3664407

have reported similar problems.

I "talked" a few through the exact procedure, using the TWRP I use on my 'V' version but they experienced the same problem as you. But none of them came back to let us know whether they have been successful since.
[Thinkpad Tablet Android Development] KlaverBoer:
First of all i want to thank [MENTION=9613333]yener90[/MENTION] for all the hard work he is putting into this project. I really appreciate it very much. I have installed the latest rom directly on my X704F. The installation went fine and quick. So far i haven't run into any problems. Everything is working fine and smooth. I'm using this tablet in a case with a bluetooth keyboard and touchpad, that works also without any problems. All the apps i have installed so far are working great.
[Thinkpad Tablet Android Development] xmetric:
Thank you! For people trying this and failing with a permission issue, you must enable adb root access in system-> developer options, check adb root.

Then adb shell setenforce 1.
[Thinkpad Tablet Android Development] at5dmvi1:
TB-X704A

Yener90, do you need any log files from my tablet TB-X704V?
[Thinkpad Tablet Android Development] Sparkrite:
I understood you had the 'V' variant, hence my reply to you above.

As you previously posted..........

Unless of course you may have two.
[Thinkpad Tablet Android Development] at5dmvi1:
I made mistake by Copy/Paste without model correction. I have only one - V model.

---------- Post added at 07:29 PM ---------- Previous post was at 07:22 PM ----------

Does this version of LineageOS 16 will get any kind of Android system security update or to have latest update I will need to re-image tablet with newer Android LineageOS image?
[Thinkpad Tablet Android Development] yener90:
Update

2019-04-30

• fixed fingerprint bug caused by SELinux

• removed PS3/PS4 controller hid, as it doesn't work

• optimized performance

ROM

[MENTION=9897873]at5dmvi1[/MENTION] you can't log it, as its TWRP issue :)

Here are few users with X704V which got it working. I am sure, they can help you
[Thinkpad Tablet Android Development] at5dmvi1:
TB-X704V

Yener90, Should I try to use new TWRP on my tablet TB-X704V?
[Thinkpad Tablet Android Development] Flowah123:
Amazing ?

Just out of curiosity: are you still trying to adapt the ROM to Treble? ?
[Thinkpad Tablet Android Development] Sparkrite:
Yes, after fully wiping data.
[Thinkpad Tablet Android Development] Googole:
I understand it 100% now, thank you for explaining me how to save my device!

I really appreciate your help
[Thinkpad Tablet Android Development] Sparkrite:
You're welcome, glad to hear you're back up and running, don't forget the 'thanks' button.
[Thinkpad Tablet Android Development] Googole:
A last question: If I want download Mind The Gapps, there if different types of zips, one for ARM, one for ARM64 and one for X86.

I have a Lenovo TAB 4 10 Plus, but which zip must I download?
[Thinkpad Tablet Android Development] apotsi:
The ARM64 one
[Thinkpad Tablet Android Development] Googole:
Okay, thank you
[Thinkpad Tablet Android Development] apotsi:
You are most welcome. Don't forget the 'thanks' button !!! :D
[Thinkpad Tablet Android Development] Googole:
Should I use fastboot mode if I flash the Stock ROM and then Lineage OS?

And should I do the setup process in the Stock ROM or should I immediately flash Lineage OS and GApps after I flashed the Stock ROM?
[Thinkpad Tablet Android Development] apotsi:
You should follow the instructions in the first post of this thread.
[Thinkpad Tablet Android Development] Googole:
I understand it now
[Thinkpad Tablet Android Development] Sparkrite:
I've lost count of the amount of times you have said that now. :)

But you keep coming back asking very basic questions.

There is a danger that it could be perceived, in certain circles, as being somewhat lazy,

especially seeing that it is clearly laid out in the OP and answered many many times throughout the thread.
[Thinkpad Tablet Android Development] Googole:
I have flashed the newest build of Lineage OS and GApps, but there is one problem left:

The devices is not going past the boot animation.

Every time I try to reboot it, I must draw the pattern and the boot animation comes.

This takes 5 minutes and after that it goes back to TWRP everytime.

I have searched online for this problem, and I have readed that someone wiped everything except USB OTG and Sdcard and after that reflashed Lineage OS and GApps and that it worked.

I have also tried that solution, but It didn't worked.

What I notice is that the problem was also there after I updated Lineage OS, so I strongly suspect that this is a bug that needs to be fixed in the next build.

What is the best what I can do?
[Thinkpad Tablet Android Development] Sparkrite:
No such bug exists.

Read/search the thread, that is the best advice I can give.
[Thinkpad Tablet Android Development] angry_goldfish:
You might have a broken gapps.

https://xdaforums.com/android/software/pa-gapps-continuation-t3098071/post81581419#post81581419

https://www.reddit.com/r/LineageOS/comments/ethlvr/warning_open_gapps_builds_20200122_23_24_25_26/
[Thinkpad Tablet Android Development] Googole:
I have flashed a older version with GApps, and wiped Cache and Dalvik Cache, and guess what: It worked!

After a long booting process it worked.

I updated it to the newest version and wiped Cache and Dalvik Cache and it worked too.

Now I have a working device running on the newest version of Lineage OS
[Thinkpad Tablet Android Development] matsca2m:
64gb tablet went 16gb after upgrade

My tablet had 64gb before upgrade to lineageos. After upgrade i only have 16gb. What have I done wrong?

My model is the 4g version with 64gb...
[Thinkpad Tablet Android Development] Googole:
Maybe Lineage OS thinks that the tablet is a different version.

Have you flashed the right ROM for your tablet version?

And is there more apps in your tablet?

Because if you have much apps, that means that you have less storage
[Thinkpad Tablet Android Development] matsca2m:
I have a TB-X704L Lenovo Tab 4 10 Plus ZA2R.

The version I have used is lineage_tbx704-userdebug 9 PQ3A. 190801.002 eng.codewo.20200106.092919 test-keys
[Thinkpad Tablet Android Development] michin81:
Working with 64GB storage version?

Hi guys,

is the ROM also working with 64GB internal storage version of Lenovo Tab4 10 Plus (wifi only)?

Thanks in advance :)

Micha
[Thinkpad Tablet Android Development] Sparkrite:
It is, yes.

And working very well too.
[Thinkpad Tablet Android Development] Sulphy:
Hey guys, Managed to get this bad boy onto my L version, and all is good! Thank you!!!

One issue i have, i use Yi Home to access my home wireless camera, and when i open the app, login, and then select my camera, it just closes. No error, no warning... nothing. The app is running on internal storage as there was a warning of running apps from my SD card.

Has anyone else had a similar issue, or could help me figure out whats wrong?

Massive appreciation for any help, otherwise, i will have to go back to stock, which worked fine... :)
[Thinkpad Tablet Android Development] lkthomas:
My Gmail app keep crashing, anyone have idea why?
[Thinkpad Tablet Android Development] Sulphy:
Think i read something a couple of pages back with similar issues, and seems installing an older version of Gapps seemed to work! :good:
[Thinkpad Tablet Android Development] lkthomas:
Found the issue, missing "Android webview", after install it from Google Play store, all working fine now.
[Thinkpad Tablet Android Development] Sulphy:
sweet, handy to keep that one in mind! thanks!
[Thinkpad Tablet Android Development] Sulphy:
*bump*
[Thinkpad Tablet Android Development] ammarr:
Probably a good idea to attach a logcat of the crash.
[Thinkpad Tablet Android Development] lkthomas:
Tried to flash Dobly module, no icon appear, any idea why?
[Thinkpad Tablet Android Development] Mata_Ratos:
Did you set Android policy as permissive?
[Thinkpad Tablet Android Development] Tirofog:
Use an earlier version of TWRP as specified somewhere in this thread.
[Thinkpad Tablet Android Development] lkthomas:
it works, thanks a lot. Wondering why the newer TWRP version doesn't work with Dolby zip flashing?

Remark: I flashed twrp-3.2.3-0-tb_x704l.img first then boot into TRWP and flash [MM-P]DDP-edit+by+repey6-20181123.zip
[Thinkpad Tablet Android Development] jfaheyfan:
Has anyone flashed a TB-X704N (Chinese Tab4 10+ with 4G) with this ROM, or any model with hardware code 71 (number in parentheses at the end of the serial number)? Thanks.
[Thinkpad Tablet Android Development] matsca2m:
It works good though my 64GB tablet can only access 16GB internal storage after flashing. I installed stock rom again and the I had 64GB. So i tried again with TWRP and lineage os and now only 16GB internal storage. Why doesnt TWRP format all 64GB?
[Thinkpad Tablet Android Development] Sparkrite:
OK, try this..........

Revert to Stock and then flash this version of TWRP.

Boot to TWRP and then use it to flash the ROM.

https://androidfilehost.com/?fid=1322778262903982748
[Thinkpad Tablet Android Development] giangdh:
I'm finding rom for my tablet (Smart Tab P10 TB-X705F), can I install this rom for my tablet :confused:?
[Thinkpad Tablet Android Development] eyeconic:
TWRP gets replaced with stock

I have a 704a. If I have to listen to that goddamned ATT jingle one more goddamn time I am going to launch this goddamned thing into a dumpster.

Here's what happening:

#sudo fastboot flash recovery twrp.img

Power off

Power on using up-vol+power

From the bootloader -> recovery

The goddamned thing does a full (SLOW) boot rather than entering recovery

Rinse - repeat -> stock recovery

Presumably every time it boots the custom recovery image is replaced with the stock image. Any ideas? Anyone?
[Thinkpad Tablet Android Development] Sparkrite:
AFAIK this has been addressed a few times within this thread, try a search..........

What's with this '#sudo' in the first command ?

Are you getting a message that the flash was successful ?

Also try not powering off after flashing but, after disconnecting from PC, select 'recovery' to boot to.
[Thinkpad Tablet Android Development] eyeconic:
Search on what terms?

The sudo is there because Linux requires a privileged user for access to devices via fastboot.

Yes, the flash is successful. The problem is that, from the bootloader, recovery gets mapped to reboot. Once the tablet is rebooted recovery is mapped to the stock recovery.
[Thinkpad Tablet Android Development] Sparkrite:
I don't know, try a few,:- flash, unsuccessful, stock , recovery etc................

I think it has precious little to do with mapping, as I'm sure you know, you must first boot into TWRP immediately after flashing, if you allow it to boot it gets overwritten by stock.

Have you tried different TWRP's ?

For example the one I have linked to above ?

Have you tried what I suggested in my previous post?

EDIT:- From memory I think people having trouble with the 'A' version used some Chinese version of TWRP, linked to within this thread.
[Thinkpad Tablet Android Development] eyeconic:
Still no TWRP joy

I have tried every conceivable combination of fastboot commands and button combinations. No matter what I do, from bootloader -> recovery causes the tab to boot and replace TWRP with stock recovery.

Moreover, there seems to be no way to get the stock recovery not to verify the signature.
[Thinkpad Tablet Android Development] akxak:
Disregard, it's a Tab A10 X304L and obviously there is no Lineage for that version.
[Thinkpad Tablet Android Development] Android.Sysop:
Hello yener90

Please can you update the LOS16 version (Security Patch).

The 16er version works fine, nothing is broken.

I use often the fingerprint, but she is no working on LOS17 - is not a option for me.

Thanks
[Thinkpad Tablet Android Development] yener90:
It is fixed so far I know.
[Thinkpad Tablet Android Development] freddienuxx:
Thx so much I have x704v us tablet version and this the only TWRP recovery that works and I flashed lineagos 16 and magisk everything is working perfect
[Thinkpad Tablet Android Development] Nuclear Blast:
yener90, thanx for you work.

Yestrday i flashed my Lenovo Tab4 10 Plus with LineageOS 16.0

There was one E1001 error during flashing lineage-16.0-20190812-UNOFFICIAL-TBX704.zip via TWRP 3.3.1-0, bit with the latest ROM (lineage-16.0-20200106_082920-UNOFFICIAL-TBX704.zip) everything went smooth.

Perfect ROM for very good tab.

Now i cannto understand how i live before with stock firmware.

Taking off my hat, sir!!!
[Thinkpad Tablet Android Development] torinXt:
Hey hey,

at first I'd like to thank you busy guys for developing this Rom. I rolled back this LOS16 from 17.1 because there are some points that I dont like at the current version of Android Q. The most important reason is the huge battery drain.

This built is very good. I dont have any issues with this. Performance is great, the battery lasts long time, fingerprint is working properly. Nothing to complain very stable and ready to use not only for testing.

With the right twrp recovery the dd+ is working easy.

But is it possible to update the safetypatch ?

I don't think the 17.1 is finalized.

Thank you in advance.
[Thinkpad Tablet Android Development] vigi82:
hi ,please can u share here link for the right twrp for flashing dolby digital ,also if possible dd+ zip file ,because i did try many and wont work on my model x-704f with LOS 16 12.08.2019 rom release ) - many thanks
[Thinkpad Tablet Android Development] jose_costa07:
Did anyone get Netflix to work in HD vor maybe FullHD? I got Netflix to work (Magisk Props Config) but the streams are only shown in SD.
[Thinkpad Tablet Android Development] PaTER:
Hi! I have no idea what's going on. I have successfully uploaded LineageOS 16.0 and LineageOS 17.1 to my X704F several times. But now, after a new attempt to switch from the official rom, neither WiFi nor Bluethoot works for me. And with no Lineage firmware.

I do everything as described, but just wifi and BT do not work. I've read everything and tried Chinese twrp, but nothing helps. Thank you for any advice.

I can return to the official ROM without any problems. Lineage uploads without any problems, only 16 and 17.1 do not have functional WiFi and BT.