Open diag failed - Xiaomi Poco X3 NFC Questions & Answers

I it possible to enter the diag mode of the Pocophone without rooting?
*#*#717717#*#* shows a toast notification: "open diag failed".

coolboy744 said:
I it possible to enter the diag mode of the Pocophone without rooting?
*#*#717717#*#* shows a toast notification: "open diag failed".
Click to expand...
Click to collapse
Are you talking about CIT mode (engineering mode in Android)? If so: https://c.mi.com/thread-2188758-1-0.html

coolboy744 said:
I it possible to enter the diag mode of the Pocophone without rooting?
*#*#717717#*#* shows a toast notification: "open diag failed".
Click to expand...
Click to collapse
No. As of MIUI 10, Qualcomm HS-USB Diag 901D was blocked through that method and won't work without root access for obvious security reasons. use the Terminal or adb method with the command:
Code:
setprop sys.usb.config diag,adb
To disable it, use command:
Code:
setprop sys.usb.config mtp,adb

Alin45 said:
Are you talking about CIT mode (engineering mode in Android)? If so: https://c.mi.com/thread-2188758-1-0.html
Click to expand...
Click to collapse
No i am talking about How to Qualcomm Diagnostic Mode (Diag Port)

Slim K said:
No. As of MIUI 10, Qualcomm HS-USB Diag 901D was blocked through that method and won't work without root access for obvious security reasons. use the Terminal or adb method with the command:
Code:
setprop sys.usb.config diag,adb
To disable it, use command:
Code:
setprop sys.usb.config mtp,adb
Click to expand...
Click to collapse
so there is no option without root. thanks for reply.

>adb shell
sweet:/ $ setprop sys.usb.config diag,adb
Failed to set property 'sys.usb.config' to 'diag,adb'.
See dmesg for error reason.

For poco you need to enter two commands:
adb shell
su
setprop persist.vendor.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
setprop sys.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb

Related

Ramdisk

Hello guys,I really want to play Puzzle and Dragons on my device but it is rooted. So I use terminal emulater and type following:
setprop ro.secure 1
setprop ro.debuggable 0
setprop persist.sys.usb.config mtp
Then I type getprop ro.secure in terminal emulater but it show 0!
Can anyone tell me how to make it be 1?
I really want to play pad!

Diag mode in Sony Xperia M4

I work hard to turn on diag mode in Sony Xperia M4 to connect it to QPST or CDMA. I tried many things I've found on the Internet, but still it isn't working. Windows should see new COM Port in Device Manager, but nothing appears, just phone and adb driver. I don't know if I should try harder if there is something that can be done or I'm just wasting my time because diag mode is locked and nothing can be done. Phone is rooted. tried:
https://forum.xda-developers.com/cr...ad-progress-please-leave-im-updating-t2871269
*#*#8778#*#*
adb shell su setprop persist.usb.eng 1
setprop sys.usb.config diag,adb
setprop sys.usb.config rndis, diag
setprop usb.rndis.enable 1
setprop sys.usb.config acm,diag,mtp,adb
echo diag > /sys/class/android_usb/android0/f_diag/clients
echo diag,adb,serial > /sys/class/android_usb/android0/functions
##3424#
*#*#717717#*#*
**#0808#
Nothing worked to make com port appear. One thing is interesting that after setprop persist.usb.eng 1 and debugging on - even phone and adb is not visible to windows.

How to Enable Qualcomm DIAG Mode

How to Enable Qualcomm DIAG Mode on xiaomi 11 lite 5g ne
adb shell
su
setprop sys.usb.config diag,adb
by_BenjamiN said:
adb shell
su
setprop sys.usb.config diag,adb
Click to expand...
Click to collapse
how root
you can patch boot.img with magisk
by_BenjamiN said:
you can patch boot.img with magisk
Click to expand...
Click to collapse
How do TWRP on xiaomi 11 lite 5g ne

Permission denied [cat /proc/partitions]

Dear all,
The Redmi S2 is
- rooted;
- bootloader unlocked;
- oem unlocked;
- on PTP default (Photo transfer).
In ADB debugging,
C:\platform-tools>adb shell
ysl:/ $ cat /proc/partitions
cat: /proc/partitions: Permission denied
How to solve it?
Thanks in advance.
Regards,
Run cmd in Android shell's root mode
Code:
adb shell 'su -c "cat /proc/partitions"'
xXx yYy said:
Run cmd in Android shell's root mode
Code:
adb shell 'su -c "cat /proc/partitions"'
Click to expand...
Click to collapse
Thanks for the reply.
After "adb root", it prompts "adbd cannot run as root in production builds".
And installation of an app "adbd insecure" as below, it produced the same result.
[2014.11.10][ROOT] adbd Insecure v2.00
adbd Insecure lets you run adbd in root mode if your device is rooted. (Note that if you are running a custom kernel, it is likely that it already implements this functionality) If you are running a stock (made by the phone manufacturer) kernel...
forum.xda-developers.com
But "adb shell" apparently works.
On production builds the ADBD server on phone doesn't use root permission. You can't change this.
Simply try what suggested by me.
xXx yYy said:
On production builds the ADBD server on phone doesn't use root permission. You can't change this.
Simply try what suggested by me.
Click to expand...
Click to collapse
I just tried your code in CMD. It returns as follows:
C:\platform-tools>adb shell 'su -c "cat /proc/partitions"'
/system/bin/sh: su -c cat /proc/partitions: not found
That's a complete other issue.
Under "adb shell su", after granting the super privilege, AND then "cat /proc/partitions", I was able to view the partitions.
Thanks.

Set MTP as default for USB on Android 7.1.2 / LineageOS 14.1 on SM-T280

Hey,
I'm running LineageOS 14.1 (Android 7.1.2) on an SM-T280. It's also rooted.
Whenever I reboot and connect USB, it only enables adb and charges. I want it to enable adb and mtp by default.
I know about the setting in the developer options, but this also is not persistent.
How do I enable MTP by default?
In Android's system file build.prop add MTP as default USB-mode
Code:
persist.sys.usb.config=mtp,adb
xXx yYy said:
In Android's system file build.prop add MTP as default USB-mode
Code:
persist.sys.usb.config=mtp,adb
Click to expand...
Click to collapse
Tried, does not work. When I reboot I get this:
Code:
gtexswifi:/ # cat /system/build.prop | grep usb
persist.sys.usb.config=mtp,adb
sys.usb.gser.count=8
sys.usb.config=mtp,adb
persist.sys.usb.config=mtp,adb
sys.usb.configfs=1
gtexswifi:/ # getprop | grep usb
[persist.sys.usb.config]: [adb]
[sys.usb.config]: [adb]
[sys.usb.configfs]: [0]
[sys.usb.ffs.ready]: [1]
[sys.usb.gser.count]: [8]
[sys.usb.state]: [adb]
gtexswifi:/ # ls /data/property/ | grep usb
persist.sys.usb.config
gtexswifi:/ # cat /data/property/persist.sys.usb.config
adb
Of course I also tried setprop persist.sys.usb.config "mtp,adb" which modifies /data/property/persist.sys.usb.config but this is reset on reboot.
I've found many websites that say it is simply not possible on Nougat :/
I also found https://forum.xda-developers.com/t/app-root-r-3-3-marshmallow-mtp-enabler.3263467/ but I don't want to install an app :/ I'm curious how it does it.
When I setprop sys.usb.config "mtp,adb" while the device is running, usb disconnects and reconnects, but there is still no MTP available.
Also tried
Bash:
echo 0 > /sys/class/android_usb/android0/enable
echo mtp,adb > /sys/class/android_usb/android0/functions
echo 1 > /sys/class/android_usb/android0/enable
The device disconnects and reconnects from USB but only with adb enabled and
Code:
gtexswifi:/ # cat /sys/class/android_usb/android0/functions
ffs
afterwards
Source: https://books.google.de/books?id=0cuQAwAAQBAJ&pg=PA64&lpg=PA64&dq="android_usb/android0/enable"+mtp
Okay, I wen't through the effort to recompile the kernel and patch the init ramdisks /default.prop with
Code:
persist.sys.usb.config=adb,mtp
sys.usb.config=adb,mtp
Didn't help...
Any other ideas?

Categories

Resources