yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] Sparkrite:
Thanks for your reply.

1. I agree,

very

subjective though. I have found because I go to the trouble of flashing a rom I WANT to believe it is faster than stock and therefore I see it as such. But quite often upon actually running real tests on it I often find this is not the case.

2. I can usually achieve this by debloating.

3. Fully agree and would be the strongest reason I may flash it, but I find stock runs very well on it, just outdated.

Cheers.
[Thinkpad Tablet Android Development] ashus:
Getting rid of preinstalled software (debloating) is not just about space, but also security. Time and time again there are cases found where stock uninstallable software would send personal data to chinese servers or anywhere else without your consent. Even over unencrypted connections. Trying to remove some of those apps will break the system or cause excessive battery usage. I can rely on LineageOS being open source - there are only essential things.

Latest Android patches take care of the rest. After that you just need to be careful about permissions allowed using Trust.
[Thinkpad Tablet Android Development] Acel337:
Thanks for ROM development.

Will this work for the Lenovo Tab 4 8 plus TB-8704F / 8 inch version? Not sure what's the difference except screen size.

Prefer LineageOS over official.
[Thinkpad Tablet Android Development] bwguy:
This is great news but will it work on TB-X704L?
[Thinkpad Tablet Android Development] kriszg:
Hey, anyone had luck with gapps? I can intall it, but I get black screen when I try to set up a google account.
[Thinkpad Tablet Android Development] Tschumi:
Ι was just going to ask, what gapps are we supposed to use with this?
[Thinkpad Tablet Android Development] kriszg:
According the gapps app the system is android 7.0, but the twrp does not install it because gapps for 7.0 is wrong version. With gapps for android 8.1 I get black scrren only. If I download google services from apkmirror then google services keep FC every 5 seconds.
[Thinkpad Tablet Android Development] rorzer:
I'm running opengapps 8.1 arm64 pico package very successfully
[Thinkpad Tablet Android Development] kriszg:
Yes I tried that too, but the result is black screen and FC. :confused:
[Thinkpad Tablet Android Development] rorzer:
Did you flash opengapps straight after clean flashing the ROM, before rebooting?
[Thinkpad Tablet Android Development] kriszg:
That worked, thank you! :good::good::good:
[Thinkpad Tablet Android Development] yener90:
Nope, unfortunately its completely different.

Don't know, try it out. But before you do make a system backup. Maybe files will required for running TB-X704L.

[MENTION=1999961]about[/MENTION] System RW: i will look later into it.

The ROM comes with disabled diverity so you can do whatever you want in recovery. System will boot.

The magisk modul contains a file which should be in system folder. Maybe putting this file to system directly will mount it always RW.

I'm still working on the camera. Its much harder than expected guys. Today will be my last try. If that doesnt work, I really can't get it work then :rolleyes:

Next version I will disable some of the debug features, which should lead to a more better performance.
[Thinkpad Tablet Android Development] MiSSigNNo:
I'm in without issues yet, the basics are working as expected. Have not even tried the stock ROM, after unboxing, I unlocked the bootloader straight away and installed everything without hesitation, so I can't say if its better than stock Nougat.

For anyone that has had issues with Magisk and/or GApps, my installation order was:

1. Go into TWRP and full wipe: System, cache, dalvik, Data, Internal Storage

2. Install LOS 15.1 via TWRP, then wipe dalvik

3. Start into LOS 15.1 and configure the basics

4. Back to recovery

5. Install firstly Nano Gapps ARMv8 x64

6. Install secondly latest Magisk v19

7. Reboot and ready to go.

All is working great.

Not missing the camera at all, but I'm missing the Hall Sensor because it goes really well with my magnetic case.

By the way [MENTION=9613333]yener90[/MENTION] I have a question: what hindered you of going straightly to LOS 16?
[Thinkpad Tablet Android Development] lukaspieper:
Yener has already informed you that the target group of this rom are people with the device who are disappointed by Lenovo's update policy and are looking for a way out. Since you don't belong in the target group and enjoy the free aftermarket firmware, I hope you make an appropriate donation to the developer. I mean, you paid Lenovo for software you didn't use. A bit ironic, isn't it?

The device that served as the basis for this rom has no lineage 16.
[Thinkpad Tablet Android Development] MiSSigNNo:
Which is that device?

EDIT: Tracking the code it seems that it comes from the Lenovo Tab3 8 Plus that shares the same processor.
[Thinkpad Tablet Android Development] lukaspieper:
I find it impertinent that you don't even take a stand of the upper part of my post.

Look for the device yourself; don't always just take from others, contribute something yourself. That's what the open source community lives on.
[Thinkpad Tablet Android Development] rorzer:
I would love to make a donation to both you and to yener for your work that has brought life to an excellent piece of hardware that has gone unsupported by the manufacturer.

Unfortunately, the only donation option that I can find in XDA is buying ad-free, which seems is supporting XDA (also worthwhile) more than it supports either of you individually.

The OP has no link to do so, and I couldn't find one in your 14.1 thread either.

I'm very grateful for your work, and I would like to make a small donation. I thought it would be more polite, and more useful to the community, to ask in the public forum rather than by dm.

Thanks again
[Thinkpad Tablet Android Development] yener90:
[MENTION=2617299]rorzer[/MENTION] i will add a link :o

Good news guys, last important function is fixed:

Camera works now :fingers-crossed:
[Thinkpad Tablet Android Development] max_work:
i switched now my two tablets completly to this rom, great work. One was running stock and the other one was on LumenReapers version. Really awesome what you did [MENTION=9613333]yener90[/MENTION], also big thanks to [MENTION=9583233]LumenReaper[/MENTION].

Do you think dirty flash will work if you release a new version? Did anyone try it from the initial release to the second one?

By the way, regarding the gapps(pico)/magisk topic, i installed all together in one batch right after LOS in twrp, cleaned cache and it worked.

The only thing was that i had to install the magisk manager afterwards. If i remember correctly previously on stock the magisk manager appeared after installing magisk automatically. Just if someone is confused and thinks rooting did not work or so...
[Thinkpad Tablet Android Development] Tschumi:
Thanks yener, you rock. Installed and everything works great, better than stock already. Not really missing camera but it's nice that's getting fixed.

Would you please add a donation method? I bet there are people here who would gladly buy you a beer.
[Thinkpad Tablet Android Development] MiSSigNNo:
This is completely obnoxious in your behalf.

Could I choose not to pay for the software other than not simply buying this tablet? "Lenovo, please sell me the tablet without the Android part, I want to purchase other's ROM." This is not how things work.

I think you have completely lost the point of what Open Source means. You seem to be one of those guys that donates blood and suggests a little donation afterwards?

You may (or not) have probably used for one site of yours WordPress, which I have been helping on code for the past decade, and it never crossed my mind to ask for a donation for myself or any of my fellows. Not even, a donation for the whole project. Check the wordpress "get involved site": https://make.wordpress.org/. No donations asked.

Worst part is that this makes the whole thread offtopic, this is why I completely ignored your comment before you became displeasing.

Community is built by help in different areas of their users. From testing, to friendly support, to code improvements. Donations are fine for those, like you, that seem to be looking for some kind of profit hideously. Shame on you.

And please, don't feel bad if I don't answer you more in this topic because this is deriving harshly off topic for the real point of the thread: support for this great LOS port.

I'm even fine if a moderator removes this offtopic comment, because re-reading it I find its as annoying as yours and I still don't know why I'm writing it.
[Thinkpad Tablet Android Development] Sparkrite:
Do you know what, I'm finding myself largely in agreement with [MENTION=279833]MiSSigNNo[/MENTION] and I'll tell you why.

Many years ago, back in the days of the Commodore Vic/C64/Amiga I taught myself Assembly/machine code on these machines and spent literally countless hours writing many utilities for the good and advancement of its user base. Certainly not for monitory reward.

Reward came in completing what were often thought of "impossible" programs and slick routines. These I distributed via clubs and then new "Bulliten Boards" that were springing up and hosted by enthusiasts and fellow "coders". We NEVER looked for payment, recognition and appreciation were all we wanted.

I always thought (maybe naively ) that XDA with its many developers and smart coders would be the same. It was initially but unfortunately I see a change creeping in and believe me , it is not for the better. As more and more people look for "donations" it will stifle the hobbyist, who may well be a brilliant coder, from sharing his or hers experience and ideas.

This, by my way of thinking, is not what "Open Source" and its derivations was set up for.

Just my tuppence worth.
[Thinkpad Tablet Android Development] yener90:
Could you please stop about donations discussions?

Lumen just said it, because MiSSigNNo supported Lenovo. This project was completely against Lenovo.

My project target was to back up of lacking Lenovo support. My motivation was all the hate against Lenovo.

Now people like [MENTION=279833]MiSSigNNo[/MENTION] comming and supporting them just because of this project.

I'm sure Lumen feels the same. Now because of this Lenovo got more money now.

Nobody wanted any donations. If someone like to support my work, he can do it that way.

My target was no profit, just giving a smile to people who really got dissapointed from Lenovo.
[Thinkpad Tablet Android Development] Sparkrite:
Well said [MENTION=9613333]yener90[/MENTION] and apologies if I misunderstood re: wanting donations.

Now back to topic, is the latest link in the OP to your ROM the link to the version where the camera works, please?

TIA.
[Thinkpad Tablet Android Development] yener90:
Currently autofocus and Hdr are broken. Everything else works. Some apps using hdr as default causing force close. I need to look into it before release :rolleyes:
[Thinkpad Tablet Android Development] lukaspieper:
Yener, please forgive me one last post on this so that no one like Sparkrite get a false picture of me.

I appreciate your work on WordPress and your link says that we share the same idea of Open Source. This website is for developers, of course there is nothing about donations. Because, like you, I value contributing code more than money. But you will agree with me that WordPress.org is not free of the term "donation", because they have to live from something.

This is just wrong. First of all, I didn't ask for myself, I would never do that. In addition rorzer offered Yener and me a donation before I wrote the post you criticized and I will not include a donation link in my profile and I will not accept the donation because I developed LOS 14.1 primarily for my own use. I had no disadvantage by the publication, quite the opposite: Yener has joined in and now I use his rom. So I have already benefited from the publication of my work, so why should I ask for donations? That doesn't make any sense and also contradicts my values.

Even if I agree with you that my posts and your post are off topic, I think it should stay so it doesn't distort the situation. I won't go into it any further, this is my last post just to make it clear that your picture about me just isn't right. Yener recognized this better, because we already exchanged some more messages.

If one would delete everything which is in the wrong thread, one would probably have to delete half the TWRP thread.

Thanks, you got me right.

To contribute something to the rom:

Does the LED change to green when the tablet is full? Normally this already happens at 90%. This is not the case for me.

[MENTION=9670747]max_work[/MENTION]: Have the same problems with Magisk. The app is not installed by flashing the Zip. Root doesn't work for me after the installation of the app either. Interestingly, some apps think they can recognize Magisk. I will deal with it again on the weekend and try to patch the image.

Edit: [MENTION=9613333]yener90[/MENTION]: you should add

"PRODUCT_CHARACTERISTICS := tablet" to the lineage.mk again. Furthermore check my overly directory. You may can use some parts.
[Thinkpad Tablet Android Development] ashus:
[MENTION=9613333]yener90[/MENTION]

You switched to landscape orientation by default. Is it normal, that the notification bar is so narrow that it would fit portrait orientation as well in LineageOS? The stock notification bar was much wider and I kinda miss it (just kidding, I wouldn't go there ever again!).

Thanks for response.
[Thinkpad Tablet Android Development] rorzer:
Is it possible to use an SD card as extended storage on this ROM?
[Thinkpad Tablet Android Development] lukaspieper:
Yes, using it myself.
[Thinkpad Tablet Android Development] MiSSigNNo:
Ok, after some clarifications, time to go back.

I've been trying to port some ROMs for other devices without success in the last few years.

For some reason I can't seem to find good docs to understand at least the basics of ROM modding. I was thinking of the possibility of "treblezing" this tablet. The only solution I tried was by reverse engineering devices trees of other devices comparing to source.... but I found after some days of trying, that this might have taken ages to grasp a little of knowledge.

Any recommendations to start reading for the cause? (maybe I could set a target to solve the issue with the hall sensor)

For some strange reason I inserted a 256Gb card and it shows that I have 512Gb available and 256Gb left. Apart from this, it works fine.
[Thinkpad Tablet Android Development] VasilisGR:
Ok, idk what I'm doing wrong but my device won't boot. I'm stuck at boot animation. (It's not bootlooping)

What I've done so far:

Wiped data using the "yes" option, as instructed by OP

Installed the new TWRP using the old one

Flashed the rom and gapps (stock package)

Left my device boot up at least 15 minutes (just in case). It didn't, though.

Then, I saw someone say to do a full wipe (system, data, etc) before installation.

That time, I didn't even flash gapps to see if that was the problem

Stuck at boot animation again.

I've tried at least 10 times now and i really don't know what I'm doing wrong.

(i have the x704f ofc, and it was on stock rom rooted with magisk)
[Thinkpad Tablet Android Development] Sparkrite:
Ok, not familiar with the 704x version of this tablet, not sure it even exists .

If you mean the TB-8704X then no wonder its not booting as the ROM is not designed for that tablet.

Perhaps you might clarify what model tablet you actually have, please?

TIA.
[Thinkpad Tablet Android Development] VasilisGR:
oh crap, i meant the x704f lmao

sorry
[Thinkpad Tablet Android Development] lukaspieper:
Just a quick note because of your goal: Making a device compatible with Treble won't make the Hall Sensor fix itself. In general, a rom with Treble support does not work any better than the same rom without Treble. Also, Treble Support does not immediately mean that you can boot GSI (see the GSI requirements of Android 9).

By the way, since you have such a big interest in the Hall Sensor. I feel the same way, you can ask Yener, I got on his nerves with it in some PM already. ;) Personally, it's more important to me than the camera.

Concerning information I can help you also unfortunately only limitedly. My phone (Zenfone 3) got treble support a few weeks ago and apart from bugs the treble version of the rom has no advantages (I appreciate the developers very much and they are already working on the bugs).

You can read the story here from page 35 on. The thread regarding the Treble TWRP could also be very interesting for you.

Here is the short form of the information I read there. First, you need a Custom TWRP that can partition userdata. Unfortunately I don't know how to add this when building TWRP. Then you can use TWRP to create the vendor partition, which makes the userdata partition smaller. Then you can flash normal roms, vendor just remains empty. Alternatively you can flash Treble Roms, which consist of the system image and the vendor image. This allows you to update only one of them later, for example.

I looked at the code from the zenfone3 for interest, discovered some flags, but didn't go into details. In any case, many paths have to be mapped to /vendor.

One more thing, since you were talking about porting roms. Everything I describe here can only be implemented if you build TWRP and the rom from Source.

Hope this helps you at least a bit.
[Thinkpad Tablet Android Development] dipxda:
Many thanks for this ROM. I was also very disappointed when I read that we will get no update from Lenovo. And I hate that after a "security" update Lenovo Alexa was suddenly installed and can neither be uninstalled not deactivated.

One question: Will Netflix play videos in full HD? I have LineageOS 14.1 installed on an older Samsung Tablet und never got Netflix videos running in HD or even full HD (although the tablet should be able, it's Samsung Galaxy Tab Pro 10.1). It's simply not usable for Netflix. I think I read this is a problem with all LineageOS tablets but do not know if this is true. So I thought I will better ask how it is with this ROM.

Thanks for any answer.
[Thinkpad Tablet Android Development] yener90:
Its almost impossible. When you unlock your Bootloader, your DRM keys will be unreadable.

Therefore Netflix doesnt stream in full hd. Most LineageOS ROMs have this problem.

If you lock it down after flashing LineageOS, than it could work again, but the ROM wouldn't start, as Bootloader verifies kernel :confused:

Only possibility would be using boot sign like Lenovo Tab 3 8 Plus. I will look later to it.

I gave up fixing autofocus and hdr for the rear cam. And only Open Camera works properly with it. Other camera apps are making issues.

It's not worth the effort, cause the camera is not the best at all.
[Thinkpad Tablet Android Development] bwguy:
I've tried on the TB-X704L and it doesnt work :(

Every time I install, boot into system, I just get a black flashing screen then eventually times out and goes to stock recovery.

I've spent hours trying to get it working but no joy.

I've also fooked up and lost my backup. Anyone know where I can get the TB-X704L stock rom from or if anyone has a backup that can help me out?

Thanks
[Thinkpad Tablet Android Development] Sparkrite:
Here you go :-

http://lenovo-forums.ru/files/file/...s-proshivka-tb-x704l_s000035_170703_row_qfil/
[Thinkpad Tablet Android Development] yener90:
I never mentioned that it works on TB-X704L. So why trying it out so long?

It looks like that my recovery worked for you? If you would have your backup I could help you fixing this issue.

Looks like missing GPU firmware.
[Thinkpad Tablet Android Development] yener90:
UPDATE

2019-04-05

• partly fixed camera (autofocus & hdr dont work), use Open Camera

• some debugging features disabled, should improve performance

ROM
[Thinkpad Tablet Android Development] max_work:
Awesome! dirty flashing worked. so far everything works great.

Thank you very much!

---------- Post added at 07:20 PM ---------- Previous post was at 07:08 PM ----------

by the way, the camera does autofocus. i mean it changes sharpness according to the distance of objects. i never used the camera so i cant say something about quality or broken behavior.

regards and again, thank you :)

---------- Post added at 07:32 PM ---------- Previous post was at 07:20 PM ----------

but the pictures are partly green and not sharp. i only opened the camera maybe i should have taken some pictures first :). but no problem i dont care about the camera :)
[Thinkpad Tablet Android Development] ashus:
In case you need AdAway to work, I've made a patch to link your system hosts file to /data/hosts - a destination you can write to after booting.

Steps:

1. install ROM/GApps/addonsu

2. install this ZIP

3. in AdAway select /data/hosts as hosts file

4. update AdAway regularly without system lockup

In case you wipe system or data, reinstall.

After preparing this I noticed other guys have done similar script almost 6 years ago. Oh well..
[Thinkpad Tablet Android Development] bwguy:
Finally got it back up and running by using the Lenovo Moto smart assistant. It downloaded the stock ROM and installed it.....phew.

If you ever get it working for the TB-X704L please let me know. Thanks.
[Thinkpad Tablet Android Development] yener90:
Will maybe never happen. I don't have the tablet. If recovery worked for you, I dont see big troubles.

You just needed some files from stock to flash, than it would have worked for you.

The files here are from X704F.
[Thinkpad Tablet Android Development] Flowah123:
LumenReaper's build was (theorically?) good for 704L as well ? maybe could help ?

Sadly, I'm not competent in this kind of stuff. If there's a way we could help in getting you those files, would you make a build for 704L variant as well?

Thank you.
[Thinkpad Tablet Android Development] yener90:
So far i know it didnt worked either. Copy your system folder, pack it and upload it. Just tell me if my recovery does work for you. So I know that there are no kernel issues ;)
[Thinkpad Tablet Android Development] lukaspieper:
Yener's rom already includes the changes I did for the 704L. Because of that I'm sorry, but I can't help here.
[Thinkpad Tablet Android Development] Phoenix09:
[MENTION=9613333]yener90[/MENTION] any plans for the TB-8704? (I may attempt it when I get mine in a week or so and see how far I get...)
[Thinkpad Tablet Android Development] MiSSigNNo:
The idea of "treblizing" is for the future. Theoretically it will be easier to extend support for Treble ROMS for this tablet. Maybe not. I come from a "Treble" Chuwi tablet, that I wasn't able to create a custom TWRP for it (to try to introduce a GSI afterwards)

This may also technically be a simpler path to go for Pie. Not 100% sure either. I'm researching on this topic of partitions and I'm going to try to port the latest TWRP also to this tablet and install this ROM with it. Just to see if I'm in the good path.
[Thinkpad Tablet Android Development] yener90:
Nope, only Lenovo Tab 4 10 Plus.

I wish you good luck with it. I am currently vendorizing the ROM, so treble can work.

But my main target is next SeLinux enforced, then locking bootloader again, so we could use the tablet like before.
[Thinkpad Tablet Android Development] yener90:
I added it, made no difference.
[Thinkpad Tablet Android Development] bwguy:
LumenReaper's build didn't work either. I was getting the same issue on both builds. Recovery was fine though.
[Thinkpad Tablet Android Development] Flowah123:
Ok, I just sent the system folder to yener.

Amazing for the working recovery :D

Did you flash it via this recovery or did you flash it via fastboot command?

Sadly, I can't try it at the moment, as I gave the tablet to a friend for a while (he just managed to send me the system folder).
[Thinkpad Tablet Android Development] bwguy:
Nice one.....hope we can get off 7.1.1 grrr

I used the recovery....I used the official twrp too.....same problems