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

TheProfessorNQ

  • Newbie
  • *
  • Posts: 15
    • View Profile
Rooting the Cosmo Communicator
« Reply #75 on: December 15, 2019, 01:02:07 pm »
Not to worry! It has been a great instructional experience for us all! A real solid crash-course to re-learning android stuff for me. It'd been six years or so since I've had a device that wasn't super locked down (samsung flagships), and thus, fell worlds behind.

TauPan

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
Rooting the Cosmo Communicator
« Reply #76 on: December 15, 2019, 03:51:20 pm »
Quote from: ZimbiX
In the interest of finding out which partitions are safe to share (e.g., not leaking device-specific keys) in order to create a full firmware for factory restore, here are the sizes and checksums of the partition images after my original extraction from WwR with the option that gave the most partitions (I can't remember what that was called, sorry!). It'd be great if someone with their own backup of these from the pre-OTA firmware could compare to see what's the same/different. We can then package up all the partitions that are the same between each device. TauPan? Hopefully posting checksums of the private partitions is not too much of an information leak


Quote from: Ninji
I can confirm I have matches on the following partitions: boot, cam_vpu{1,2,3}, dtbo, lk, lk2, logo, md1dsp, md1rom, scp1/2, spmfw, sspm, trustzone1/2

Different: boot_para, frp, metadata, nvcfg, nvdata, nvram, para, persist, proinfo, protect1/2

My preloader dump (via SP FlashTool) is clipped slightly at the end for some reason, and my system and vendor dumps are far bigger (also done via SP FlashTool). I would expect these to have only one version though because the OTA updater expects them to be the same for everybody.

Ok, I finally got around to comparing those lengths and checksums and
I was a bit surprised by the results:

That's a bit strange. I have lots of mismatches. I've truncated my
images I dumped with SP flash tool and my scatter file with this
program:
https://www.unix.com/unix-for-beginners-que...nulls-file.html
(The c-programm in comment #4, not the clearly wrong tr command).

(I have backups of the untruncated versions in my Nextcloud, but I'm
very sure the program is correct and it probably hardly matters.)

Mismatches in boot_para, cache, nvdcfg, nvdata, boot_para, para,
persist are not surprising, as those are well known to contain device
specific information.

The same is probably true for expdb, frp, metadata, proinfo, protect.

sefcfg also appears to contain device specific information. (I've found a 32 byte string in the hexdump, which changes from locked to unlocked state, along with one byte which changes from 01 to 03)

Cache and userdata are highly volatile, so we don't even need to look
at them.

However my (unrooted) boot image is longer (and also has a different checksum).

I have different system and vendor images! Even the recovery is
different! Also the trustzone (tee) images differ.

The only matches I have are: cam_vpu1, 2, 3, dtbo, lk2, lk, logo,
md1dsp, md1rom, preloader, spmfw, sspm (1 and 2).

I have the following sizes and md5sums on files which would be
certainly be included in a flashable firmware:

a616f4eec2c67991587d7cedcaf7cf99  9536401         boot.img
5d684efa830778c340887ef9211db608  14789521        recovery.img
593cb99172165ed468f89ad7779d06a2  3221225472      system.img
ac95bc9994673c2e99b5d170d68474ac  897581056       vendor.img

The following are from my build.prop:

ro.product.first_api_level=28
ro.vendor.build.date=Tue Oct 29 14:01:27 CST 2019
ro.vendor.build.date.utc=1572328887
ro.vendor.build.fingerprint=Planet/Cosmo_Communicator/Cosmo_Communicator:9/PPR1.180610.011/1563439284:user/release-keys
ro.vendor.build.security_patch=2019-07-05
ro.vendor.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.vendor.product.cpu.abilist32=armeabi-v7a,armeabi
ro.vendor.product.cpu.abilist64=arm64-v8a
# begin build properties
# autogenerated by vendor_buildinfo.sh
ro.product.board=k71v1_64_bsp
ro.board.platform=mt6771
ro.product.vendor.manufacturer=Planet
ro.product.vendor.model=Cosmo_Communicator
ro.product.vendor.brand=Planet
ro.product.vendor.name=Cosmo_Communicator
ro.product.vendor.device=Cosmo_Communicator
« Last Edit: December 15, 2019, 03:52:14 pm by TauPan »

irukandji

  • Newbie
  • *
  • Posts: 43
    • View Profile
Rooting the Cosmo Communicator
« Reply #77 on: December 27, 2019, 01:00:37 am »
TauPan, don't checksum them, diff them. With checksumming even single byte of change will show as different... I'll join to the rooting party after NY, too busy with family ATM...

Oran

  • Newbie
  • *
  • Posts: 5
    • View Profile
Rooting the Cosmo Communicator
« Reply #78 on: January 20, 2020, 12:44:18 am »
Hi guys.
I've rooted my Cosmo successfully using the boot-magisk.img you provided (unlocked the bootloader and flushed it with fastboot).
Thanks!!

Now there's a firmware update ready and it fails to install.
I understand that if i'll flush the original boot.img that's provided in post #19, i'll be able to run the firmware upgrade?
but then i won't be able to root again, right? and even after Planet eventually release the pre-rooted image, i won't be able upgrade without loosing my data (and since i'll be un-rooted, i can't use Titanium for backup).

any advise?

PNuT

  • Newbie
  • *
  • Posts: 45
    • View Profile
Rooting the Cosmo Communicator
« Reply #79 on: January 20, 2020, 05:35:01 am »
Quote from: Oran
Hi guys.
I've rooted my Cosmo successfully using the boot-magisk.img you provided (unlocked the bootloader and flushed it with fastboot).
Thanks!!

Now there's a firmware update ready and it fails to install.
I understand that if i'll flush the original boot.img that's provided in post #19, i'll be able to run the firmware upgrade?
but then i won't be able to root again, right? and even after Planet eventually release the pre-rooted image, i won't be able upgrade without loosing my data (and since i'll be un-rooted, i can't use Titanium for backup).

any advise?

Reflash the first ota boot.img contained in this thread, it will need to be the correct one or it will fail.

post # 64 has the correct images.

mibry

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Rooting the Cosmo Communicator
« Reply #80 on: January 20, 2020, 07:49:35 am »
Has anyone posted updated boot image from yesterdays update yet?
« Last Edit: January 20, 2020, 07:50:57 am by mibry »

PNuT

  • Newbie
  • *
  • Posts: 45
    • View Profile
Rooting the Cosmo Communicator
« Reply #81 on: January 20, 2020, 11:09:10 am »
Quote from: mibry
Has anyone posted updated boot image from yesterdays update yet?

I have not seen any yet!

Ninji

  • Newbie
  • *
  • Posts: 32
    • View Profile
Rooting the Cosmo Communicator
« Reply #82 on: January 21, 2020, 09:13:35 pm »

Oran

  • Newbie
  • *
  • Posts: 5
    • View Profile
Rooting the Cosmo Communicator
« Reply #83 on: January 22, 2020, 03:37:20 am »
Quote from: Ninji
Here's images for the V19 update:

Boot partition, unmodified: https://drive.google.com/file/d/1PHL6IlE3lq...iew?usp=sharing
Boot partition, rooted with Magisk: https://drive.google.com/file/d/1UqXZHeuPjr...iew?usp=sharing
Full images (~1.2GB): https://drive.google.com/open?id=1A9K04eyaX...sVVt3e6pVZGRA0Y

Thanks!!
used the flushed image in post #64, upgraded with no problems, no data loss, flushed the new magisk image, works like a charm..

mibry

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Rooting the Cosmo Communicator
« Reply #84 on: January 22, 2020, 03:56:23 am »
[/quote]

Thanks!!
used the flushed image in post #64, upgraded with no problems, no data loss, flushed the new magisk image, works like a charm..
[/quote]

Is it possible to flash the root image once the Linux partition has been done?

cam1965

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
    • http://
Rooting the Cosmo Communicator
« Reply #85 on: January 22, 2020, 11:00:01 am »
I am not an expert. But I've heard about kingoroot, but I am afraid about testing it. I don't want to brick my phone if everything goes wrong.

steeph

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Rooting the Cosmo Communicator
« Reply #86 on: January 25, 2020, 10:00:31 am »
Hi!

Quote from: Oran
I've rooted my Cosmo successfully using the boot-magisk.img you provided (unlocked the bootloader and flushed it with fastboot).
So, is there a guide I can follow to do the same or would you maybe willing to write one?

PNuT

  • Newbie
  • *
  • Posts: 45
    • View Profile
Rooting the Cosmo Communicator
« Reply #87 on: January 25, 2020, 10:28:25 am »
Quote from: cam1965
I am not an expert. But I've heard about kingoroot, but I am afraid about testing it. I don't want to brick my phone if everything goes wrong.

Do you not have access to a computer you can fastboot from?

PNuT

  • Newbie
  • *
  • Posts: 45
    • View Profile
Rooting the Cosmo Communicator
« Reply #88 on: January 25, 2020, 10:38:09 am »
Quote from: steeph
Hi!

Quote from: Oran
I've rooted my Cosmo successfully using the boot-magisk.img you provided (unlocked the bootloader and flushed it with fastboot).
So, is there a guide I can follow to do the same or would you maybe willing to write one?

It doesn't need much of a guide as you only need to unlock the bootloader and then fastboot the magisk.img that matches your firmware...

It is possibly the easiest device I have ever rooted!

steeph

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Rooting the Cosmo Communicator
« Reply #89 on: January 25, 2020, 11:52:39 am »
Quote from: PNuT
It doesn't need much of a guide
I guess I have to improve my search terms then. I didn't find anything helpful yet.