yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] black.kahder:
Hey ammarr, thanks for your reply on the UI freezing up! Makes me look less crazy.

In other news, I didn't have much time to play with my device today, but one of the first things I always do is enable the sshd so that I can ssh into my device over the network and rsync/sftp files. LineageOS includes an OpenSSH sshd and some sample configuration files, but it is not enabled by default.

While I was successful in getting sshd to work, I ran into some permissions and ownership problems. sshd does some sanity checks of the files to make sure they are secure, and it won't run otherwise.

The sshd configuration files and keys are kept in "/data/ssh". This version of sshd says it is OpenSSH_7.8p1.

In summary, it looks like sshd wants the entire path to it's files and keys to be owned by root and chmod go-w.

The first problem was that the /data directory 'stat's as "Access: (771/drwxrwx--x) Uid: ( 1000/ system) Gid: ( 1000/ system)". Even though this is the same on my LineageOS 14.1/OpenSSH_7.1p2 device, the new sshd doesn't like it. It seems to require /data to be chown root:system and chmod go-w. I don't think /data is written to often, but I can imagine this causing problems. The system user may need to write here occasionally.

The next problem was that the / directory stats as "Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)". That seems wrong on any linux system, even if root is mounted read-only and selinux is enforcing. Yener can you check that out? This is my first Android 9/P ROM so I don't know if this is intentional or an accident. I would highly recommend that root be chmod go-w (755).

So in total I had to do the following changes:

setenforce 0

mount -o remount,rw /

chmod go-w /

chown root /data

chmod g-w /data

Any comments before I go looking at the Lineage code and reviewing the changelog for sshd?
[Thinkpad Tablet Android Development] bwguy:
[MENTION=9613333]yener90[/MENTION] when is this rom going official? I seen the note a few weeks back.
[Thinkpad Tablet Android Development] 0zang:
About x704a:

I was able to install the TWRP that was shared here, it worked perfectly, but it's version 3.3.0.

I think that's why I could not install ROM 16.0.

I tried with ROM 15.1 removing the asserts from the script. The installation went well but got stuck in bootloop afterwards.

I'll try harder later.

Any suggestion?
[Thinkpad Tablet Android Development] yener90:
When it's ready :p

Wait for next update. It should follow next days. The june security patches are in review.

Me or codeworkx will release I hope final version before official.
[Thinkpad Tablet Android Development] 5dprince:
removing the script ROM16 ,all works
[Thinkpad Tablet Android Development] Googole:
Hoe is Lineage OS updated

Hello everyone, I have a Lenovo TAB 4 10 Plus and I have Lineage OS (Android 9.0 Pie) on it.

I am new with this ROM, so I have a question:

How is Lineage OS updated?
[Thinkpad Tablet Android Development] Sparkrite:
Reading this thread will answer your question.
[Thinkpad Tablet Android Development] black.kahder:
Don't mind that other guy. He is a lonely social poster who embarrasses himself.

Most XDA ROMs are manually updated by you, the user, through TWRP or maybe something like Flashfire (Flashfire is abandoned). There are very few custom ROMs with some with built in "OTA" self-update capability. The last time I had a ROM with self-updating ability that worked well was back on the Nexus One years ago.

LineageOS Official at least has a notification service built in to their ROMs, but it has rarely worked well over the years.

This is an area where the custom ROM community could use improvement. Your best best is to watch this thread for updates or come back every 90 days and see if the top-post has been updated with a new version.
[Thinkpad Tablet Android Development] Googole:
Thank you for your information [MENTION=3672003]black.k[/MENTION]hader!

My question is answered
[Thinkpad Tablet Android Development] Sparkrite:
You do not know me, you know NOTHING about me so please try and control yourself and desist from personal effrontery. Such behaviour is never beneficial to the thread nor to its readers. It is debasing the forum and is extremely puerile.

My suggestion to 'read the thread' would indeed be both educational and helpful to [MENTION=9969624]Googole[/MENTION] and it is gratifying to observe that the conclusion of your reply is in concurrence with said advice. :-
[Thinkpad Tablet Android Development] 0zang:
It worked!! Thank you very much!!

I removed the asserts from the script in ROM 16 (all the first lines) and it worked perfectly !!
[Thinkpad Tablet Android Development] Space_Doggo:
Got this up and running on the TB-X704A with only a small issue during the flash process for Lineage. The Assert line would read out my model, but my tablet was reading out just X704A, no "TB". Risky, but removing the assert line allowed it to install no issues. Also just curious, but when can we see ps3/ps4 controller support again?
[Thinkpad Tablet Android Development] Bazim:
I want to install Dolby but i just cant uninstall the AudioFx. .. dont know how nothing work
[Thinkpad Tablet Android Development] chr0m:
Does this rom support adoptable storage?

Need to know before I take the plunge.
[Thinkpad Tablet Android Development] black.kahder:
Yener, can we get the list of "Broken" things updated on the main post?

I think the only issue worth documenting at this point is the inability to remount /system as rw. That is a big pain in the butt for me. I was playing around with this today.

Since the /system partition is protected, I figured the /boot partition would be protected too, right? This would prevent Magisk from updating itself from within Magisk Manager, but no, it works perfectly.

Anything that tries to remount /system rw and install though, boom! Android dies.

I once worked on an apq8064 device with redundant partitions (a precursor to A/B-Seamless). The kit manufacture had a special partition which indicated which of the partitions were active, which were backup, which were undergoing upgrade, and more. This partition on the internal flash chip was being protected by the tz processor! There was a way found to disable it though.
[Thinkpad Tablet Android Development] black.kahder:
It seems to. I put in a blank card and it prompted me to format for either internal or portable storage. I internal is adoptable storage. I did not try it though. I can not think of a reason why it would not work.
[Thinkpad Tablet Android Development] chr0m:
Awesome, thanks
[Thinkpad Tablet Android Development] Sparkrite:
For anybody having a problem with System R/W, I have been using [MENTION=3190122]KreAch3R[/MENTION] 's Magisk module, from the start, with this ROM to achieve R/W.

Works perfectly on my 'V' variant.

See attached zip file.
[Thinkpad Tablet Android Development] yener90:
Its not a ROM issue, its because of tablet. I asked codeworkx and he found the issue. It's impossible to fix it without modifiing bootloader.
[Thinkpad Tablet Android Development] at5dmvi1:
TB-X704V

I tried to install TWRP on TB-X704V tablet, but I am failed with this. I tried to follow comments from here or other sources, but so far, no luck.

After flashing TWRP system and forcing to reboot into TWRP recovery mode again it reboots and makes 2 small vibrations (one at the beginning right after power-on and a second in few seconds) then reboots to the Stock Android. And only after that I am able to reboot again and then system will let me get to the Recovery mode (Stock recovery not a TWRP).

I don’t get how you guys successfully able to install TWRP.

Can someone share this information? Does someone have step by step instruction? I don’t see any progress with my tablet for the last few months.

I am really surprised, that other people publishing posts here saying that they are successful with TWRP flashing on TB-X704V.

My tablet has 2 GB RAM and 16GB Storage.
[Thinkpad Tablet Android Development] Sparkrite:
Ok, you are not alone with this problem, I have gone through, step by step, with a couple of posters experiencing the same with the 'V' model. I'm not sure if they succeeded in flashing it successfully as neither came back to let me know. Have a look here, it's a big thread, but has a lot of info relevant to your predicament, search within the thread to find it.

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

I use the L/F version TWRP on my 'V' model and still use it today as I find it the only one that works 100%. I used the version in the OP here to initially flash [MENTION=9613333]yener90[/MENTION] 's ROM and then reverted to the TWRP in the above link, even using it for flashing the subsequent updates.

If you are still having a problem after trying the advice from the other thread then post there please, as this is not really the thread for TWRP flashing problems.
[Thinkpad Tablet Android Development] black.kahder:
The OEM/stock System will overwrite TWRP if it is allowed to boot. In order to install yerner's LineageOS ROM, you must immediately format /data and then install the system ROM after installing TWRP into Recovery. It sounds like you are not doing that for some reason.

This happened to me a few times when I was installing on my tablet. I was exploring and trying to figure out the behavior.

The TB-X704V has 4GB RAM and 64GB storage. You probably have the TB-X704A. I recall reading that some people with the A variant have been having problems with TWRP so you may want to go back and read the last two pages of comments looking for what issues they had.
[Thinkpad Tablet Android Development] TheZenny:
Wow, really mazing work! I just wish that someone would do that for the 4 8 plus as well.
[Thinkpad Tablet Android Development] Flowah123:
Wow, you must be a really patience person.

Well done, people will appreciate this ;D
[Thinkpad Tablet Android Development] apotsi:
With Lenovo LMSA, it it possible to restore tablet to official condition, so that it will pass under warranty ?
[Thinkpad Tablet Android Development] chr0m:
Just installed this for the first time. Tried to set up voice assistant during the initial setup and it says.

Your Assistant can already recognise your voice

It looks like you've already set up Voice Match with your Google Assistant on another device.

These previous recordings can be used to make a voice model on this device. This should take less than a minute.

It's been sitting there for 20 minutes :(

There aren't any navigation buttons, so I guess all I can do is hard power off.

Edit: Restarted and went through the setup again, this time it said the voice assistant was already set up, so didn't have the same issue.

I used stock gapps and it asked me which launcher to use on boot, so I chose Pixel Launcher and it just keeps crashing. Is Pixel launcher not compatible with this rom?

I also tried adoptable storage and it complained that I had a slow MicroSD card. It's a 128 GB Samsung Evo Plus U3, which I can write to at around 80MB/sec in Windows, how fast does it want? :) It's also formatted it weirdly, it's a 128GB card, but it says that I have used 130GB of 256GB when I go into storage settings.

Are people really just using the 16GB of internal storage for apps with this rom? I only have 8GB left and I have installed anything yet. Or does everyone have the 64GB model?

Also couldn't see Netflix in the play store, so installed the Magisk Safety Patch module. That fixed Netflix, but it now comes up with an Internal System Error when I boot the tablet. I am so good at getting issues with these things :)
[Thinkpad Tablet Android Development] black.kahder:
Be aware that this is a Gatekeeper device. If you try to restore your TWRP backup after doing an OEM restore, you may find that your lock patterns, password, or fingerprint won't unlock the device. This is because gatekeeper keeps the keystore in the TZ/TEE, and restoring and wiping can cause those keys to be lost. I do not know if it is even possible to back up and restore those keys.

https://www.magnetforensics.com/blog/gatekeeper-password-storage-android-secures-devices/

https://source.android.com/security/authentication/gatekeeper.html

In my case I had to use TWRP to delete the /data/system/locksettings.db file. Then I go and recreate my lock pattern again.

I do not think anyone can answer this for you because we don't know what will pass under warranty and what will not.

When I did my restores using LMSA, it wiped and restored almost everything to the state it was in when I first unboxed it. However, I noted that the bootloader was still unlocked, so clearly some state data somewhere was retained.

Yes, Netflix and Google hates you and your freedoms. There are many articles written about this already. I would suggest some google because they can tell it better than me. Magisk may be able to help, but you will never be playing videos in HD because this is not a Widevine L1 certified device.

I have a 64GB model, so no need for adoptable storage. But I just did an AndroBench run against my 2-year old Lexar MLC 64GB card. It says 81MB/s Seq read, 19MB/s Seq write, 7MB/s Random read, 0.73MB/s Randon write.

Internal storage results (eMMC 4 I think) were:

Sequential Read = 274.23 MB/s

Sequential Write = 192.04MB/s

Random Read = 77.37 MB/s, 19807 IOPS

Random Write = 7.05 MB/s, 1805 IOPS

I don't know what adoptable storage needs.

In regard to Pixel lunacher, I have heard it crashing some other LineageOS ROMs, but I don't know the details. I use Nova Launcher and it works fine. Sorry I don't know more.
[Thinkpad Tablet Android Development] apotsi:
Can you re-lock the bootloader through adb/fastboot ?
[Thinkpad Tablet Android Development] chr0m:
I got Netflix working with the SafetyPatch module in Magisk, it seems to be in HD, definitely looks good enough anyway.

The adoptable storage has got me a bit stumped, not so much because it says it's a slow card, but because it is showing 130GB used out of 256GB, with that 130GB being taken up by System, when it's only a 128GB card :confused:

If I format it as portable storage then it shows correctly as a 128GB card. Maybe this is normal, but I can't find anything to confirm it.

I also tried a 256GB card and got the same results, warning about being slow and now shows 259GB from 512GB used!

Loving the rom so far!

Is there any way to use the fingerprint scanner as a home button? That would be amazing
[Thinkpad Tablet Android Development] codeworkx:
lineage-16.0-20190608_163117-UNOFFICIAL-TBX704.zip
[Thinkpad Tablet Android Development] Sparkrite:
Great stuff, Thank you.

Any changelog, please?
[Thinkpad Tablet Android Development] codeworkx:
To much to remember.

Let's make it simple:

- bugfixes and performance improvements
[Thinkpad Tablet Android Development] Sparkrite:
:D:D

Good answer.

:good::good:
[Thinkpad Tablet Android Development] chr0m:
Damn new version literally a few hours after I installed.

What's the update process? Can I dirty flash?

I dirty flashed anyway :)

My wallpaper changed.

Also still getting the internal system error when I first boot up. It turns out this is because of the SafetyPatch module from Magisk. I can ignore it apparently

I checked logs and I do get a lot of Failed to find mounted volume for /sdcard/Android/data/ errors

I'm also seeing this:

--------- beginning of crash
06-09 11:29:08.548 3052 3749 E AndroidRuntime: FATAL EXCEPTION: lowpool[2]
06-09 11:29:08.548 3052 3749 E AndroidRuntime: Process: com.google.android.gms, PID: 3052
06-09 11:29:08.548 3052 3749 E AndroidRuntime: java.lang.SecurityException: Failed to find provider mms-sms for user 0; expected to find a valid ContentProvider for this authority
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:1950)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1918)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1868)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:779)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1973)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1962)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at aeiw.b(:com.google.android.gms@17455037@17.4.55 (100400-248795830):2)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at aeiw.a(:com.google.android.gms@17455037@17.4.55 (100400-248795830):6)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at aejc.run(Unknown Source:8)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at sgs.b(:com.google.android.gms@17455037@17.4.55 (100400-248795830):37)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at sgs.run(:com.google.android.gms@17455037@17.4.55 (100400-248795830):21)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at smq.run(Unknown Source:7)
06-09 11:29:08.548 3052 3749 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
06-09 11:29:08.613 2731 3049 E ActivityThread: Failed to find provider info for instantapp-dev-manager

Possibly all because I installed the standard gapps package. I might try a more lightweight one
[Thinkpad Tablet Android Development] Sparkrite:
Just to let you know:-

Hall effect broken on latest update.

TIA
[Thinkpad Tablet Android Development] yener90:
It's not broken.

My ROM uses a workaround, codeworkx has build proper without workarounds near to official.

You need to wait until proper method for hall is implemented.
[Thinkpad Tablet Android Development] Sparkrite:
Thanks for letting me know, either way, it ain't working. ?
[Thinkpad Tablet Android Development] black.kahder:
I updated by TB-X704V. Retained old data for now.

Wi-Fi has broken. Not sure why yet. Will update post tomorrow with more info.

EDIT: Nevermind the permissive zip on the top-post was breaking Wi Fi maybe. I removed it and now it works.

Everything else looks in order so far but I can't test too much with networking dead.

I notice some of my preferences have been reset or changed. My battery icon has changed. Minor things.
[Thinkpad Tablet Android Development] Android.Sysop:
Source code Lenovo Tab4 10

Here is the official source code for the Lenovo Tab4 10. Maybe this will improve the LOS 16 for the tab.
[Thinkpad Tablet Android Development] none_99:
Developers are already using it, it wouldn't be possible to build ROM without kernel source.
[Thinkpad Tablet Android Development] JcNeji:
As always thanks for your work! Installed the update, but unfortunately have 2 problems:

- the screen will no longer turn on/off when I open my cover (it worked on stock rom and all your previous versions); and

- the app 'naptime' (or similar apps) no longer works, i.e. wifi will no longer automatically turn off when the screen turns off.

Is there any fix for these problems? These are functions I use quite a lot.

EDIT: I see you posted an updated version. Will try now :)
[Thinkpad Tablet Android Development] codeworkx:
lineage-16.0-20190609_124558-UNOFFICIAL-TBX704.zip

- hall sensor fix

- june security patches
[Thinkpad Tablet Android Development] chr0m:
Great, will try it, thanks.

I just installed Mixplorer on the previous version, gave it root so I could see the root directory, started browsing it and the tablet froze. I had to hard power off.

Rebooted and it looks like it's killed my SD card :(

OK, seems like it's ok, but when I boot it complains that the SD card is not insert, still seems to work though!

I just tried this and I have the same issue, thanks for pointing it out, I might have ended up with a flat battery :)
[Thinkpad Tablet Android Development] JcNeji:
Can confirm that the hall sensor issue is fixed (my screen now turns off when my cover is closed). However, apps that automatically shut wifi off during sleep/doze no longer work. ANy fix for this?
[Thinkpad Tablet Android Development] codeworkx:
Check logs if maybe selinux is blocking it.
[Thinkpad Tablet Android Development] chr0m:
Still getting the message telling me that my SD card is not inserted when I first boot up. It seems now that the adoptable storage is delayed in mounting, as after a few seconds, all the apps I have installed on external appear in the app drawer.

The problem is that any shortcuts on my home screen are for apps on external storage, they disappear and I have to re-add them.

This definitely wasn't happening before the crash when I allowed root to Mixplorer.

This is the issue here https://www.reddit.com/r/LineageOS/comments/7tjr08/disappearing_sdcard_apps/

Workaround is just to make sure any app I have on home screen is installed to internal storage.

Loving this ROM! Thanks
[Thinkpad Tablet Android Development] black.kahder:
A different launcher may not delete the icons for missing programs. I know that Nova Launcher won't delete them. They go ghost-white instead until you reinstall.
[Thinkpad Tablet Android Development] Sparkrite:
Anybody else having a problem with the microphone not working with the latest update(s)?
[Thinkpad Tablet Android Development] black.kahder:
Here are some other issues I noticed. This is still on the previous ROM before your latest fixes:

My device is a V variant but the ROM doesn't know anything about it. Instead it's being identified as an L.

I notice that all eight cores are always reporting as Online. I don't know if that is normal for this SoC. Scaling is working and overnight power drain was reasonable.

I show 1GB of swap registered. /proc/swaps says it's a zram. This is probably a good thing for the 2GB A variant, but V variants have 4GB.

There is a nasty bug with certain Nav Bar configurations. This is probably an upstream issue maybe even in AOSP, but I notice it actually got worse in this ROM compared to yener's. Go to System > Buttons > Navigation bar Buttons and Layouts. Choose Invert Layout and then add a Extra Left button. You will note that a phantom button appears on the right as well. Additionally, if you go into portrait mode the buttons will sometimes bug out and stop working completely. You will notice this because there appears to be some extra button overlaying the Home button in the center. If you try a Left or Right layout, things also get really broken.

I notice that swiping sometimes does not register. I assume this is some kind of error correction which works fine when you have a screen the size of a phone, but our huge 10 inch screen means shorter swipes than normal. For example, putting up the app drawer, or pulling down notifications. If you don't do a full long swipe, it will cancel. I don't know if this can be adjusted. This issue is in yener's ROM too.

In logcat I see a bunch of ANR's on a regular basis; "ANR in com.android.se", "Reason: executing service com.android.se/.SecureElementService".
[Thinkpad Tablet Android Development] chr0m:
I read that too, but I was already using Nova Launcher! Is there a setting I need to apply?

I moved all home screen apps to internal storage and now the missing SD card error doesn't show up.
[Thinkpad Tablet Android Development] black.kahder:
Oh! Then I don't know. Whenever I restore a ROM or Nova Launcher config with missing applications it shows the icons like ghosts, white-out. Maybe there is something special about it when using Adoptable Storage.
[Thinkpad Tablet Android Development] black.kahder:
If you upgrade from yener's ROM to codeworkx ROM, be sure to check your settings. I have noticed that on upgrade I have Status Bar and Developer settings reset. There may be more I have not yet noticed.

I greatly enjoy the improvements to the Pulldown menu: Being able to select Wifi Networks and Bluetooth nodes.