yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] aliv:
In TWRP goto Advanced -> Terminal, then command in shell:

# backup

dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img

dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img

# restore

dd if=/sdcard/modemst1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1

dd if=/sdcard/modemst2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
[Nexus 5 Original Android Development] z3DD3r:
Hi there,

I've build new version of LOS:

lineage-16.0-20190615-UNOFFICIAL-hammerhead.zip

lineage-16.0-20190615-UNOFFICIAL-hammerhead.zip.md5sum

This version includes fix for calls via bluetooth!

I'm not sure that fix will work in all cases. Please test this build and share your results.

PS: Many thanks to [MENTION=7730768]EnesSastim[/MENTION] and [MENTION=7412373]Sashko98[/MENTION] for their work!
[Nexus 5 Original Android Development] EnesSastim:
Send the commit
[Nexus 5 Original Android Development] jprimero15:
Does it work?
[Nexus 5 Original Android Development] brofkims:
a question about unresolved problem

I tried to build lineageos 16 for nexus 5 too, but i met this error. (I followed the build guide, https://wiki.lineageos.org/devices/hammerhead/build)

What shoud I do more?

$ breakfast hammerhead

including vendor/lineage/vendorsetup.sh

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_hammerhead".

11:45:56 dumpvars failed with: exit status 1

Device hammerhead not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).

Found repository: android_device_lge_hammerhead

Default revision: lineage-16.0

Checking branch info

Checking if device/lge/hammerhead is fetched from android_device_lge_hammerhead

LineageOS/android_device_lge_hammerhead already fetched to device/lge/hammerhead

Syncing repository to retrieve project.

Fetching project LineageOS/android_device_lge_hammerhead

Fetching projects: 100% (1/1)

Fetching projects: 100% (1/1), done.

Repository synced!

Looking for dependencies in device/lge/hammerhead

Looking for dependencies in kernel/lge/hammerhead

kernel/lge/hammerhead has no additional dependencies.

Done

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_hammerhead".

11:46:02 dumpvars failed with: exit status 1

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_hammerhead".

11:46:03 dumpvars failed with: exit status 1

** Don't have a product spec for: 'lineage_hammerhead'

** Do you have the right repo manifest?
[Nexus 5 Original Android Development] @vjnexus:
Bro, this is not the thread to ask these things

Anyway adapt the device tree to according to Lineage
[Nexus 5 Original Android Development] solace mukhtar:
You are amazing.... Omg! Thanks so much
[Nexus 5 Original Android Development] M Asad Khilji:
Have you tested this build ? Is the Bug really gone ? :D
[Nexus 5 Original Android Development] mandayugana:
BT call is working fine, no distortion.
[Nexus 5 Original Android Development] bluetooth-bug:
It's probably this: https://xdaforums.com/showpost.php?p=79645168&postcount=4
[Nexus 5 Original Android Development] z3DD3r:
[MENTION=9675018]bluetooth-bug[/MENTION],

No it's not.

[MENTION=7730768]EnesSastim[/MENTION],

I'll push my fix and share it with you in a day or two. I'm not at home right now
[Nexus 5 Original Android Development] bagajohny:
Do I need to repartition?
[Nexus 5 Original Android Development] brofkims:
a right answer should be like this

I do not think I made a mistake or didn't abide posting rules. The build guide I linked is about building 'LineageOS for Nexus 5' and what I asked was neither about a general primer nor about useless informations.

BTW, I myself became aware of the solution about this problem. This is only for a initial build test with minimal source modifications, so it is not important whether the build process might succeed or fail by this time.

$ cd ~/android/lineage/device/lge/hammerhead

$ cp ~/git/nexus5oof/device_lge_hammerhead/lineage_hammerhead.mk . (I pulled nexus5root source to local pc)

$ mv manifest.xml manifest.xml.backup

$ cp ~/git/nexus5oof/device_lge_hammerhead/manifest.xml .

$ mv AndroidProducts.mk AndroidProducts.mk.backup

$ cp ~/git/nexus5oof/device_lge_hammerhead/AndroidProducts.mk .

$ cd ../../.. (~/android/lineage)

$ breakfast hammerhead (of course, I aleady run 'source build/envsetup.sh')

including vendor/lineage/vendorsetup.sh

Looking for dependencies in device/lge/hammerhead

Looking for dependencies in kernel/lge/hammerhead

kernel/lge/hammerhead has no additional dependencies.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=9

LINEAGE_VERSION=16.0-20190616-UNOFFICIAL-hammerhead

TARGET_PRODUCT=lineage_hammerhead

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.2.0-rc4+-x86_64-Ubuntu-Eoan-Ermine-(development-branch)

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=PQ3A.190605.003

OUT_DIR=~/android/lineage/out

============================================

$ croot

$ brunch hammerhead
[Nexus 5 Original Android Development] JackyGundam:
why selinux is not enforcing?

does overlay.zip work in this rom?
[Nexus 5 Original Android Development] konsoleto:
Many thanks for the elaborated description. What about the selinux enforcing issue?
[Nexus 5 Original Android Development] lulli1:
Wow. Flashed it right now and yes... It works. No more distortions while bt calling. How did you figure out the problems? Do you have a git link for your necessary changes? And thank you and maybe others who helped you here, very much for this!!!:svetius:
[Nexus 5 Original Android Development] z3DD3r:
I'm glad that everything works for you! This build includes first version of the fix. I've already improved it and sent it to gerrit. We also have confirmation that this fix works for LG G4. If you want to know more details then read the BT Calling Robotic Audio thread.
[Nexus 5 Original Android Development] M Asad Khilji:
Bro, can you develop custom kernel for hammerhead pie builds?

Many Thanks for the Bug Fix :highfive:

P.S We have kernel support of Ex, Franco, BluSpark till Nougat. I think Ex code is open source and works on some Oreo Builds.
[Nexus 5 Original Android Development] konsoleto:
On another thread I've read that official pie ROMs is now an option for hammy. Is there a possibility or probability of it happening anytime soon?
[Nexus 5 Original Android Development] M Asad Khilji:
Yes, it's true. Gonna happen soon :)
[Nexus 5 Original Android Development] lulli1:
You mean official LOS?

You have to ask razorloves for that. He's the official maintainer. But Lineage has taken the hammy from the list for supported devices, so it's just razorloves good will, baking another "unofficial-official" LOS rom.;)
[Nexus 5 Original Android Development] jayakadek19:
Thank's for the Pie rom, used it for a week now and found some bugs but it wasn't a big deal. I think the battery really need help.
[Nexus 5 Original Android Development] konsoleto:
Do you mean the backup/SOT is not as good as it should have been?
[Nexus 5 Original Android Development] z3DD3r:
Hi,

I've already tried to build Franco Kernel. 3 issues has been found so far:

Wifi and mobile data does not work

Contents of sdcard is not shown

Ambient display doesn't work

I've managed to fix issue with wifi and mobile data. Seems that problems with sdcard are related to SDCARD_FS driver and could be fixed quite easy. But i have no idea what to do with ambient display. I'm not a kernel developer and need a lot of time to understand what is wrong and how to fix it. Maybe i'll back to kernel after the bt fix will be merged to LOS, but I can not guarantee that I will be able to build a working kernel for PIE :(
[Nexus 5 Original Android Development] Tazz28:
The real next step would be to help to switch to upstream kernel: https://masneyb.github.io/nexus-5-upstream/

The gap is closing quite rapidly, and with upstream exposure, enabling the last non working bits would be more simple challenge as more people concentrate on a single future proof kernel tree.
[Nexus 5 Original Android Development] M Asad Khilji:
I am hopeful that you can do it bro, after BT bug is merged into LOS. Thanks for trying and Cheers :highfive: :victory:
[Nexus 5 Original Android Development] jprimero15:
This "might" be the thing you need: https://github.com/Jprimero15/andro...mmit/20626d60b8a108e05dcbfc1c29aa5688058e0e59
[Nexus 5 Original Android Development] PizzaAmerican23:
When is this gonna be linked to the First post? Im someone who usually only runs official releases, and am a little weary to run an unofficial build. Especially when its only linked in the comments.
[Nexus 5 Original Android Development] z3DD3r:
Sorry, but i'm not a topic owner and can't link anything to the first post. This build was posted here just because i don't see any reason to start new thread...

Hope that EnesSastim will provide a new build with bt fix soon...
[Nexus 5 Original Android Development] jayakadek19:
I don't know what it that means but as my experience using this rom is great, the gps sometimes didn't work when I using waze, I should also open gps locker to use waze or maps to keep gps locked. The bluetooth is unstable when I connected it to my speakers just only to listen music. The wifi I guess is very low because sometimes when I update an app on play store, the download is paused and then it continued to download again after I turn off and on the wifi. The camera app sometimes force closed too. Its not as good as a stock rom experience but overall its okay to used. Btw I'm still using it now.
[Nexus 5 Original Android Development] @vjnexus:
Battery backup ?
[Nexus 5 Original Android Development] Narsage:
I am kinda new here but can some guide me how to root my phone.

I had actually rooted using chainfire auto root but after installing this rom and twrp i lost root. Can someone help me to get it back(I have already tried using chainfire auto root after installing this rom)
[Nexus 5 Original Android Development] blairfancy:
Install addonsu.zip with twrp from lienage extras : https://download.lineageos.org/extras
[Nexus 5 Original Android Development] Tornado15550:
I'd suggest using Magisk instead. It's a much better experience with Magisk Hide functionality which can let you use apps that detect root and prevent you from using them. Furthermore it also passed Google's SafetyNet which will allow you to download apps like Netflix from the play store.
[Nexus 5 Original Android Development] PizzaAmerican23:
What is the "enforcing" rom that is on the download page?
[Nexus 5 Original Android Development] Slmnj:
Guys, you can check out what's new in the latest July build through these links:

https://github.com/nexus5oof/kernel_lge_hammerhead/commits/pie

https://github.com/nexus5oof/vendor_lge/commits/pie

https://github.com/nexus5oof/device_lge_hammerhead/commits/lineage-16.0

And also:

https://lineageos.org/Changelog-23/

Expect improvements in stability, bluetooth audio, camera etc.

Huge thanks to all the devs involved. You guys are awesome.
[Nexus 5 Original Android Development] amirmt71:
Thanks! and You can dirty flash over the previous build.
[Nexus 5 Original Android Development] Rabittek:
Trying to perform a clear install of lineage-16.0-20190701-UNOFFICIAL-hammerhead.zip via TWRP 3.1.0-0 results in ERROR: 7. With last TWRP 3.3.1-0 all works fine.
[Nexus 5 Original Android Development] theanacrusis:
I am going to install opengapps pico with config:

Include
PackageInstallerGoogle
DialerFramework

Do I still have to repartition? Is there any hope to install this rom without repartitioning?
[Nexus 5 Original Android Development] Rabittek:
I've tried pico with no repart ending alwys with Error 70 (not enough of space on system part), even with deleting apps I do not want from Lineage like callendar etc before opengapps flash. After repartin all fine. Repartitioning process is straight fw process as described here. So, do not be afraid.
[Nexus 5 Original Android Development] edison0354:
Try using MagicGApps, it works for me on both Nexus 5 and Nexus 7 2013.
[Nexus 5 Original Android Development] tmcka:
build fingerprint

It seems in this last build the build fingerprint was changed from hammerhead to taimen, in other words it makes the Nexus 5 pass for a Pixel 2 ... what is the reason behind that change ?

commit 6eb1e32bd75f1c7be4e8d6ce8a93ce6742109818 in nexus5oof/device_lge_hammerhead on github
[Nexus 5 Original Android Development] jprimero15:
To pass safetynet maybe.
[Nexus 5 Original Android Development] timgoodwin:
Magisk fails safety net...

Hi Guys - great ROM, thanks for the hard work! Installed latest Magisk (19.3) but Google Pay doesn't let me add card for contactless payment (well, card is added but Pay says it can't be used in shops) and Magisk reports ctsProfile and basicintegrity false. Have tried all the normal things, clearing Play Services cache etc. but can't get safety net passed. Any ideas?
[Nexus 5 Original Android Development] mandayugana:
I don't know if this is related, but, today my mobile banking app suddenly detect root and refuse to start. After downgrading to Magisk 19.2, it started to work again. It seemed Magisk 19.3 failed to hide root from app.
[Nexus 5 Original Android Development] timgoodwin:
Thanks. Will give that a try.

[EDIT: I can confirm this works. Thanks.]
[Nexus 5 Original Android Development] konsoleto:
But where is the zip of July build?
[Nexus 5 Original Android Development] timgoodwin:
https://sourceforge.net/projects/nexus5oof/files/LineageOS/
[Nexus 5 Original Android Development] konsoleto:
Also, any idea why SELINUX is enforcing and the Android System discover trust feature fails?

How concerned should one be about it?
[Nexus 5 Original Android Development] z3DD3r:
This build (enforcing) was only built for tests. We are still working on SELinux policies...
[Nexus 5 Original Android Development] nomadewolf:
So does this ROM have the BT Calling Audio issue, or not?

Some people complain about it, but it's not specified in the description...

Anyone has tested this?

An answer would be cool since i don't feel like partitioning just to test, because i'm lazy :)
[Nexus 5 Original Android Development] konsoleto:
Not facing any such issue.
[Nexus 5 Original Android Development] konsoleto:
Just want to thank the DEVs who are working on this ROM. Awesome job on this.

I've been using the build since June and the latest one is so much more stable. Kinda makes my hammy all new. The ROM response is fluid and very responsive.

On LOS 14 I'd heating issues w.r.t charging, phone used to be almost unusable while charging and the touch response had a huge latency.

Also, using WiFi/mobile-data during charging made my phone totally unresponsive.

No such issues with this build so far.

I'd use FK/EX to squeeze out SOT in this 5 year old phone, but I find the standby battery drain really negligible on this build without any kernel fuss. Don't know why :confused:

(eagerly waiting for that selinux policy fix)

Also, is it possible to hide apps? I used to do that in LOS14. Can't find any such option.

Only bummer is the reduced battery capacity which is 1700mAh as of now. Had it been a bigger battery, I could easily live with this phone for another 5 yrs.
[Nexus 5 Original Android Development] konsoleto:
One crucial feature that I miss, coming from los14, is the control over notifications. Los14 provided ability to tweak notification importance like make a sound, overlay, show silently etc.

I can't find the same in this build. Is it cos of Pie? Wasn't this a LOS specific feature?
[Nexus 5 Original Android Development] CDrom MSdos:
Hi Guys, I'm new here (I speak portuguese, só my english is nota 100℅ :cowboy: )

This ROM is awesome... But the battery drain seems a little more intense than others...

And is there a way to send videos from WhatsApp?
[Nexus 5 Original Android Development] konsoleto:
Are you experiencing standby drain? If not, the battery manager can surely point which app is draining out the battery.

Also you should try running in safe mode to conclusively say that ROM is causing the battery drain.
[Nexus 5 Original Android Development] CDrom MSdos:
The battery consumption is not abusive... But when I was waking up in the morning with the Stock ROM with the same apps installed, battery downs 3%, 4%... But with this ROM downs 9℅, 10℅

Is that normal?
[BLU R1 HD Guides, News, & Discussion] bibikalka:
A public service announcement.

A new tool (mtk-su) by [MENTION=8132642]diplomatic[/MENTION] (link) is able to achieve a temporary yet full featured root shell on any OS version for the original BLU R1 (and most likely, on BLU R1 PLUS), see this post for proof. Use mtk-su_r11.zip, version in armv7-kernel folder, and you will get a rooted shell. To install permanent root, you will need to unlock your bootloader.

Perhaps, [MENTION=5312578]mrmazak[/MENTION] would be kind enough to update his R1 bootloader unlock tool to all OS versions ;) It should be possible to update bootloader unlock for R1 PLUS up to the latest OS version (@lopestom), given that there is now a full featured root shell with rw system access.
[BLU R1 HD Guides, News, & Discussion] mrmazak:
since you have your R1 powered up already, can you let me know if that temp root shell gives access to /dev/block.

as in can you test if a dd command to /dev/block is allowed. if it is then this will make a nice replacement to dirty-cow method..

:cool::D
[BLU R1 HD Guides, News, & Discussion] bibikalka:
Yep, seems to work OK:

shell@R1_HD:/data/local/tmp $ ./mtk-su_arm7 -v
armv7l machine
param1: 0x1000, param2: 0x8040, type: 7
Building symbol table
...
New UID/GID: 0/0
starting /system/bin/sh
shell@R1_HD:/data/local/tmp # dd if=/dev/block/mmcblk0p7 of=/sdcard/p7t.bin
32768+0 records in
32768+0 records out
16777216 bytes transferred in 3.630 secs (4621822 bytes/sec)

This is way better than DirtyCow ! :D
[BLU R1 HD Guides, News, & Discussion] mrmazak:
that seems soo simple.

changed the dirty-cow section of the tool to use this mtk-su

and based on the read-me says, this command should work, as an all in one.

example based on file name used in tool
adb shell "/data/local/tmp/mtk-su -c dd if=/data/local/tmp/unlock of=/dev/block/mmcblk0p17"

can you test it?

adb push mtk-su /data/local/tmp/mtk-su
adb shell chmod 0777 /data/local/tmp/mtk-su
adb shell "/data/local/tmp/mtk-su -c dd if=/dev/block/mmcblk0p7 of=/sdcard/p7t.bin"
[BLU R1 HD Guides, News, & Discussion] bibikalka:
Just tested the last bit of code, all worked properly! Ended up reading mmcblk0p7 as expected! So please proceed ;)
[BLU R1 HD Guides, News, & Discussion] mrmazak:
I think it is ready.

Biggest unknown part is, weather it works on V9.x

We assume the only change made was the kernel patch that blocked dirty-cow. what if bootloader has unlock codes removed.

Any how I put it up on the unlock thread, And it needs a tester.
[BLU R1 HD Guides, News, & Discussion] bibikalka:
Well - it's not like the bootloader is set in stone :D You can overwrite any /dev/block, so if there are issues, why not return all stuff - preloader & bootloaders to the V6.6 ? Then even the MTK tool would work. I don't recall there was anti-rollback protection implemented. I guess your tool tries to be the least invasive, but the full featured root gives options for a total downgrade.
[BLU R1 HD Guides, News, & Discussion] mrmazak:
one of the options in the tool , is to roll-back the pre-loader.

did that long ago.

didn't try with shell , only with twrp. Similar to the way the OTA changed it. and it requires you to unlock again. but it has been repeatable process.
[BLU R1 HD Guides, News, & Discussion] kaslopis:
Would this work with r1 hd from Amazon?
[BLU R1 HD Guides, News, & Discussion] sbhawani051:
Hey guys, looking for little bit f help.

Actually I hardbricked by R1 plus accidentanly. Unable to find it's firmware anywhere on the internet. Xepirifirm didn't had this model in it previously. Could you please let me know where could I find it ROM and also how to boot up my phone again?
[Android Q&A, Help & Troubleshooting] FClone:
Hello everyone, I'm new here and I'm looking for help for my P8 lite 2017 Pra-Lx1 L31.

I flashed wrong costomrom, now starts for 2 rectangles blue and green then passes

for eRecovery in Chinese

I have already tried to update for wi-fi and it gives error in the search of the server.

I can access the fastboot mode and I have the unlocked bootloader and the frp locked.

I can not install TWRP through fastboot.

I have already tried UPDATE.APP by dload mode and it gives error or stops at 5%.

I already used several tutos here of the forum but nothing solved.

Has this ever happened to anyone? How can I solve ?

I thanked a charitable soul. :crying::crying::crying:

Edit : Solved

It was days of exaltation and headaches but at last I managed to find the thing.

With a lot of searching I found on the net 1 firm compatible, I did the dload method

* then wipe / data reset, installed TWRP and backed up. Again data reset and

replaces the backup of another PRA-LX1 from a friend.

Voila, I updated and now I have the impeccable PRA-LX1 8.0.0.385 (C432).

The version that had before the brick was PRA-LX1 8.0.0.046 (OC71).
[Xiaomi Mi 8 SE Questions & Answers] Toryar:
Hello, today I have try to Update my mobile but I think I did something wrong because when i want to reboot he boot in fastboot mod. And the key to boot on recovery doesn't work to.

Some people can help me please ?
[Xiaomi Mi 8 SE Questions & Answers] lolo9393:
Flash OFFICIAL Xiaomi fastboot rom via Miflash (take care, don't relock the bootloader!!!!) and reinstall TWRP 1102 or 1227 if you take the latest DEV version and not the STABLE.

TWRP 1102 or 1217 for Stable rom

twrp 1227 for latest DEV weekly rom 9.2.15

https://xiaomifirmware.com/roms/download-official-miui-roms-for-xiaomi-mi-8-se/
[Xiaomi Mi 8 SE Questions & Answers] Toryar:
Hi, firstly thanks you a lot, it's working tout flash with miflash, but i don't understand why I need to reinstall an twrp ? And I don't have any Google services like Google play or things like that
[Xiaomi Mi 8 SE Questions & Answers] lolo9393:
You are on OFFICIAL XIAOMI rom, that's was needed to refresh your phone.

This rom is full chinese without ANY GOOGLE application.

two options:

you stay with it and install GOOGLE PLAY on it or FLASH a custom modified EU rom with all the western stuff like Google and translations.

You need a modified recovery (TWRP) to flash a custom rom.

Your decision!
[Xiaomi Mi 8 SE Questions & Answers] Toryar:
Do you know if it exist an ROM europeen (french) on miui10 ? With the Google service or possibility to install the gapps
[Xiaomi Mi 8 SE Questions & Answers] lolo9393:
Yes

here you go.

Read well the first and second post and you'll be on the right track.

https://xiaomi.eu/community/threads/miui-10-0-10-1-10-2-10-3-stable-release.47170/

That's only what is well done with french language and under MIUI 10 Android 9.0
[Xiaomi Mi 8 SE Questions & Answers] Toryar:
Thanks, but doesn't exist on fastboot version ? Because I have try to unlock my bootloader and I need to wait 360 hours but i doesn't this time, do you have a link like the first you have send to me but for an fastboot version and europeen, whatever the miui version. Thanks
[Xiaomi Mi 8 SE Questions & Answers] lolo9393:
No way and no possibility to flash custom rom out of TWRP usage.

That's the problem you are facing to wait in order to unlock the bootloader.

You must do it or stay with chinese ROM. This was like that when you bought this 100% chinese phone. And for me the same, so I waited 360 H and unlocked the bootloader for having TWRP available...

You have time to learn on how to do it.
[Xiaomi Mi 8 SE Questions & Answers] Toryar:
No specialy one custom ROM, but official like the chinese flashable in fastboot but simply in global (with french language)