realme 2 pro diag ? - Realme 2 pro Questions & Answers

hi guys, Is it possible to open diag port of realme 2 pro ?

hi guys, You can open this diag port with this commands in minimal adb and fastboot
need root.
adb shell
su
setprop sys.usb.config rndis,diag,adb
enjoy.

bayramm said:
hi guys, you can open this diag port with this commands in minimal adb and fastboot
need root.
Adb shell
su
setprop sys.usb.config rndis,diag,adb
enjoy.
Click to expand...
Click to collapse
is it possible to enable diag without root ?

not working
Bayramm said:
hi guys, You can open this diag port with this commands in minimal adb and fastboot
need root.
adb shell
su
setprop sys.usb.config rndis,diag,adb
enjoy.
Click to expand...
Click to collapse
this method is not working

Related

How to make adb work?

I've searched a lot, but did not find a solution.
When I connect my HTC Kaiser with Android Ion 1.5 on the top to my Linux box (all UDEV settings are as recommended), the adb utility (launched as root) does not recognize it correctly. It shows a set of questionmarks instead of the device name:
Code:
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
???????????? device
adb basic commands (pull/push/install/shell) work, though, but DDMS does not work and I can't debug my application when the device is attached.
Does somebody have a solution?
You need to run the adb server as root. Use su or sudo to run these:
Code:
./adb kill-server
./adb start-server
You can then use adb and ddms as a normal user. If you use fastboot, you may find you need to run that as root as well.
it is root
Super Jamie said:
You need to run the adb server as root. Use su or sudo to run these:
Code:
./adb kill-server
./adb start-server
You can then use adb and ddms as a normal user. If you use fastboot, you may find you need to run that as root as well.
Click to expand...
Click to collapse
Like I mentioned in my question - I do run adb as root.
When it's launched not as root, I can not even do "adb shell" and
"adb devices" shows:
"????????????? Permission denied". So, it is root, I assure.
BTW, on my work Windows 2k3 machine I can use ddms, but
"adb devices" still shows some garbage letters instead of the device name.
Sorry for my English, if my explanation is not clear.

[Q] ADB Permission Denied

I'm trying to follow this thread (http://forum.xda-developers.com/showthread.php?t=2515141) to get IR working on my MIUI 5.5.8 ROM. I have root permissions (SuperSU) and I have adb shell granted root permissions on SuperSU.
I'm trying to run this part:
adb root
adb shell "mkdir -p /data/local/userinit.d"
But that's what I get:
C:\Users\Leandro\Downloads\platform-tools>adb devices
List of devices attached
06902d4f16cf0d35 device
C:\Users\Leandro\Downloads\platform-tools>adb root
restarting adbd as root
C:\Users\Leandro\Downloads\platform-tools>adb shell "mkdir -p /data/local/userin
it.d
mkdir failed for /data/local/userinit.d/, Permission denied
What could I do to solve this?
Thank you.
Have you tried it like this
adb devices
adb shell
su
mkdir -p /data/local/userinit.d
Art Vanderlay said:
Have you tried it like this
adb devices
adb shell
su
mkdir -p /data/local/userinit.d
Click to expand...
Click to collapse
I'm trying to push TWRP and Loki flash tool via ADB but I'm getting permission denied. Do you know what I can to gain access?
It says root access when in download mode but I don't have root while OS is running. Does this mean my phone is semi rooted? What should I do now?
y300owner said:
I'm trying to push TWRP and Loki flash tool via ADB but I'm getting permission denied. Do you know what I can to gain access?
It says root access when in download mode but I don't have root while OS is running. Does this mean my phone is semi rooted? What should I do now?
Click to expand...
Click to collapse
What android version are you on?
Art Vanderlay said:
What android version are you on?
Click to expand...
Click to collapse
Was on Stock Verizon VS980_27A 4.4.2. Tried many ways. Didn't work. Stumproot.apk fixed the problem.

Disable Heads Up/Peek Notifications For Android Nougat 7.0 with ADB

Hello guys just want to share it.
If you want to disable the annoying Heads Up/Peek Notifications fellow these steps.
First install this: Mega Link to ADB Just click on it type 3 times [Y]
1.) Open a command prompt and check if the device is connected using the following command:
adb devices
2.) You should see your phone on the list that appears. Now use the following command:
adb shell settings put global heads_up_notifications_enabled 0
3.) Reboot your phone and you are done!
Good luck!
khanvict90 said:
Hello guys just want to share it.
If you want to disable the annoying Heads Up/Peek Notifications fellow these steps.
First install this: Mega Link to ADB Just click on it type 3 times [Y]
1.) Open a command prompt and check if the device is connected using the following command:
adb devices
2.) You should see your phone on the list that appears. Now use the following command:
adb shell settings put global heads_up_notifications_enabled 0
3.) Reboot your phone and you are done!
Click to expand...
Click to collapse
Thanks for the info, I've read for this here for the first time and I confirm that it works
http://forums.androidcentral.com/sa...44-s7-edge-nougat-heads-up-notifications.html
You have obviated the part of enabling developer options and USB debugging, also the possible problems with drivers installation and device detection both windows and ADB shell.

reboot disemmcwp doesnt work

Hi, "adb shell reboot disemmcwp" doesnt work for me on 2017G 7.1.1 (B05).
Some weeks ago i used a different command that worked. But i cant remember this command and cant find it anymore via google.
Does anyone know which command it is?!
thanks.
It depends on where you're doing this at. Are you using CMD or terminal on the phone?
nolimit78 said:
Are you using CMD or terminal on the phone?
Click to expand...
Click to collapse
cmd as admin and also with terminal (root).
Spillunke said:
cmd as admin and also with terminal (root).
Click to expand...
Click to collapse
I just used 'adb reboot disemmcwp' and it worked.
This command doesnt work for me.
No effect with CMD or terminal. There is an other similar command that works.
EDIT: im not sure, but is it maybe a problem of magisk? I use Magisk, not SuperSu. Would it work with SuperSu?
PUSH
Spillunke said:
PUSH
Click to expand...
Click to collapse
Did you try it? What was the error? Its very bad practise to just say "it did not work".
After booting up, i cant deinstall system apps for example.
Now i switched to an other stock rom and now i can deinstall systemapps, but there are still problems: cant delete files in system/ but this seems to be an magisk based issue.
Spillunke said:
After booting up, i cant deinstall system apps for example.
Now i switched to an other stock rom and now i can deinstall systemapps, but there are still problems: cant delete files in system/ but this seems to be an magisk based issue.
Click to expand...
Click to collapse
try mount -o rw,remount,rw /system (as root)
if that doesnt work, try this in terminal in twrp.
Zobat said:
try mount -o rw,remount,rw /system (as root)
if that doesnt work, try this in terminal in twrp.
Click to expand...
Click to collapse
All in one line or are this 3 single commands?
hi guys.
this simple process is so hard for me but somehow i managed to reboot disemmcwp
i learned that my ZTE HSUSB driver not properly installed (check through you device manager).
after properly installed it, i manage to pair with my laptop
before
C:\adb>adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: device unauthorized.
after
C:\adb>adb shell
[email protected]:/ $
so just type
C:\adb>adb shell
[email protected]:/ $ reboot disemmcwp
colmanjr said:
hi guys.
this simple process is so hard for me but somehow i managed to reboot disemmcwp
i learned that my ZTE HSUSB driver not properly installed (check through you device manager).
after properly installed it, i manage to pair with my laptop
before
C:\adb>adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: device unauthorized.
after
C:\adb>adb shell
[email protected]:/ $
so just type
C:\adb>adb shell
[email protected]:/ $ reboot disemmcwp
Click to expand...
Click to collapse
msm8974? you sure you have an axon7?

Joying PX5 Octa-core: Options for rooting or just getting BT open? (NOT MTCB/MTCD)

I recently bought a Joying JY-HCS01P2 head unit. I am content with the general performance of the head unit for music, navi, etc. However, I cannot find any good options in terms of rooting the device. My primary interest is getting open access to the bluetooth settings. The unit only seems to allow pairing to a phone or certain obd2 adapters. I am trying to get it to function with a bluetooth adapter I use for datalogging and tuning on an aftermarket engine computer. The unit will find this BT adapter and say device connected, but no app will see it and the BT chain ICON shows as broken.
The info on the head unit is
PN JY-HCS01P2
CPU ARM Cortex-A53 eight core 2+32G PX5
MCU: JY_(R68)_26_C26_6026_CAN(All)
I have tried accessing the unit through both of the 2 USB connections with ADB, but have not had any success. The unit will not show up at all on the PC device manager. Doing an "ADB devices" search does not list any device. The USB connections are working as the phone will function over both.
Kingoroot will get to 90% then fail.
I have tried installing BT connection apps, but when accepting to allow the app to turn on BT, it just sits there attempting to turn it on, yet the head unit will not allow it.
I've been searching this forum for the last 2 days and tried a few of the suggestions but nothings works.
Look at this thread and then look at post 10.
No guarantees.
I've got that thread bookmarked. The problem is that I cannot even get the abd to connect. It seems I need to make at least the initial connection over USB, which also seems to be locked down per my experience. I did try a tcpip connection in hopes that the factory left that door open, but no luck.
Download a terminal app from google play like jackpal terminal.
Open it and on the prompt type:
Code:
setprop persist.adb.tcp.port 5555
exit and reboot.
Try if it works now.
This is what I get after the terminal input
D:\Downloads\platform-tools-latest-windows\platform-tools>adb connect tcpip 172.20.10.14
adb: usage: adb connect <host>[:<port>]
D:\Downloads\platform-tools-latest-windows\platform-tools>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
D:\Downloads\platform-tools-latest-windows\platform-tools>adb ddevices
adb: usage: unknown command ddevices
D:\Downloads\platform-tools-latest-windows\platform-tools>adb devices
List of devices attached
D:\Downloads\platform-tools-latest-windows\platform-tools>adb connect 172.20.10.14
unable to connect to 172.20.10.14:5555: cannot connect to 172.20.10.14:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)
D:\Downloads\platform-tools-latest-windows\platform-tools>
Used method for adb over wifi, root does not stick
I setup my working usb adb, and used your install.bat as a guide
Every command returned error free, root did not stick after reboot.
surfer63 said:
Download a terminal app from google play like jackpal terminal.
Open it and on the prompt type:
Code:
setprop persist.adb.tcp.port 5555
exit and reboot.
Try if it works now.
Click to expand...
Click to collapse
jon volk said:
This is what I get after the terminal input
D:\Downloads\platform-tools-latest-windows\platform-tools>adb connect tcpip 172.20.10.14
adb: usage: adb connect <host>[:<port>]
Click to expand...
Click to collapse
You need to execute my setprop command in the android terminal on your head unit. Did you do that?
And the scripts from your linux or windows pc.
I did execute the setprop command on the head unit. Should there have been a response after entering that command? I need to try it again when I have some more time to make sure everything is correct next time.
Tried it again a few times and no luck. I am finding it strange that i can’t even get it to show up on the drive manager on my pc over USB
jon volk said:
Tried it again a few times and no luck. I am finding it strange that i can’t even get it to show up on the drive manager on my pc over USB
Click to expand...
Click to collapse
I've got it to "work" but method does not result in root.
carter.w.jason said:
I've got it to "work" but method does not result in root.
Click to expand...
Click to collapse
Can you please open a terminal on the unit, or connect via adb (adb kill-server; adb connect w.x.y.z; adb shell)
and do on the prompt:
Code:
cat /system/bin/install-recovery.sh
ls -l /system/xbin/su*
ls -lr /system/app/Super*
Please post the results.
Edit: I forgot the 3rd command. Just added
surfer63 said:
Can you please open a terminal on the unit, or connect via adb (adb kill-server; adb connect w.x.y.z; adb shell)
and do on the prompt:
Code:
cat /system/bin/install-recovery.sh
ls -l /system/xbin/su*
ls -lr /system/app/Super*
Please post the results.
Edit: I forgot the 3rd command. Just added
Click to expand...
Click to collapse
"ls -lr" comes back as a unkown option. "ls -l" was used instead.
Code:
[email protected]:/ $ cat /system/bin/install-recovery.sh
#!/system/bin/sh
# This install-recovery.sh is installed here to start the
# seSuperuser su binary in daemon mode
/system/xbin/su --daemon &
[email protected]:/ $ ls -l /system/xbin/su*
-rwxr-xr-x root root 315940 2018-04-06 22:18 su
-rwxr-xr-x root root 0 2018-04-06 21:06 su.org
-rwxr-xr-x root root 0 2018-03-12 20:07 sugote
-rwxr-xr-x root root 289520 2018-03-12 20:07 sugote-mksh
lrwxrwxrwx root root 2018-03-17 17:44 sum -> /system/xbin/busybox
[email protected]:/ $ ls -l /system/app/Super*
-rw-r--r-- root root 1012569 2018-04-06 22:18 Superuser.apk
[email protected]:/ $
Thanks.
From the prompt ($) I can see that you are not root.
If you are in a terminal on the PX5 unit and you type "su" in the terminal :what do you get? Does the Superuser apk ask you to give root access?
do you get a "#" prompt?
surfer63 said:
Thanks.
From the prompt ($) I can see that you are not root.
If you are in a terminal on the PX5 unit and you type "su" in the terminal :what do you get? Does the Superuser apk ask you to give root access?
do you get a "#" prompt?
Click to expand...
Click to collapse
"Permission denied"
su would work when I had it rooted with kingoroot
carter.w.jason said:
"Permission denied"
Click to expand...
Click to collapse
See if you can install attached Superuser.apk and please try again.
surfer63 said:
See if you can install attached Superuser.apk and please try again.
Click to expand...
Click to collapse
Result is the exact same.
If I open Superuser, it is all blank except for "Superuser" and three menu icons at top. Older APK had the same behavior.
Root actions do not ask for any prompt
carter.w.jason said:
Result is the exact same.
If I open Superuser, it is all blank except for "Superuser" and three menu icons at top. Older APK had the same behavior.
Root actions do not ask for any prompt
Click to expand...
Click to collapse
I can't do anything further at the moment.
Do you want me to send you a script to undo it?
surfer63 said:
I can't do anything further at the moment.
Do you want me to send you a script to undo it?
Click to expand...
Click to collapse
No, that is ok. I can rerun kingoroot and get root if needed. Will probably just reflash and box it up.
I'll have my new Intel Sofia on Monday. Thanks for all the work!
I cant seems to connect. It say device not found. I have also setprop as well on my unit
GixxerRaider said:
I cant seems to connect. It say device not found. I have also setprop as well on my unit
Click to expand...
Click to collapse
Don't give incomplete statements like "I have also setprop as well". From that incomplete statement we can't see whether you used the right command and whether you did not make typos. Be complete.
It should be:
Code:
setprop persist.adb.tcp.port 5555
Did you reboot your unit afterwards? Did you also reboot your pc/laptop? Each time you do not get a connection you need to do a "adb kill-server" on your pc to make sure you initialize it again. It sometimes get "corrupted".

Categories

Resources