How to acces my Android phone on OpenSuSe - android

I want to learn to develop for android.
But in a part of the course where I have to install the application on my phone, I can not continue because I do not know how to make my phone visible in linux (I found tutorials for Mac and for Windows)
Does anyone know how to do for linux?
What I do have:
OpenSuSE 42.2
Android Studio
My phone in development mode (KitKat 4.4)
Samsung SM-G313MU
after following the comment I’m getting this:
:~/Android/Sdk/platform-tools> adb usb
error: insufficient permissions for device
also try this with more privileges:
:~/Android/Sdk/platform-tools> sudo adb usb
root's password:
error: insufficient permissions for device

Turn out it all about permissions. So I did the same as root. Maybe later will figure out to to do it as my user.

Related

How is my Android phone automatically recognized by adb on Ubuntu?

I am moving from Windows over to Ubuntu 14.04 for my Android application development. By biggest worry was to figure out how to make Android devices work with adb on Ubuntu. Various articles on the Internet talk about creating /etc/udev/rules.d/51-android.rules file and adding specific information for each Android device.
However, I didn't do any of that. I just plugged in my Android phone to the USB port and typed "adb devices." There was a question on my phone about trusting the attached computer. After I said yes, adb listed that device as usable.
I tried plugging in another phone. Once again, adb just recognized the device.
I don't see any rules for USB under /etc/udev/rules.d directory and I certainly didn't create one. I am just curious on how adb automatically recognized my devices.

Connect Android Studio with android via AirDroid

My computer seems to be too slow to run the android studio emulator (it wanted me to install some hardware acceleration), so I can't test apps there. Also my USB Cord doesn't work, I am wondering if it is possible to test apps in Android Studio via airdroid(http://web.airdroid.com/). I'm not sure how to set this up, however, since I don't really know how to configure android Studio to get this to work: as android studio only seems to work via a USB connection (which is not working for me). To sum it all up: I want to test apps on my phone via airdroid from android studio, and I need to know how to configure this.
Thanks.
As i know, AirDroid doesn't support ADB. But if really don't have a USB, you can use some Apps like WiFi ADB to get ADB work over WiFi
But if you are accidently using CyanogenMod or any other Mods which have ADB over Network, it could be natively supported
Download e.g. Shell Terminal Emulator (on Google Play). Open it and run
adb tcpip 5555
Open the terminal in Android Studio and write
adb connect ip_to_android_phone:5555
OBS!
Some devices require root access, while others don't.

My phone cannot be detected in eclipse to test run

Before asking my question, I have looked through a few threads that share the same problem as me and have tried all the given solution with no success. I am from Malaysia.
I cannot get my device to be detected to test my app on my phone. I have checked both the "Unknown sources" and "USB debugging" settings in my phone. I am using eclipse. But if I create a random virtual device, my app is able to run there.
Okay so I am using a Motorola Atrix 2. And I'm using Windows 8 Pro 64 bit
I have downloaded android SDK bundle from here : http://www.motorola.com/sites/motodev/us-en/motodev_lp.html
I have also tried downloading the latest driver with no success. I have also added this line in the manifest android:debuggable="true"
I have tried both as a mass storage device and a media transferring device.
I would appreciate any help a lot because as of now, I cannot progress further into developing an android app and that saddens me. :(
I have attached a picture of which my android phone should be detected in the window, but as you can see, none.
https://pbs.twimg.com/media/BJu1XSgCYAEGCUd.jpg:large
go to /your-android-sdk-directory/platform-tools using command prompt.
type
adb kill-server
adb start-server
adb devices
n see whether ur device is detected now or not...
Note: if you're using a Linux machine then put ./ before adb
Install proper drivers for your adb devices, from Android-SDK archive or Motorola site.
If you are on Windows machine, go to the device manager find your device, and select folder with drivers for it.
Open you windows os's explorer, have a look at the process, if there two or more process hold your adb, try to exits the process
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Install and run programs/drivers with admin rights.
Have you installed Motorola Device Manager?
When debugging Samsung and HTC devices I got it to work by installing that kind of software (for syncing the devices to the computer).
Download from the following: ABD Universal Driver
and install it. Make sure you have your device plugged in before installing and make sure you are on USB debug mode on the phone settings.

HTC device adb error

I couldn't understand why my HTC Wildfire s doesn't recognize by adb. When I run I have this error insufficient permissions for device . My platform is ubuntu 12.04. So when I turn into another OS (like MaC os) it is working fine (device runs well enough). So when I turn it on ubuntu it doesn't work.
I read some posts where they said you have to kill you server and start it again. I did it too. but no result
Could anyone tell me what's going on here?
Unless you've manually changed your permissions around on your machine, you need to run your adb server as root to give it permissions to communicate with the Android device.
sudo adb start-server
See an article here how to automate it on machine startup.
When you try to connect to the android device, the Windows needs you to install the driver for the phone, Mac doesn't need you to do anything, Ubuntu needs you to configure a udev rules file.
This is the link and I think it may help you.

Android: Running on real device

I am new to Android. I can't get the application to run on real device. I'm using Eclipse.
I followed as is said in the android developer forum but eclipse AVD is not finding any usb connected device. I enabled usb debuging in my mobile and set android:debuggable="true" in manifest file but Eclipse is not getting the device connected.
Did your PC recognize you phone device?In other words,did you install driver correctly?
Probably there is only one point you're missing. According to http://developer.android.com/tools/device.html you have to install usb driver for adb (if you are developing on windows) or you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development (if you are developing on Ubuntu Linux)
Before testing your application on real device please check your device is visible in Running Devices or not.If it is not visible simply do one thing install PdaNet on your desktop computer it will detect driver for the respective phone and install it.You can get it here
see this url: http://creandroid.blogspot.com/2013/10/del-eclipse-un-dispositivo-android.html
OR
http://developer.android.com/tools/device.html
IN thoses link is how to run aplications direct in real device

Categories

Resources