[DEV][ROM][2018-04-18]LineageOS bring up [Motorola X4 payton][15.1] - Moto X4 ROMs, Kernels, Recoveries, & Other Develop

Update 2018-06-10:
See this thread for more up to date (and working!) development:
https://forum.xda-developers.com/moto-x4/development/rom-lineage-os-15-1-t3802265
@erfanoabdi, @munchycool, @mightysween did some heroic hacking and fixed the major blockers for this phone. I apologize if I missed anyone because either I missed their posts or I didn't match them up to their XDA login. Be sure to thank them when you see their posts. There is a booting lineage os rom in the thread above. Heed the warnings, it is still experimental, and will probably require a full wipe to get it to boot.
I will eventually merge my repos with the ones in the ROM thread.
Original post below:
First off, credit goes to @invisiblek, @mightysween, and @kraatus90. I used their repos as a starting point for guidance.
I am working on bring up and porting lineage-15.1 to the payton.
kernel
device tree
vendor files
So far, it builds without major errors.
Booting to the rom hangs at the boot screen.
Booting to recovery works (lineageos recovery), but not much else is working otherwise.
The vendor files are from the stock retail rom OPWS27.57-25-6-10. This is Oreo 8.0.
I haven't tried flashing the ROM through TWRP, just fastboot.
The build process produces a zip file with a payload.bin inside. You can extract it with payload.bin extractor. You might need to install python-protobuf and python-lzma to get it to work.
Change a/b depending on what partition is currently working and which one you don't mind overwriting. I'm not sure if this will interfere with stock updates, so you might want to make a back up first.
Code:
fastboot flash boot_a boot.img
fastboot flash system_a system.img
fastboot --set-active=a reboot
What you can do:
Look through the device tree and submit pull requests for fixes. Boardconfig.mk, device.mk, and proprietary-files.txt will need lots of work.

*reserved*

Awesome work getting to this point.
I am still strapped for time, but out of curiosity does USB/adb come up in lineage recovery or during boot? That was what put the brakes on for me initially in my 7.1/14.1 based build attempt.

mightysween said:
Awesome work getting to this point.
I am still strapped for time, but out of curiosity does USB/adb come up in lineage recovery or during boot? That was what put the brakes on for me initially in my 7.1/14.1 based build attempt.
Click to expand...
Click to collapse
No usb/ADB yet, but that is a priority so that we can start debugging and fixing things. I think I have to look over the init scripts.

gee one said:
No usb/ADB yet, but that is a priority so that we can start debugging and fixing things. I think I have to look over the init scripts.
Click to expand...
Click to collapse
I had an init fix suggested by another dev for a similar device... never got to test it. Let me dig around in the threads and find it.
---------- Post added at 06:10 PM ---------- Previous post was at 06:04 PM ----------
mightysween said:
I had an init fix suggested by another dev for a similar device... never got to test it. Let me dig around in the threads and find it.
Click to expand...
Click to collapse
Actually, looks like I did test it unsuccessfully.
Seems like idVendor and idProduct are not being properly set for different USB properties.

gee one said:
First off, credit goes to @invisiblek, @mightysween, and @kraatus90. I used their repos as a starting point for guidance.
I am working on bring up and porting lineage-15.1 to the payton.
Click to expand...
Click to collapse
Great news, thank you already for putting effort into this :victory:
Regarding adb/USB. Both are working in the official TWRP for payton, mabye it helps if you take a look at their source code.
Cheers
Stefan

Super stoked to see the work being done for this phone. I bought it with the hopes that we'd see some decent ROM options come out of it. Subscribing for updates! You can do eet!

... Than you... Thank you... Thank you for all of you that building lineage for Payton ( I have XT-1900-7 EU) ... I bought this phone phone also with the hopes that some one will build up Lineage for it...

Just got this phone. Really hope we get a stable version of this soon. Not sure how much I trust the manufacturer OS.

trying to port LOS 15.1 to sony xperia xa2 i was hoping i could use some of your work but i see you have the same results. i can boot to lineage recovery, normal boot gets stuck on logo and fastboot boot boot.img gives me battery charging animation. maybe there's something that needs to be changed in init, boot.img from lineage works fine with aosp

frantisheq said:
trying to port LOS 15.1 to sony xperia xa2 i was hoping i could use some of your work but i see you have the same results. i can boot to lineage recovery, normal boot gets stuck on logo and fastboot boot boot.img gives me battery charging animation. maybe there's something that needs to be changed in init, boot.img from lineage works fine with aosp
Click to expand...
Click to collapse
gee one said:
Well, I'm working on building a lineage rom for this phone, but I can't get the thing to boot. I am using a copy of the device tree for the nash/moto Z2 force.
The boot.img will work with the stock rom, but I can't get lineage to boot. I just get bootloops until it falls back to the other A/B partition. I can boot into the lineage recovery mode from the boot.img I made, so at least that works.
I think the issue is with init. Does anyone have any hints on what will work? The marlin has the same a/b partitions, so I might try building aosp for the marlin and hope that will give me some hints about what is missing.
Click to expand...
Click to collapse
From another thread

steveeJ said:
Great news, thank you already for putting effort into this :victory:
Regarding adb/USB. Both are working in the official TWRP for payton, mabye it helps if you take a look at their source code.
Cheers
Stefan
Click to expand...
Click to collapse
Didn't realize this... thanks, will take a look at the source.
---------- Post added at 02:11 AM ---------- Previous post was at 01:52 AM ----------
mightysween said:
Didn't realize this... thanks, will take a look at the source.
Click to expand...
Click to collapse
@gee one FYI, although 7.1 base, addresses are the same... manual rewrite solves idVendor/Product issue.
https://github.com/TeamWin/android_...ndroid-7.1/recovery/root/init.recovery.usb.rc
---------- Post added at 02:16 AM ---------- Previous post was at 02:11 AM ----------
mightysween said:
Didn't realize this... thanks, will take a look at the source.
---------- Post added at 02:11 AM ---------- Previous post was at 01:52 AM ----------
@gee one FYI, although 7.1 base, addresses are the same... manual rewrite solves idVendor/Product issue.
https://github.com/TeamWin/android_...ndroid-7.1/recovery/root/init.recovery.usb.rc
Click to expand...
Click to collapse
BTW, totally different vendor/product addresses than I had arrived at... which probably explains why it works
The rest of the usb init seems pretty similar to where I ended up before. If it works in LOS recovery, it should carry through boot to give us some debug
---------- Post added at 02:56 AM ---------- Previous post was at 02:16 AM ----------
frantisheq said:
trying to port LOS 15.1 to sony xperia xa2 i was hoping i could use some of your work but i see you have the same results. i can boot to lineage recovery, normal boot gets stuck on logo and fastboot boot boot.img gives me battery charging animation. maybe there's something that needs to be changed in init, boot.img from lineage works fine with aosp
Click to expand...
Click to collapse
Any adb/debug from the XA2?
Obviously, we are going to face some serious kernel debugging...
Wonder if we can manually unpack/strip down/repack a boot.img that will at least get us into a position for logging.
---------- Post added at 03:03 AM ---------- Previous post was at 02:56 AM ----------
mightysween said:
Didn't realize this... thanks, will take a look at the source.
---------- Post added at 02:11 AM ---------- Previous post was at 01:52 AM ----------
@gee one FYI, although 7.1 base, addresses are the same... manual rewrite solves idVendor/Product issue.
https://github.com/TeamWin/android_...ndroid-7.1/recovery/root/init.recovery.usb.rc
---------- Post added at 02:16 AM ---------- Previous post was at 02:11 AM ----------
BTW, totally different vendor/product addresses than I had arrived at... which probably explains why it works
The rest of the usb init seems pretty similar to where I ended up before. If it works in LOS recovery, it should carry through boot to give us some debug
---------- Post added at 02:56 AM ---------- Previous post was at 02:16 AM ----------
Any adb/debug from the XA2?
Obviously, we are going to face some serious kernel debugging...
Wonder if we can manually unpack/strip down/repack a boot.img that will at least get us into a position for logging.
Click to expand...
Click to collapse
...may need to explore blacklisting/disabling peripherals to get to a basic boot state and bringup from there.

adb is not working. on lenovo kingdom we have used /proc/last_kmsg after reboot to twrp to see what's going on
https://github.com/K920/android_ker...mmit/7551e6960c9bbe31824437f7ba40c87b53157f3e
https://github.com/K920/android_ker...mmit/a24c3085fb001cf0b81855770bf327d9b49b5b0f
EDIT: got logcat working. eng build, not userdebug.
1. unpacked lineage boot.img using https://github.com/xiaolu/mkbootimg_tools
2. unpacked stock boot.img prepatched with magisk, not sure if magisk plays some role in it
3. replaced cmd_line=... in in lineage img_info file with the one from stock boot.img
Code:
console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 buildvariant=user
4. repacked lineage boot.img
looks like i just need to fix the camera and add some *.so to continue boot process.
EDIT: missing .so's are there, in /odm/lib64. /oem in your case. i have tried to copy them to /vendor/lib64 and it helped a little

i'm an idiot, forget what i wrote up there. looks like the generated kernel is all wrong, it's only 10MB compared to the 47MB in stock boot.img. after replacing kernel in boot.img with the stock one it tries to boot, the lineage one won't even try

Syncing fresh sources now, and will start working on this again soon!

frantisheq said:
i'm an idiot, forget what i wrote up there. looks like the generated kernel is all wrong, it's only 10MB compared to the 47MB in stock boot.img. after replacing kernel in boot.img with the stock one it tries to boot, the lineage one won't even try
Click to expand...
Click to collapse
But is adb working during boot? If so, can you post the boot.img even if it is otherwise junk... I can't seem to get adb up during boot and it is really bugging me
---------- Post added at 01:47 AM ---------- Previous post was at 01:14 AM ----------
Out of curiosity, how much physical memory are you guys compiling with? I have jack configured, 8GB on a quad-core i5 system and I still needed to add an 8GB swap partition just to get through ninja!

same here 8GB RAM and 16GB swap just to be safe.
stock sony ramdisk with working adb attached
EDIT: after hours of comparing lineage and stock boot.img all i have to do to get adb working on eng build is changing androidboot.hardware=pioneer to androidboot.hardware=qcom in img_info cmd_line='...
pioneer is a codename for sony xa2
BOARD_KERNEL_CMDLINE += androidboot.hardware=pioneer
changed to
BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom
in BoardConfig.mk

frantisheq said:
same here 8GB RAM and 16GB swap just to be safe.
stock sony ramdisk with working adb attached
EDIT: after hours of comparing lineage and stock boot.img all i have to do to get adb working on eng build is changing androidboot.hardware=pioneer to androidboot.hardware=qcom in img_info cmd_line='...
pioneer is a codename for sony xa2
BOARD_KERNEL_CMDLINE += androidboot.hardware=pioneer
changed to
BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom
in BoardConfig.mk
Click to expand...
Click to collapse
Seems to already be set to "qcom" on this device... I think we have some issues in usb init that need to be fixed.
Running a test build right now just to see where I stand with my new setup... new machine is on the slow side, but seems to be grinding along now after some memory issues.

mightysween said:
Running a test build right now just to see where I stand with my new setup... new machine is on the slow side, but seems to be grinding along now after some memory issues.
Click to expand...
Click to collapse
Failing RIGHT at the end as it generates the payload file...
Reinstalled all build packages, re-synced... no luck yet. Anyone run into this brillo error?
It generates the entire system, userdata, cache, radio, boot, etc... but simply fails to pack it all into the payload in the final step. Frustrating.
UPDATE: Disregard. This is a disk-space error. Apparently LOS15 is more beastly than I thought...256GB partition seems a bit on the small side suddenly
UPDATE 2: Gave up, moving to a Google Cloud Platform build system... should have done it from the beginning

Let the games begin!

Related

Unable to boot EVO 4G LTE

When I tryed to flash MeanICS on my evo all appeared to go well until I rebooted. After rebooting I only got a black screen. I can still boot into bootloader which gives me hope. I tryed reflashing Mean and a couple of other ROMs but the problem persists. I was hoping someone may have had a simular problem and had a fix or workaround that I could try.
Thx
Check my guide I listed this exact issue in troubleshooting, if you have any questions after feel free to ask
Thank you for your help. I now understand the problem (bootloop, caused probably by the kernel) but even a full wipe using twrp I can't get any ROMs to load, and I was not thinking and didn't make a back up.
Download a ROM and verify the check sum then unzip and place the boot.img in your adb tools (or SDK depending on what you use) boot to boot loader and select fastboot (from PC terminal, sorry) type fastboot flash boot boot.img and then in recovery try to flash the ROM zip. Be sure to wipe dalvik, cache, factory reset and system first to avoid issues
---------- Post added at 05:35 PM ---------- Previous post was at 05:22 PM ----------
I just noticed you said black screen, that most definitely is a kernel issue but its a ROM base mismatch, you just needed to fast boot the mean kernel most likely
I had this problem literally yesterday. All you need to do is flash the boot.img located in the unzipped folder of meanrom and then flash via fast boots via pc or mac. Wipe everything first and then flash the BOOT.IMG. THEN FLASH MEAN ROM and wipe cache etc.
Sent from my EVO on CM10
Yeah I read too quickly and missed the part about the black screen. I decided it was better to outline the whole process
ok i downloaded a new rom, verified md5sum, and unzipped the rom. i also downloaded eclipse and am linking eclipse and android sdk to try and make this a little easier, i hope. i feel like such a total noob, well for the most part i am.... i guess what i am saying is that i don;t know if i am removing boot.img from zip or if i'm just checking something on the boot.img using adb
You just need adb tools, you are making this a little harder then it needs to be
---------- Post added at 06:08 PM ---------- Previous post was at 06:02 PM ----------
Sorry, couldn't remember the exact name, do a search for evo4glteroot2 its basically adb tools
http://downloadandroidrom.com/file/HTCEvo4GLTE/rooting/Evo4GLTERoot2.zip
It took me a bit to realize what you guys were telling me to do.. I can be dence at times. But thank you very much my phone is now fixed.
No prob. Sorry if I at any time seemed hostile, I have been having issues with loud neighbors who have legal permission to make noise all damn night and have done so all week, I'm very agitated
---------- Post added at 08:01 PM ---------- Previous post was at 08:00 PM ----------
Oh god now I'm confusing threads again

[Q&A] Root Nextbook Ares 8, TWRP Recovery, Disable encryption

Q&A for Root Nextbook Ares 8, TWRP Recovery, Disable encryption
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for Root Nextbook Ares 8, TWRP Recovery, Disable encryption. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
In your 2nd post, I downloaded the file, but I didn't see the "remove_encryption.zip" file within it. I think the 2nd post is downloading the same file as the first post?
Download again, syncing problem.
Sent from my BLU STUDIO 5.0 C using Tapatalk
Any chance you'll be posting all the stock img files? I formatted /data and it bricked my tablet. Ive tried everything I can from recovery. I need all the stock images minus boot obviously. Please help.
sinisin said:
Any chance you'll be posting all the stock img files? I formatted /data and it bricked my tablet. Ive tried everything I can from recovery. I need all the stock images minus boot obviously. Please help.
Click to expand...
Click to collapse
You have to flash boot.img, you do have a Nextbook 8 Ares? What stock files? Your device is stock, format data, cache, flash boot.img simple as that.
I just checked some of your posts, you been messing with your tablet, my method is to root stock tablet, unmodified tablet.
Your tablet was modified by yourself, so you need to undo what you already did.
Sent from my Venue 8 3830 using Tapatalk
I need the stock system.img data.img cache.img. I formatted /data and it bricked my tablet. My tab was stock and unrooted. Yes its a nextbook ares 8 with Intel Atom.
---------- Post added at 02:47 PM ---------- Previous post was at 02:45 PM ----------
Flashing the boot.img isn't going to unbork my data partition
---------- Post added at 03:19 PM ---------- Previous post was at 02:47 PM ----------
Its all good. I'll get them from Nextbook. Thanks anyway.
---------- Post added at 04:05 PM ---------- Previous post was at 03:19 PM ----------
If you posted the stock imgs in the OP no one would brick anything as we could just manually flash the imgs to the tablets when we mess up. I had to run my first phone like this. Just using adb and fastboot to run restores when I messed with too much. You should also add that formatting /data may lead to a brick.
I tried a factory reset, it didn't work so I let it(twrp) format data(not /system) . My tab will not boot. Just bootloops at the bootani.
I may not be a dev bro but I know what Im doing. Please don't hesitate to throw testing stuff at me.
---------- Post added at 04:17 PM ---------- Previous post was at 04:05 PM ----------
Is the recovery for another tab? It acts like it...
Nope not going to post them.
Sent from my BLU STUDIO 5.0 C using Tapatalk
---------- Post added at 07:06 PM ---------- Previous post was at 06:39 PM ----------
Formatting data leads to disabling encryption, not flashing the boot.img I provided, leads to tablet bootlooping so you can continue to bootloop forever, or flash the boot.img your choice.
Sent from my BLU STUDIO 5.0 C using Tapatalk
Ok well thanx for rooting it and not answering any other questions. Why you wouldn't post them is beyond me or at the least link to them. For those who wiped system. No need to use their flashtool if you have the imgs. I have them anyway so its whatever.
You should probably fix the recovery or warn that its not even close to fully functional and only really works for flashing. Wipes don't work. Formatting anything bricks it. Im sure there is more too. It's your baby not mine. Im just trying to help you help people. I'll fix my tab fine myself. No thanx to you.
By the way I did flash the boot.img before I formatted. I dunno if that wasn't clear. And the tab still said encrypted. Also I wanted to do more than just flash the boot again. I wanted to reformat by flashing the imgs fresh. Im not exactly sure why you're being snotty but it's cool. I was trying to figure out how to push su binary thru shell but my system wasnt modified. The OP said to leave system alone. I did. I had issues anyway. I asked for more than a fix for BL. Hopefully at the least people will realize they can track down this model on nextbook.com and get the stock imgs and fix bricked tabs very easy. Also return to stock at will. Or rooted.
Sounds good have a nice day.
Sent from my BLU STUDIO 5.0 C using Tapatalk
vampirefo said:
Sounds good have a nice day.
Sent from my BLU STUDIO 5.0 C using Tapatalk
Click to expand...
Click to collapse
Snot.
By the way, flashing the boot img again did not unbrick my tablet. But what do you care, you just post half assed stuff and leave the noobs with bricked tabs.
So again I would suggest you get a hold of the stock img files and post instructions on how to flash them in the OP since you are basically responsible for over 10 bricked tabs at this point. Yeah sure I know it's all at our own risk, but you're not giving us all the tools we need, and that in my opinion means you need to take the entire post down or give us what we need to fix bricks you failed to warn us about.
Noobie Question
Hiya Vamp, I'm having a bit of a noobie problem here. In a nut-shell I can't get my fastboot tool to detect the tablet. However adb can detect it. After some quick research I found out I needed to write a udev rules file, which I did; I ran a lsusb command to get the hex id for the device. I also tried using sudo with no effect. My OS is Kubuntu 14.04 64bit, I have the 32bit libraries installed. I've never rooted a device before besides using "poot" on my old phone and I don’t even know if that really counts.
here is a quick copy of my /etc/udev/rules.d/51-android.rules file:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04f2", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
Here is the output from adb devices:
Code:
List of devices attached
YFGV0415004049 device
The output from either sudo fastboot devices or fastboot devices is nothing, the terminal gives no errors or other kind of output; it simply displays a new prompt.
And this is the output from the lsusb command:
Code:
Bus 001 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd USB 2.0 Camera
Bus 001 Device 013: ID 8087:0a5f Intel Corp.
Invoking the adb reboot bootloader command will reboot the device and it says "fastboot cmd waiting..." yet I still get the same output from the above commands, with or without using sudo. Anyway I'm at my wits end on this and hopefully you can point me in the right direction.
Are you using the fastboot binary I provided?
Sent from my NXA8QC116 using Tapatalk
vampirefo said:
Are you using the fastboot binary I provided?
Sent from my NXA8QC116 using Tapatalk
Click to expand...
Click to collapse
No I think I'm using the one I installed from the ppa repositories. How do I get rid of it and use yours? Can I just overwrite the existing one in my sdk/platform-tools folder with yours?
To use mine simply open terminal in folder where you extracted my files, then sudo ./fastboot devices
Sent from my BLU STUDIO 5.0 C using Tapatalk
---------- Post added at 06:42 PM ---------- Previous post was at 06:41 PM ----------
./ tells terminal to use local fastboot binary which in this case will be mine.
Sent from my BLU STUDIO 5.0 C using Tapatalk
Works!
vampirefo said:
To use mine simply open terminal in folder where you extracted my files, then sudo ./fastboot devices
Sent from my BLU STUDIO 5.0 C using Tapatalk
---------- Post added at 06:42 PM ---------- Previous post was at 06:41 PM ----------
./ tells terminal to use local fastboot binary which in this case will be mine.
Sent from my BLU STUDIO 5.0 C using Tapatalk
Click to expand...
Click to collapse
Awesome! You are a gentleman and a scholar good sir Yours is detecting it, and now I have it rooted and that silly encryption gone! Super easy when you use the right binary lol. Thanks for your help boss, I'm going to have allot of fun with this tablet thanks to you. How do you make your own custom tools? Do you code them in Java like most android apps? Or is it written in C? I'm still somewhat new to programming but my snake game should be bad ass on this tablet. Anyway thanks Vamp! :highfive:
As a side question: Does/did your tablet open apps and do other random things without any input when its plugged into a computer via usb cable? Mine just randomly went to the brightness setting for the display without me touching it, kinda strange, it was doing the same thing before root so I don’t think it's a problem with any data installed during the root process.
No, but there is a reported memory leak with lollipop 5, so some of us are using xposed with memory patch.
Most of my tools are compiled using cm12 source.
Sent from my NXA8QC116 using Tapatalk
I just want to say for the record that I followed your directions perfectly and rooted my tablet and installed the recovery without a problem. Now I'm running an unencrypted stock rooted lollipop ROM with the latest TWRP recovery and honestly I couldn't ask for more! (Maybe CM12.1 if i'm being greedy). Thank you so much! I don't know what's wrong with everyone else. If anyone needs me to, I can upload a twrp backup or something. I'm more than willing to help in any way that I can. I basically consider myself a noob, and following your instructions was not a problem, I actually even used windows and it wasn't a problem at all.
vampirefo said:
No, but there is a reported memory leak with lollipop 5, so some of us are using xposed with memory patch.
Most of my tools are compiled using cm12 source.
Sent from my NXA8QC116 using Tapatalk
Click to expand...
Click to collapse
The xposed framework installer says its incompatible with android api 21 and the x86 architecture, is it safe to install it anyway?
You have to install x86 version.
http://forum.xda-developers.com/showthread.php?t=3126306
Sent from my BLU STUDIO 5.0 C using Tapatalk
Drivers
Running "adb devices" and it doesn't show my device connected. Checked all cables and USB ports and everything connected tightly. Any help greatly appreciated.

[ROM] [H918] H91810q/r/s/t/u Stock ROM TWRP Flashable Zip KEEP ROOT!

with very little activity lately for the LGV20, specifically the H918 T-Mobile variant, I created a TWRP flashable package for the recent H91810q release. this zip flash every partition included in the latest KDZ package with the exception of recovery to keep TWRP. standard disclaimer applies, you do all of this at YOUR OWN risk! because 10q is not rootable, you need to be root'd before flashing this! failure to do so will probably cause you to lose root and/or lose TWRP! and worst of all, because 10q can't be downgraded to 10j (last version where you can still obtain root via dirtycow) because of Anti-RollBack, you're fscked!
NOTE1: you can find the partitions that will be flashed in the updater-script. to be extra cautious you can back up all of the partitions that will be overwritten with the following: dd if=/dev/block/bootdevice/by-name/{partition} of=/external_sd/backup/{partition}.img.
NOTE2: boot partition has been modified only to remove rctd, nothing else so I consider this to still be stock
Instructions:
download H91810u.zip file listed below and put on microSD card
download your choice of root and put on microSD card, choose from either Magisk or SuperSU *Note: v12.0 of Magisk does not work with the LGV20 device in general and v14.0 is recommended.
backup any data from internal "SD card"
boot into TWRP (requires TWRP recovery to already be installed)
create a TWRP backup of the device
flash zip from microSD card by using "Install"
FLASH YOUR CHOICE OF ROOT - Flashing root is VERY IMPORTANT BEFORE REBOOTING!
reboot
profit!
Download:
H91810q.zip
old 10q md5sum: 8c2e76ded9759a63b1ffac86f3941649
new 10q md5sum: c7d4086b3a0a786d1501ef7e4ce22f32 - re-zipped in Linux for proper alignment
H91810r.zip
wrong 10r md5sum: 9e2e1f8c56079d7bf629ce5e375d7551 (this is actually the md5sum for the KDZ)
correct 10r md5sum: 194b2bc41aa6dbdd7b9a371392f7b930
H91810s.zip
10s md5sum: f187fdefe4c3612c5811e9fbeb0748c5
H91810t.zip - rctd and triton both disabled, previous versions only removed rctd
10t md5sum: b00c2f644b15eb15e459c48830caa5da
H91810u.zip - rctd and triton both disabled, previous versions only removed rctd
10u md5sum: f51b2b11a30dc448b0da0edc750bb587
Flashing Process (what flashing this zip does):
flash necessary partition images with the exception of recovery (to keep TWRP) from the KDZ
rename /system/recovery-from-boot.p to /system/recovery-from-boot.bak to prevent stock recovery from being installed on boot
wipes dalvik-cache and cache
BIG thanks to @McNutnut on guidance, as well as his script to put all of this together!
also thanks to @bullghost for the KDZ extractor (https://forum.xda-developers.com/showthread.php?t=2600575)
@Tilde88 for the original updater-script template w/root (https://forum.xda-developers.com/v20/development/us996-nrd90m-modded-notsostock-rom-v5-1-t3526542)
Awesome thanks.. I'm on it!
---------- Post added at 12:50 AM ---------- Previous post was at 12:07 AM ----------
Didn't work... Still shows 10p. I noticed the flash process was rather fast also.
storm68 said:
Awesome thanks.. I'm on it!
---------- Post added at 12:50 AM ---------- Previous post was at 12:07 AM ----------
Didn't work... Still shows 10p. I noticed the flash process was rather fast also.
Click to expand...
Click to collapse
Dude, thanks for whipping this out so fast! (TWSS) I will get right on making a debloated rom from this. Is it ARB 1?
So I HAVE to flash root? Sometimes I don't flash root because of my gear S3 watch.
I just flashed but still showing 10p. But the kernel info shows Sept 12. So the kernel is updated but wondering on why it still shows 10p on software info @ about phone.
storm68 said:
Awesome thanks.. I'm on it!
---------- Post added at 12:50 AM ---------- Previous post was at 12:07 AM ----------
Didn't work... Still shows 10p. I noticed the flash process was rather fast also.
Click to expand...
Click to collapse
hold on, let me re-zip and re-upload. I had used two different methods to add the files to the archive so I'm going to re-do it all with one method
texasaggie1 said:
Dude, thanks for whipping this out so fast! (TWSS) I will get right on making a debloated rom from this. Is it ARB 1?
So I HAVE to flash root? Sometimes I don't flash root because of my gear S3 watch.
Click to expand...
Click to collapse
yes, this is ARB1 and yes, root is needed if you want to stay root'd
As you can see the updater script shows install 10p.
storm68 said:
As you can see the updater script shows install 10p.
Click to expand...
Click to collapse
yep, for some reason using Windows to create zip files causes inconsistencies. I've zipped up everything in Linux this time and double checked the updater script to make sure everything is good to go and am uploading it as I type... I've already updated the OP with the new md5sum and the link should remain the same. I'll give a heads up once it's live
Ok thanks for your time. Appreciate it. ?
storm68 said:
Ok thanks for your time. Appreciate it.
Click to expand...
Click to collapse
done! uploaded and downloaded myself to verify everything is the correct one. this should bring you to 10q for everything... sorry for the troubles of flashing again. don't forget to flash root just in case lol
No problem. No apology needed being you really don't have to do this for the community. Thanks again.
Sorry if I'm asking an obvious question but when did t mobile release a new update? I thought the latest version was 10p???
Flashed... All good!
---------- Post added at 02:41 AM ---------- Previous post was at 02:40 AM ----------
Still_living714 said:
Sorry if I'm asking an obvious question but when did t mobile release a new update? I thought the latest version was 10p???
Click to expand...
Click to collapse
Mine came yesterday. Updater to 10q. If you haven't gotten it yet you will..
storm68 said:
Flashed... All good!
---------- Post added at 02:41 AM ---------- Previous post was at 02:40 AM ----------
Mine came yesterday. Updater to 10q. If you haven't gotten it yet you will..
Click to expand...
Click to collapse
Any big improvements that you can see?
i flashed and once i unlocked my phone, it kept saying process.android keeps stopping repeatedly. booted back into twrp to restore the backup i made in twrp and now the keeps rebooting to the lg screen. Can anybdoy help me out please. i was ww kernel and 10k
Still_living714 said:
Any big improvements that you can see?
Click to expand...
Click to collapse
I would have to wait and see. But first hand it's about the same as 10p no rctd.
---------- Post added at 04:02 AM ---------- Previous post was at 03:26 AM ----------
Lgv20user said:
i flashed and once i unlocked my phone, it kept saying process.android keeps stopping repeatedly. booted back into twrp to restore the backup i made in twrp and now the keeps rebooting to the lg screen. Can anybdoy help me out please. i was ww kernel and 10k
Click to expand...
Click to collapse
First of be advised that this is anti roll back. Once on it you can't go backwards to other older roms. In reference to your problem you'll have to do a battery pull. Put battery back in. Now hold down volume down and power button at the same time, when you see LG screen release power button for two seconds then push again holding down power. During all this never release volume down. Now you'll get a reset screen with yes and no option. Use volume key to choose yes, twice..... This will get you back to TWRP. In your case I wouldn't even bother with back up but you can try again if want. What I would do is flash something else that I know works. Then decide from there what to do... Maybe redownload again. May be corrupt some how. I assume your on h918. Hope so! Good luck.
storm68 said:
I would have to wait and see. But first hand it's about the same as 10p no rctd.
---------- Post added at 04:02 AM ---------- Previous post was at 03:26 AM ----------
First of be advised that this is anti roll back. Once on it you can't go backwards to other older roms. In reference to your problem you'll have to do a battery pull. Put battery back in. Now hold down volume down and power button at the same time, when you see LG screen release power button for two seconds then push again holding down power. During all this never release volume down. Now you'll get a reset screen with yes and no option. Use volume key to choose yes, twice..... This will get you back to TWRP. In your case I wouldn't even bother with back up but you can try again if want. What I would do is flash something else that I know works. Then decide from there what to do... Maybe redownload again. May be corrupt some how. I assume your on h918. Hope so! Good luck.
Click to expand...
Click to collapse
what do you recommend i flash
Lgv20user said:
what do you recommend i flash
Click to expand...
Click to collapse
Well we really don't know if your system went to 10q now, so........ You can try again. On both, the backup or 10q. Since you know now how to get to TWRP with battery pull you can try both, see what works. Try backup first. If it doesn't work you may have system in 10q now being you backed up a 10k system may not work now. If it doesn't try q again. If that doesn't work then download 10p or redownload 10q and side load on TWRP from computer. Then flash again. These are steps I would do.. if someone tells you different then it's your choice. Different ways for different things.
storm68 said:
Well we really don't know if your system went to 10q now, so........ You can try again. On both, the backup or 10q. Since you know now how to get to TWRP with battery pull you can try both, see what works. Try backup first. If it doesn't work you may have system in 10q now being you backed up a 10k system may not work now. If it doesn't try q again. If that doesn't work then download 10p or redownload 10q and side load on TWRP from computer. Then flash again. These are steps I would do.. if someone tells you different then it's your choice. Different ways for different things.
Click to expand...
Click to collapse
so 10q is showing up. i am having issues with the modem i believe because i dont get tmobile recepetion and as soon as i put into airplane mode, the error message stops.
I haven't tried the 10p weta kernel yet but it may not work being this stock kernel on 10q is updated to the September security patch. May try later today.
First off, thanks for keeping my beloved H918 alive!. Thought all future dev for the V20 was dead.
Now a question. Any timeframe on a debloated version? Not in a hurry mind you, just curious.

[ROM][G950U/W][V2/V5_Bootloader][EDL_Method][7.0] DREAM ROM BRB1 V1.0[Mar 08, 2019]

Welcome to the DREAM ROM!
Disclaimer1: Your warranty is now void!
I am not responsible if you brick your phone. or kill your sd card!
I cannot be held responsible for smoke, fire, water, or other natural disasters.
So please READ the entire OP!
Disclaimer2: Always make a backup first!! Flash at your own risk!
Clean install is always recommended, but at minimum make sure you wipe!
ROM FEATURES
- Based on G950USQS2BRB1.
- Fully De-odexed.
- Rooted.
- BusyBox.
- Little Debloated.
- Samsung Knox Removed.
- Safestrap v4.08 B02
Installation:
EDL METHOD:
1. Make sure phone is plugged into computer and run Reboot_EDL.cmd phone will reboot to a black screen.
2. Make sure device installed on computer as Qualcomn 9008 device as EDL.jpeg shows and note the com port number.
3. Run Recover_System.exe you will have to input your com port number it should tell you the com number in command prompt dialog at the top.
- If it does not tell you you are probably not connected correctly.
4. Enter the number when it ask you not the COM letters just the number.
- The process will take awhile and may seem to hang for a few minutes just let it go unless it hangs for hours.
5. When process complete on command window force reboot to Download Mode using combo (Bixby + Volume Down + Power @ Same time).
6. In odin flash BL_ENG_BOOTLOADERS_G950U_V2/V5.tar.md5 based on your bootloader version.
7. Boot into safestrap and wipe data.
8. Reboot.
SAFESTRAP:
1. Extract the system.img from the EDL 7z file and push to sdcard.
2. Reboot to safestrap recovery.
3. Go to install section and select img, choose the system.img from the file picker.
4. Flash to system.
5. Wipe data.
6. Reboot.
Downloads:
Android File Host
Thanks to:
@jrkruse & @klabit87 for all kinds of stuff.
@Kamrys for the V5 EDL files.
@me2151
@partcyborg
@elliwigy
@tytydraco
@mweinbach
@SamGuy2020
@SuperR. for SuperR's Kitchen
@Chainfire For SuperSU.
@Stericson For BusyBox.
Samsung for the locked bootloader.
me.
mine
V2 not tested as Im on V5 bootloader
Safestrap? What's this?
Sent from my Samsung Galaxy S8 using XDA Labs
SuperSandro2000 said:
Safestrap? What's this?
Sent from my Samsung Galaxy S8 using XDA Labs
Click to expand...
Click to collapse
https://forum.xda-developers.com/galaxy-s8/development/recovery-locked-nougat-7-0-safestrap-t3772760
Do we have to follow from step 1 and then flash rom?
Or we can boot into safestrap and flash TWRP as I already have EDL safestrap as per Jrkruse post
Thanks
MalharB said:
Do we have to follow from step 1 and then flash rom?
Or we can boot into safestrap and flash TWRP as I already have EDL safestrap as per Jrkruse post
Thanks
Click to expand...
Click to collapse
folow from step 1.
if you want flashable zip from safestrap recovery its uploading and will post the instruction when finished.
Will be giving this a whack once the safe strap versions up im on revusion 2 as well
Sounds cool, just when things was getting boring for the s8, OP, just curious how did you deodex your framework, I have been able to deodex with assyad kitchen but will only boot with the boot folder in framework?
sawixso81 said:
Sounds cool, just when things was getting boring for the s8, OP, just curious how did you deodex your framework, I have been able to deodex with assyad kitchen but will only boot with the boot folder in framework?
Click to expand...
Click to collapse
Im trying to remember what cyborg did his is deodexed
TheMadScientist said:
Im trying to remember what cyborg did his is deodexed
Click to expand...
Click to collapse
Last I remember he still had the arm folders in his Rom he gave me the info on assays kitchen(Not sure if I spelled it right). I've also seen s8+ roms(cough cough) that were fully deodexed and no arm folders even ran it on my s8 once but the resolution was too small for me lol.
Also got your pm but nothing was in there lol
sawixso81 said:
Sounds cool, just when things was getting boring for the s8, OP, just curious how did you deodex your framework, I have been able to deodex with assyad kitchen but will only boot with the boot folder in framework?
Click to expand...
Click to collapse
I made this ROM long time ago, I remember that I used superR's kitchen!
Will check later.
afaneh92 said:
I made this ROM long time ago, I remember that I used superR's kitchen!
Will check later.
Click to expand...
Click to collapse
Appreciate it:good::highfive::good:
sawixso81 said:
Last I remember he still had the arm folders in his Rom he gave me the info on assays kitchen(Not sure if I spelled it right). I've also seen s8+ roms(cough cough) that were fully deodexed and no arm folders even ran it on my s8 once but the resolution was too small for me lol.
Also got your pm but nothing was in there lol
Click to expand...
Click to collapse
Its been doing that. Said i was gonna try it sometime this weekend. Been having weird no signal issues i believe is related a baseband issue if i reboot be3n taking upto 5 min to get signal. I did a lot of blind tweaks after my last weeks reset and thinking i did something wrong
---------- Post added at 06:16 PM ---------- Previous post was at 06:10 PM ----------
Um i know we dont really talk about telegram much any more but i got a semi private group with a few well known fellars but if any of you where to join you could probably ask cyborg or a few others for tips. It can be off topic a lot. And be quiet but the idea i had was to pretty much gather up as many devs and legit sources on unlocking and other mobile related services and have a big collaboration group. We all talk dev related everynow and then
But if any of you want to join your more than welcome
TheMadScientist said:
Its been doing that. Said i was gonna try it sometime this weekend. Been having weird no signal issues i believe is related a baseband issue if i reboot be3n taking upto 5 min to get signal. I did a lot of blind tweaks after my last weeks reset and thinking i did something wrong
---------- Post added at 06:16 PM ---------- Previous post was at 06:10 PM ----------
Um i know we dont really talk about telegram much any more but i got a semi private group with a few well known fellars but if any of you where to join you could probably ask cyborg or a few others for tips. It can be off topic a lot. And be quiet but the idea i had was to pretty much gather up as many devs and legit sources on unlocking and other mobile related services and have a big collaboration group. We all talk dev related everynow and then
But if any of you want to join your more than welcome
Click to expand...
Click to collapse
Yeah, I've had some issues as well with Wi-Fi passwords and Bluetooth not keeping its settings, never happened on V2 bootloader, not a deal breaker for me more of an annoyance than anything. Let me know what you think of that mod pack when you get a chance its pretty cool:good::highfive::good:
sawixso81 said:
Yeah, I've had some issues as well with Wi-Fi passwords and Bluetooth not keeping its settings, never happened on V2 bootloader, not a deal breaker for me more of an annoyance than anything. Let me know what you think of that mod pack when you get a chance its pretty cool:good::highfive::good:
Click to expand...
Click to collapse
So thats a xposed issue. There is a fix by modding a couple files somewhere. Since i dont run xposed i havnt faced it. I run a stock rooted that i tweak on my own. I havnt used cyborgs rom in a while due too a feww needed,debloated features. One was being bluetooth losing parings... I swapped over to this right before the fix was found and havnt bothered to try it but others said it works great. Me and several others came across the fix on xposed github. But since then its been posted a few places including some page on cyborgs many
---------- Post added at 06:33 PM ---------- Previous post was at 06:26 PM ----------
https://github.com/rovo89/Xposed/issues/294
https://forum.xda-developers.com/showpost.php?p=77055209&postcount=4
One of the fixxes but gives you the jist of it.???
TheMadScientist said:
So thats a xposed issue. There is a fix by modding a couple files somewhere. Since i dont run xposed i havnt faced it. I run a stock rooted that i tweak on my own. I havnt used cyborgs rom in a while due too a feww needed,debloated features. One was being bluetooth losing parings... I swapped over to this right before the fix was found and havnt bothered to try it but others said it works great. Me and several others came across the fix on xposed github. But since then its been posted a few places including some page on cyborgs many
---------- Post added at 06:33 PM ---------- Previous post was at 06:26 PM ----------
https://github.com/rovo89/Xposed/issues/294
https://forum.xda-developers.com/showpost.php?p=77055209&postcount=4
One of the fixxes but gives you the jist of it.
Click to expand...
Click to collapse
Strange as I don't have exposed hell I might have the framework there but not the installer app I'll have to take a peak.
So yeah no xposed in my framework folder.
Also forgot to mention this is my personal BRB1 build deodexed with root
you need to post better noob friendly instructions on how to do this. got my phone to safestrap and did everything your instructions say once i pass step 8 and reboot phone just stays on a black screen and a blue light at the top left of the device stays on, also when i plug the device into the computer i can hear it connect.
tooflyco said:
you need to post better noob friendly instructions on how to do this. got my phone to safestrap and did everything your instructions say once i pass step 8 and reboot phone just stays on a black screen and a blue light at the top left of the device stays on, also when i plug the device into the computer i can hear it connect.
Click to expand...
Click to collapse
What ROM you was on? Bootloader ver?
afaneh92 said:
What ROM you was on? Bootloader ver?
Click to expand...
Click to collapse
i'm on stock ROM here's my build number G950USQU5CRK1. bootloader v5

T-Mobile McLaren 5G OTA: 10.0.19.HD61CB

We need captures of the OTA payload, URL, metadata, etc. Anything we can get. We also need to study how our partitions change and which have changed. We also need a sound method to accept OTA when rooted (Temp Magisk revert, accept OTA, reinstall Magisk to other slot, reboot?) or revert to stock (restore both sets of boot and dtbo slots?).
Only lead I have is from our NSG friends. Action happens in /data/ota_package. Not sure if anything ends up in /cache.
This OTA includes fixes for GPS, December security level, and "general bugs fixed". n41 5G does not appear to be included, but recent FCC filings suggest that it's at least being tested.
https://fccid.io/2ABZ2-EE143/Test-Report/I19Z62071-WMD01-Part27-NR-Rev0-4569370
https://fccid.io/2ABZ2-EE143/Letter/FCC-cover-letter-C2PC-letter-template-rev1-4569357
It would be a really good time to bring back a Telegram or Discord channel.
Edit: OTA package snagged! https://android.googleapis.com/pack.../aa21536ec572b3c15ab76c49160441f041cf6a27.zip
Credit to xian from the NSG Telegram
<Mod edit>
Can I take this update if I was once rooted but have now flashed back to original boot.img? Obviously once updated I'll run the partition script to pull new partitions so I have virgin partitions on the new build.
OTA Direct Link
Not sure if it will take for me because of my haxing about.
---------- Post added at 12:13 ---------- Previous post was at 12:06 ----------
ntzrmtthihu777 said:
OTA Direct Link
Not sure if it will take for me because of my haxing about.
Click to expand...
Click to collapse
Didn't take. Investigating.
---------- Post added at 13:05 ---------- Previous post was at 12:13 ----------
Bad vbmeta_a hash.
---------- Post added at 13:07 ---------- Previous post was at 13:05 ----------
kirschdog1 said:
Can I take this update if I was once rooted but have now flashed back to original boot.img? Obviously once updated I'll run the partition script to pull new partitions so I have virgin partitions on the new build.
Click to expand...
Click to collapse
apparently you need all stock partition. I need a good vbmeta_a apparently
ntzrmtthihu777 said:
OTA Direct Link
Not sure if it will take for me because of my haxing about.
---------- Post added at 12:13 ---------- Previous post was at 12:06 ----------
Didn't take. Investigating.
---------- Post added at 13:05 ---------- Previous post was at 12:13 ----------
Bad vbmeta_a hash.
---------- Post added at 13:07 ---------- Previous post was at 13:05 ----------
apparently you need all stock partition. I need a good vbmeta_a apparently
Click to expand...
Click to collapse
U want mine from the read back so i can upload
omariscal1019 said:
U want mine from the read back so i can upload
Click to expand...
Click to collapse
Vbmeta_a? Sure. At class so I can't do anything with it yet.
Good news guys, Looks like we will be getting our MSM Tool in about a week
By creating our own ops or the kindness of OnePlus and leakers?
I'm not sure how that would change our situation with the new protections OnePlus is using on MSM tools. We'd have a good rescue method at the very least, but likely not a conversion method.
The only undisclosed exploit I know of is for the Sprint OnePlus 7 Pro 5G and that's purely for a bootloader and/or SIM unlock.
Edit: Saw your post in the other thread. I really hope the tech isn't full of crap like the others promising remote sessions that they never follow up on or provide the wrong files.
ntzrmtthihu777 said:
Vbmeta_a? Sure. At class so I can't do anything with it yet.
Click to expand...
Click to collapse
In a bit ill upload
So i shouldn't accept this update if rooted then?
omariscal1019 said:
In a bit ill upload
Click to expand...
Click to collapse
Cool. Looks like both sides have to be how TMobile
expects them to be in order for the update to work.
ntzrmtthihu777 said:
Cool. Looks like both sides have to be how TMobile
expects them to be in order for the update to work.
Click to expand...
Click to collapse
Yeah that **** happ n on the moto z2f back like two years ago couldnt update if u werent stock on both slots
Bildo41383 said:
So i shouldn't accept this update if rooted then?
Click to expand...
Click to collapse
Think it won't work anyway. It checks hashes of the
other side before applying, and if they don't match
it can't apply the update (brotli diff format, not a
full update.zip style update which just replaces
everything).
But what's the end state of the slots after an update?
A on 16, B on 19? Is 13/14 gone?
LLStarks said:
But what's the end state of the slots after an update?
A on 16, B on 19? Is 13/14 gone?
Click to expand...
Click to collapse
Yeah. My understanding is that 19 installs over 13. I'm
not one hindered percent sure though.
Partition hashes are going to be important. I think we still have our backups and whatever was documented in TEK's thread.
LLStarks said:
Partition hashes are going to be important. I think we still have our backups and whatever was documented in TEK's thread.
Click to expand...
Click to collapse
Note that these hashes may be deep dm-verity
hashes not plain sha256 and so on.
i know i can't get the update to actually update it fails i have tried going back to stock from my backed-up images locked the bootloader seems i cant get it to update
Yeah I'm having the same problem. All I did was root by flashing Magisk. I have since uninstalled the root/Magisk etc and I still get install problem at the very end of the OTA install . Thoughts?
I haven't updated to the new OTA yet, because I now have to restore from a backup so that it doesn't error again. I was curious how many partitions changed since January 2nd, 2020, and since rooting and using the phone for two weeks from the time of that 02 JAN backup the SHA-1 checksum of 43 different partitions have changed. I'll have to look at logs to where the error is from (i.e., because it happened even after I flashed back original unmodified boot_b), or I could just restore everything back.
adb sideload says it flashed it but phone stays the same...

Categories

Resources