Author Topic: Rooting the Cosmo Communicator  (Read 205078 times)

TauPan

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
Re: Rooting the Cosmo Communicator
« Reply #165 on: January 15, 2022, 11:21:41 am »
I've just stopped following this topic since I've been using the official planet procedure for rooting and I suggest everybody to do the same.

Instructions for upgrading magisk are in a different thread, which I'm still following.

forcella

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Rooting the Cosmo Communicator
« Reply #166 on: January 31, 2022, 03:59:00 am »
I've just stopped following this topic since I've been using the official planet procedure for rooting and I suggest everybody to do the same.

Does this mean that the problem with the version of Rooted Android provided by Planet that does not recognise the SIM card has been fixed? As I understand it, the status quo is still that you have to manually root the system for SIM card recognition to work.             

Radovan Garabík

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Rooting the Cosmo Communicator
« Reply #167 on: June 10, 2026, 07:04:16 am »
Yes, I know what year it is :-)

Anyway, writing this because it might still be helpful.

I soft bricked my second Cosmo some two years ago (basically, I applied the v25 root patch, not noticing the OTA upgrade is not working anymore and the firmware remained v23) and recently found the time to look into it properly. Unbricking it was an ordeal that is good for a separate writeup, but finally I succeeded and I had a booting, rooted v23 (multiboot). However, IMEI was empty and baseband unknown.

This required rooted device, with either termux+tsu or adb shell su -c (does not matter much which one).

What I did (took a LOT of trial and error!):

Since the baseband was unknown, almost all the guides on IMEI restoration were useless (first fix the baseband, then we can check IMEIs).
I did not have backups of nv{ram,data,cfg} partitions from before the bricking, but I managed to make backups while bricked.

There are strong hints all over the internet the missing baseband can be caused by mismatched boot/system/vendor partitions. Well, since I could boot only into rooted android, and the normal boot kept rebooting, and /proc/last_kmsg displayed verity errors for /vendor, I checked /vendor/build.prop on the Cosmo and on the downloaded v23 firmware (https://support.planetcom.co.uk/index.php/Cosmo_Android_Firmware_Manual_Installation). The one on the Cosmo had  ro.vendor.build.date a day before the downloaded firmware. Probably the final OTA upgrade was not done in time, before the server went down.

So I OEM unlocked and fastboot flashed the downloaded vendor.img. This wiped out the data, but the Cosmo booted in both rooted and normal mode. Still no baseband, though.

Looking through logcat -c -b all, i noticed a lot of lines like property_get("vendor.service.nvram_init") = , read_nvram_ready_retry = ... (with ever increasing number)”.

Looking still through logcat -d -b all, I noticed nvram_daemon tries to write (?!) to fstab.mt6771 on the nvram partition: auditd : type=1400 audit(0.0:955): avc: denied { write } for comm="nvram_daemon" name="fstab.mt6771" dev="auditd : type=1400 audit(0.0:955): avc: denied { write } for comm="nvram_daemon" name="fstab.mt6771" dev="mmcblk0p7" ino=16 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0" ino=16 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0


So I tried (suggested by GPT-5, distilled to the crucial commands:):
Code: [Select]
setenforce 0
stop vendor.nvram_daemon
start vendor.nvram_daemon
Lo and behold, the baseband appeared after some seconds!

Now I new I was on the right track. What finally (after much, much further trial and error) helped:
Code: [Select]
cd /mnt/vendor/nvram/md; ls -lZ
There were some files with u:object_r:unlabeled:s0  SELinux label. The command
Code: [Select]
restorecon -R -v /mnt/vendor/nvram/md fixed the labels.

Reboot, still no baseband, but at least the fstab error is gone.

But there are other SELinux related errorrs:
Code: [Select]
logcat -d -b all|grep ‘avc: denied’
See other unlabeled files: 
Code: [Select]
cd /mnt/vendor/protect_f/md; ls -lZ

Quote
-rw-rw---- 1 radio radio u:object_r:unlabeled:s0             232 2019-02-14 10:12 MT00A001
-rw-rw---- 1 radio radio u:object_r:unlabeled:s0             232 2019-02-14 10:12 MT00B001
-rw-rw---- 1 radio radio u:object_r:unlabeled:s0             106 2019-02-14 10:12 MTFW_000

So, let’s restore the labels:
Code: [Select]
restorecon -R -v /mnt/vendor/protect_f/md

The baseband is fixed, MEID and IMEI appear, both in rooted and normal boot.

This was quite a walk and I learned much more than I like about Android partitions, SELinux policies, ril daemons and whatever. ChatGPT was helpful, but it quite insisted on flashing original firmware, on restoring nvram partition, on checking crashed ril daemon all over again and again. But it had enough hints for me to know what to look for.
« Last Edit: June 10, 2026, 07:14:21 am by Radovan Garabík »

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1308
    • View Profile
Re: Rooting the Cosmo Communicator
« Reply #168 on: June 11, 2026, 09:54:06 am »
Thanks Radovan for posting this guide! It's important to have information like this stored and preserved. Regardless of when it is posted  :)

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

klampfenfreak

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Rooting the Cosmo Communicator
« Reply #169 on: Today at 06:43:27 am »
​Subject: Cosmo Communicator: "Device failed verification" and no root after V25 update and Magisk installation

​Hi everyone,

​I am trying to root my Cosmo Communicator on V25, but I am stuck in a loop where the system boots but root is not recognized, and I get a verification error. My device is configured as a dual-boot system with two 60 GB partitions (one for Linux, one for Android).
​Crucial preparation steps I already completed:
In the Android Developer Options, I have explicitly allowed OEM unlocking (bootloader unlocking) and enabled USB debugging, as recommended by other users for this process.

​My goal:
I am trying to follow the official Planet Computers rooting guide, but I purposefully skipped the initial step of completely re-flashing and wiping the entire device. I must preserve my existing partition layout and dual-boot setup. I only executed the subsequent steps from their guide (flashing the root image and using Magisk) since the underlying partitions were already set up.

Here is the exact sequence of what I have done:
​Started with the old version V19 installed.
​Manually updated the device to V23.
​Downloaded the V25 OTA update from GitHub and installed it via the manual installation method.
​Flashed the V25 root image (following the Planet Computers method, but without wiping).
​Installed the Magisk app, executed the installation/patching process, and let it reboot as prompted.
​After the reboot, the device booted into the recovery menu. I proceeded with a normal reboot from there.
​Once the system was up, I ran a root check, but the device was not rooted.
​I attempted the Magisk installation process once more.
​Since that second attempt, I get the following error message every time I restart the Cosmo Communicator:
"Your device has failed verification and may not work properly. Please download recovery image..."
​After waiting 5 seconds, the device continuing to the boot menu allows me to boot into the OS normally, but the root check still confirms that root access is not installed.

​It seems that by skipping the full wipe/re-flash from the official guide, the boot image verification (AVB / dm-verity) is now failing, or Magisk is not patching the correct partition due to the dual-boot layout, despite OEM unlocking being allowed. Has anyone successfully bypassed this "failed verification" error on V25 and achieved root without performing the full destructive flash required by Planet Computers?

​Thanks in advance for your help!

klampfenfreak

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Rooting the Cosmo Communicator
« Reply #170 on: Today at 08:20:58 am »
Hi everyone,

Just wanted to give a quick update: I managed to solve the issue on my own!

Instead of messing around with fastboot unlocks that would wipe my dual-boot data, I booted into Linux and dumped the original boot image specifically from the ROOTED_ANDROID partition using the direct path via partlabel:

dd bs=2048 if=/dev/disk/by-partlabel/ROOTED_ANDROID of=magisk.img

I then booted into Android, let Magisk Manager patch this specific magisk.img file, and transferred the patched image back. Finally, I booted back into Linux and flashed the patched image manually right back onto the correct partition:

dd bs=2048 if=magisk_patched.img of=/dev/disk/by-partlabel/ROOTED_ANDROID

Now everything works flawlessly, the root check passes, and my standard Android installation as well as the 60GB dual-boot setup remained completely untouched. Thanks for the pointers in this thread!