udev setting for Nokia 8 T1004 NB1 to connect and use ADB/Fastboot on Linux - Nokia 8 Guides, News, & Discussion

This is for Linux users like me. Had a hard time to configure my Nokia 8 and wasted around half hour to chalk out how to fix.
( Tutotial is for Debian Based Distro - though for other distro, settings for udev will be the same )
1st - install ADB/Fastboot using "sudo apt install adb fastboot udev" . Then go to /etc/udev/rules.d/ folder. Create a file named 1-android.rules . Write following in that file
SUBSYSTEM == "usb", SYSFS{"Nokia 8 NB1"}=="2e04", MODE="c026"
Save the file. Then type "sudo systemctl enable udev" , and reboot the system. Goto "Developer Setting" of your phone and enable USB Debugging . Plug it in, and try
adb kill-server
then adb shell
Hope it works for you.

Related

[GUIDE] MTP doesn't work for you on GNU/Linux? Use adb.

In this guide I will show you how to use adb to move files to or from your device. Especially helpful if your device has MTP and you can't get it to work with mtpfs on GNU/Linux.
What do you need?
Computer with GNU/Linux.
Connection to the Internet.
The 32bit adb binary or the 64bit adb binary, they are added as attachment to this post. (1)
An Android phone with USB debugging on.
Steps:
Connect your phone with a USB cable to your computer. Make sure you have USB debugging on! (2) Put the adb binary in a folder where you can open a terminal. With the terminal open type:
Code:
./adb devices
Make sure it says something like this:
Code:
List of devices attached
XXXXXXXXXXXXXdevice
Now you know you properly connected your device type:
Code:
./adb pull /sdcard/
or
Code:
./adb push /sdcard/
More info on adb commands you can find here:
http://developer.android.com/tools/help/adb.html
(1): If you are using the Debian or Ubuntu distro (or another wich allows you to install *.deb files) you can install the 32- or 64 bit adb packages and use adb from every folder. Download them from the attachments. If you use this type adb instead of ./adb.
(2): Don't know how to turn on USB debugging? Go to settings, scroll down to the About phone menu item. Tap it and scroll down again to Build number and tap it many times! Then go to settings, and tap developer options and find the USB debugging option.
I hope this was helpful, but I think not, because I get no replies...
AW: [GUIDE] MTP doesn't work for you on GNU/Linux? Use adb.
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html
I usually use sftp to transfer files. No cable and shell access included.
Sent from my GT-I9100 using xda app-developers app
If you want to copy lots of files, like your music collection or movies, wireless is not fast enough. That's why I use adb, because it's very fast.

[GUIDE] How to take a logcat using debug

HOW TO TAKE A LOGCAT USING ADB (Android Debug Bridge)
if you need help for a bug probably the developer ask you a logcat in this guide i will tell you how to do with adb and a pc.
needed:
a pc.
an android phone.
a usb cable to connect phone to pc.
adb
1) ADB (if you have already it go to next point)
for windows:
Download THIS
unzip it and copy the file in C:\Windows\
for linux:
for debian based distro's (like ubuntu)
open terminal and type :
Code:
sudo add-apt-repository ppa:phablet-team/tools&&sudo apt-get update&&sudo apt-get install android-tools-adb
2) Debug usb (on your android phone)
Open setting.
Scroll down and tap on About phone.
Tap build number until it say you are a developer.
Go back and open Developer option.
assure USB debugging is flagged.
connect phone to pc.
confirm on the phone the dialog.
3) Get the LogCat
for windows:
Open cmd (search it on start menu)
type into cmd :
Code:
adb logcat > logcat.txt
to stop logging close cmd or press ctrl + c
for linux:
for debian based distro's (like ubuntu)
open terminal
type into it:
Code:
adb logcat > logcat.txt
to stop logging close terminal or press ctrl + c
4) Upload the logcat
you now have 2 way to provide the logcat to a developer
the first method and most used is to Attach it to the post .
the second is to upload it on a hosting like pastebin.com .
It would have been better to post in the General section imo.
Anyway thanks for sharing even if there's already several guides for logcats
Users have no excuse to not report a log

ADB & Fastboot Installer (Windows)

Android Debug Bridge (ADB) and Fastboot utility installer for Windows.
Description:
Lets you designate the directory where you want to install it.
Sets environment variable to access ADB and Fastboot commands on Command Prompt (CMD) as an external command.
Steps:
Enter the path to the directory you want to install it.
Notes:
Program must run with administrator privilege.
Links:
Version 1.0 (x86) — https://goo.gl/nOQaoX

Computer Setup for executing fastboot commands

Credits : XDA developers
This is not my work I just make all of them at one place
Procedure for making your computer ready for executing fastboot commands
1 ) Install ADB drivers in windows using below link
https://drive.google.com/file/d/1lZ2pZLne6TV9YJLmS9P_EAteuAZn_BPs/view?usp=drivesdk
2) Download platform tools below link for windows :
https://drive.google.com/file/d/1HUAUNJnlOKUJCxSqVxNVRagV4XBGe-2Q/view?usp=drivesdk
linux and mac users download platform tools from this link :
https://developer.android.com/studio/releases/platform-tools.html
2 ) extract it
‎
‎3) whenever you want use fastboot commands
Goto platform tools and paste required file in platform tools folder
4) then from platform tools folder open Power shell or command prompt using (shift + right click ) in empty space
Then it will open command promt then you can execute fastboot commands
That's it now your computer can be used for executing fastboot commands
On Linux, you can type "whereis adb" to find the location, and then "sudo cp adb fastboot location(usually /usr/bin)", to replace it and use it system wide. Afterwards, always check "adb version", to make sure you did it right.
Sent from my Mi A1 using Tapatalk
Harris P said:
On Linux, you can type "whereis adb" to find the location, and then "sudo cp adb fastboot location(usually /usr/bin)", to replace it and use it system wide. Afterwards, always check "adb version", to make sure you did it right.
Click to expand...
Click to collapse
Thanks for the information
I only know about windows OS
Easier method for installing adb and fastboot in Ubuntu
For those running recent Ubuntu versions or distributions based on them, there are packages for adb and fastboot available in the default repositories. To install them, execute this command in the terminal:
Code:
sudo apt install android-tools-adb android-tools-fastboot
Addendum: This works on all Ubuntu versions from 16.04 and beyond. I haven't tested this on the 14.10, 15.04, and 15.10 releases. However, I can confirm that this doesn't work on 14.04 and below.

Odd Linux fix I stumbled on.

For a while I had to keep running ADB commands from my Windows desktop because I couldn't get the USB authorization prompt to pop up on my Linux laptop running Ubuntu 18.04.
I noticed OnePlus included .exe files for Windows and I saw a .sh Linux/OSX file which I know is a script file.
Couldn't do anything with sudo which I though was odd. Opened the directory where the script is with my device connected, entered root user with "su"
Ran the script as su rather than just sudo
AND IT WORKED now I'm authorized with my Linux laptop and can resume under regular user. That was a weird problem.
That was a frustrating problem that had such a simple solution. Must not have had sudo access to adb.
Just sharing what worked for me! Linux > Windows for terminal use and adb stuff

Categories

Resources