Hovatek Forum DEVELOPMENT Android [Tutorial] How to fix or enable ADB and MTP in TWRP recovery
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[Tutorial] How to fix or enable ADB and MTP in TWRP recovery

[Tutorial] How to fix or enable ADB and MTP in TWRP recovery

X3non
X3non
X3non
Recognized Contributor
22,062
17-03-2020, 12:06 PM
#1



This is a quick guide that'll explain how to fix or enable ADB and MTP in custom recovery e.g TWRP

Requirements


Steps on how to fix or enable ADB and MTP in TWRP recovery


Follow the steps below to fix or enable ADB and MTP in TWRP recovery

  1. Extract your twrp recovery.img using AIK tool (drag and drop onto the unpackimg.bat)

  2. If successful, open the \ramdisk folder and edit the file below using a text editor e.g Notepad++
    • For android 7 and below, edit default.prop
    • For android 8 and above, edit prop.default

  3. Search for the following items below one after the other and if they exist then modify their values (see the next step for the right values to use)
    Code:

    ro.secure
    ro.adb.secure
    ro.debuggable
    persist.sys.usb.config
    sys.usb.config

  4. If they don't exist then add each item in a new line as seen below
    Code:

    ro.secure=0
    ro.adb.secure=0
    ro.debuggable=1
    persist.sys.usb.config=adb,mtp
    sys.usb.config=adb,mtp

    [Image: How-to-fix-or-enable-ADB-and-MTP-in-TWRP-recovery.jpg]

  5. Repack the TWRP by running the repackimg.bat script

  6. Finally, flash and boot into TWRP then confirm if both ADB and MTP work


Important Notice
  • This might also work for other custom recoveries such as CWM / Philz. You can try to find out yourself
This post was last modified: 17-03-2020, 12:15 PM by X3non.
shankar1790
shankar1790
shankar1790
Senior Member
474
09-08-2020, 06:56 PM
#2
I tried enable/disable option too in twrp but mtp not working.
 Device MMX Q440 MT6737T N7.0 kernel 3.18.35+
This post was last modified: 11-08-2020, 07:28 AM by shankar1790.
X3non
X3non
X3non
Recognized Contributor
22,062
10-08-2020, 09:21 AM
#3
(09-08-2020, 06:56 PM)shankar1790 I tried enable/disable option too but mtp not working.
 Device MMX Q440 MT6737T N7.0 kernel 3.18.35+
Android 6.0 option work.but Android 7.0 option gives mounting error on mtk twrp porter tool

which are you referring to mtp problems OR mount point error?
this thread has nothing to do with mount point errors, create a new thread for your device issue by clicking "ask question" at the top
This post was last modified: 10-08-2020, 09:23 AM by X3non.
guc.rocha
guc.rocha
guc.rocha
Newbie
1
20-08-2022, 11:36 PM
#4
I did the above steps and my samsung j4 core broke. My USB not is detect by my PC.

I can't get out of screen Recovery Crashed.

Is there some solution?


Thanks.
maxpayne
maxpayne
maxpayne
Contributor
2,873
22-08-2022, 10:14 AM
#5



(20-08-2022, 11:36 PM)guc.rocha I did the above steps and my samsung j4 core broke. My USB not is detect by my PC.

I can't get out of screen Recovery Crashed.

Is there some solution?


Thanks.

Get into Download Mode and flash the firmware
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram