yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Dirk:
The answer really could be anything couldn't it? Maybe they knew exactly what parts were causing the issue and needed to be removed. Or perhaps the remaining parts were just necessary for stability. Or maybe they just aren't important now that the rest is gimped, so are just remnants?

I think what the thread needs if nothing else, is a simple guide so that people can manually apply the 'fix' if they wish. (As 2Tweak has done). It's perhaps not for the novice but i think most can see their way through it.

It would go something like:

This fix will cripple Livedisplay. Proceed with caution!

1) Delete '/system/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus3' and '/system/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus3.rc'

2) Edit '/system/vendor/etc/vintf/manifest.xml' to remove the block of text that deals with Livedisplay.

3) To undo your changes flash your ROM again/or restore Nandroid.

#2 needs some finesse. Perhaps what you wrote before, "it should be deleted from "<hal format="hidl">" to the next "</hal>".

I would delete from "<name>vendor.lineage.livedisplay</name>" minus one line to the next occurance of "</hal>" after " <name>vendor.lineage.livedisplay</name>"

It looks good to me. Most people will get it. It's the whole 'Livedisplay' block, right?
[OnePlus 3T Guides, News, & Discussion] Deleted member 4405529:
Not really. I'm still thinking of a generic solution. It would be much easier to do something like "rm $(find /system/ -name \*livedisplay\*" or "rm $(find /system/ -name \*livedisplay\*service\*)", then having lists of files for different devices. To decide that, I need to understand.

Apart from a generic solution, I would like to have answers to these questions to understand the problem. I would like to fix the issue in livedisplay (if livedisplay is actually the problem). And the more I understand, the more probable it could be fixed.

Generally I don't like publishing fixes, workarounds or whatever without understanding it.

BTW: I have an idea how to get the livedisplay's manifest block, without relying on fixed line numbers. I'll dig into this weekend and test with the untouched files.
[OnePlus 3T Guides, News, & Discussion] GuestK00264:
Just tried it and removed the other files also. When clicking on livedisplay in settings, the settingsmenu is crashing because of the missing livedisplay. Further everything seems to work.

This is a behavior I noticed before in LOS and which is different and less "tweakproof" then for example NOS, Omni and some other ROMs. Other ROMs seems to test availability of functionality / apk and decide to enclose it in the menu. In LOS there seems to be no testing, settings menu seems to be fixed.

When I for example remove SettingsIntelligence in LOS it takes ages before settings menu is showing up, in other ROMs this is not an issue at all.

For the XML it could be an option to search for the first <hal format="hidl"> above and the first </hal> beneath vendor.lineage.livedisplay and delete that part. How to do that is something I have to find out with sed/awk.

What all files are doing I have no idea, but it seems the man who found this solution knowed what he was doing. .. ;)
[OnePlus 3T Guides, News, & Discussion] Dirk:
That or a whole lot of trial and error! I wonder if he knew the root cause or just spent a lot of time editing and restarting. :p

Thanks for your insights and testing. Hopefully we'll narrow it down to which is the critical part that needs fixing.
[OnePlus 3T Guides, News, & Discussion] GuestK00264:
What am I doing wrong?

Get the whole file as output....

The idea is to make the script independent of line numbers and delete the block from <hal> to </hal>.

[#!/sbin/sh
#
# Script by 2Tweak
# Last modified 20-07-2019

echo -n "Repair Phone Is Starting error......"

rm -f '/system/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus3'
rm -f '/system/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus3.rc'

fname="/system/vendor/etc/vintf/manifest.xml"
testname="/data/local/tmp/test.xml"
found=0
startstop=0
tstr=""
nstr=""
touch $testname

while IFS= read -r line
do
echo "$line"
if [[ "$line" == *'<hal'* ]]; then
startstop=1
elif [[ "$line" == *'</hal'* ]]; then
startstop=2
elif [[ "$line" == *'livedisplay'* ]]; then
found=1
fi

if [ $startstop -eq 1 ]; then
tstr .= $line
elif [ $startstop -eq 2 ]; then
tstr .= $line
if [ $found -eq 0 ]; then
nstr .= $line
else
found=0
fi
tstr=""
startstop=0
else
nstr .= $line
fi
done <"$fname"

echo $nstr >> $testname

echo " done!"
sleep 0.3
[OnePlus 3T Guides, News, & Discussion] Deleted member 4405529:
Sadly, I'm lower on time this we then I've thought. From a first short look I would guess "==" is bash syntax but not posix sh. Also I'm not sure how the patterns are expanded (i.e. *'<hal'*). The easiest way is setting -x for tje shell, to see, what happens (imsert "set -x" after the hash bang).

My approach is more similar to the original zip: get the livedisplay line:

linecount=$(sed -n '/<name>vendor.lineage.livedisplay<\/name>/=' /vendor/etc/vintf/manifest.xml)

linecont decreased by 1 is the absolute linenumber of the livedisplay's block (<hal format="hidl">). Now we can get the telative linenumber of the first "</hal>" after $linenumber. wc -l gives the linenumer of the file. linenumber of the file minus $linecount are the lines_to_search. Then we can

relative_end = tail -n $lines_to_search manifest.xml | grep -n -m1 '</hal>' | cut -d':' -f1

Now we can compute startlinecount ($linecount minus 1) and endlinecount ($linecount plus relative_end).

At the moment I'm stuck with the filenames: generating the backup filename dynamically depending on what path/file is found; and generating the regular filenames dynamically from the backup filename on restore...
[OnePlus 3T Guides, News, & Discussion] :
I have IT working for op3t where it does not matter if something is changing in the manifest.XML file anymore. I search for the livedisplay part and remove the block from <hal.... till </hal>.

Here is the working script, can probably also easy converted to work with every type of phone?

#!/sbin/sh
#
# Script by 2Tweak
# Last modified 20-07-2019

echo -n "Repair Phone Is Starting error......"

rm -f '/system/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus3'
rm -f '/system/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus3.rc'

fname="/system/vendor/etc/vintf/manifest.xml"
found=0
startstop=0
tstr=""
nstr=""
IFS=$'\n'
while read line
do
if [[ "$line" == *'<hal'* ]]; then
startstop=1
elif [[ "$line" == *'</hal'* ]]; then
startstop=2
elif [[ "$line" == *'livedisplay'* ]]; then
found=1
fi
if [ $startstop -eq 1 ]; then
tstr="${tstr}\n${line}"
elif [ $startstop -eq 2 ]; then
tstr="${tstr}\n${line}"
if [ $found -eq 0 ]; then
nstr="${nstr}${tstr}"
else
found=0
fi
tstr=""
startstop=0
else
if [ "$nstr" == "" ]; then
nstr="${line}"
else
nstr="${nstr}\n${line}"
fi
fi
done <"$fname"

echo $nstr > $fname

echo " done!"
sleep 0.3
[OnePlus 3T Guides, News, & Discussion] Dirk:
Nice one! You really got your teeth into this. Let me package that.....

Check the flashable zip for me?

Edit: I've created a version for myself for the OP5 too. Just renamed those two files back to '....oneplus_msm8998'.

Edit:

After flashing the zip i made a copy of the manifest.xml and checked it after rebooting. The Livedisplay block is still present.
[OnePlus 3T Guides, News, & Discussion] :
Zip is working!

When you could give me the filenames for op5 again, we can make it usable for both; just one script ;)
[OnePlus 3T Guides, News, & Discussion] Dirk:
Check my edit above. My Livedisplay block is still present on my OP3T (crDroid)

The OP5 paths and filenames are:

/vendor/etc/vintf/manifest.xml

/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus_msm8998 /vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus_msm8998

Edit: Wait a second, the two files are still present. Zip seems like it flashes okay though. I notice there's nothing in the script to mount /system. Could that be it?
[OnePlus 3T Guides, News, & Discussion] :
Test this; we do a check now first to see if it is op3 / op5 directory structure:

echo -n "Repair Phone Is Starting error......"

# because we want it universal we try mounting both system and vendor
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /vendor 2>/dev/null

# check for op3 or op5
if [ -e system/vendor/etc/vintf/manifest.xml ]; then
#op3
rm -f '/system/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus3'
rm -f '/system/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus3.rc'
fname="/system/vendor/etc/vintf/manifest.xml"
else
#op5
rm -f '/vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus_msm8998'
rm -f '/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus_msm8998'
fname="/vendor/etc/vintf/manifest.xml"
fi

found=0
startstop=0
tstr=""
nstr=""
IFS=$'\n'
while read line
do
if [[ "$line" == *'<hal'* ]]; then
startstop=1
elif [[ "$line" == *'</hal'* ]]; then
startstop=2
elif [[ "$line" == *'livedisplay'* ]]; then
found=1
fi
if [ $startstop -eq 1 ]; then
tstr="${tstr}\n${line}"
elif [ $startstop -eq 2 ]; then
tstr="${tstr}\n${line}"
if [ $found -eq 0 ]; then
nstr="${nstr}${tstr}"
else
found=0
fi
tstr=""
startstop=0
else
if [ "$nstr" == "" ]; then
nstr="${line}"
else
nstr="${nstr}\n${line}"
fi
fi
done <"$fname"

echo $nstr > $fname

echo " done!"
sleep 0.3

---------- Post added at 16:57 ---------- Previous post was at 16:55 ----------

And indeed, I mount directories first in twrp, is not included in script.

You probably have to add that....
[OnePlus 3T Guides, News, & Discussion] Dirk:
Typo:

rm -f '/vendor/etc/init/vendor.lineage.livedisplay@2.0-service.oneplus_msm899'

Also needs mount /system or mount /vendor depending on phone.

I just mounted /system manually and flashed the zip and now it looks like it should. Livedisplay settings have been gimped as expected.
[OnePlus 3T Guides, News, & Discussion] :
See modified script in my previous post....
[OnePlus 3T Guides, News, & Discussion] Dirk:
Thanks. I'll package and try it. :good:
[OnePlus 3T Guides, News, & Discussion] :
Should now work on both ;)
[OnePlus 3T Guides, News, & Discussion] :
Don't forget to mount system or vendor depending on the device. Best practice: mount both and drop all output.

[MENTION=9843830]2Tweak[/MENTION]: I guess you've moumted system manually on testing. After mounting (system OR vendor, or system AND vendor; see above) you can use

rm -f $(find /vendor /system/vendor -name vendor.lineage.livedisplay\*-service\*)

to remove the livedisplay service generically.

EDIT: needed too long to finish my posting - started before you wrote the last...
[OnePlus 3T Guides, News, & Discussion] Dirk:
Error 255.

Don't worry about trying to get it working for two phones in one zip. Let's only concern ourselves with the 3/T.

Edit: Done and Done. Thanks to you we have a working script for testing! Flashable zip in OP. (Manifest edits successful, files removed, Livedisplay gimped as expected)

Good job fella.
[OnePlus 3T Guides, News, & Discussion] :
Deleted. I shouldn't try to follow you, while in a meeting... :(
[OnePlus 3T Guides, News, & Discussion] Dirk:
You shouldn't be in a meeting at the Weekend! :p
[OnePlus 3T Guides, News, & Discussion] :
I'm brutally forced... ...by money... :p (with regards to content this meeting has been needless, but now we get a - hopefully - great meal)
[OnePlus 3T Guides, News, & Discussion] Dirk:
I'm just going to work now myself. 12 hour nightshift. There will also be a meal... if i cook it myself. :)
[OnePlus 3T Guides, News, & Discussion] :
Just back myself. Thanks both [MENTION=1763460]Dirk[/MENTION] and [MENTION=4405529]nvertigo67[/MENTION] for your help making it available as a flashable zip and ofcourse with hints, helping to make it work etc....!!
[OnePlus 3T Guides, News, & Discussion] Dirk:
[MENTION=4405529]nvertigo67[/MENTION]

What do you make of the recent Livedisplay commits here:

https://github.com/crdroidandroid/android_device_oneplus_msm8998-common/commits/9.0

Is this an attempt to fix the root cause?
[OnePlus 3T Guides, News, & Discussion] :
I can't see the livedisplay commits and their relation chain from that link. And what about the livedisplay changes in the kernel, in the lineage vendor repo, in the LineageParts repo, in the hw interfaces repo and in the sdk (from memory, maybe livedisplay effects even more repos)? They need to be reverted, arn't they?

The livedisplay implementation in https://github.com/crdroidandroid/a...7bcad38244753dc56b3f12907b3f82d8e/livedisplay is very different from op3/t's, which uses lineagehw overlaying...

For complex implementations like livedisplay, it's too hard for me to get all necessary pieces without gerrit - or I'm too stupid to do so.

Anyway: you can't adopt msm8998 hardware depending implementations 1:1 to msm8996 - different underlying display blobs.

BTW: The fixes in this commit aren't necessary for op3/t, because the errors wasn't in...
[OnePlus 3T Guides, News, & Discussion] Dirk:
[MENTION=9843830]2Tweak[/MENTION]
[MENTION=4405529]nvertigo67[/MENTION]

So the thing that we were concerned about and the very thing that prompted the script upgrade, happened. Sooner than expected. One of the recent 'Livedisplay' commits in crDroid removed four lines from the Livediplay block of text in the manifest.xml. A day later and we had the new ROM build on the OP5.

I didn't test the old PIS fix zip, assuming it would probably break something, as expected. I have tested the upgraded script however and it worked perfectly. The whole block is removed despite the commit alterations. :good:

Turns out crDroid are testing some changes in an effort to mitigate the issue. It's a compromise though, designed to leave most of the Livedisplay functionality intact. Really the whole thing should be replaced, but at least we have a working fix.

I hope not too many people try using the old fix on the new ROM, (although i am curious to find out what it breaks). I have posted a warning, which i expect will be ignored.
[OnePlus 3T Guides, News, & Discussion] :
Glad to hear it is working as expected, even with a changed manifest.xml! :good:
[OnePlus 3T Guides, News, & Discussion] :
I think with next nightly the issue will be solved... ;)

https://review.lineageos.org/252878

https://review.lineageos.org/252879

https://review.lineageos.org/252978
[OnePlus 3T Guides, News, & Discussion] Dirk:
We haven't had a new crDroid build since 6th June. I think i'll be using the zip fix for a while longer! :laugh:

Not had a single PIS Hang on either device since using it though, so it's done it's job.

Zip can always live on as a 'Livedisplay Disabler' for people like me who don't use it too.
[Nexus 9 Android Development] JT1510365:
reserved for future use:)

When i am bored i love making ROMs for you all!
[Nexus 9 Android Development] bagnolo2015:
I flashed your rom (I did all the wipes) when it restarts it gets stuck on the black screen with the goole logo, can you give me a solution? I tried to flash your other rom (AospExtended v4.6 e) problem text. Help
[Nexus 9 Android Development] bagnolo2015:
Do I have to flash a vendor? Please help me, now no roms work!
[Nexus 9 Android Development] madbat99:
Did you flash an Oreo ROM? Then yes you need the latest stock vendor to go back to nougat
[Nexus 9 Android Development] RisingNoob:
Any news on this ROM? Really looking for improving my Nexus 9, right now running Original ROM + Fire Ice Kernel.

Since the Google ROM always has some RAM issues I figured some custom could be the solution.
[Nexus 9 Android Development] samstheman42:
Everything is running nice and smooth so far, thanks for breathing life back into my old, decrepit tablet!
[OnePlus 5 Questions & Answers] AutruiP:
Hi,

I'm trying to record calls on my OP5 and LineageOS 16. I'm in France and it's legal to record for personal use.

Is there a way to do it ? I thought with Root+Magisk it should be possible but I can't find a way to do this.

Thanks in advance
[OnePlus 5 Questions & Answers] strongst:
This one is a very good recorder app https://play.google.com/store/apps/details?id=com.appstar.callrecorder
[Non-Touchscreen Windows Mobile Other] secable:
hi

im searching a program to made or edit a cab directly from the smartphone

thanx all
[Non-Touchscreen Windows Mobile Other] buggers999:
us this it's free cab explorer download
[Samsung Galaxy S10+ Questions & Answers] iKenta:
so i downloaded the U1 files for (unlocked) because my phone was originally unlocked, and i switched from that to verizon/tmobile etc etc.. but for some odd reason, i put in a 'simple mobile' sim card and the phone magically changed it to self to MetroPCs (boot starter image etc) you know.. how the Note9/8 and S8/9 does when you insert any carrier sim card and it auto change to that carrier..

so i tried inserting verizon sim hoping it'll change back to verizon but nothing.. its stuck there and i tried uploading the BL/AP/CP/CSC files for it to go back to its original form of "unlocked version" how i got it from samsung.. but i keep getting this error below, i even tried regular CSC and the HOME as well but no dice... anyone got any insight on that?

thanks in advance.

https://www.dropbox.com/s/vywrern1dd1ip8h/s10pluserror.png?dl=0
[Samsung Galaxy S10e Questions & Answers] Debrie12:
Is it safe to flash the sm-g970f international variant to sm-g970n korean variant?

Its factory unlocked and i just want to get rid or the carrier branding specially the boot animation and possibly change the warnings to english also

Both units are exynos but the sm-g970n is single sim
[Samsung Galaxy S10e Questions & Answers] aze2learn:
Get the KOO firmware which is unbranded (SKC/KTC/LUC are carrier branded). You might kill the phone if you try to flash the international one.
[Samsung Galaxy S10e Questions & Answers] Vegetto32:
Flashing to KOO won't solve the warning Korean language issue also i know for a fact it possible to flash the sm-g970f on sm-g970n because i received my phone that way but there's an issues no updates for example.

I have no idea how the seller did it probably not by odin.
[Samsung Galaxy S10e Questions & Answers] zpunout:
Has anyone confirmed yet whether doing this with Odin or Heimdall is possible? And if it is, will the frequency bands used by the F variant be utilised? I noticed some cheap N variant phones for sale on ebay, but the bands are different to the F variants which were sold locally.
[Xiaomi Redmi Note 7 Questions & Answers] nixon.itai:
I have noticed that the things that waists the most battery is cell stand by, much more than the screen.

What can I do? Is it normal?
[Android Q&A, Help & Troubleshooting] satyanarayananp:
Hi All,

This is my first post and I am desperately trying to get data (baby pictures) of my Wife's phone which wont boot up.

I get a black screen with lot of scribbling which I would key in below.

Bootloader Logs

Start Up Failed:

Your Device didn't start up successfully.

Use the Software Repair Assistant on computer

to repair your device.

Connect your device to your computer to get

the Software Repair Assistant.

AP Fastboot Flash Mode (Secure)

Fastboot Reason: Volume down key pressed

USB connected

failed to validate boot image

ERROR: Failed to pass validation, backup to fastboot

Boot up failed

The phone is not rooted, I do not think developer mode is activated.

Now I am stuck with a phone containing all the baby pictures and no way to recover it.

On pressing Volume down key the following appears

Switch Tools Mode

AP Fastboot Flash Mode (Secure)

BL: C2.12(*) (sha-07ff23c, 2018-08-01 17:56:33)

Baseband:

Product/Variant: sanders 000000000000000 64GB P4

Serial Number: 567ad45c

CPU: MSM8953

eMMC: 64GB SAMSUNG RC14MB RV=08 PV=07 FV=0000000000000007

DRAM: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=5F

Console [NULL]: null

Tools Mode Config: DISABLED

Battery OK

oem_locked

Transfer Mode: USB Connected

Only the "Tools Mode Config: DISABLED" can be enabled using the power button and volume keys.

Any help would be appreciated.

Since nobody re-posted it or helped asking again.

Regards,

Sathya
[Android Q&A, Help & Troubleshooting] SachinBorkar:
Clone your phones data via miracle box extract cloned data and get data back.

Or get backup via twrp.

Or stock recovery backup may work.

Go to recovery.
[Android Q&A, Help & Troubleshooting] satyanarayananp:
Thanks buddy, I downloaded twrp-sanders-r20.img

But how am I going to use it? The phone does not have developer option enabled..
[Android Q&A, Help & Troubleshooting] SachinBorkar:
No problem still I can flash it via sp flash take backup of internal storage or Mount to PC as USB storage.
[Android Q&A, Help & Troubleshooting] satyanarayananp:
Thanks for the reply, I am not sure what you are referring to, I have used SP flash tool for my MI devices, but you do need a scatter file which contains the partition details and sizes.

where can I get the scatter file for Moto G5 S plus?

Regards,

Sathya
[Android Q&A, Help & Troubleshooting] SachinBorkar:
Is moto g4 is mtk phone ?

Is it then download firmware/stock ROM from internet....
[Android Q&A, Help & Troubleshooting] Kudsey:
Did you manage to solve this issue? I have the same problem.
[Android Apps and Games] haism007:
How we get media server drainer

https://forums.plex.tv/t/norton-pick...-server/302394

Here it hit the pc

I get. It 4..my mobile after i download ....plex ****

I belive media server was part..of the app...that doesnt let go...after uninstall.....spying..mybe...

Any way there is allot ....about booth..app...

Even unistall not ....working 100%

https://forums.plex.tv/t/how-does-o...s-of-the-plex-server-from-the-shield/151861/6

How to stop. It its now part of the Android. Sys

Now what
[Huawei P30 Pro Questions & Answers] ellopr:
Need help figuring this one out. I just got last week while visiting Illinois a P30 Pro L04 that is from Telcel Mexico. Got it from a coworker that lives in Mexico. It is unlocked and I am using in T-mobile ever since. I live in Puerto Rico where Tmobile has Band 4-66-71 for LTE. My previous phone is an Note 9 that I love and still think is better in some ways that the P30 specially in the software side. The cameras in the P30 are spectacular and step way above the Note 9. Long story short my P30 won't connect to band 66, only band 4. It is supposedly supported but it doesn't connect to it. I put my sim card back in the Note 9 and it does connect to band 66 as it used to. So it is definitively the P30 Pro problem. Does anyone know a way to verify what Bands are supported on the phone and see if it Telcel that blocked the band 66. Or maybe the P30 does NOT support band 66 as claimed? Does anyone has a L04 and can connect to band 66? I am new to Huawei phones and don't know what tool are available to verify this things.
[Huawei P30 Pro Questions & Answers] Goronok:
I think you might be seeing 66 on your note, but it still really 4. (4 is a sub frequency of 66)

The 66 you're referring to will specify AWS-3. An app like network cell info on the play store should specify - though will likely only work on the Note assuming it's the snapdragon variant.