Installing Custom ROM on Cubot KingKong Mini

Search This thread

Alexbrz2

New member
Mar 11, 2023
1
0
Hi all! I have recently purchased a KKM2 as a gps tracker & bluetooth-forwarding device for my bbq equipment, and now thinking to upgrade it to LOs.

Before i start off, i am on the most recent original OS version. Is this procedure still the correct way to go? https://forum.xda-developers.com/t/...-on-cubot-kingkong-mini.4050815/post-84445303

With the use of LeOS-20-VNDK-a64-bvN.img

Or is there something that has changed or i have missed?
 

moonraver

Senior Member
May 29, 2022
87
14
Found KKM3 bug in latest V08 firmware:
NFC turns itself on after every phone restart even in SAFE mode.
Cubot support says that they don't have this bug.

Does anybody have this?
 

moonraver

Senior Member
May 29, 2022
87
14
not for me

btw any news on installing gsi on kkm3?
that's interesting, I have disabled a lot of google apps, maybe that could do that. Anyway, I don' t want to make a reset for now, will wait till next update.
No news about gsi flashing, I check 4pda forum everyday about KKM3 and they have many problems with that. Still no clear procedure how to flash.
 

badcodelab

Senior Member
Mar 4, 2019
70
22

moonraver

Senior Member
May 29, 2022
87
14
guys there shared new (3rd) modded stock (v08) rom with some tuned features https://4pda.to/forum/index.php?showtopic=1056175&view=findpost&p=121550784

also same user published his dump of evolute gsi which can be flashed via spft
although it has some bugs he claims that it possible to flash any gsi over this dump via fastbootd
I read it yesterday somehow............with web translator - it is a bit difficult to understand it this way.
do you mean to flash evolute gsi via spft and then any GSI via fastboot?
 

badcodelab

Senior Member
Mar 4, 2019
70
22
do you mean to flash evolute gsi via spft and then any GSI via fastboot?
seems like this, i don't know how he managed to install evolute gsi to his kkm3 in the first place
but this guy says after installing his dump of evolute gsi using spft it should be possible to flash other gsi builds using "ordinary" process in fastbootd mode
he also mentioned that he tried to flash a couple gsi roms but issue with a lock screen persisted
 

moonraver

Senior Member
May 29, 2022
87
14
not for me

btw any news on installing gsi on kkm3?
About that NFC problem............can you try this for me? I want to be sure if I need to make a hard reset of my KKM3. I have found something new - that bug occurs only when SIM card is inserted in the device. When there is no SIM card, NFC doesn't turn on by itself.

So the bug is present when:
  1. KKM3 device is on and I remove SIM card. Then I insert SIM card (connecting 2G, 3G or 4G type of network) and NFC turns itself on immediately
  2. KKM3 device has SIM card inserted and I reboot the device. It reboots and after reboot when the device detects that SIM card is inserted (connecting 2G, 3G or 4G type of network), turns NFC on immediately
Does your NFC turn on by itself in any of these 2 cases?
Thanx
 

moonraver

Senior Member
May 29, 2022
87
14
Someone solved the problem with 15 fps shooting video on the main camera on KKM2?
Try Protake app if it helps. This problem has KKM2 and KKM2 Pro. That was why I bought KKM3 but it has also this bug if ISO is higher than 400 (=15 fps). Otherwise it shoots 30 FPS. So I use Protake - it indicates some frame drops but for me it is still has the best video results.
I contacted Cubot support about year ago with this KKM2 and KKM2 Pro "low video FPS bug" but the support was VERY HARD TO UNDERSTAND ME. So I gave up. It seemed to me that they did NOT want to solve this maybe because the phone is low-cost.
Now the support is maybe a bit better - you will get the answer that developers will fix bugs in next update....... but that is all.
BTW: Custom ROMs did't also help to solve those 15 fps. I'm really sure that it is a matter of CUBOT camera drivers because the sensors in all KKMs are able to shoot 30 FPS.
 
Last edited:

v.a.riabov

Member
May 24, 2021
9
0
Try Protake app if it helps. This problem has KKM2 and KKM2 Pro. That was why I bought KKM3 but it has also this bug if ISO is higher than 400 (=15 fps). Otherwise it shoots 30 FPS. So I use Protake - it indicates some frame drops but for me it is still has the best video results.
I contacted Cubot support about year ago with this KKM2 and KKM2 Pro "low video FPS bug" but the support was VERY HARD TO UNDERSTAND ME. So I gave up. It seemed to me that they did NOT want to solve this maybe because the phone is low-cost.
Now the support is maybe a bit better - you will get the answer that developers will fix bugs in next update....... but that is all.
BTW: Custom ROMs did't also help to solve those 15 fps. I'm really sure that it is a matter of CUBOT camera drivers because the sensors in all KKMs are able to shoot 30 FPS.
Thx! I hope support have solve the problem somehow!
 

veloc_h

Senior Member
Oct 10, 2019
91
9
I flashed CUBOT_KINGKONG MINI2_A061C_V11_20220817 on my kingkong mini (Version1).
Now the compass works (the kingkong mini is used only for bicycle navigation)!
However I get the message "tee key / google key" because I formatted the whole file structure (option automatic formatting) without backup (not the best thing to do...)
There is a workaround, but I would have to install magisk
"Installing Magisk for the first time REQUIRES a full data wipe" according to https://topjohnwu.github.io/Magisk/install.html, which I would like to avod.

in order to flash with magisk zygisk support
or to edit the build.prop
The other possibility would be to install e.g. LeOS GSI or Caos Treble GSI and install Osmand+ using f-droid (minimum google with LeOS). Does the compass work in LeOS or Caos?
It seems easy to flash a custom rom with the help of
fastboot flash LeOS according to
Which partitiions do I have to format before flashing LeOS?
 
Last edited:

x53

Senior Member
May 8, 2013
126
90
Has anyone an idea how to increase earpiece volume? In comparison to other phones earpiece volume is way to low during calls, particular in noisy enviroments. I own two KKM2. With both i'm unsatisfied. Using stock rom or gsi rom doesn't matter because they all use audio_policy_configuaration*.xml in the vendor partition (hope I'm right). So I'm open to any suggestion, e.g. editing these audio-xml files (but where?) , changing earpiece physically with a louder one (ist there any?), hidden menus (*#*#???#*#*), whatever....
 

moonraver

Senior Member
May 29, 2022
87
14
Has anyone an idea how to increase earpiece volume? In comparison to other phones earpiece volume is way to low during calls, particular in noisy enviroments. I own two KKM2. With both i'm unsatisfied. Using stock rom or gsi rom doesn't matter because they all use audio_policy_configuaration*.xml in the vendor partition (hope I'm right). So I'm open to any suggestion, e.g. editing these audio-xml files (but where?) , changing earpiece physically with a louder one (ist there any?), hidden menus (*#*#???#*#*), whatever....
I was dealing with increasing volume of BACK speaker of all KKMs. I wasn't successful but I can give you a hint but you must be really careful and first read something about this. It is called Engineer mode:
MTK EngineerMode in stock rom of KKM3 - dial *#*#3646633#*#*
Find codes for KKM2, maybe it is the same as KKM3
 

x53

Senior Member
May 8, 2013
126
90
Thanks for your reply. I already tried MTK EngineerMode. But I couldn't find anything related to earpiece volume. Had I missed something?
 

moonraver

Senior Member
May 29, 2022
87
14
Thanks for your reply. I already tried MTK EngineerMode. But I couldn't find anything related to earpiece volume. Had I missed something?
I have found something. Maybe this could help you:


 

x53

Senior Member
May 8, 2013
126
90
Thanks, unfortunately it doesn't work and the KKM2 Engineering Mode does a little differ to other devices. So I was going to "Hardware Testing" -> Audio -> Volume -> Voice. IMHO here I found nothing to set earpiece gain a little louder.

Enclosed the whole list of items I could change:
- NB, WB, SWB
- Receiver, Receiver_SV, HAC, Headset, Headphone, Speaker, Speaker_SV, Headset(5-pole), Headset(5-pole+ANC),TTY,Lpbk_Handset,Lpbk_Headset,Lpbk_Handsfree, USB
- GSM (here is nothing to change)
- UL Gain: integer between 72 and 252
- Sideton Gain (Stf): 0 ... 240
- DL Gain: here you can define 7 steps from Index 0 to Index 6

I thought Receiver and UL Gain 252 does the trick, but no luck. In the second item I miss "Earpiece" in the toggle menu. However thanks a lot for trying.
 

moonraver

Senior Member
May 29, 2022
87
14
A new device from Cubot is comming..........Kingkong Power
Seems like it is not "mini" but something with bigger battery. Device with similar name "Cubot Power" has been released in 2018 with 6000 mAh battery.
 
Last edited:

birdibird

Senior Member
Apr 9, 2005
439
47
I flashed CUBOT_KINGKONG MINI2_A061C_V11_20220817 on my kingkong mini (Version1).
Now the compass works (the kingkong mini is used only for bicycle navigation)!
However I get the message "tee key / google key" because I formatted the whole file structure (option automatic formatting) without backup (not the best thing to do...)
There is a workaround, but I would have to install magisk
"Installing Magisk for the first time REQUIRES a full data wipe" according to https://topjohnwu.github.io/Magisk/install.html, which I would like to avod.

in order to flash with magisk zygisk support
or to edit the build.prop
The other possibility would be to install e.g. LeOS GSI or Caos Treble GSI and install Osmand+ using f-droid (minimum google with LeOS). Does the compass work in LeOS or Caos?
It seems easy to flash a custom rom with the help of
fastboot flash LeOS according to
Which partitiions do I have to format before flashing LeOS?
I once formatted a mtk device without backing up nvdata and was able to restore serial and imei with a MTK tool.
What sometimes also works is to flash back the original rom, then backup nvdata (eg with twrp) and then reflash the new rom and restore nvdata

You don´t have to format anything before flashing LeOS. Just follow the instructions on the LeOS wiki.

For Magisk you also do not have to wipe anything. Just patch the boot.img in the Magisk, flash it then with SPflashtool or fastboot (in bootloader) or twrp.

Compass works in LeOS
 
Last edited:
  • Like
Reactions: veloc_h

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    @ghoster76 check this link out
    you can use google translate to read the post
  • 8
    UPDATE 2021
    The original post was for the first King Kong Mini, for instructions for the King Kong Mini 2 go to page 9 in this thread:
    https://forum.xda-developers.com/t/...-on-cubot-kingkong-mini.4050815/post-84445303

    ======================

    The Cubot King Kong Mini was released in Q4 2019. It is one of the smallest Android phones on the market with a 4" screen. Like many cheap Mediatek devices, one cannot be sure of how "safe" or "secure" these devices are, so the security/privacy conscious may want to consider installing a custom ROM. Here are the instructions for installing Android AOSP on the Cubot King Kong Mini. Note: I am not responsible for any bricked devices.

    Download the Stock Rom from here and SP Flash Tool just in case you need to reinstall Stock. Download a system image, note you need to use an A/B arm32 image with 64 bindings. For example AOSP 9 is here.

    This process probably can be done with SP Flash Tool but I wasn't able to manage it due to the disable-verification flag required.

    Unzip the stock ROM and reboot the device to bootloader, connect via USB and unlock via:
    Code:
    sudo fastboot flashing unlock

    Note this will erase all data. Then on your computer navigate to the folder with the unzipped ROM (for me was NA_mt6761p_d936p_9101cmp_chuanqi_cc_256gbitp24d3_p_lte_3m-fdd-cs_mul_20191121-210020_songlixin_PC) and type
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

    If you do not do this it seems to work without it but then it will bootloop when you try to switch it on. From here on it's standard.
    Code:
    fastboot flash boot boot.img
    fastboot flash recovery recovery.img

    Unzip the .xz image file you wish to use and type:
    Code:
    fastboot flash system SYSTEM.img
    where SYSTEM is the name of whatever image downloaded.


    Root
    For root install magisk manager and you have to patch the recovery to get root (not just boot as flashing boot alone doesn't give you root). So in magisk get it to patch you boot and recovery images and then put those on your computer, go to bootloader and use:
    Code:
    fastboot flash boot magisk_patched_boot.img
    fastboot flash recovery magisk_patched_recovery.img

    You can read more about magisk from recovery here.

    To get root then you need to reboot to recovery, hold power button + volume up and select Recovery. This will appear to boot as normal but you will have root when you do it this way and not when you boot normally. Unfortunately I do not have reception when I do this but do have root, other users have this problem but I have not found a solution.


    Note that I thought I bricked my phone a few times before getting this as nothing would happen after a failed boot and I couldn't switch it on, however what happens is you can't do anything until the battery has almost completely discharged, then when you hit the power button you'll get the no battery sign and when you plug in you can get to Recovery again. This is quite annoying if you've charged it quite high as you'll have to wait a long time to discharge and be tapping on the power button a lot!!


    What doesn't work
    Battery usage doesn't work, this can probably be fixed following this guide. If I get time I will attempt this.

    Other things to note, there is no TWRP yet so I don't have decent recovery options, this also makes it harder to use certain ROMS as you can't flash things like gapps if you install a ROM without it.
    The battery life is definitely worse using AOSP GSI than stock, maybe that vendor overlay would help with that though.

    I hope that helps others.
    5
    Hi,
    I have got the Cubot King Kong Mini 2 and I can confirm that exchanging the system to LOS17.1 is possible too.
    I did nearly the same as mekkadisu did (#39) for KKM1, but had to do a
    Code:
    fastboot reboot fastboot
    before flashing the system.



    This is what I did:
    1.) Flash the newer OS for King Kong Mini 2 from King Kong's site using the instructions and flash tool already there (quoted from #39).

    2.) Enable developer options by tapping the build number in Settings -> About Phone 7 times, Enable USB Debugging and Allow Bootloader Unlock from developer options (quoted from #39).

    3.) (quoted from #39)
    Code:
    adb reboot bootloader

    4.) once in bootloader mode (quoted from #39)
    Code:
    fastboot flashing unlock

    5.) Then confirm unlock on the phone (quoted from #39)

    6.) Note the locaton of the vbmeta.img, boot.img and recovery.img files from the stock ROM (quoted from #39)
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot flash boot boot.img
    fastboot flash recovery recovery.img

    7.) Now I did not flash the system directly, but rebooted to fastboot
    Code:
    fastboot reboot fastboot

    8.) After device is in real fastboot mode (the screen is different to that of bootloader fastboot mode)
    Code:
    fastboot flash system SYSTEM.img

    I used the lineage-17.1-20210114-UNOFFICIAL-treble_a64_bvS.img.xz



    Why did I do the "fastboot reboot fastboot":
    without rebooting to fastboot but direclty flashing the system, I got this error:
    Code:
    fastboot flash system lineage-17.1-20210114-UNOFFICIAL-treble_a64_bvS.img
    Sending sparse 'system' 1/10 (131068 KB)           OKAY [  4.898s]
    Writing 'system'                                   FAILED (remote: 'This partition doesn't exist')
    fastboot: error: Command failed

    After rebooting to fastboot it worked:
    Code:
    fastboot flash system lineage-17.1-20210114-UNOFFICIAL-treble_a64_bvS.img
    Resizing 'system'                                  OKAY [  0.004s]
    Sending sparse 'system' 1/5 (262140 KB)            OKAY [ 19.088s]
    Writing 'system'                                   OKAY [  4.061s]
    Sending sparse 'system' 2/5 (262140 KB)            OKAY [ 19.596s]
    Writing 'system'                                   OKAY [  4.036s]
    Sending sparse 'system' 3/5 (262140 KB)            OKAY [ 19.943s]
    Writing 'system'                                   OKAY [  4.048s]
    Sending sparse 'system' 4/5 (262140 KB)            OKAY [ 20.290s]
    Writing 'system'                                   OKAY [  3.721s]
    Sending sparse 'system' 5/5 (177556 KB)            OKAY [ 13.090s]
    Writing 'system'                                   OKAY [  2.879s]
    Finished. Total time: 110.773s

    I'm not an expert in flashing mobile devices, so I don't know, why I had to to that. I would be very happy if an expert could reply and maybe give me a hint as to what the problem was.
    4
    I see that there are all kinds of instructions floating around in this thread with all kind of extra commands that you do not need to use at all.

    Here is my comprehensive HowTo for our King Kong Mini 2:

    For the KKM2 we need a A64 or A64binder32 image.
    It can be either VNDK or VNDKLITE.
    VNDKLITE is only needed if you want to use a read/write system.
    If you use a systemless root version, e.g. Magisk, you do not need VNDKLITE necessarily but you can always choose it if you want.

    I am using LeOS Android 12.1 on my kkm2 as I want to be as degoogled as possible.
    Because it is so light, the battery time is quite good.


    - download and unpack the gsi.img.xz file you chose
    - put the unpacked .img together with the vbmeta.img file (attached below) in e.g. your home folder
    - in Linux make sure the android-tools package is installed, in Windows make sure platform-tools is installed

    - Boot into your phone, go to settings, about phone and tick 7 times on build number. Developer options will be activated
    - In settings again there will now be Developer options (probably under system). Switch on OEM/bootloader unlocking and USB debugging
    - connect your phone with the cable to the computer
    - open a terminal or command prompt in the folder of the .img files and tick these commands:
    - adb devices
    (the phone should give a message to trust the computer)
    - adb reboot bootloader
    (phone reboots into bootloader/fastboot mode)
    - fastboot flashing unlock
    (you will be asked on the phone to confirm unlocking it)
    - fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    -fastboot reboot fastboot
    (phone reboots in fastbootd mode)
    -fastboot flash system GSI-VNDK(lite)-a64-bvN.img
    (on the phone choose):
    -Enter recovery
    -Wipe data/factory reset
    -Reboot system now

    That's all.

    when upgrading your gsi, you only need to flash system again in fastbootd and don't need to data/factory reset (dirty flashing). Sometimes this also works between gsi's, but not always.

    (ps:
    you can skip the adb part by booting into bootloader/fastboot mode:
    -hold volume up button while long pressing the power button on the phone
    -in the little menu move with volume up to fastboot and select it with volume down)

    It is known that with some PHH based gsi's the sound sometimes crackles a bit on some Mediatek devices. It is not yet clear what causes it.
    I am playing around with these settings, somehow the crackling is being influenced by the brightness settings. The weird thing is that on our KKM1 with LineageOS A11, we don't have these crackling problems. Please share your experiences with this.

    Phh Treble settings
    Misc features
    tick:
    -Use linear screen brightness
    -Force Enable Camera2APIHAL3
    -Bluetooth workarounds / Mediatek

    in developer options I changed:
    -Animator duration scale .5x

    happy flashing!
    3
    With KKM2 in TWRP it's impossible to mount system. Because KKM2 is shiped with Android 10 means dynamic partition respectively super partition. Thats a big difference to older android versions, e.g. explaned on youtube. On stock rom at least you can get read-only access to system using magisk. Most other custom roms have su buildin. So changes to /system can only be done "systemless". There is a buildin magisk module for. However it's very inconvenient in comparision to previous android versions (before 10). Is there a way to patch system offline and flash later? E.g. dismantle super.img to system and other partitions, patch the individual things, bundle partitions together back to super.img and flash it to KKM2? At the other hand cubot stock firmware contains system.img but flash tools doesnt flash it, only super.img. Why? What is system.img used for?

    OK, forget system, but how did you manage to access data partition? TWRP can mount data but all files are encrypted. With stock rom I had no success in running an unencrypted data partition. I tried format data with ext4 like descripted here. And I tried to apply DM-Verity Disabler or no-verity-opt-encrypt. But every time I rebooted stock rom, data was encrypted again. Without access to system partition those (old?) scripts wont work anymore. Is there another way for Android 10 (adb sideload, flash tool, ...)? TWRP would be nice for backup and revocery data partition. Have you found other ways for backup data partition? How do I get rid of encrypted data partition? Is this only possible with custom rom?

    Btw KKM2 battery is not like the KKM1! It looks like this. It's a Li-Polymer 3.000mAh battery, named CBT-A061.

    Flash Tool is very nice. With that you can remedy all flashing mistakes and begin from the start, nice phone.
    3
    Note to moderators : we have been polluting the Kingkong Mini / Kingkong Mini 2 thread with news, speculations and comments on the Cubot Pocket since April 23rd.
    I think, both KKM / KKM2 and Pocket lovers would benefit from a split of the thread…

    Cobus.
    I have moved the posts relating to the Pocket HERE. You can continue the conversation there. As and when development takes place for this device, you can make a request for a new forum as described by my colleague @Timmmmaaahh! above.