yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
I got the kernel to compile properly, but it doesn't boot when using the defconfig s provided. I uploaded it to github so I can keep track of my changes.

https://github.com/CalebQ42/android_kernel_razer_sdm845
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
github is unknown territory to me. but if you can submit a boot.img or twrp.img i can try and see whats going on.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
You might want to double check your sbin files and your fstab with flags. This might help. https://xdaforums.com/android/software/twrp-flags-boardconfig-mk-t3333970
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Also, whys the device name Goldfish. shouldnt it be aura? or cheryl2?
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
Goldfish isn't a device name it's virtual CPU.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
wellthats why im not a dev xD
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
[MENTION=5648199]CalebQ42[/MENTION] I haven't compiled TWRP successfully yet, but I'm taking the approach of using Android 8.1 I've tried two different things so far:

Created my own devtree from scratch (use 8.1 branch). Github Repo I think my sbin is accurate, so I'll compare my file hashes to yours. On a related note-do you think your fstab is accurate? I'm really not confident about mine

Used TWRP's tree builder with minimal TWRP Omni 8.1 source. Github Repo

Interestingly enough, the automated tree builder uses aura, not cheryl2

While I'm doing this for the learning experience, I did find another alternative that may get us fully-working TWRP the fastest TwrpBuilder [Google Play Store] Just install it on your rooted phone and it collects all the info and sends it off (for what I think is an automated build) to be turned into a TWRP compatible with the device
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
Found it lol
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
I haven't worked on it in a couple days, but I'll probably try some more stuff later on today. I'm going to switch it back to aura, as the codename for the device is aura while the name is cheryl2 and I need to do research on where each of those values should go. The relevant build.prop lines:

ro.product.name=cheryl2
ro.product.device=aura

TWRPBuilder seems nice, but each time I've tried the queue is too long, though I may look at the source code and see what information is gathered.

Right now I'm not too sure if I can get much further on my knowledge, but I'll try.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Yeah TWRPBuilder always has a long queue. i tried compiling but got no where. Warrior was no help >_>. but great news that twrp is finally coming, maybe i can try and compile a new kernel so we can boot lineage or something.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
I'm building on android-9.0 because Omni android-8.1 doesn't have support for armv8-a, so I might try Lineage 15.1 and see if it actually works. Also, I've been meaning to ask, what do you mean be sbin?

Also I'm pretty sure of my recovery.fstab (not 100% but decently confident)
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
when you unpack the boot.img thers sbin files in there. not quite sure what they are, but i noticed the init.rc calls for adbd and that is located in sbin.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
What exactly did you do to get it booting? It might help me get a compiled TWRP to work.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
He used the sbin folder from the oneplus6t
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Exactly
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
Finally got it to boot :) link will be coming soonish.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Sweet! Any bugs? And does it boot to stock room?
[Razer Phone 2 Guides, News, & Discussion] joemossjr:
I used to be a maintainer for the oneplus 6 for twrp I could totally get a fully working one if I actually had a freaking PC again.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
That's awesome. What happened to your computer.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
So for how TWRP works now, the actual TWRP boot img doesn't boot the rom. You have to flash a .zip to inject twrp into the stock boot.img. Which I haven't been able to try due to some bugs :). Currently we can't gain access to the internal storage AT ALL (adb doesn't even work), my external SD card wasn't recognized, and decryption didn't work at all (even when I disabled my lock screen, lol). I'm going to fix as much as I can by looking at what the OnePlus 6t needs (as I just copied a bunch of stuff from that repo to get it working :P ). We are really close though :)
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Odd, warrior and I got a built boot.img with almost everything working aside from adb sideload and internal storage but not mounted on PC..
[Razer Phone 2 Guides, News, & Discussion] joemossjr:
It's best to build one from scratch with a patched kernel image to boot to recovery when running fastboot boot twrp.img base it off the oneplus 6t or 6 tree pull the files needed from each tree and then try to build. I can't really help much considering I don't have a PC(lost in a lightning strike) but I do have the device.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Yeah and unfortunately I don't know how to compile.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
Alright. I think I have been able to bring the problem down to one thing: encryption, the solution that the OnePlus 6t has doesn't work though. I think this is the problem for a few reason: With or without a lock screen (or secure start-up) TWRP can't read the internal storage. When I try to boot into the rom, it goes to the bootloader, but doesn't ask for my password if I have secure startup on. It does recognize that I have a pattern lock. When I disable the lock screen it asks for a password. I don't have any idea about anything to do with encryption and have tried all I can think of.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
It won't read the internal storage until you factory reset. That's why it's encrypted. If you go to format and you type yes then you can read the internal storage.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
For me to consider it to be completely working then encryption needs to be working. TWRP has support for it, even giving a pattern unlock if your using it, I just need to figure out how to get it working on our phone. I do believe it may have something to do with it using a bit older encryption due to Oreo vs the 6Ts pie.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
Has to be TWRP version bug or premission is set wrong. You can try mounting and disable MTP helps some.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
You can't even Mount system without hitting the factory reset in TWRP. So it's definitely not a bug. I'm not sure what file system stock ROM is using but that's not something that TWRP can see.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
My compiled TWRP sees (and mounts) system just fine, it's just ext4. The problem is that The RP2 is a bit weird in that system isn't mounted to /system, but root.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
I've noticed that with different s bin files it will Mount and sometimes it won't. I can try and provide two different boot. IMG files that will show mounting and not mounting. But I did not compile these I just unpack them and changed out the sbin files.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
TWRP did have a bug on a handling encrypted storage. CaleQ42 is doing the best he can. Porting can sometimes be hard. Depending on the version of TWRP it's out of his control.

Post your .img
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
I've been doing some messing around that has mostly just been breaking everything, but next time I get one to complete with willing TWRP I'll upload it.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
I know and I appreciate everything that he has been doing. I wish I knew how to compile so I can actually help but I just got lucky by messing around with the boot. IMG
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
Here you go. https://www.dropbox.com/s/75kh55ytl3k7ztd/recovery.img?dl=0

What's not working:

Booting. Probably the lagest issue so far.

Userdata access. Encrypted or not it can't access the userdata partition, asking for a password that doesn't work.

Maybe some other things aren't working, but due to the above two issues I haven't tested every TWRP function, but most basic functions seem to be working.

Most changes to recovery/root causes TWRP to not run.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
I'll see if I can try and make some of the changes I did I get the other things working. Definitely good job. I got to reinstall my operating system I stupidly updated to the 1809 I can't downgrade it.
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
That's why I prefer to stick with Linux :P
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Slightly intoxicated last night (given) lol. Will get cracking on it now. If I knew how to compile I'd setup an automated compiler environment.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Ooookay... so tested heavily and couldnt get anywhere. couldnt even get your recovery to boot :/
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
I successfully compiled your recovery.img using the omni-9.0 branch... great work!

Sorry, holidays had me busy. Yes, I noticed that armv8-a compile error, but I ran a build for another sdm845 device Xiaomi Mi 8 with the omni-8.1 and it didn't give that error. Just need to include the qcom common dependencies like they did I think to avoid that error.

As far as the sbin goes, I meant what you've already figured out since then... all the binaries and libraries we need for encryption. I've been doing a lot of reading of stuff that Dees_Troy has written on device encryption for TWRP for various devices and have learned that each device can be quite a bit different based on how the manufacturer decides to implement the encryption-even when running the same System on a Chip (SoC).

Will be continuing to work on this and will start posting recovery.img to test if I get to a point that I feel is an improvement over what y'all have already worked so hard to achieve.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Sounds great! Thanks, I was also able to boot with the sbin files from a xiaomi mi mix 2 TWRP build from their forum. But yes, the encryption seems to go away with the 6t sbin files. Idk. I'm stumped.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
WELP! Unfortunatly i gt the QH-Loader 9008" this morning and couldnt fix the issue, so ATT are shipping my the v40 thinq for the same price per month, so good bye razer phone.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
That's awesome just wish LG didn't choose a 3300mAh battery other than that great phone. I still prefer the Note 9.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
they offered the note 9 but im not a fan of samsung. and samsung bootloaders for snapdragon cant be unlocked so mybe twrp will come to the v40, but the 3 camer setup got me intrigued.. just sucks about this bs, and razer support sucks.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
Do you have AT&T?
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
yeah but they are 100 out of stock.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
I don't even see rooting or unlocking the boot that easy judging by the recent LG AT&T version. Either way it's a great device.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
i can only hope. honestly, not weven remotely sure what happened to my device but bootloader is messed up, shows up as QH-Loader 9008, but QFIL cant flash it back to stock.
[Razer Phone 2 Guides, News, & Discussion] Warrior1988:
Yikes did you try to short your emmc out or just happen?
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
oddly it happened after i did an update. but its a black screen and using QSPT, it shows as com30, but in download mode.
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
UPDATE: Everyone... I screwed up. I'm 90% sure that I somehow mixed up kernel files and I did NOT get a compiled kernel to boot. Sorry I posted wrong information :o

I took my compiled kernel and inserted it into Twiggy00b's image that boots and was still able to get into TWRP. This confirms the kernel will at least work.

However, it seems I have to go to fastboot and select recovery for it to every work. So if anyone is testing any of the images in this thread, make sure you try turning the phone off and then hold down Volume Down + Power to boot into fastboot and select recovery there... I've found that to be more reliable than using fastboot from the CLI.
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
thats amazing! now if only you could fix my phone!
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
Hmmm, if you can't get into fastboot... I doubt I can help you :o I'm sorry to hear about your phone though :(
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
i deff cannot. i found an emmc tool to try and reflash the bootloader on there (not sure how that got messed with) but cant get the program to flash the factory firmware.
[Razer Phone 2 Guides, News, & Discussion] CurtisMJ:
Was that kernel compiled in the device tree? Did you need any special build options or steps (apart from fixing the headers. What's up with that...) to get it to boot? None of my compiled kernels even get past the bootloader splash, though admittedly I'm compiling straight from the kernel sources, but that shouldn't be a huge issue right?

Edit: My suspicion is maybe kernel module signatures don't match. I should maybe try build with so signature verification off...
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
No, I compiled the kernel separately and put the Image.gz-dtb into the image Twiggy00b supplied... to make sure my kernel wasn't causing TWRP not to boot.

No, I didn't need to do anything special. I believe the header fixes are only required because normally they would point to external sources (that we don't have setup in our build environment)... but I really don't know what I'm talking about lol.

Correct. Same here... and the factory kernel fairs no better it would seem.

Dees_Troy has been gracious enough to provide his assistance so I think I'll be able to make some headway soon. He mentioned the ramdisk being too big and potentially different compression being used as two other possibilities. (This was just on his initial glance at it though... so please don't annoy him or think we've got it all figured out.) I'm focused on trying to make a minimum TWRP booting build and expand on working features a little at a time.
[Razer Phone 2 Guides, News, & Discussion] translucentfocus:
UPDATE: I think I dorked up big time and got kernel images mixed up... I don't think I've actually been able to get a compiled kernel to boot
[Razer Phone 2 Guides, News, & Discussion] CurtisMJ:
Maybe the toolchain is a factor? I've seen it before. I imagine Google mandates OEMs to use their toolchain so matching the compiler version on the stock kernel's version string with the relevant Google toolchain might be enough. I tried compiling with module verification disabled and it still doesn't boot but I think it will be needed anyway once we get past the initial problems since it seems we don't have the source for all the modules present on /vendor (or I'm blind) so we might have to use Razer's stock modules
[Razer Phone 2 Guides, News, & Discussion] CalebQ42:
Just compiled with your kernel changes and TWRP won't boot.
[Razer Phone 2 Guides, News, & Discussion] blackknightavalon:
It's been nearly a month. Any updates?
[Razer Phone 2 Guides, News, & Discussion] blackknightavalon:
...all right, fine. I'll see what I can cook up
[Razer Phone 2 Guides, News, & Discussion] blackknightavalon:
So...does anyone have a system dump?
[Razer Phone 2 Guides, News, & Discussion] CurtisMJ:
There are factory images which contain a full system.img.

The main issue we're having at the moment is that source built kernels don't boot though. TWRP with a stock kernel actually works. I think there was an image posted a while back... I can't remember what the drawbacks were. I vaguely remember that maybe not being able to boot into the ROM was it. I'll try find it
[Razer Phone 2 Guides, News, & Discussion] blackknightavalon:
I saw it. I downloaded source from Razer's developer site and I have the build environment set up on my Linux box. I'll work on it some more later on
[Razer Phone 2 Guides, News, & Discussion] CurtisMJ:
Ok here's the latest image on the thread.

https://xdaforums.com/razer-phone-2/how-to/twrp-compile-help-t3878166/post78560211

I kind of think the motivation to get a working recovery are less seeing as rooting and flashing GSIs don't actually require it these days. I dunno, all I know is I haven't needed it yet.

Getting a compiled kernel to boot however, I'm right keen for that.
[Razer Phone 2 Guides, News, & Discussion] jal3223:
Do you have a method of backing up without TWRP? I'd like to try some GSI ROMs but would like to have a backup of my current setup.
[Razer Phone 2 Guides, News, & Discussion] CurtisMJ:
No, I usually just depend on Titanium Backup.
[Razer Phone 2 Guides, News, & Discussion] thecubed:
For y'all having issues compiling and booting a custom kernel, I just posted my (mostly working, except microphone audio) kernel source and device tree along with a handy guide: https://xdaforums.com/razer-phone-2/development/wip-razer-phone-2-kernel-exfat-module-t3898732

I just need some help getting the microphone working. See the post for more information about that.
[Razer Phone 2 Guides, News, & Discussion] jal3223:
I'm just curious, is TWRP still being worked on? Or had there been a snag?
[Razer Phone 2 Guides, News, & Discussion] Twiggy000b:
Also interested.
[Razer Phone 2 Guides, News, & Discussion] rogeriskira:
I agree TWRP is the safety we need. :) I hope you can sure updates with us. Thank you for your work.
[Razer Phone 2 Guides, News, & Discussion] lownignitus:
Yeah I'm Interested if TWRP is still in plans as we are now on Pie, and I have a buddy itching to compile me a custom rom.
[Razer Phone 2 Guides, News, & Discussion] lonetormenter:
Looks like there's a new audio kernel from the dev portal now https://s3.amazonaws.com/cheryl-factory-images/audio-kernel-aura-2009.tar.gz
[Moto X4 Guides, News, & Discussion] mathuaerknedam:
Android version: 9

Current version: PPW29.69-26

Security patch level: November 1, 2018.
[Moto X4 Guides, News, & Discussion] nabhse90:
Whaaaaaaaa????? U got pictures???
[Moto X4 Guides, News, & Discussion] Jizzylax:
This is a retail build number.
[Moto X4 Guides, News, & Discussion] nabhse90:
So it's the exact same one thats going around the forums??
[Moto X4 Guides, News, & Discussion] TeamRainless:
[MENTION=5833810]mathuaerknedam[/MENTION] which Android version (and Security Update) were you upgrading from?
[Moto X4 Guides, News, & Discussion] jtnc:
Mine was updated via OTA yesterday (Mon 12/11) too. Xt1900-1, Android one, retus channel, google_fi varient, running on Fi in the US. I was on 8.1 November 2018 patchset. Now 9.0 November security pathchset.
[Moto X4 Guides, News, & Discussion] mathuaerknedam:
Same.
[Moto X4 Guides, News, & Discussion] Jizzylax:
Did anyone capture the download link?
[Moto X4 Guides, News, & Discussion] sleze:
Thanks for posting!

Meh...still not showing on mine.

For those who have it:

Does one button Nav work via the Moto app (or however Pie set it up)? I don't like the nav bar taking up real estate on my screen.
[Moto X4 Guides, News, & Discussion] TeamRainless:
I would think not since they're running Project Fi. (Unless I'm confusing that with the Android One model...)
[Moto X4 Guides, News, & Discussion] mathuaerknedam:
No One button Nav, but two additional gestures appeared under system settings:

- Swipe up on home to replace the overview button, and swipe up again for the app drawer. (two swipes for app drawer doesn't work for Nova, but does for the stock Moto launcher.

- press power and volume-up to prevent ringing

I've attached pics of these and phone/system screens.
[Moto X4 Guides, News, & Discussion] TeamRainless:
Power and volume up was the record video shortcut... What records video now?
[Moto X4 Guides, News, & Discussion] jhedfors:
If you remove this prop "ro.mot.android_one", after rebooting, the One Button Nav option will be available.

You can use the MagiskHide Props Config module to do this.
[Moto X4 Guides, News, & Discussion] Jayakumar123:
Can you post the pics of changes in pie
[Moto X4 Guides, News, & Discussion] KindofBlues71:
My x4 (Google Fi version) just updated to Pie and there are already two changes I hate. The clock was moved to the far left of the status bar and no more split screen multitasking. I used the latter a lot and am not happy about losing that functionality. Anyone know if it can be re-enabled?
[Moto X4 Guides, News, & Discussion] RockinAmigo14:
it's still available, it's just annoying to use now. go to the recents menu, and then hold down the app icon of the app you want to turn into split screen. not sure why Pie chose to do that, but that's how to do it now.
[Moto X4 Guides, News, & Discussion] KindofBlues71:
Thank you RockinAmigo14!! I tried to hold down the app window in the overview screen but not the actual app icon. Beautiful! Now I'm only angry about the clock position!
[Moto X4 Guides, News, & Discussion] MisterFribble:
The "swipe up on home" is the same gesture navigation as on the Pixels. One button nav would come by an update to the Moto actions app.

---------- Post added at 12:37 AM ---------- Previous post was at 12:37 AM ----------

Does Digital Wellbeing work on it?
[Moto X4 Guides, News, & Discussion] jhedfors:
One Button Nav is included in the app, but purposefully disabled by Motorola, but you can enable this feature:
[Moto X4 Guides, News, & Discussion] jb2112:
It's not showing up on me yet (I've checked several times already lol). According to this article on Android Authority, the updates is rolling out to x4 this week. So I guess we should have Pie by this weekend.
[Moto X4 Guides, News, & Discussion] pt1xoom:
My phone is rooted and stuck on 8.1. When I try to update, it fails.

My point is I am in a good position to capture the download link, but I have yet to do this. If someone could explain to me how to do this, I will be happy to provide the link or file I am able to download.
[Moto X4 Guides, News, & Discussion] enriquejones666:
the custom droid.com/how-to-capture-ota-update-url-android

(Can't post link - take out spaces)
[Moto X4 Guides, News, & Discussion] edufur:
this is so frustrating. I have tried to force my phone to try and get the ota and it keeps saying I am up to date. :(
[Moto X4 Guides, News, & Discussion] pt1xoom:
Thank you for this. I was able to get the download url, and I downloaded the file. I convert it to a zip file and Extracted the files.

It has a payload.bin with the zip file. What do I do with this file now?

Here is the metadata.json:

{"annoy": "...",

"forced": "false",

"serviceControlEnabled": "false",

"targetBuildTimestamp": "1542416067",

"flavour": "SD card package 28.271.25-29.11.31",

"packageType": "incremental",

"sourceDisplayVersion": "OPWS28.3.5",

"releaseNotes": "some notes",

"otaSourceSha1": "",

"wifionly": "false",

"extraSpaceCache": "",

"sourceBuildTimestamp": "1540295073",

"version": "Blur_Version.29.11.31.payton_fi.google_fi.en.US",

"metaVersion": "0",

"updateType": "ab",

"displayVersion": "PPW29.69-26",

"otaTargetSha1": "231f279c0e0516d",

"minVersion": "Blur_Version.28.271.25.payton_fi.google_fi.en.US",

"abRecoveryUpdate": "",

"extraSpace": "0",

"size": "1024"}
[Moto X4 Guides, News, & Discussion] rdp1234:
Can you post the download link?