Author Topic: need to reflash stock android image  (Read 770 times)

csenarew45

  • Newbie
  • *
  • Posts: 11
    • View Profile
need to reflash stock android image
« on: December 16, 2020, 07:18:36 am »
Greetings.
I received my cosmo last month. :)
I'm planning to use it mostly as a portable device to learn linux and run some android apps.
I received it with the SD Card containing v23 firmware.
I followed the video on multi boot linux/android(with twrp installed).
The normal boot never worked, but the android root booted until....
At one point I wanted to restore to original condition using a v23 twrp backup.
When I did the backup, I selected all available content to backup.
During the restore, it hung.  :( at 60% during /system restore.
I tried to use recovery to setup again as above, without success.
I ended up in a boot loop on android root and normal.
linux boots and works however and I have twrp, recovery menu and SD Card will mount.
I am not able to connect via ADB. Device doesn't show up on USB connection.
I downloaded and tried to fastboot or flash the v23 zip, without success.
When I tried update from SD Card with v23 zip, I get signature verification failed.

I think I need to flash a stock rom, but I don't know the details for Cosmo.
The last phone I flashed was a samsung using odin years ago.
I see references to a SP Flash tool, but what image to flash and how I don't know.

Any help would be great.
Happy holidays and be safe.



spa

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • ssipa's Tips & Freeware for Full Key Board Device
Re: need to reflash stock android image
« Reply #1 on: December 17, 2020, 09:44:07 am »
You may be able to recover it with the procedure I used to revert to V22->V19. I will describe the procedure in a few days. I suggest you do not do any more extra work.

steeph

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
Re: need to reflash stock android image
« Reply #2 on: December 17, 2020, 10:44:39 am »
Interesting. After thinking of it and not doing it for months I came here today with the same need and there's already a post about it not one day old. Looks like I picket my time of visit well.

This is just to let you know I'm very interested in the procedure as well. But I'll keep looking until then. I can't really imagine this hasn't been describes on here yet.

spa

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • ssipa's Tips & Freeware for Full Key Board Device
Re: need to reflash stock android image
« Reply #3 on: December 17, 2020, 08:44:00 pm »
Attention.
I am Japanese. This document has been prepared using automatic translation.
This is the result of reverting from V22 to v19.
There are no results for recovery from V23.
Cosmo will be initialized.
I am not responsible for the result of the work.

What you need
A micro SD card with at least 5GB of free space
A PC with ADB connection
TWRP.
TWRP uses the following. I am not using TWRP provided by Planet.
https://www.oesf.org/forum/index.php?topic=35988.msg293552#msg293552
https://github.com/Treeki/unofficial-twrp-cosmo/releases

Another note
TWRP can only backup and restore the Data partition under v19.
If you restore other partitions, Cosmo Communicator do not boot.


1.
Download the file.
https://drive.google.com/file/d/1FHukLy_NNEYpGBq79xQhmTNwv1HNO4Jt/view?usp=sharing
MD5 digest c14905bf510744f42e6194eaeeddf773

Unzip the downloaded file.
Create the \v19 folder on the Micro SD.
Store the 29 unziped files in the v19 folder. Be careful not to encrypt EFS.
Insert the micro SD into Cosmo.

2.
Start TWRP.
Select "Mount" from the TWRP menu
please mount "storage1"
Run adb shell from your PC and check the following
- The prompt is # (which means rooted)
- There are 29 files under /auto0-1/v19.

3.
Overwrite partitions with the v19 images.
Execute Command line by line from the adb shell.

dd if=/auto0-1/v19/boot.img of=/dev/block/mmcblk0p30 bs=4096
dd if=/auto0-1/v19/cam_vpu1.img of=/dev/block/mmcblk0p22 bs=4096
dd if=/auto0-1/v19/cam_vpu2.img of=/dev/block/mmcblk0p23 bs=4096
dd if=/auto0-1/v19/cam_vpu3.img of=/dev/block/mmcblk0p24 bs=4096
dd if=/auto0-1/v19/dtbo.img of=/dev/block/mmcblk0p32 bs=4096
dd if=/auto0-1/v19/expdb.img of=/dev/block/mmcblk0p4 bs=4096
dd if=/auto0-1/v19/frp.img of=/dev/block/mmcblk0p5 bs=4096
dd if=/auto0-1/v19/lk.img of=/dev/block/mmcblk0p28 bs=4096
dd if=/auto0-1/v19/lk2.img of=/dev/block/mmcblk0p29 bs=4096
dd if=/auto0-1/v19/md1dsp.img of=/dev/block/mmcblk0p16 bs=4096
dd if=/auto0-1/v19/md1img.img of=/dev/block/mmcblk0p15 bs=4096
dd if=/auto0-1/v19/metadata.img of=/dev/block/mmcblk0p8 bs=4096
dd if=/auto0-1/v19/nvcfg.img of=/dev/block/mmcblk0p6 bs=4096
dd if=/auto0-1/v19/nvdata.img of=/dev/block/mmcblk0p7 bs=4096
dd if=/auto0-1/v19/para.img of=/dev/block/mmcblk0p3 bs=4096
dd if=/auto0-1/v19/persist.img of=/dev/block/mmcblk0p12 bs=4096
dd if=/auto0-1/v19/protect1.img of=/dev/block/mmcblk0p9 bs=4096
dd if=/auto0-1/v19/protect2.img of=/dev/block/mmcblk0p10 bs=4096
dd if=/auto0-1/v19/recovery.img of=/dev/block/mmcblk0p2 bs=4096
dd if=/auto0-1/v19/scp1.img of=/dev/block/mmcblk0p18 bs=4096
dd if=/auto0-1/v19/scp2.img of=/dev/block/mmcblk0p19 bs=4096
dd if=/auto0-1/v19/seccfg.img of=/dev/block/mmcblk0p11 bs=4096
dd if=/auto0-1/v19/spmfw.img of=/dev/block/mmcblk0p17 bs=4096
dd if=/auto0-1/v19/sspm_1.img of=/dev/block/mmcblk0p20 bs=4096
dd if=/auto0-1/v19/sspm_2.img of=/dev/block/mmcblk0p21 bs=4096
dd if=/auto0-1/v19/system.img of=/dev/block/mmcblk0p36 bs=4096
dd if=/auto0-1/v19/tee1.img of=/dev/block/mmcblk0p33 bs=4096
dd if=/auto0-1/v19/tee2.img of=/dev/block/mmcblk0p34 bs=4096
dd if=/auto0-1/v19/vendor.img of=/dev/block/mmcblk0p35 bs=4096
sync

Finally, Sync.

4.
Reboot Cosmo Communicator.
It will take longer than usual; it should boot within 3 minutes.
"Decryption unsuccessful" will be displayed; select "RESET PHONE".
You may be asked for the screen lock password that you had set.
The system will initialize and boot normally.

5.
Clear Cashe.
Please reboot.
Select "RECOVERY boot"
ESC + VOLUP(behind the screen)
Select "Wipe cashe partition"
Reboot

« Last Edit: December 17, 2020, 11:19:17 pm by spa »

csenarew45

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: need to reflash stock android image
« Reply #4 on: December 19, 2020, 11:06:34 pm »
That worked perfectly.
Thank you very much.

Superfly

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: need to reflash stock android image
« Reply #5 on: April 14, 2021, 03:58:47 pm »
Hello,

  Can this procedure work with V23? 

csenarew45

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: need to reflash stock android image
« Reply #6 on: April 15, 2021, 05:50:13 am »
It takes you back to v19 but then, you can upgrade like normal from that point.
NOTE: I had to do the process twice. The first time it booted into chinese. I rebooted into twrp and repeated the steps and restarted as new v19

Superfly

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: need to reflash stock android image
« Reply #7 on: April 17, 2021, 04:59:57 pm »
Hello,  Well I did it!  But I also did it twice and the screen after the reboot was in Chinese or Japanese, but then I was able to change the language at the setup menu.  Also I did use the TRWP version that was available to do this.   So I am back at V19 normal boot.

thank you.

oida

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: need to reflash stock android image
« Reply #8 on: April 24, 2021, 12:51:07 am »
It is really a shame they do not even provide the stock image for download. Not to talk about AOSP or LineageOS. Why is that?

bolderz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: need to reflash stock android image
« Reply #9 on: April 24, 2021, 04:40:39 pm »
There is this https://support.planetcom.co.uk/index.php/Cosmo_Android_Firmware_Manual_Installation on the Planet website which supports the manual installation of Cosmo Android V19, V22 and V23 complete with download files.

spa

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • ssipa's Tips & Freeware for Full Key Board Device
Re: need to reflash stock android image
« Reply #10 on: April 27, 2021, 11:54:57 pm »
There is this https://support.planetcom.co.uk/index.php/Cosmo_Android_Firmware_Manual_Installation on the Planet website which supports the manual installation of Cosmo Android V19, V22 and V23 complete with download files.

It is image for multi-boot . It is not complete for system restore.