Author Topic: Rooting the Astro Slide  (Read 475 times)

Noppe

  • Newbie
  • *
  • Posts: 26
    • View Profile
Rooting the Astro Slide
« on: August 03, 2022, 04:03:06 am »
Long story short:  I'm not there yet.  Don't get too excited.    ;)

I finally got my Astro Slide (US keyboard, EU plug), and I've started poking around with what it's going to take to root it.  Unfortunately Planet Computers have not yet released a firmware, rooted or otherwise, so this work involves a little brute force.

The bootloader can be unlocked via the standard approach of enabling developer mode, enabling OEM unlock, enabling USB debugging, "adb reboot bootloader", then "fastboot flashing unlock" (note as always that the last of these commands will delete all your data).

We don't have a scatter file for this device, and the existing approaches for generating a scatter file don't seem to work, as this SoC isn't recognised by the normal tools, so instead I took the brute force approach of dumping the entire ROM via SP Flash Tool and then using a hex editor to find the boot image.

Once I pulled the boot image out of the ROM, I fed it to Magisk v25.2, which does recognise it as a boot image and appears to successfully patch it.  However, this is where I have decided to stop working, as I am willing to admit I'm in over my head, and I'd rather not render my brand new device unbootable.

I have attempted to boot this image via fastboot, but that fails with the following error:
Code: [Select]
% fastboot boot astro_magisk_patched.img
Sending 'boot.img' (19128 KB)                      OKAY [  0.500s]
Booting                                            ERROR: usb_read failed with status e00002ed
FAILED (Status read failed (No such file or directory))
fastboot: error: Command failed

After this error, the Astro Slide reboots normally, not rooted.

I suspect that flashing this image to the boot partition would work, but I do not currently have the cojones to attempt it.   ::)

I have attached the stock and patched images to this post, in case someone who is more comfortable than I am with Android booting wishes to give it a shot.  But I make no promises whatsoever that either of these images is actually good, so caveat emptor.

Looking forward to seeing some action in this thread from people who know more than I do!   ;D
« Last Edit: August 03, 2022, 04:05:52 am by Noppe »

Noppe

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Rooting the Astro Slide
« Reply #1 on: August 11, 2022, 12:05:32 am »
Okay, I decided to go ahead and give it a go, and unfortunately flashing the above patched image to boot_a does not work.  (Maybe some signature verification needs to be disabled?)  Flashing the unpatched image back onto boot_a results in a properly booting Astro Slide once again, so I do believe the images are probably fine, and the Astro is just refusing to boot the patched one.

jakfish

  • Sr. Member
  • ****
  • Posts: 368
    • View Profile
Re: Rooting the Astro Slide
« Reply #2 on: August 11, 2022, 04:31:03 pm »
I commend your efforts and your bravery for taking risks with a long-awaited machine.

So: no root and no linux.

Hmm,
Jake

Dom (shymega)

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Rooting the Astro Slide
« Reply #3 on: August 11, 2022, 04:42:48 pm »
I rooted my Astro the same day I received it (10th June, UK keyboard). Not successful the first time, as I was using an old dev boot image, but once I had the stock firmware sent to me (can't provide it yet), I rooted that with my custom script, and my Astro was rooted. Sadly, it's in for repairs with PC now as the IMEI number was erased.

Once it comes back on Tuesday, I'll be backing up NVRAM with the scatter file Janko sent me (also can't provide that yet), and rooting again. I'm currently using my Cosmo (non-rooted, as multi-boot is finicky).

Noppe

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Rooting the Astro Slide
« Reply #4 on: August 12, 2022, 01:30:08 am »
Interesting, Dom.  As you had no trouble booting a patched image, I am wondering what's causing my own Magisk-patched image fail to boot.  It's obviously the correct unpatched image, since writing it back out to boot_a returns the device to bootability.

This stuff would certainly be easier if PC would post the factory firmware and scatterfile to their support site.

abliss

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Rooting the Astro Slide
« Reply #5 on: August 24, 2022, 09:00:20 pm »
I finally got my hands on a device. I was able to root it using the mtkclient tool here: https://github.com/bkerler/mtkclient with no scatterfile needed.

The only difference from those instructions are the partition names boot_a and vbmeta_a instead of boot and vbmeta. Possibly your patched boot image would work if you only flashed an empty vbmeta image to the vbmeta_a partition.
« Last Edit: August 24, 2022, 11:32:38 pm by abliss »

Dom (shymega)

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Rooting the Astro Slide
« Reply #6 on: August 25, 2022, 12:23:34 pm »
There is absolutely no need to mess with vbmeta. I have the advantage of having direct contact with Planet, and I wish they release the firmware, but you can just flash to `boot`, no need for `boot_a`.

abliss

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Rooting the Astro Slide
« Reply #7 on: August 29, 2022, 08:21:59 pm »
To be perfectly clear: I only had to use the name "boot_a" when flashing with the mtkclient.

When using fastboot, I can use the name "boot".

Dom (shymega)

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Rooting the Astro Slide
« Reply #8 on: September 15, 2022, 03:07:03 pm »
That's what I did - I flashed boot. I can probably share a root boot image if anyone wants it. I see no harm in that. It's the scatter file I can't share yet.

vbmeta wasn't necessary to flash.

Noppe

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Rooting the Astro Slide
« Reply #9 on: September 15, 2022, 03:11:37 pm »
That's what I did - I flashed boot. I can probably share a root boot image if anyone wants it. I see no harm in that. It's the scatter file I can't share yet.

Yes, I'd like that.  I just now got around to installing mtkclient, but I've been very pressed for time recently and haven't had a chance to actually *use* it yet.  Would be nice to have a rooted image and save the time.