How to support the lineageOS rom to open the Qualcomm diag port
This is the development section of the Pixel 2 Forum and is not for people to ask questions. Any questions you do have need to be directed to the Q&A section of the Pixel 2 forum and not here
I am not even sure why you are spamming this forum after spamming the threads.
https://forum.xda-developers.com/showpost.php?p=78318905&postcount=98
I mentioned in my thread but you dont seem to listen or understand.
YOU DO NOT NEED A CUSTOM ROM TO ENABLE DIAG MODE. YOU NEED ROOT AND IT CAN BE DONE ON STOCK ROM.
why is it so difficult for you to google/baidu/yandex?
Code:
adb devices
adb shell
su (you will get pop up on your phone to give root authorization for ADB, authorize it)
setprop sys.usb.config diag,adb (this will open your phone diagnostic port)
Related
Q&A for [GUIDE] HOW TO Enable Wi-Fi Tether on stock Kit Kat 4.4.2
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE] HOW TO Enable Wi-Fi Tether on stock Kit Kat 4.4.2. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
thread: [GUIDE] HOW TO Enable Wi-Fi Tether on stock Kit Kat 4.4.2
riceknight said:
Doesn't seem to work for me. Tried using my tablet connected to foxfi hotspot and got the usual T-Mobile error notice that hotspot isn't enabled when I opened the browser.
Click to expand...
Click to collapse
This worked for me on my stock non rooted tablet to get wifi tethering operational
Enable developer mode (Go to Settings -> About phone, and click on the build number until the developer mode is enabled 7 times?).
Enable USB debugging under Settings -> Developer options
Connect the device with a USB cable to a computer with the Android SDK platform tools installed
Start an adb shell: adb shell
( in windows 7 start command prompt as administrator, cd to the directory with adb in then run the command adb shell)
(if get unauthorized device error connect and disconnect USB cable and turn off and turn on USB debugging until the authorisation for the PC dialog box appears then OK)
In the adb shell, run this command: settings put global tether_dun_required 0
Access point was then operational and could see the password in the settings
If you're looking to skip the Chinese invading your privacy, or not having to start up a PC just to use ADB you should try MTK ADB which gives you full ADB on your MediaTek device running Android 4.x. This was made to prevent the rooting process that clogs your phone with so many weird files that a total unroot is near impossible, resulting in a brick if you mess with the wrong binary or update your device which is actually really easy now that root apps replace system binaries with theirs to persist root when the binary gets run by init. MTK ADB makes no change to your device files whatsoever. It also allows you to get Root ADB on some devices (about 2 in 5, depending on manufacturer), all devices can get Shell access (Regular ADB).
https://play.google.com/store/apps/details?id=fme.adb
http://www.youtube.com/watch?v=_bt8BVaDCf0
https://slaycode.WordPress.com
No need for multiple threads on same topic,
http://forum.xda-developers.com/android/software-hacking/app-mtk-adb-adb-directly-device-t3313315
I'll close this one.
Darth
Forum Moderator
The basic setprop command used here is useful for every android but I am able to do it WITHOUT ROOT on the MetroPCS Coolpad Defiant 3632A. I stumbled across this playing around in the Net Monitor trying to obtain the Communications section password (still haven't yet..). I was unable to do this earlier by simply putting in "adb shell setprop sys.usb.config diag,adb". So enabling Download Mode assisted in this i'm assuming. Else I have something other I have configured that assisted with or without that mode enabled. The below should be correct though..
1. Download Quick Shortcut Maker
2. Open and under "Activities" scroll down to "Net Monitor". Launch the one directly below it - "com.yulong.android.cp_engmode/
com.yulong.android.cp_engmode.CPEngMode"
3. Scroll down to DownLoad mode on/off, press this and turn it on.
4. Open CMD (need ADB installed and setup) then type in this "adb shell setprop sys.usb.config diag,adb"
5. Check Device Manager and you will see the COM port open! Make sure you have the drivers installed.
RESET? BEFORE YOU REBOOT - RUN -> adb shell "setprop sys.usb.config charge_only,adb" or mtp,adb -> SHOULD RESET IT. AND OR REBOOT THEN -> unplug usb / plug back in and select File Transfer to correct the misconfigured drivers. Also disable and re enable USB Debugging to get ADB Device Interface back.
That's it!
-phonecapone
lol ...... Now for some reason I do not need to go through all the steps... Simply putting into CMD "adb shell setprop sys.usb.config diag,adb" enables DIAG. I need others to test and confirm this on their 3632A's. Earlier I was unable to do this. So perhaps there is a setting i enabled that i missed in my steps. I will be wiping the whole phone after an IMEI repair then I will try again and update this thread.
Thanks
Thanks for sharing!
No problem! =]
I found a way to enable the AT Modem also. I have seemed to enable something in diagnostics that has permanently enabled diag and modem ports if I do not have any operation selected for USB (default = charging). Getprop returns the same thing as it did before too.
help me
z3x5343 said:
help me
Click to expand...
Click to collapse
With what do you need assistance?
I need help as well
phonecapone said:
With what do you need assistance?
Click to expand...
Click to collapse
You think you can help me root my Coolpad 3632A?
TheRealDyNaMiX said:
You think you can help me root my Coolpad 3632A?
Click to expand...
Click to collapse
I'm not totally sure about a root for this phone. I *had* what should have been just a temporary root but when i rebooted it seemed to stick. I don't remember everything I did else I could help (yeah i need to keep more notes!). I still have the Coolpad 3632A I used but the problem is it is bricked (i did intentionally so I could unbrick it - learning purposes) and I haven't had time to unbrick it yet.
I can say though the method I used is the same that is on the coolpad toolkit (the one for a generic root i think it was) and you can find it searching through Coolpad threads on here or by downloading the coolpad toolkit which i think is posted around here on XDA somewhere.
phonecapone said:
I'm not totally sure about a root for this phone. I *had* what should have been just a temporary root but when i rebooted it seemed to stick. I don't remember everything I did else I could help (yeah i need to keep more notes!). I still have the Coolpad 3632A I used but the problem is it is bricked (i did intentionally so I could unbrick it - learning purposes) and I haven't had time to unbrick it yet.
I can say though the method I used is the same that is on the coolpad toolkit (the one for a generic root i think it was) and you can find it searching through Coolpad threads on here or by downloading the coolpad toolkit which i think is posted around here on XDA somewhere.
Click to expand...
Click to collapse
I got the Coolpad Toolkit, but the Coolpad 3632A isn't supported yet, how did you get the root?
phonecapone said:
I'm not totally sure about a root for this phone. I *had* what should have been just a temporary root but when i rebooted it seemed to stick. I don't remember everything I did else I could help (yeah i need to keep more notes!). I still have the Coolpad 3632A I used but the problem is it is bricked (i did intentionally so I could unbrick it - learning purposes) and I haven't had time to unbrick it yet.
I can say though the method I used is the same that is on the coolpad toolkit (the one for a generic root i think it was) and you can find it searching through Coolpad threads on here or by downloading the coolpad toolkit which i think is posted around here on XDA somewhere.
Click to expand...
Click to collapse
Actually, I found the basic toolkit, but whenever i try to root with ADB Sideload, I keep getting an "Error 21" and E:unknown volume for path [/sideload/package.zip], I booted into android and i still didn't have the root.
TheRealDyNaMiX said:
Actually, I found the basic toolkit, but whenever i try to root with ADB Sideload, I keep getting an "Error 21" and E:unknown volume for path [/sideload/package.zip], I booted into android and i still didn't have the root.
Click to expand...
Click to collapse
Try one of the other root options that doesn't use adb sideload.
I hope to open the Qualcomm diag port to modify the relevant files to support China Telecom 4g. Can the third-party ROM support it?
myyuanyu said:
I hope to open the Qualcomm diag port to modify the relevant files to support China Telecom 4g. Can the third-party ROM support it?
Click to expand...
Click to collapse
this is the development section for the pixel 2 and is reserved for ROM development and testing. any questions you may have need to be posted in the Q&A section of the pixel 2 and not here.
Sent from my Pixel 2 using Tapatalk
I am not even sure why you are spamming this forum after spamming the threads.
https://forum.xda-developers.com/showpost.php?p=78318905&postcount=98
I mentioned in my thread but you dont seem to listen or understand.
YOU DO NOT NEED A CUSTOM ROM TO ENABLE DIAG MODE. YOU NEED ROOT AND IT CAN BE DONE ON STOCK ROM.
why is it so difficult for you to google/baidu/yandex?
Code:
adb devices
adb shell
su (you will get pop up on your phone to give root authorization for ADB, authorize it)
setprop sys.usb.config diag,adb (this will open your phone diagnostic port)
Because I compiled two versions of the rom, 8.1 can open diag to modify the file but 9.0 can not open, do not understand the reasons, I would like to ask.
munchy_cool said:
I am not even sure why you are spamming this forum after spamming the threads.
https://forum.xda-developers.com/showpost.php?p=78318905&postcount=98
I mentioned in my thread but you dont seem to listen or understand.
YOU DO NOT NEED A CUSTOM ROM TO ENABLE DIAG MODE. YOU NEED ROOT AND IT CAN BE DONE ON STOCK ROM.
why is it so difficult for you to google/baidu/yandex?
Code:
adb devices
adb shell
su (you will get pop up on your phone to give root authorization for ADB, authorize it)
setprop sys.usb.config diag,adb (this will open your phone diagnostic port)
Click to expand...
Click to collapse
Hi
I try this method based on Pixel 2 with Android Pie magisk root, but failed to open diag port. Did you try it successfully? Thank you.
lycheejet said:
I am not even sure why you are spamming this forum after spamming the threads.
https://forum.xda-developers.com/showpost.php?p=78318905&postcount=98
I mentioned in my thread but you dont seem to listen or understand.
YOU DO NOT NEED A CUSTOM ROM TO ENABLE DIAG MODE. YOU NEED ROOT AND IT CAN BE DONE ON STOCK ROM.
why is it so difficult for you to google/baidu/yandex?
Hi
I try this method based on Pixel 2 with Android Pie magisk root, but failed to open diag port. Did you try it successfully? Thank you.
Click to expand...
Click to collapse
Can't open
Good morning,
This is my first post so please be gentle. This forum was recommended to me by a friend.
I am looking for an application, or someone who could create an application that would block the ability to transfer files from Kruger&Matz tablets via a usb cable. Tablets are used for training purposes and we don't want participants to be able to download files to their computers.
If anyone knows of such an application and could recommend it (it may be paid), I would be grateful. If it doesn't exist, and someone here can create it, we'll pay for it.
If you need any specific details, I'll try to provide them. Unfortunately, I'm not an IT specialist, so it's hard for me to present all the data that may be needed at once.
If tablets are rooted and USB Debugging enabled you simply disable USB services like MTP and ADB by means of ADB:
Code:
adb devices
adb shell "su -c 'setprop sys.usb.config ""'"
xXx yYy said:
If tablets are rooted and USB Debugging enabled you simply disable USB services like MTP and ADB by means of ADB:
Code:
adb devices
adb shell "su -c 'setprop sys.usb.config ""'"
Click to expand...
Click to collapse
We can't root them, have you ever rooted this model?
Of course not because I'm using Google Pixel phones.