Porting Lineage OS - Razer Phone 2 Questions & Answers

Hello everyone. I was wondering about porting Lineage OS to our phones. I've never ported a ROM but maybe someone who is more knowledgeable could work with me? I'm willing to use my phone as a test device. I'm also willing to put up a virtual machine on my server to use for building/porting the ROM.
Is there a reason we couldn't port it over? Or maybe a different ROM?

I've read around that certain gsi ROMs already work as the RP2 is a project treble device. I'm no developer or indeed have I put a custom on, but perhaps that's a place to start?
There's some people around here that report they have done this successfully, perhaps talk with them?

¯\_(ツ)_/¯

Don't we need custom recovery first?

blackknightavalon said:
Don't we need custom recovery first?
Click to expand...
Click to collapse
Nope GSI can just be flashed, just make sure to factory reset and unlock the bootloader before doing it

blackknightavalon said:
Don't we need custom recovery first?
Click to expand...
Click to collapse
all you need is fastboot

Related

[Q] PAC-Man Rom w/ Safestrap?

I found this rom a few pages back
http://forum.xda-developers.com/showthread.php?t=2670632
I just want to know if anyone has tried to flash it using safestrap 3.72+?
Would it be dumb to try or just ballsy? I mean as far as I can tell safestrap does the same thing as a twrp / cwm, does it not?
jfphotox said:
I found this rom a few pages back
http://forum.xda-developers.com/showthread.php?t=2670632
I just want to know if anyone has tried to flash it using safestrap 3.72+?
Would it be dumb to try or just ballsy? I mean as far as I can tell safestrap does the same thing as a twrp / cwm, does it not?
Click to expand...
Click to collapse
It will not work because we have a locked bootloader which means we cannot flash kernels. Without the AOSP kernel this simply won't work. Don't even try it...not worth it.
tropazr said:
It will not work because we have a locked bootloader which means we cannot flash kernels. Without the AOSP kernel this simply won't work. Don't even try it...not worth it.
Click to expand...
Click to collapse
Ah that makes sense, I knew there was something I was forgetting. Aka kernels... I get it now, the roms that are active dev use the stock kernel so one doesn't need to be flashed... PAC-Man uses a different kernel. Thanks!

HELP: Upgrading to EMUI5 on NEM-L21 with TWRP and Xposed

I read here, somewhere, that you need stock recovery to do the update. Since I have flashed another recovery (and rooted and installed Xposed), I'm not sure if I can update to EMUI5.
Furthermore, I'm not even sure how to do the update. The update (b351) is available in FF and checks out as "compatible", but I don't know what the install procedure is. Especially without stock recovery.
Any help or info is much appreciated
yeah, you should flash stock recovery thru ADB and thn try updating...
Not adb but fastboot
thomaskmaagaard said:
I read here, somewhere, that you need stock recovery to do the update. Since I have flashed another recovery (and rooted and installed Xposed), I'm not sure if I can update to EMUI5.
Furthermore, I'm not even sure how to do the update. The update (b351) is available in FF and checks out as "compatible", but I don't know what the install procedure is. Especially without stock recovery.
Any help or info is much appreciated
Click to expand...
Click to collapse
You will also need to reflash the stock boot.img, since you're rooted.
Sent from my Honor 8 using XDA Labs
adriansticoid said:
You will also need to reflash the stock boot.img, since you're rooted
Click to expand...
Click to collapse
Thanks a lot. Any help, perhaps, on where I get that. And the recovery mentioned above?
Oh, and why is it not possible to flash the ROM like if it was a custom one? Just wondering
thomaskmaagaard said:
Thanks a lot. Any help, perhaps, on where I get that. And the recovery mentioned above?
Oh, and why is it not possible to flash the ROM like if it was a custom one? Just wondering
Click to expand...
Click to collapse
That you may need to find your own. Well in custom ROMs, they are designed to work with custom recoveries like TWRP. While in stock, the whole system is inside update.app, which can't be read by a custom recovery.
adriansticoid said:
That you may need to find your own. Well in custom ROMs, they are designed to work with custom recoveries like TWRP. While in stock, the whole system is inside update.app, which can't be read by a custom recovery.
Click to expand...
Click to collapse
Okay, thanks anyways, again. I guess it's time to hunt down those images
thomaskmaagaard said:
Okay, thanks anyways, again. I guess it's time to hunt down those images
Click to expand...
Click to collapse
You can ask @DRUGER for that.
Any links to stock recovery and whatever else needed?
Jstyants said:
Any links to stock recovery and whatever else needed?
Click to expand...
Click to collapse
Check repository thread
Jstyants said:
Any links to stock recovery and whatever else needed?
Click to expand...
Click to collapse
You can also extract stock images from update.app

what is current best (active) ROM

Hi all,
I've Z1 which is not used in last 2 years. It has dirty unicorns 9.something, unlocked bootloader and root.
My Nexus 6p is giving troubles so I need to use Z1, I was wondering is there an active ROM right now or devs moved away from Z1 (I ask this cause most of the threads in original development seems to suggest that). I normally don't use ROMs from Android development since I've already deleted those DRM keys and stock drivers/firmware won't be useful (I looked in there as well though, and see only lineage active but the dev doesn't have display anymore)
I'll check AOSP branch from Sony itself until then thought I might as well ask the community.
Thanks
wis3m0nkey said:
Hi all,
I've Z1 which is not used in last 2 years. It has dirty unicorns 9.something, unlocked bootloader and root.
My Nexus 6p is giving troubles so I need to use Z1, I was wondering is there an active ROM right now or devs moved away from Z1 (I ask this cause most of the threads in original development seems to suggest that). I normally don't use ROMs from Android development since I've already deleted those DRM keys and stock drivers/firmware won't be useful (I looked in there as well though, and see only lineage active but the dev doesn't have display anymore)
I'll check AOSP branch from Sony itself until then thought I might as well ask the community.
Thanks
Click to expand...
Click to collapse
Carbon Rom is the only one active right now which is only for Security updates (they're working on Oreo that's why) and they might update faster if a there's a new vulnerability to fix.
AbduSharif20 said:
Carbon Rom is the only one active right now which is only for Security updates (they're working on Oreo that's why) and they might update faster if a there's a new vulnerability to fix.
Click to expand...
Click to collapse
Awesome thanks.
I tried the ROM, does it remove TWRP on flash? (I will ask this in ROM thread I guess)
wis3m0nkey said:
Awesome thanks.
I tried the ROM, does it remove TWRP on flash? (I will ask this in ROM thread I guess)
Click to expand...
Click to collapse
It does not overwrite recovery.
Twrp is there after you flashed the rom. If the recovery disappears just flash it from fastboot again
SUPERUSER said:
It does not overwrite recovery.
Twrp is there after you flashed the rom. If the recovery disappears just flash it from fastboot again
Click to expand...
Click to collapse
I did and then I can't boot in ROM
wis3m0nkey said:
I did and then I can't boot in ROM
Click to expand...
Click to collapse
may i ask what you did?
Flashed something in fastboot?
SUPERUSER said:
may i ask what you did?
Flashed something in fastboot?
Click to expand...
Click to collapse
I think I figured out my mistake.
I flashed TWRP with fastboot flash boot instead of fastboot flash recovery so it was giving me single use TWRP and so on.
Thanks a lot
wis3m0nkey said:
I think I figured out my mistake.
I flashed TWRP with fastboot flash boot instead of fastboot flash recovery so it was giving me single use TWRP and so on.
Thanks a lot
Click to expand...
Click to collapse
yes I figure it was it
This command sends and boots the image you specify to the device.
Similar to live booting a live linux dist

None of the custom roms are booting

Hey everyone! I have a weird problem. I have rooted my Honor 5C NEM-L21 but everytime i try to flash a custom rom it gets bootlooped. I have tried multiple different roms and formatting /data as f2fs , yet have the same problem everytime that i flash a custom ROM. I have as well everytime downgraded the OS back to EMUI 4 and updated the OS to EMUI 5 but it does not help with the problem. Does anyone have any idea what might cause this problem? Thanks
onnz423 said:
Hey everyone! I have a weird problem. I have rooted my Honor 5C NEM-L21 but everytime i try to flash a custom rom it gets bootlooped. I have tried multiple different roms and formatting /data as f2fs , yet have the same problem everytime that i flash a custom ROM. I have as well everytime downgraded the OS back to EMUI 4 and updated the OS to EMUI 5 but it does not help with the problem. Does anyone have any idea what might cause this problem? Thanks
Click to expand...
Click to collapse
Don't use the original TWRP
AlexMihai26 said:
Don't use the original TWRP
Click to expand...
Click to collapse
I have used HassanMirza01's TWRP everytime when flashing, that should be the correct one right?
onnz423 said:
I have used HassanMirza01's TWRP everytime when flashing, that should be the correct one right?
Click to expand...
Click to collapse
It should be,it depends if you want to flash one of his roms.I'm using Lineage with the latest TWRP and it's working .
AlexMihai26 said:
It should be,it depends if you want to flash one of his roms.I'm using Lineage with the latest TWRP and it's working .
Click to expand...
Click to collapse
Yeah, not sure what im doing wrong then. Maybe i should try to reflash the kernel after flashing the ROM. This phone is pretty painful to mod if you ask me
onnz423 said:
Yeah, not sure what im doing wrong then. Maybe i should try to reflash the kernel after flashing the ROM. This phone is pretty painful to mod if you ask me
Click to expand...
Click to collapse
I have the same problem, i tried it several times but never worked. I gave up and instaled OctRom form felix-development after all...
onnz423 said:
Yeah, not sure what im doing wrong then. Maybe i should try to reflash the kernel after flashing the ROM. This phone is pretty painful to mod if you ask me
Click to expand...
Click to collapse
Try the stock kernel.I did that to make Lineage work,or you could try first to install elite rom then the rom that you want.

Project Treble? Working?

Hello everyone,
is it possible to Flash a treble Rom with unlocked Bootloader?
Do i need twrp also?
If it is possible i will try to install all Apps from the global rom to the treble Rom.
Greets
florian-m19 said:
Hello everyone,
is it possible to Flash a treble Rom with unlocked Bootloader?
Do i need twrp also?
If it is possible i will try to install all Apps from the global rom to the treble Rom.
Greets
Click to expand...
Click to collapse
I think yes, but I'm not sure
Was wondering the same thing, does anyone know if the red magic 3 is A only or an A/B device. I'm pretty sure it's A only, but I couldn't find any documentation online.
Its A only i think.
Hum... So Project Treble should work ?
That is interesting !
If I could install Resurrection Remix to this device and provided everything works it would become really almost perfect.
If anyone wants to try... If not I'll do it myself when I have time (in 2 or 3 days)...
Regards.
If the device has treble support, meaning a vendor partition it should work no problem, a/b partitioning is really not required for treble.
I tested treble using fastboot, since twrp had some issues, but it resulted in a bootloop and a corrupted recovery partition. I managed to fix it by following: https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page9
Twrp gave me a mounting error for
/system_root, which is fixable by setting system to be read-only and then rebooting the recovery and re enableing read/write. Have not had the time to test using twrp and treble yet.
*I posted earlier in the day but managed to fix all the issues I had, so this a better summary :silly:
trepKep said:
I tested treble using fastboot, since twrp had some issues, but it resulted in a bootloop and a corrupted recovery partition. I managed to fix it by following: https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page9
Twrp gave me a mounting error for
/system_root, which is fixable by setting system to be read-only and then rebooting the recovery and re enableing read/write. Have not had the time to test using twrp and treble yet.
*I posted earlier in the day but managed to fix all the issues I had, so this a better summary :silly:
Click to expand...
Click to collapse
So, this means its not working.. Sad Story.
florian-m19 said:
So, this means its not working.. Sad Story.
Click to expand...
Click to collapse
Well not necessarily, since I flashed the lineageos gsi through fastboot. (That may be the issue) I was having issues with twrp. I will try again today, although the chances are slim.
trepKep said:
Well not necessarily, since I flashed the lineageos gsi through fastboot. (That may be the issue) I was having issues with twrp. I will try again today, although the chances are slim.
Click to expand...
Click to collapse
U should clear user data and cache after installing new system if you have bootloop problem
Make sure its A only GSI
em902566 said:
U should clear user data and cache after installing new system if you have bootloop problem
Make sure its A only GSI
Click to expand...
Click to collapse
I'll keep that in mind
trepKep said:
I'll keep that in mind
Click to expand...
Click to collapse
Hey, did you try it again?
florian-m19 said:
Hey, did you try it again?
Click to expand...
Click to collapse
No, I was busy. But I'm trying right now
Treble Attempt #2
No luck, everything flashed with no errors, but all I get is more than 10 minutes of black screen. I also tried flashing magisk right after the gsi finished, same result.
trepKep said:
Treble Attempt #2
No luck, everything flashed with no errors, but all I get is more than 10 minutes of black screen. I also tried flashing magisk right after the gsi finished, same result.
Click to expand...
Click to collapse
Hmm then we must wait for a custom Rom..
florian-m19 said:
Hmm then we must wait for a custom Rom..
Click to expand...
Click to collapse
Yeah, a one plus 7 pro port would be nice
florian-m19 said:
Hello everyone,
is it possible to Flash a treble Rom with unlocked Bootloader?
Do i need twrp also?
If it is possible i will try to install all Apps from the global rom to the treble Rom.
Greets
Click to expand...
Click to collapse
Word of advice. Do not attempt to flash anything on this cell. You will regret it. I tried to flash TWRP over 6 weeks ago an it's been dead ever since. Even a cellphone repair center guy could not repair it.
You need to leave good enough alone.
People all around the world have been stuck in permanent recovery screens or fastboot screens like me.
It really is a very good cell the way it is ?
Bryceicle1971 said:
Word of advice. Do not attempt to flash anything on this cell. You will regret it. I tried to flash TWRP over 6 weeks ago an it's been dead ever since. Even a cellphone repair center guy could not repair it.
You need to leave good enough alone.
People all around the world have been stuck in permanent recovery screens or fastboot screens like me.
It really is a very good cell the way it is ?
Click to expand...
Click to collapse
Many people have faced the issue and they have recovered their device. Look for all solutions available.
danishajaz said:
Many people have faced the issue and they have recovered their device. Look for all solutions available.
Click to expand...
Click to collapse
I have. 7 weeks an counting an no working cell yet. I bought an Mi9 an no issues with it. Easy to reinstall firmware. The red magic 3 is the most difficult to repair cell I have ever encountered. I wish they had something like miflashpro for it
Treble is working from chinese ROM with twrp make sure image is A/B because this device is A/B

Categories

Resources