Teclast M40 How to unlock bootloader?

Search This thread

AllexBast

Senior Member
Feb 15, 2013
183
114
@AllexBast : Hi mate, everything is working great for me because I found a working A10 GSI. The only issue is no sound when I connect my Bluetooth headset.

In this thread https://forum.xda-developers.com/t/...2dp-aptx-in-any-gsi-rom.3950938/post-85932065, you have a solution for this issue but where is my stock firmware bluetooth libs please ? How can I extract them ?

Thank you in advance for your help 🤝
They conflict with GPS. Do not turn on GPS
After replacing files, you need to restart the tablet
 

Attachments

  • system.rar
    3.5 MB · Views: 11
  • Love
Reactions: bayad

bayad

Senior Member
Apr 7, 2011
1,369
676
Djibouti

Sorry but there is still a problem 🤦‍♂️. I restarted the tablet, I opened a video file but there was no sound in bluetooth. I tried several players and it's the same problem. To listen again in bluetooth, I have to open the video with the Google Videos player, click on the 3 dots at the top during playback, activate the speaker and then deactivate it and the sound works again in bluetooth. Do you have any idea of this issue ?
 

AllexBast

Senior Member
Feb 15, 2013
183
114
Sorry but there is still a problem 🤦‍♂️. I restarted the tablet, I opened a video file but there was no sound in bluetooth. I tried several players and it's the same problem. To listen again in bluetooth, I have to open the video with the Google Videos player, click on the 3 dots at the top during playback, activate the speaker and then deactivate it and the sound works again in bluetooth. Do you have any idea of this issue ?
Perhaps your firmware is different from iPlay40 firmware, which is why this is the case. The iPlay40 comes with headphones with a tipe-c wire, they do not work on gsi. You need to contact the developer gsi rom, indicate your problem and give a log file that can be done using the utility
 
  • Like
Reactions: bayad

bayad

Senior Member
Apr 7, 2011
1,369
676
Djibouti
Perhaps your firmware is different from iPlay40 firmware, which is why this is the case. The iPlay40 comes with headphones with a tipe-c wire, they do not work on gsi. You need to contact the developer gsi rom, indicate your problem and give a log file that can be done using the utility

Thank you for your answer.

Just to know : do all GSI roms have this bluetooth problem ? And can you tell me where I can find and download the latest GSI roms please ? :)
 

AllexBast

Senior Member
Feb 15, 2013
183
114
Thank you for your answer.

Just to know : do all GSI roms have this bluetooth problem ? And can you tell me where I can find and download the latest GSI roms please ? :)

 
  • Like
Reactions: bayad

ands2

Senior Member
Jul 6, 2011
117
59
i9100
Xiaomi Mi 4C
@AllexBast
Do you think I can use your tool also for the MaxPad I11?

It also shares the UNISOC Tiger T618 like the Alldocube/Teclast.
EEA Fimware Android-11 can be downloaded with code "m3t1"

My priority is to boot Magisk, not TWRP.
Bootloader is unlocked. But last (many) tries I'm always stuck in a bootloop after flashing patched Magisk image, because of verified-boot, wrong vbmeta or something like that.

Can you help please?
 

AllexBast

Senior Member
Feb 15, 2013
183
114
@AllexBast
Do you think I can use your tool also for the MaxPad I11?

It also shares the UNISOC Tiger T618 like the Alldocube/Teclast.
EEA Fimware Android-11 can be downloaded with code "m3t1"

My priority is to boot Magisk, not TWRP.
Bootloader is unlocked. But last (many) tries I'm always stuck in a bootloop after flashing patched Magisk image, because of verified-boot, wrong vbmeta or something like that.

Can you help please?
Theoretically it is possible. But I only dealt with android 10. Need vendor.img and boot.img
 
Last edited:
  • Like
Reactions: ands2

ands2

Senior Member
Jul 6, 2011
117
59
i9100
Xiaomi Mi 4C
I've loaded the firmware pac-file with the UpgradeTool.
I can see the boot.img, but no vendor.img. Any advice?
 

Attachments

  • pac-content.jpg
    pac-content.jpg
    143.2 KB · Views: 18

ands2

Senior Member
Jul 6, 2011
117
59
i9100
Xiaomi Mi 4C
The tool didn't work. But I think this one works in combination with Ubuntu:

I attach a screenshot of all extracted files. The "_b" are all empty.
Also the boot.img and vendor_a.img.
 

Attachments

  • super-extract.jpg
    super-extract.jpg
    38.4 KB · Views: 11
  • boot.rar
    17.4 MB · Views: 4
  • vendor_a.rar
    224.6 MB · Views: 4

AllexBast

Senior Member
Feb 15, 2013
183
114
The tool didn't work. But I think this one works in combination with Ubuntu:

I attach a screenshot of all extracted files. The "_b" are all empty.
Also the boot.img and vendor_a.img.
Try to flash
 

Attachments

  • Utility-MaxPad_11_v01.rar
    248.2 MB · Views: 20
  • Like
Reactions: ands2

ands2

Senior Member
Jul 6, 2011
117
59
i9100
Xiaomi Mi 4C
It works!
Thank you very, very much. It's really appreciated.

Two short notes:
1. After installing the Magisk app I had to select Install, Direct Install and Reboot. Before the installation of scripts/modules failed.
2. Reboot into recovery starts the normal recovery, no TWRP. But no drama for me, as root/Magisk is important.

Big thank you.
 
  • Like
Reactions: AllexBast

AllexBast

Senior Member
Feb 15, 2013
183
114
It works!
Thank you very, very much. It's really appreciated.

Two short notes:
1. After installing the Magisk app I had to select Install, Direct Install and Reboot. Before the installation of scripts/modules failed.
2. Reboot into recovery starts the normal recovery, no TWRP. But no drama for me, as root/Magisk is important.

Big thank you.
I can port twrp if you like
 
  • Like
Reactions: ands2

ands2

Senior Member
Jul 6, 2011
117
59
i9100
Xiaomi Mi 4C
No, all good.
I'm very happy to get Magisk back working.

Many thanks for your patience and your help.
I hope other users with an UNISOC device will find this thread and the solution to get Magisk. It is/was a big issue the last months.
 

AllexBast

Senior Member
Feb 15, 2013
183
114
Sorry but there is still a problem 🤦‍♂️. I restarted the tablet, I opened a video file but there was no sound in bluetooth. I tried several players and it's the same problem. To listen again in bluetooth, I have to open the video with the Google Videos player, click on the 3 dots at the top during playback, activate the speaker and then deactivate it and the sound works again in bluetooth. Do you have any idea of this issue ?
Found comments Phhusson https://github.com/phhusson/treble_experimentations/issues/1939
 
  • Like
Reactions: bayad

bayad

Senior Member
Apr 7, 2011
1,369
676
Djibouti
Hi @AllexBast , I have a question please : I would like to try other GSI images and I'm afraid to be stuck with the boot logo. How can I restart in TWRP please ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    If you suceeded to runlock bootloader, You can replace stock system to gsi system. You need to prepare linux PC (or live usb) and vbmeta.img (included in stock rom).

    When you flash, you should use linux PC (Windows pc won't recognize fastbootd mode) and android SDK's adb/fastboot (do not use apt-get install adb/fastboot.).
    Download from here -> https://developer.android.com/studio/index.html#downloads

    If you want to repalce to Gapps included rom, you need to delete product partiton
    > ./fastboot delete-logical-partition product

    I tried Android 11 GSI, but boot-looped in OS. Android 10 GSI rom works fine and less error happens.
    3
    I got Havoc installed successfully following your method. I also learned that it is not necessary to flash vbmeta-custom.img for installation of magisk to ShapeShift-OS.

    For Havoc (without root), the steps are:-
    # ./fastboot erase system
    # ./fastboot delete-logical-partition product (for stock rom with gapp only)
    # ./fastboot flash system havoc.img
    -> recovery -> wipe data/factory rest -> reboot

    For ShapeShift-OS (with root), the steps are:-
    Install stock rom without gapp (no delete-logical-partition product)
    # ./fastboot erase system
    # ./fastboot flash system havoc.img
    # ./fastboot flash boot boot_magisk.img
    -> recovery -> wipe data/factory rest -> reboot

    Thats it!! Thanks a lot.
    The ShapeShift-OS to Havoc part works also on my N9H1 to flash from Stock-Rom to CrDroid with root.

    Here's my way to get rooted CrDroid starting from new flashed Stockfirmware M40(N9H1)_Android 10.0_V1.03_0D24 without GAPPs:

    Rooting des M40 N9H1 if all Files created
    Recomended:
    OEM unlocked
    USB debugging activited
    Bootloader unlocked (Hovatec modified fastboot for linux)

    modified Files (from Stockrom M40(N9H1)_Android 10.0_EEA_V1.00_SZ):
    vbmeta-sign.img -> vbmeta—sign-custom.img
    boot.img -> magisk_patched_boot_repacked.img

    Save these files!! you don’t have create it new since Android 10 Firmware in use
    Create Working Dir and put all files into it, includig adb/fastboot. Open terminal in this folder


    1. for rooting 1.a and 1.b use always first:

    ./adb devices
    ./adb reboot-bootloader
    sudo -i
    sudo usermod -aG plugdev root
    cd /Rooting_Workfolder/
    ./fastboot reboot fastboot

    1.a Rooting Stock-ROM:

    ./fastboot --disable-verification flash vbmeta vbmeta-sign-custom.img
    ./fastboot flash:raw boot magisk_patched_boot_repacked.img
    ./fastboot reboot

    that’s it!!!

    1.b Rooting Custom Image (CrDroid) without GAPPS*:

    Install stock rom without gapps M40(N9H1)_Android 10.0_V1.03_0D24
    (no delete-logical-partition product)
    root it with saved files

    ./fastboot erase system
    ./fastboot flash system CrDr-system.img
    ./fastboot flash:raw boot magisk_patched_boot_repacked.img
    -> recovery -> wipe data/factory reset -> return fastbootd
    ./fastboot reboot

    that’s it!!!


    Thanks a lot once more to jngiag

    Joerg
    3
    This is how I install. Please fine tune it if needed.

    Flashing Gsi Image without root
    -------------------------------

    1) Bootloader unlocked.
    2) Download "platform-tools_r30.0.5-linux" and extracted it in Ubuntu & named folder as "adb" (or any name)
    3) Copy gsi rom (ShapeShiftOS-1.2.1_arm64-ab_gapps.img) & rename it as "system.img" (or any name) to adb folder
    4) Copy vbmeta-sign.img to "adb" folder
    5) Enable Usb Debugging in Developer option (in stock rom)
    6) In Ubuntu
    # ./adb devices -> Enable authorisation in tablet
    # ./adb reboot-bootloader (boot into fastboot, not fastbootd)
    # ./fastboot devices
    # ./fastboot reboot fastboot (this will boot into fastbootd mode)
    -> Enter Recovery (tablet) -> wipe data/factory reset (format data as necessary)
    (keep stock rom setting if not format - works but not the best)
    -> Enter fastboot
    # ./fastboot --disable-verity --disable-verification flash vbmeta vbmeta-sign.img
    # ./fastboot erase system
    # ./fastboot delete-logical-partition product (for stock rom with gapp only)
    # ./fastboot flash system system.img
    # ./fastboot reboot

    # = linux command prompt
    3
    Install gsi rom (ShapeShift-OS) with root
    -----------------------------------------

    1) Stock rom installed with root (magisk)
    2) Go to fastbootd (don't wipe data/factory reset in recovery)
    # ./fastboot erase system
    # ./fastboot delete-logical-partition product (for stock rom with gapp only)
    # ./fastboot flash system ShapeShift-OS.img
    # ./fastboot --disable-verification flash vbmeta vbmeta-sign-custom.img
    (skip this if booted with unrooted boot.img earlier)
    # ./fastboot flash boot boot_magisk.img ("boot_magisk.img" created in 2b)
    # ./fastboot reboot

    3) Go to fastbootd -> recovery -> wipe data/factory rest -> reboot

    4) In ShapeShift-OS -> Uninstall magisk manager -> install app-debug.apk
    (magisk manager canary) -> Additional steps -> Done

    vbmeta-sign-custom.img and boot_magisk.img to be prepared separately following
    guides provided on Hovatek website.
    2
    I have found a method of Teclast P20HD to unlock bootloader which can be found in "https://forum.xda-developers.com/android/help/teclast-p20hd-android-10-tablet-4g-t4141997" and "https://forum.hovatek.com/thread-32287.html", but I'm not sure if that method also works on Teclast M40. If that method works can I restore the bootloader to lock state instead of relock state so I can keep the warranty.

    I succeeded in unlocking bootloader of M40 by hovatek's method, but didn't try rooting it.(https://forum.hovatek.com/thread-32674.html)

    Here's M40 stock rom. In case you need to recover it...
    https://1drv.ms/u/s!AtprAlErUyChn0V0socBsjcnolp8?e=DkJfUa