plasma-phone-packaging / pm-flashtool

Tool for Flashing PM as LXC Container on top of CM
44 stars 27 forks source link

Fixing nexus 5x rootfs download issue #51

Open DeWarner opened 3 years ago

DeWarner commented 3 years ago

issues cropped up when the rootfs_stamp was removed from the server.

this is a quick and dirty fix to poll the available options and take the latest version.

BE WARNED: while i have fixed the specific issues i have not got a device to test on with me, so I dont know what happens next. Dont get angry with me if you break your phone.

side issues: curl is an implicit dependency and not always installled on host, log helpful message and exit if its not available if the connection to host server is broken it now shows helpful message

DeWarner commented 3 years ago

Fix #44 Fix #49

Sunbloke commented 3 years ago

Hello,

I am trying to install Plasma to a Nexus 5x, and running into this problem. I see there is a fix? How do I apply this fix? Is there a replacement for the pm-flash file with the changes?

I would really appreciate the help!

DeWarner commented 3 years ago

you can clone my fork or edit the script locally to match the changes i made

DeWarner commented 3 years ago

but in case you arent aware the 5x isnt officially supported anymore so you are probably going to run into more issues in a later step

DeWarner commented 3 years ago

please let me know what happens if you do try it!

Sunbloke commented 3 years ago

thanks for the quick answer! Too bad, I did not realise support had finished...

I tried to alter the file, but I can´t save any changes. It is a read-only file.

Sorry, I´m a noob...

DeWarner commented 3 years ago

ah, it sounds like the file is owned by root, did you 'git clone' as root? what commands did you run?

Before you continue please be aware that I dont know what will happen, you may brick your device or at the very least expect to lose any data stored on the device.

As a regular user, open up a new terminal and run git clone https://github.com/DeWarner/pm-flashtool bullhead-pm-flashtool cd bullhead-pm-flashtool chmod +x pm-flash ./pm-flash

Sunbloke commented 3 years ago

Thank you so much! The phone is an old phone from my work. I don´t believe in throwing good devices away, so this is a good experiment for me

Something happened to my phone though! It finally started downloading and installing.

Sunbloke commented 3 years ago

The phone is in a loop... Failed to mount ´data´ (invalid argument)

DeWarner commented 3 years ago

if you can get into bootloader you could try again, but do a factory reset when you get into twrp, and unmount partitions before heading to the next step, see if that works? I fear plasma mobile for the nexus 5x might be a lost cause, but you might have better luck with postmarketos