[OnePlus 7] [LOS 17.1] Porting thread

528 views
Skip to first unread message

Deepak Divakar

unread,
Nov 19, 2020, 12:36:26 AM11/19/20
to Maru OS dev
Hi, I have managed to port MaruOS to OnePlus 7 (guacamoleb) and i am sharing my build here. Since lineage 15.1 or 16 device tree weren't available for the device i used lineage 17.1 as base and imported patches from  maru 0.6 and another developer's (pintaf) sources to adapt to android 10.  The build seems very stable so far and have tested it with screen mirroring with a bluetooth keyboard successfully. The only thing i haven't been able to test is HDMI since i dont have the required adaptor yet.


[Installation Instructions]
Install latest TWRP recovery
Factory reset and format data
Install downloaded file and reboot again to recovery
Install OpenGapps and reboot to system

Download link -

Credits to Lineage, MaruOS team and other developers at this forum.

loicp...@gmail.com

unread,
Nov 19, 2020, 7:07:24 PM11/19/20
to Maru OS dev
Wow ! sensational news !
Gongrats! I'm really thrilled you managed to port maru to LOS17 !

I'm not yet to test it since my htc10 in my daily driver. I'm currently trying to port maru 0.7 to BQ aquaris X2, and the I'll have to port this same phone to LOS 17 as it's unsupported. Some work ahead :)

Deepak Divakar

unread,
Nov 20, 2020, 12:51:09 AM11/20/20
to Maru OS dev
It helped a lot to have your patches on LOS16 as reference. Good luck on bringing up htc10 to android 10 :) Ill try to keep my repo up to date with changes from official lineage repo as long as i can. Meanwhile, ill try porting more OnePlus devices to Maru.

Adam Kaesberg

unread,
Nov 29, 2020, 8:32:56 PM11/29/20
to Maru OS dev
thank you so much for your progress!! i have coppied your build and have been able to create a 17.1 guacamoleb build done and started to move the hotdogb over from RR and i have gotten stuck at this point. any advice would be greatly appreciate it.

this is a link to my error

Deepak Divakar

unread,
Dec 1, 2020, 9:30:45 AM12/1/20
to Maru OS dev
Hi, I added a few sepolicy permissions to allow guacamoleb to boot selinux in enforcing mode and i have only tested it on guacamoleb so far. U can refer to these commits to see what changes i made and remove them. 

Also you will need to boot the device with selinux permissive by adding "BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive" to BoardConfig.mk

If u can wait for 3-4 days I was already in the process of building hotdog and hotdogb. Ill fix any errors and upload the device tree and kernel to my github.

Adam Kaesberg

unread,
Dec 1, 2020, 9:34:25 AM12/1/20
to Deepak Divakar, Maru OS dev
Thanks for the tips. I greatly appreciate your work on this. I'm just trying to learn how to get build up and running. 

I am excited to see what happens next. I will give this a try and let you know how it goes.

--
You received this message because you are subscribed to the Google Groups "Maru OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maru-os-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maru-os-dev/75805f04-d54e-4e15-8b98-912058f16c30n%40googlegroups.com.

Adam Kaesberg

unread,
Dec 2, 2020, 1:39:58 AM12/2/20
to Deepak Divakar, Maru OS dev
Do you have the phone for testing or are you no and building? I have a 6t 7t 7 pro that I can test on from one plus. I have a bunch of other devices to but they are kinda old now.

Deepak Divakar

unread,
Dec 2, 2020, 2:39:57 PM12/2/20
to Maru OS dev
I have a OnePlus 7 and a really old oneplus one. I got a friend's oneplus 8 i can test on too. For now i am planning to just port for 7 series since not much changes need to be made. I have been using maru on my op7 and it has been stable so far. 

I did a test build for hotdog and it built without any errors. I couldn't find official lineage sources for hotdogb and anything closest to lineage i found was here https://github.com/AOSiP-Devices/device_oneplus_hotdogb/tree/lineage-17.1. So I'll use this and see if i can get a successful build. Ill upload test builds for 7pro and 7t soon and it would help a lot if you could test them.

Adam Kaesberg

unread,
Dec 2, 2020, 3:28:31 PM12/2/20
to Deepak Divakar, Maru OS dev
That's the same kernel I took from RR and it build los17.1 but I am having issues with maru. 

I will load up the 7t first as it is ready to install on. My 7 pro is in used but once I test on the 7t I can switch to the 7 pro.

I have other devices like the pix l xl and Moto z2 these have working ports but not on los17.1 I will repo sync with you once you have the new device up.

Deepak Divakar

unread,
Dec 5, 2020, 5:02:43 PM12/5/20
to Maru OS dev
Hey again. I used AOSIP device tree to get close to lineage and got a successful build without any errors. I used vendor files from AOSIP as well. I havent updated my repo manifest to include guacamole, hotdog or hotdogb for device tree or kernel yet since i am waiting for someone to test my builds to make sure they run fine. Can you test my build on your 7t and let me know if it boots fine?


For hotdog and hotdogb i havent replaced stock recovery with twrp so it will overwrite your recovery during install so you will have to install twrp again before u can install gapps.

Adam Kaesberg

unread,
Dec 5, 2020, 5:28:21 PM12/5/20
to Deepak Divakar, Maru OS dev
I will get right on top of testing today. I will let you know how it goes asap. Your such a rockstar!! Send me your PayPal e-mail I want to buy you lunch for your efforts as a sign of application. Also 7t does not have a fully functional twrp and I will have to run this from a fastbootd and payload dumper. I'm sure you build will boot. If not I will let you know.

Deepak Divakar

unread,
Dec 5, 2020, 5:56:44 PM12/5/20
to Maru OS dev
Alright good luck! And no donation needed for me haha because all the real work is not mine anyway but u could donate to maru project instead - Support Maru

I wasn't aware of the twrp situtation on 7t. Do you want me to upload the fastboot files also?

Adam Kaesberg

unread,
Dec 5, 2020, 6:03:22 PM12/5/20
to Deepak Divakar, Maru OS dev
If you say so my guy. It's okay I already payload dumped the rom. I have no way to flash gapps so if this work I would like to repo sync so I can add gapps prebuilt. 

Preetam is the man and I think we all know that and other have put in on the source. I will test all these builds because if we do this and it works I know he will add them to the site for all to use. I will capture logcat if I have issues


tophe...@gmail.com

unread,
Dec 12, 2020, 11:04:50 AM12/12/20
to Maru OS dev
well done, fellas. if you're still looking for someone to test guacamole, i'm in. i did a few ugly hacks to get the guacamoleb build to boot, and it ran pretty well. i must admit that i tried squashing bugs previously for preetam and georgian a few years ago with the HTC10, and there were none. only user errors.

Adam Kaesberg

unread,
Dec 13, 2020, 8:48:33 AM12/13/20
to Deepak Divakar, Maru OS dev
Okay so I was able to install the ROM but I was having 2 issues with it. First off the ROM did boot and I was able to run the desktop when connected to a Chromecast. The problem is that the system UI is crashing over and over again, next the device would only stay on if it was plugged in. I flashed the ROM from fastbootd and it does work but with a few issues. Do you have something you want me to try next?

Deepak Divakar

unread,
Dec 14, 2020, 11:53:15 PM12/14/20
to Maru OS dev
Could u pass me the adb logs? I might have messed something up while moving from AOSIP to lineage.

Adam Kaesberg

unread,
Dec 15, 2020, 7:19:19 AM12/15/20
to Deepak Divakar, Maru OS dev
Okay I will install ing again later tonight (7 am now for me) once installed I will boot it up and run a logcat. That's what you need correct? Then I can save them to google drive and drop a link here.

You received this message because you are subscribed to a topic in the Google Groups "Maru OS dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maru-os-dev/p2OzUBpFKJ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to maru-os-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maru-os-dev/ca95845a-4fbc-4d20-9a1e-847091c21cfen%40googlegroups.com.

Deepak Divakar

unread,
Dec 15, 2020, 8:03:50 AM12/15/20
to Maru OS dev
Yes just the logcats is fine. No hurry :)

Adam Kaesberg

unread,
Dec 15, 2020, 8:16:30 AM12/15/20
to Deepak Divakar, Maru OS dev
Okay I will do it tonight. It's no rush but I don't want to keep you waiting. I know this is done in your free time so I appreciate it and just want to do my part in getting the ROM running on the OnePlus 7t

Adam Kaesberg

unread,
Dec 16, 2020, 2:51:54 PM12/16/20
to Maru OS dev
got some log from the device. i notice when i used the mouse i did not have any crashes. any way cellular data was not working but i can confirm that debian is working

tophe...@gmail.com

unread,
Dec 16, 2020, 5:58:27 PM12/16/20
to Maru OS dev
hey deepak, did you already upload the build of guacamole (7 pro)? i got the guacamoleb build to boot and pretty much everything works, only exceptions being the dialer, sms and of course the display notch from guacamoleb.

Deepak Divakar

unread,
Dec 17, 2020, 4:49:20 AM12/17/20
to Maru OS dev
Thanks for the logs! I'll check into it this weekend and upload another build

Deepak Divakar

unread,
Dec 17, 2020, 4:54:24 AM12/17/20
to Maru OS dev
Hi, yes i have already built one for guacomole (7 pro). All my builds are in this folder - https://mega.nz/folder/tzgRhCYT#E3aoDIIwYX24beLs88ep8Q
I haven't tested the build though since i don't have the device. You can try the build and see if it is working fine.


Adam Kaesberg

unread,
Dec 17, 2020, 7:44:33 AM12/17/20
to Deepak Divakar, Maru OS dev
Your so awesome for sharing these builds with us I have uploaded log to the link I shared with you. I only know how to generate them in a txt file I hope that makes them earlier to read.

--
You received this message because you are subscribed to the Google Groups "Maru OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maru-os-dev...@googlegroups.com.

Adam Kaesberg

unread,
Dec 29, 2020, 10:48:33 AM12/29/20
to Deepak Divakar, Maru OS dev
So I have tried something else this time. I converted my phone from a T-Mobile to global firmware and the rom is more stable but I still have system ui crashes and the device shuts off if you disconnect it from power. Let me know if I can do anything to help.
Reply all
Reply to author
Forward
0 new messages