1

My android mobile is accidentally broken. And the usb debugging is set to off. If I can enable it I could use it through visor in PC. But can't do it now. :( I don't have OTG supported too. My android version is 7.0 Nougat. The manufacturer is Symphony LiteTel. Model: Symphony LiteTel - LT4502 Is there any way? :(

5

1 Answer 1

1

you can't do much because device has locked bootloader

well. so spoken, you can't do much wrong and can try something stupid ;) basically adb can be enabled by modifying boot or system partition. but locked bootloader means no modifications allowed.

some older devices have no protection for flashing modified partitions, only avb/dm-verity will deny boot in such case.

however, Magisk is able to by-pass dm-verity in some cases. most likely you will brick your device with this method, but give it a try (you can repair it by restoring official partitions)

  • download latest platform-tools

  • get a flash tool for your device. for Spreadtrum/Unisoc chipset it's SPD Upgrade Tool (make sure you download latest version)

  • install Spreadtrum USB drivers

  • download stock ROM according to your current android version / build number (you can check from fastboot)

    fastboot devices
    fastboot getvar all
    
  • in UpgradeDownload.ini (SPD_Upgrade_Tool) change the following flags

    Repartition = 0
    ShowOtherPage = 1
    CanEdit = 1
    CanSelect = 1
    
  • extract the stock ROM and find the boot.img (you will patch) and the userdata.img (you must delete) in SPD ImageFiles/_DownloadFiles


1. Magisk root + enable usb-debugging + by-pass dm-verity

  • unpack the boot.img with any ramdisk tool
    (i recommend AIK unpackimg.bat)

  • modify default.prop to enable adb
    (use Notepad++ for correct line ending LF)

    ro.secure=0
    ro.adb.secure=0
    ro.debuggable=1
    persist.sys.usb.config=mtp,adb
    
  • repack ramdisk/kernel and copy image-new.img to any android device (android 7.0 recommended)

  • install Magisk Manager and patch the image file with settings "keep AVB/dm-verity" and "keep force encryption"

  • goto settings - about device - tap build number 7x (seven) times and enable usb-debugging in developer options

  • open cmd.exe, navigate to platform-tools folder and copy magisk_patched.img back to PC

    adb devices
    adb pull /sdcard/Download/magisk_patched.img
    

2. now comes the tricky part. you must flash that file to your broken device (boot partition). that is untested and may fail

  • open SPD Upgrade Tool - Settings - Main Page. uncheck all entries that do not apply to boot partition

  • especially make sure all entries related to "Erase" or "UserData" are removed. you only want to flash boot (not to confuse with uboot)

  • select magisk_patched.img from platform-tools folder and replace the original boot.img in the proper entry

  • Power off your device. connect your device. start the flashing process

SPD_Upgrade_Tool.png


finally, reboot your device and check adb connection

adb devices
scrcpy

if no adb connection that means the bootloader does not allow modified partitions and your device is bricked now

unbrick by flashing the original boot.img (see step 2)

make sure never flash userdata you will lose all data

3
  • 1
    thank you so much for your contribution. I don't know if I could do this or not. But I'll try.
    – Encrypted
    Dec 27, 2020 at 9:22
  • can confirm this method works 100% for Lenovo Tab 7 Essential (TB-7304F) and Cubot King Kong B-1 (X511) both with MTK SP Flash Tool
    – alecxs
    Dec 28, 2020 at 22:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .