yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] AMDez:
Can not flash!

I have tb-x704f. Did advanced wipe, did a full wipe(with yes message). I'm using the twrp im supposed to be using and the latest rom Lineage OS v16 from this thread. . . it is not working for me. . . I get a constant E1001 : Failed to update system image message which is followed all the time by error7

I moved the installation file to storage, same thing. . .

Is it dm-verity or sthing like this? the updater script? Mr yener do you have any clue what is causing these errors during installation.

Thanks in advance
[Thinkpad Tablet Android Development] Android.Sysop:
With StockRom was Netflix as system app inside an can be updated,

now with LOS will be this app no more found on google playstore

and the app downloaded from Netflix side tells "incompatible hardware".

Second problem, magisk manager tells ctsprofile false.

How can I do?
[Thinkpad Tablet Android Development] none_99:
Install that safetypatch module from magisk repository it should help
[Thinkpad Tablet Android Development] Android.Sysop:
[MENTION=9888430]none_99[/MENTION]

Many thanks, now the test is possible, but after restart (if magisk safety patch module active) is comming this error window:

Android System. Es liegt ein internes Problem mit deinem Gerät vor. Wende dich diesbezüglich an Deinen Hersteller.

Android system. There is an internal problem with your device. Contact your manufacturer in this regard.

If this message is to be taken seriously, if not, how can I permanently hide / disable it?
[Thinkpad Tablet Android Development] none_99:
I don't really know how to disable it, but it's not any harmful - just ignore it.
[Thinkpad Tablet Android Development] Android.Sysop:
After installing the two Magisk modules SELinux is disabled. Should not this be one? How can I turn it back on?
[Thinkpad Tablet Android Development] none_99:
How do you know it's disabled ?

If you want it enforcing then just type in terminal

su
setenforce 1
[Thinkpad Tablet Android Development] Android.Sysop:
Settings > Security and Location > Privacy > Trust > Status ... SELinux disabled

I tried to set "setenforce 1" with an ADB shell terminal with root privileges + restart, no change in status under Trust.

adb shell "su -c 'getenforce'"

say Enforcing

what is correct???
[Thinkpad Tablet Android Development] AMDez:
Flash succesful

There was a problem with the latest version of the ROM. I flashed successfully the 30042019 version and the 10052019 (these are the dates they were pushed in the thread in case you are wondering). Then i tried re-flashing the current version and everything worked ok. If somebody tries to flash the newest one coming from stock ROM , it wont flash due to bug. This post is only to provide additional information for future users wanting to migrate from stock to this Lineage (version date 15042019) ROM. Read the thread and not my post if you want to flash, cause you need unlocked bootloader. Again thank you yener90 for providing us with this ROM and clearly fixing our software-firmware issues! Gj :good:
[Thinkpad Tablet Android Development] yener90:
I received today a pen which should be compatible with our tablet.

I recorded a video, how well it works:

https://drive.google.com/file/d/1nSmHmsAL_S0ZuuL9hVDG1vNXYnA7ntgv/view?usp=drivesdk

If you look closely I don't touch the panel with the pen (5mm gap) and it works really well. My tablet also has 2mm thick protection glass and the panel still can detect the pen.

The only issue that the pen has, is, it is detected as mouse. Looks like a small issue.
[Thinkpad Tablet Android Development] Tschumi:
That's nice, barely any lag to speak of. What's the pen brand/name?
[Thinkpad Tablet Android Development] black.kahder:
Your dedication to this device has convinced me that this is something I want to own, so I just bought one. I'll let you know how it goes.
[Thinkpad Tablet Android Development] yener90:
Its the HiPen P3. But don't buy it now. If I manage to properly getting it working, then you can buy it.

I tried to set it pen mode, but Android won't let me enforce it.

I need time analyzing how Linux kernel manages input devices :confused:
[Thinkpad Tablet Android Development] Sparkrite:
Yeah, that is a problem with producing such a good ROM, its like a double-edged sword, so to speak.

[MENTION=9613333]yener90[/MENTION] certainly did not develop the ROM to help increase Lenovo's profits, quite the opposite, but that is one of the unfortunate side-effects, people want it.

https://xdaforums.com/showpost.php?p=79230160&postcount=16
[Thinkpad Tablet Android Development] shardul_seth:
Detecting root

Many apps are detecting the device as a rooted device, though I have just installed the ROM and gapps.. Amy way to solve the issue?
[Thinkpad Tablet Android Development] Sparkrite:
Was it rooted before flashing and if so with what?

On my 'V' version whenever I update the ROM, Magisk automatically installs immediately after the flash, uncommanded !

Can you grant root access to the apps requesting same, if so, then you are obviously 'rooted'.

Or maybe, are you referring to some sensitive apps, such as banking apps, that won't run because it sees the tab as rooted?
[Thinkpad Tablet Android Development] none_99:
Use magisk hide or just deny root access request or if you meant safetynet issues install safetypatch from magisk repository
[Thinkpad Tablet Android Development] Sparkrite:
He has indicated that he has NOT installed Magisk.
[Thinkpad Tablet Android Development] shardul_seth:
Yes, the tab was never rooted..

Maybe they are detecting addons.d or folder permissions to determine that?
[Thinkpad Tablet Android Development] ipropolis:
Would it be possible for you to adapt this ROM for the TAB4 8 PLUS?

Thanks in advance!
[Thinkpad Tablet Android Development] Sparkrite:
You really should read the thread before posting or at the VERY LEAST spend 2 minutes doing a tiny search.

https://xdaforums.com/showpost.php?p=79522545&postcount=146
[Thinkpad Tablet Android Development] Android.Sysop:
[MENTION=9613333]yener90[/MENTION]

Can you tell me which information about SELinux status is correct?

Trust tells other status as the terminal, please see the pictures.

[IMG="Terminal answer"]https://abload.de/img/4kk8x.jpg[/IMG]

[IMG="Trust SELinux status"]https://abload.de/img/rbjc5.jpg[/IMG]
[Thinkpad Tablet Android Development] Sparkrite:
Do you know if these apps were the same on stock

after

unlocking the BootLoader ?

Try re-locking (never did it) BootLoader and see then.

Another option may be to root then use Magisk and try all the 'hide' options.
[Thinkpad Tablet Android Development] ipropolis:
I read the thread yesterday for about 7 minutes, but not on its entirety.

But thanks anyway, despite the harshness!
[Thinkpad Tablet Android Development] Sparkrite:
'Harshness' ??

That is not 'harshness', that is fact and IMHO extremely softly put.

Don't take it personally, as unfortunately you are not alone, and I suppose 7 minutes is better than some. :rolleyes:

Look at it this way:-

The OP has spent countless hours of his own time developing this ROM and helping users, other posters give of their time to answer questions to help users. Then some posters come along who are not prepared to spend any of their own time in trying to help themselves but prefer to be 'spoon fed' the info. What this is actually saying is:- " I am too busy, my time is too important to me so I can't be bothered to spend any time looking for an answer myself. I'll take the easy option and wait for somebody else to give of their time to help me".

On some forums, three strikes and your out, for doing this. The 'search' option is there for a reason.

Besides being disrespectful, it also clogs the thread with repetition and makes it more difficult for all to find relevant information.
[Thinkpad Tablet Android Development] Android.Sysop:
build.prop variety problem

This is the error-message that users often see after boot:

Android System

There's an internal problem with your device. Contact your manufacturer for details.

The problem occurs because of a check that google implemented since Android 5.1 which compares /system/build.prop with the values found in /vendor/build.prop. If they differ you get that error message. All one has to do to get rid of the error is to change the 3 values in /vendor/build.prop according to the values in /system/build.prop.

Have anybody a fix for this?

Doing this manually after every flash is cumbersome. Is an update-zip that corrects the values in /vendor/build.prop in a generic way exist?
[Thinkpad Tablet Android Development] Kayttaja99:
[MENTION=9613333]yener90[/MENTION] Which Tab4 10 Plus tablet you have, 3/16GB or 4/64GB? :confused:
[Thinkpad Tablet Android Development] 5dprince:
TB-X704A TWRP-3.3.0

https://club.lenovo.com.cn/forum.php?mod=viewthread&tid=5575514

---------- Post added at 11:58 AM ---------- Previous post was at 11:57 AM ----------

TB-X704A TWRP-3.3.0

https://club.lenovo.com.cn/forum.php?mod=viewthread&tid=5575514
[Thinkpad Tablet Android Development] Daniel4Aloha:
Lenovo Tab4 10 Plus, TB-X704A

I've spent hours scouring these posts for a way to root my X704A (mostly so I can use my external sdcard to supplement the pitiful 2 gb of RAM) and looking for a custom ROM. I'm still kicking myself for buying this Tablet, I'm not sure how I overlooked the 2 GB RAM, and now I read that there will be no more updates, grrr. I'm still running nougat 7.1.1.

I'm thinking that you or someone else posted that this new version of your ROM will work on it. Is that correct? If so, can you point me in the direction of where to find rooting instructions? I'm going to try Magisk with TWRP but again, I'm not sure if the instructions I've seen were for the X704F will work. If your ROM works with my X704A, I will definitely make a contribution!! Thanks for all you do!
[Thinkpad Tablet Android Development] Daniel4Aloha:
TB-X704A

Thanks for posting this link; however, when I clicked on it, it took me to their page, but no download available unless I register. So I tried to register, but never received the SMS verification code to my cell phone messages. I'm thinking because my phone number is a U.S. number. Or did I miss something?
[Thinkpad Tablet Android Development] 5dprince:
;)

https://drive.google.com/file/d/1QyUGBPi-KZrhSVFLOCs3lHUZ59fpe9KL/view?usp=sharing
[Thinkpad Tablet Android Development] Daniel4Aloha:
OMG, you rock! Can't thank you enough -- but I will try!

Thank you, thank you, thank you! :)
[Thinkpad Tablet Android Development] yener90:
Mission getting stylus working failed unfortunately. The driver in kernel doesnt detect how far the pen is.

Maybe the pen is not really compatible. But without depth detection pen support is useless...

To all users:

https://xdaforums.com/thinkpad-tablet/development/recovery-twrp-3-3-0-lenovo-tab4-10-plus-t3932985

Could you try this twrp? Currently with this you can't flash this ROM, but it will work in official releases. Its just important to know, where it doesnt work.
[Thinkpad Tablet Android Development] chr0m:
Awesome that there is a Pie rom for this.

I think I might use it seeing as Lenovo have shamefully abandoned this tablet on the same OS it was on when I bought it (7.1)

Does Netlifx work in HD with this ROM?

Will Magisk work so I can hide root from certain apps that won't run with root?
[Thinkpad Tablet Android Development] Flowah123:
I guess it might be difficult to find someone still with stock ROM here after the amazing job you've done with this LineageOS, ahahaha!

Just my thought: I guess we will start testing the TWRP after the release of the compatible official ROM :p

Anyway, this weekend I'm working, I may consider to get back to stock and test it the next weekend, if still needed.

Thank you and codeworkx for your job :D

---------- Post added at 07:54 AM ---------- Previous post was at 07:51 AM ----------

Wow, I was just saying there wouldn't be anyone still with stock ROM and you posted this comment few minutes before mine.

Can't help you with Netflix, if you give a look at the thread, people where talking about it. For Magisk, I personally confirm it works.

As you are still on stock ROM, would you be available to test the new official TWRP from codeworkx?
[Thinkpad Tablet Android Development] yener90:
No no I don't mean stock. You don't need to be on stock. There are issues with my twrp on X704A & X704V. The TWRP in the link works on X704F. It works probably on X704L. But I don't know if it works on X704A or X704V. I just want to know if it works there
[Thinkpad Tablet Android Development] chr0m:
Yeah, I don't use the tablet much. I looked for custom roms when I first got it and they weren't any :)

One more thing, I use the adoptable storage currently because the built-in 16 GB is woefully insufficient. Does this support it?
[Thinkpad Tablet Android Development] Daniel4Aloha:
I still have stock ROM on A, as I haven't rooted yet...

...so I'm willing to do what I can to assist seeing how much you've done for the community, but I'm pretty green so I will need your guidance...if that's worth your time, let me know. I've rooted devices before using my computer and ODIN, but it's been awhile. Let me know how I can help.
[Thinkpad Tablet Android Development] yener90:
I added before instructions on the first page. Its really simpel.
[Thinkpad Tablet Android Development] Daniel4Aloha:
Do I need to unzip that file once it's on my computer?

I'm happy to say, I'm finally making progress. I'm in FASTBOOT mode and where an hour ago it said: DEVICE STATE - locked, it now says - unlocked. So the next step was to run "fastboot boot recovery-TWRP-3.3.0...img" that you linked to me, but the adb replied, "error: cannot load "recovery..." no such file or directory."

So do I need to unzip that so the bootloader can find it on my computer? Or do you think perhaps I made some other error?
[Thinkpad Tablet Android Development] Palm Trees:
You probably misspelled the name of the .img - notice the three dots in your filename. Try renaming it to just twrp.img and then run "fastboot boot twrp.img" or "fastboot boot recovery twrp.img" (can't remember if you need to include recovery).
[Thinkpad Tablet Android Development] Daniel4Aloha:
the 3 dots were just my way to abbreviate it for the post

I triple checked to make sure I typed it correctly, and it still couldn't find it. Was I suppose to "unzip" it after I downloaded it to my PC?

If not, I will try just shortening the name, it is quite long:

recovery-TWRP-3.3.0-0521-LENOVO_TBX704A-CN-wzsx150.img
[Thinkpad Tablet Android Development] Daniel4Aloha:
Not sure how to run the command ...

Not sure how to write the run command so adb finds the recovery TWRP you gave me on my PC. I keep getting an error message that says: "cannot load. no such file or directory " Was I suppose to unzip it or something?

Here is step #5 that Matchias has on page 1 of his thread:

5. Then run:

Code:

fastboot boot twrp-3.2.3-0-<your-filename>.img

How should that look using the file you shared? I'm not sure what to put where since it's not twrp-3.2.3; it's 3.3.0-0521.

Here's a link to Matchias' TWRP & ROOT thread:

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

Thanks!
[Thinkpad Tablet Android Development] Sparkrite:
You are overcomplicating matters here. You have a path and syntax error by messing up the img. name/path.

No need to unZip anything unless it is in a Zip file, if it is, it will have 'zip' or 'rar' suffix in its name. If it

end with 'img' then it is reasonable to assume it is indeed an image file and ready to flash as is.

Connect tablet to PC in 'Fastboot' mode

Download the TWRP.img you want to flash and rename it TWRP.img

Place it in the same directory on your PC as fastboot and ADB

Go to that folder in a DOS window and type:-

Fastboot flash recovery TWRP.img

Press 'Enter'

When it has flashed successfully then :-

Select recovery with the volume keys and press Power button to boot to it.
[Thinkpad Tablet Android Development] Sparkrite:
[MENTION=9613333]yener90[/MENTION]

I tried the TWRP you linked to and while it is working with the EXT SD (unlike the TWRP in the OP) on my 'V' version, it failed to restore the (without error) backup it made, crashing out on restore with the following error, see pic.
[Thinkpad Tablet Android Development] yener90:
This is a small error. So X704V works. Just X704A left.
[Thinkpad Tablet Android Development] Daniel4Aloha:
How did I "mess up img?"

I typed it exactly as step 5 stated and it didn't find it, i triple checked my typing before I hit enter. I did it a few times. I even tried changing the name as you just suggested. But so I can better learn this stuff, please explain how I messed up the img by following instructions.

I will now try your suggestion...and THANK YOU for taking time out of your day to offer assistance -- it GREATLY appreciated!
[Thinkpad Tablet Android Development] Sparkrite:
This is your ****-up:-

That 'fastboot' command IMHO is very misleading, it should read:- fastboot boot filename.img

Just, as I said, rename the image file from whatever it is to "twrp.img".

To flash:- fastboot flash recovery twrp.img

To just boot to it:- fastboot boot twrp.img

Make sure that the twrp.img is in the same dir as the fastboot.exe, if not then you will have to type in the full path to it.

At this stage I am just repeating myself, and this is off topic for this thread.
[Thinkpad Tablet Android Development] Daniel4Aloha:
TWRP is asking for a password ...

ISSUE SOLVED

I've succeeded in getting the 3.3.0 TWRP flashed, but everything is in Chinese. I was able to find the English language option, but it is requiring a PW to change it to English. Any ideas?
[Thinkpad Tablet Android Development] black.kahder:
I went to the TWRP website today and looked up this device and it was listed:

> 2019-05-21T16:30:26Z

> initial commit

So congratulations on getting this device official TWRP support!

The front-page still says "This ROM only works with the TWRP I added.". Is that still true? Can the upstream and newer versions TWRP versions be used, such as 3.3.0-0 and 3.3.1-0, or is there anything special about the compiled version you have?

For example I might want to compile my own with the Tipatch so that backup/restores include internal storage rather than exclude it.

---------- Post added at 06:31 ---------- Previous post was at 06:20 ----------

I have a new TB-X704V which will be delivered to me today in a few hours. If there is anything specific you want tested, let me know. I am fairly well educated on using adb, shell, and can do a little coding.

Oh and it will be returnable to Amazon for 30 days, so we can be a little dangerous if you want. ;)
[Thinkpad Tablet Android Development] EggZenBeanz:
I have inverted portrait and landscape. When viewed in portrait mode the tablet flips to landscape and viscera. Anyone else?
[Thinkpad Tablet Android Development] Sparkrite:
Answered a few times before, reboot and try it then.
[Thinkpad Tablet Android Development] EggZenBeanz:
Cheers, that worked
[Thinkpad Tablet Android Development] black.kahder:
Reporting in from a new TB-X704V.

On my first attempt I used the twrp-3.2.3-0-TB-X704F.img file from the top-post. TB-X704V owners should NOT use this image. It does not work properly; touch input barely works at all. It's not properly configured/calibrated for the touchpad on this model and I suspect the partition definitions might be wrong.

Fortunately the official TWRP image twrp-3.3.1-0-X704F.img (2019-05-28 16:53:25 EDT) downloaded from https://dl.twrp.me/X704F/ works as expected.

However, the LineageOS image is not booting. I am getting a white screen with shadows from TWRP which fades in and then out. Then the backlight just flickers on and off every few seconds as it appears to boot loop.

I did not flash any other zips with it. Tried with and without the permissive zip attached to the top-post.

Please advise.

--

EDIT: Went to look for pstore files and there's nothing there:

TB-X704F:/ # ls -al /sys/fs/pstore/

total 0

I'll try a few more boots and see if I can get them generated.
[Thinkpad Tablet Android Development] yener90:
Don't generate anything. I know why it is not working. 3.3.0 is currently not supported. Fun fact: both twrp use the same kernel, therefore it's surprising that you have issues on one. Flash the TWRP from this thread and flash ROM again. Next security patch I will upgrade ROM. It will also support 3.3.0+
[Thinkpad Tablet Android Development] black.kahder:
I thought that maybe the custom TWRP might be special some way based on the way you phrased the statement. So, thanks for confirming. It needs some kind of shim for signing the image, or is it something else? I'll have to check out your source and see what I can make sense of.

Unfortunately the twrp-3.2.3-0-TB-X704F.img TWRP is unusable. I'm not sure that I could install the LinageOS image with it even if I tried. It sometimes takes tens-to-hundreds of finger presses on the user interface just to get one button to work each time I tried, and there is no way I could get the keyboard to ever work enough to type "yes" for formatting the data partition.

In the mean time I'll play around with the OEM recovery tool and see if I can accomplish with it.
[Thinkpad Tablet Android Development] yener90:
The new TWRP uses new commands. That is the real issue, what current ROM has.

I corrected it already.

What suprises me, you seem to be the first one with X704V with touch issues :confused:

You can try to flash the attachment file of this thread, after flashing this ROM with 3.3.0:

https://xdaforums.com/thinkpad-tablet/development/rom-lineageos-15-1-lenovo-tab4-10-plus-t3915773

But I cant guarantee if the script in the zip file will work with 3.3.0
[Thinkpad Tablet Android Development] black.kahder:
And now it works! I have no idea why.

I decided to try fastbooting into your TWRP to try again and the UI was working normally, unlike before.

I just now booted LineageOS, so I'm good to go.

I had booted into your twrp-3.2.3-0-TB-X704F image at least three times while it was installed into recovery and the user interface was basically unusable. I cleaned the screen and even booted back into OEM mode a few times in between to check if it was working okay, and it was.

Could the .twrp configuration on the SD card be the reason? I'll try wiping the saved config directory on the SD card and see what happens.

I'll keep playing with it for a few hours and report back what I learn. I would like to be able to explain to someone in the future what I did to fix this, or what caused it in the first place.
[Thinkpad Tablet Android Development] ammarr:
I had a similar issue on the X704V and documented it in this thread. Not sure why it wasn't working initially and then started working the next time.