Author Topic: Boot error after setting up rooted android  (Read 1357 times)

bolderz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Boot error after setting up rooted android
« on: February 25, 2020, 11:18:46 am »
I have followed the instructions from the Planet support website to re-partition the Cosmo and install rooted android and Linux.  However, some of the boot options don't work. Is this to be expected?  Have I missed something?

Initally NORMAL boot started up android, but after installing Magisk it now says:
Code: [Select]
Your device has failed verification and may not work properly
Please download boot image with correct signature or disable verified boot
Your device will reboot in 5 seconds
I installed Magisk using the instructions on https://magiskmanager.com/

TWRP boot starts TWRP with it asking for a decryption key

ROOTED_ANDROID boot works and Magisk shows it has been rooted.

DEBIAN_KDE boot also works.

FASTBOOT boot hangs

Is normal boot intended to provide an option for a non-rooted android?  I haven't been involved with the Linux beta programme that has been running recently.

SwordfishII

  • Newbie
  • *
  • Posts: 39
    • View Profile
Boot error after setting up rooted android
« Reply #1 on: February 26, 2020, 01:14:05 am »
Quote from: bolderz
I have followed the instructions from the Planet support website to re-partition the Cosmo and install rooted android and Linux.  However, some of the boot options don't work. Is this to be expected?  Have I missed something?

Initally NORMAL boot started up android, but after installing Magisk it now says:
Code: [Select]
Your device has failed verification and may not work properly
Please download boot image with correct signature or disable verified boot
Your device will reboot in 5 seconds
I installed Magisk using the instructions on https://magiskmanager.com/

TWRP boot starts TWRP with it asking for a decryption key

ROOTED_ANDROID boot works and Magisk shows it has been rooted.

DEBIAN_KDE boot also works.

FASTBOOT boot hangs

Is normal boot intended to provide an option for a non-rooted android?  I haven't been involved with the Linux beta programme that has been running recently.

Normal boot is normal and not rooted. Rooted boot is rooted.

Here is how planet has the OSs set up:

Normal android is the base which both root and linux work off of.

The rooted "image," isn't a full android image, instead it is a rooted boot.img which boots instead of the unrooted boot.img. its a small file, only a couple mb. The rooted "image" basically symlinks to all the files, settings and apps in the unrooted. So make a change in one and you will see it in the other.

Linux does something similar using libhybris as a compatibility layer to utilize the android drivers in the android install.

For instance if you had selected "full linux" install, there would still be android drivers and stuff on your cosmo because the cosmo linux wouldn't fiction without those android drivers.

Regardless there is a bug in the rooted boot as networking isn't working...
« Last Edit: February 26, 2020, 01:08:51 am by SwordfishII »

Zarhan

  • Sr. Member
  • ****
  • Posts: 275
    • View Profile
Boot error after setting up rooted android
« Reply #2 on: February 26, 2020, 01:45:11 am »
Quote from: SwordfishII
Regardless there is a bug in the rooted boot as networking isn't working...

That's more than a bit weird, considering that the images provided by Ninji and others, or even if you generate your own with magiskmanager, work just fine. So they explicitly must have done some extra steps to break the networking.
« Last Edit: February 26, 2020, 01:46:20 am by Zarhan »

lokomoko

  • Newbie
  • *
  • Posts: 22
    • View Profile
Boot error after setting up rooted android
« Reply #3 on: February 26, 2020, 06:10:07 am »
Quote from: SwordfishII
Regardless there is a bug in the rooted boot as networking isn't working...
What kind of networking problems are you experiencing? WLAN networking works fine for me with the rooted android.
The problem I observe is that the rooted android does not connect to mobile network (does not ask for SIM pin). Is this what you where referring to?

bolderz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Boot error after setting up rooted android
« Reply #4 on: February 26, 2020, 10:30:43 am »
Thanks SwordfishII for a very clear explanation.  After posting I looked around the forum again and came to the conclusion that the non-rooted android image was shared with the rooted version (but only after I ran into problems of course).

It seemed to be the installation of Magisk which prompted the verification failure, but this step is called up by the Planet Linux installation guide.  Have I missed something here?

Do I need to unlock the bootloader to get past the verification check?  If verification has failed does this mean that future OTA updates will fail?  There is nothing in the Planet installation guide for Linux about this.

Alternatively, I could try to flash the original android V19 using images from the forum, but I have no experience of this process.  AFAIK Planet do not provide a method of reverting the Cosmo to V19.

I can run the rooted android, but it fails to recognise the SIM and so I have no phone or 3G/4G data, and normal android fails to boot.  The SIM is PAYG and has no PIN, and it works in another phone.  I really need mobile phone and data services on the Cosmo before I can use it.

Help and advice needed on what to do next.

bolderz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Boot error after setting up rooted android
« Reply #5 on: February 26, 2020, 12:04:34 pm »
I have now unlocked the bootloader using fastboot following instructions in this post   which advises https://www.thecustomdroid.com/unlock-bootl...fastboot-guide/.

The Cosmo now boots into normal android and the SIM works!  I will have to reconfigure everything again as the unlocking wipes all the data, but there was no data on it anyway.

SwordfishII

  • Newbie
  • *
  • Posts: 39
    • View Profile
Boot error after setting up rooted android
« Reply #6 on: February 26, 2020, 01:41:18 pm »
Quote from: lokomoko
Quote from: SwordfishII
Regardless there is a bug in the rooted boot as networking isn't working...
What kind of networking problems are you experiencing? WLAN networking works fine for me with the rooted android.
The problem I observe is that the rooted android does not connect to mobile network (does not ask for SIM pin). Is this what you where referring to?

Yes. Rooted Android should still be able to connect to the cellular network.

SwordfishII

  • Newbie
  • *
  • Posts: 39
    • View Profile
Boot error after setting up rooted android
« Reply #7 on: February 26, 2020, 01:54:36 pm »
Quote from: bolderz
Thanks SwordfishII for a very clear explanation.  After posting I looked around the forum again and came to the conclusion that the non-rooted android image was shared with the rooted version (but only after I ran into problems of course).

It seemed to be the installation of Magisk which prompted the verification failure, but this step is called up by the Planet Linux installation guide.  Have I missed something here?

Do I need to unlock the bootloader to get past the verification check?  If verification has failed does this mean that future OTA updates will fail?  There is nothing in the Planet installation guide for Linux about this.

Alternatively, I could try to flash the original android V19 using images from the forum, but I have no experience of this process.  AFAIK Planet do not provide a method of reverting the Cosmo to V19.

I can run the rooted android, but it fails to recognise the SIM and so I have no phone or 3G/4G data, and normal android fails to boot.  The SIM is PAYG and has no PIN, and it works in another phone.  I really need mobile phone and data services on the Cosmo before I can use it.

Help and advice needed on what to do next.

Because you installed magisk, it will appear on both rooted and unrooted boot.

Magisk is setup to check for updates and verification, which is more of an annoyance on normal boot since normal boot is not rooted (lack of root is why it fails)

I say annoyance because it won't do anything bad. Simply go into the settings in magisk and turn off the checks and it won't pop up again.

At this point the only benefit of rooted is being able to boot into it to make os changes which are reflected in the normal boot and normal boot should be your default.
« Last Edit: February 26, 2020, 01:50:17 pm by SwordfishII »

bolderz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Boot error after setting up rooted android
« Reply #8 on: February 27, 2020, 11:35:20 am »
As far as I can tell, both normal android and rooted android boot options are giving me a rooted android.  After a normal android boot Magisk shows two green ticks and Solid Explorer reports that it has been granted Superuser rights.  Also Magiisk does not fail on startup.

This is also the case for the rooted android boot option, the main difference being that the SIM works for the normal android boot option. So even though normal boot is the default, I don't really have a way of running android without root.

Iniitally, mobile data refused to work for the normal android option, but this turned out to be because the SIM slot for mobile data had not been selected (see Settings | Network & Internet | SIM cards).

Although the Cosmo is quite usable, I suspect I might have problems with the next update, unless Planet provide a full image install.

I am hoping root will allow me to use Titanium Backup and possibly import bookmarks into Firefox.

Vistaus

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Boot error after setting up rooted android
« Reply #9 on: February 27, 2020, 02:04:52 pm »
Tip: if you install MagiskHide, you don't even need to boot the unrooted Android anymore

bolderz

  • Newbie
  • *
  • Posts: 21
    • View Profile
Boot error after setting up rooted android
« Reply #10 on: February 28, 2020, 06:48:23 am »
I see what you mean, but the rooted Android option does not work with the SIM card, and so is not suitable for everyday use.

However since I installed Magisk, the 'non-rooted' Amdroid appears in fact to be rooted (see previous post) and so there is no need to use the rooted Android option at all.

Still not sure what's going on here...

oida

  • Newbie
  • *
  • Posts: 26
    • View Profile
Boot error after setting up rooted android
« Reply #11 on: February 28, 2020, 01:32:13 pm »
I made the same "mistake". Do not attempt to repartionate your device with 100% android because the SIMs will not work then. You could try uninstalling magisk. I found no way out. I endet up fully wiping system and data partition but the rom provided here is neighter flashable with twrp nor with adb. (see my thread "screwed up")

Vistaus

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Boot error after setting up rooted android
« Reply #12 on: March 01, 2020, 09:04:15 am »
Quote from: bolderz
I see what you mean, but the rooted Android option does not work with the SIM card, and so is not suitable for everyday use.

However since I installed Magisk, the 'non-rooted' Amdroid appears in fact to be rooted (see previous post) and so there is no need to use the rooted Android option at all.

Still not sure what's going on here...

I just set everything up with Planet's instructions and my normal boot isn't rooted.

Btw, has anyone reported the issue of cellular data not working in rooted boot? 'Cause it would be great if Planet could fix it (or would Planet's fix require re-rooting i.e. wiping all data again)?
« Last Edit: March 01, 2020, 09:08:31 am by Vistaus »