Samsung SM?T230NU 5.0- ADB Shows Unauthorized Device - General Questions and Answers

adb shows Unauthorized device on custom ROM for SM-231
I successfully rooted my SM-230NU and installed the custom ROM provided in this post
http://forum.xda-developers.com/tab-4/development/rom-android-5-0-lollipop-material-t3061873
However, when I connect the device using USB to my Mac and try "adb devices" I get "unauthorized" beside the device ID. I have already tried the following:
a. on the Mac: adb kill-server followed by adb start-server
b. on the Mac: Deleted the ~/.android/adbkey and ~/.android/adbkey.pub
c. on Device: Revoked the USB debugging access to all computers (on the device) and also via terminal emulator app verified that on the device /data/misc/adb/ directory is empty
d. on PC: Repeated all the above on a Windows 7 machine (still shows "unauthorized" beside the device ID)
e. Changed multiple cables and tried the same cable with other devices and they are all detected as valid devices.
Unless I get the device to be recognized I am not able to install some apks using adb install. Any help will be highly appreciated.

Related

adb troubles

ive used adb before on a friends computer and on my computer (a macbook pro) in the past and know the works but recently on my computer when i connect any device including my skyrocket with usb debugging on and i try to run adb using the command ./adb shell it starts to run, then says error- no device recognized. any ideas?
Check device USB driver

[Q] device not detected though conncted and shown in device manager

My pent ws 708 c is connected to the computer pdanet3.02 is installed it shows in device manager as Android composite ADB interface. but in command prompt under list of devices attached there is no number nothing.i am able to access internet through the device on xp but when trying to take backup using sdk command prompt says adb unable to connect to device. what needs to be done?
glad to use technology said:
My pent ws 708 c is connected to the computer pdanet3.02 is installed it shows in device manager as Android composite ADB interface. but in command prompt under list of devices attached there is no number nothing.i am able to access internet through the device on xp but when trying to take backup using sdk command prompt says adb unable to connect to device. what needs to be done?
Click to expand...
Click to collapse
if you are accessing internet you cannot access adb at same time you need to disconnect internet tethering to access device from adb
situation remains same
Well the situation is absolutely the same even after diabling tethering

[Q] 4.1.1 device detected in device manager but not in command prompt

THE DEVICE penta ws 708 c is detected in disk manager .even name and driver version displayed.
pdanet 3.02 installed and operating fine.when adb command is used in command prompt it runs fine.
but when adb devices command is run it shows under list of devices no name or number .
so also when backup command is run it says -adb unable to connect to the device. what needs to be done?
SDK IS UP TO DATE with ECLIPSE STARTING UP AND RUNNING AND PLATFORM TOOLS UPDATED> PLEASE CLICK ON ATTACHMENTS AND SEE IF YOU CN FIND ANY PROBLEMS THERE.

adb (32bit Linux) -- "Now unlock your device ... " - but no prompt on phone

adb Android Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android (On 32-bit Linux)
Xperia Z5 Compact E5823, Android 6.0.1, 32.2.A.0.224
Installed adb to explore my old (ST15i/Gingerbread) phone. Seems to work ok.
Thought would plug in new Z5 and make backup -
Enabled developer mode, usb debug enabled.
adb_usb.ini is ok
51-android-rules is ok
phone is recognised, adb device shows phone connected, can execute shell command etc.
but when I execute
Code:
adb backup --all
I get the following prompt
Code:
Now unlock your device and confirm the backup operation.
But no prompt appears on phone (or not at least in any obvious place)
have tried restarting adb daemon, rebooted linux, rebooted phone etc to no avail.
Searching via google hasn't thrown up much except two sites, one that says Z5 does not support adb backup while the other says it works perfectly.
Comments and suggestions welcome
Use helium app from play store for backup.
Adil Tariq said:
Use helium app from play store for backup.
Click to expand...
Click to collapse
Ok, but what I'm really looking for is to find out about this specific issue.
thanks

execute "adb tcpip <port_no>" command without using usb

NON ROOTED PHONE
I am trying to create to backup of all application in android but I don't want the users to connect to USB even for the first time.
okay let me first explain what happens when we connect our phone with USB to ADB client
0. USB Debugging mode is enabled in the phone.
1. The phone is connected to PC using a USB cord.
2. We run
Code:
adb tcpip 9999
command from cmd with ADB already installed.
The above command helps now switched the abd demon (adbd) inside the android phone to listen through TCP-IP protocol
3. now we can disconnect the phone from the PC
4. using a terminal emulator application we can now fire the commands
a)
Code:
adb connect localhost:999
b)
Code:
backup -all -f /sdcard/dev/bck.ab
now a backup pop-up will open up, you can simply click backup button.
Now we can anytime execute the command in 4.a and 4.b util the user restarts the phone or
but the problem is I wish to execute
Code:
adb tcpip 9999
without PC. Can someone suggest me how to approach this problem. From where should I start reading or there is some existing application that can do this on a non-root phone.

Categories

Resources