Adb for ubuntu - Android Q&A, Help & Troubleshooting

Hi everyone i want to run my device as an emulator for app development.. Im on Ubuntu 12.04
..so the problem is i can't list my device in adb it shows
??????? No permissions...
Things i already did
Created /51–android.rules file
I couldn't find my vendor on google dev site so i copied vendor id by listing all usb devices attached to my computer.. But even that didn't work.. Please help
Sent from my A89 using xda app-developers app

Ummm don't know your device but I would add all the vendors from the dev site and if that won't work I'd Google your devices maker and see if anyone has ever accomplished it
Sent from my Nexus 4 using xda premium

on linux you should run adb as root then it would work , if using eclipse , run it using root user .. and it would also detect phone then..

Related

How to access ADB ?

1- I HAVE ROM ADEO 1.0 .
2- I DID HARD RESET AND LOST ACCESS TO ADB .
3- I DID EVERYTHING .
4- MY DEVICES IS RESTARTING ALWAYS .
Tell me if there is no any solution I will break the device and buy Samsung Galaxy 2 .
If there is no solution?
There is a thread on this somewhere. In my trollings I have seen it mentioned alot.
Sent from my MB860 using XDA Premium App
Check under the dev forum, there is a post that has DGs original method to get out of a softbrick as well as a script to do it for you.
Sent from my MB860 using XDA App

Setting up repositories and pulling source?

Would anyone point me in the direction to do this, new to this so please use lamens terms!
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
b-eock said:
Would anyone point me in the direction to do this, new to this so please use lamens terms!
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Click to expand...
Click to collapse
Hey
You will find all the information related to android development at
http://developer.android.com/guide/index.html
And if you want to pull all sources for android related devices then follow this link,
http://source.android.com/source/initializing.html
For this you will need to be using Linux OS/ Mac OS X OR use cygwin or emulator on windows.
I have given you the most generic instructions available and maintained by Google.
I am not sure which sources do you want to retrieve exactly.
ENJOY!!!
Sent from my CSL-MI410 using XDA App
Napstar said:
Hey
You will find all the information related to android development at
http://developer.android.com/guide/index.html
And if you want to pull all sources for android related devices then follow this link,
http://source.android.com/source/initializing.html
For this you will need to be using Linux OS/ Mac OS X OR use cygwin or emulator on windows.
I have given you the most generic instructions available and maintained by Google.
I am not sure which sources do you want to retrieve exactly.
ENJOY!!!
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
I have 2 laptops, one will boot Linux, im ok with setting it up(have b4, but couldnt continue cuz it was so old and the HDD was almost full)
But the newer one will not boot into linux, any help, cuz the newer one has plenty of space to work with!
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
b-eock said:
I have 2 laptops, one will boot Linux, im ok with setting it up(have b4, but couldnt continue cuz it was so old and the HDD was almost full)
But the newer one will not boot into linux, any help, cuz the newer one has plenty of space to work with!
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Click to expand...
Click to collapse
I suggest you to use the laptop with high configuration (cpu n RAM) because source compilation is heavy on cpu.
So you can clean hdd of old laptop if its good.
Or make use new laptop.
If you want to use new laptop you can either install linux-ubuntu by partitioning hdd to have dual boot : windows/any other + ubuntu
Or use softwares like VMware to emulate ubuntu in windows. (But this wont be efficient)
Sent from my CSL-MI410 using XDA App
Napstar said:
I suggest you to use the laptop with high configuration (cpu n RAM) because source compilation is heavy on cpu.
So you can clean hdd of old laptop if its good.
Or make use new laptop.
If you want to use new laptop you can either install linux-ubuntu by partitioning hdd to have dual boot : windows/any other + ubuntu
Or use softwares like VMware to emulate ubuntu in windows. (But this wont be efficient)
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
The old laptops HDD is like 32 GBs, and i tried dualbooting on the new better laptop and it just wouldnt boot, im not a total noob, i know a great deal of things, just i cant get it to boot on the better laptop, can laptops have their bootloaders locked down/
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
b-eock said:
The old laptops HDD is like 32 GBs, and i tried dualbooting on the new better laptop and it just wouldnt boot, im not a total noob, i know a great deal of things, just i cant get it to boot on the better laptop, can laptops have their bootloaders locked down/
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Click to expand...
Click to collapse
Hey,
I am sorry if you are offended, I was just unaware of your situation.
Well I have never faced a situation like locked bootloader on laptops.
Tell me what errors did you find while booting?
Which method did you use while installing? (CD or USB)
Have you been able to boot into Live CD or installation CD of UBUNTU?
Sent from my CSL-MI410 using XDA App
Napstar said:
Hey,
I am sorry if you are offended, I was just unaware of your situation.
Well I have never faced a situation like locked bootloader on laptops.
Tell me what errors did you find while booting?
Which method did you use while installing? (CD or USB)
Have you been able to boot into Live CD or installation CD of UBUNTU?
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
Im not offended at all, just saying i have some idea on what to do! Im using Wubi to make a partion dedicated to Linux, then i go to boot it up and it just hangs and never boots up.
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
b-eock said:
Im not offended at all, just saying i have some idea on what to do! Im using Wubi to make a partion dedicated to Linux, then i go to boot it up and it just hangs and never boots up.
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Click to expand...
Click to collapse
Okay
From what I have understood, you were able to boot into installation cd and installed the linux system. And after installation when you try to reboot it stucks at bootscreen. Am I right?
Can you specify the details of partition table that you have used during installation? I just want to be clear on all aspects.
Sent from my CSL-MI410 using XDA App
Im on a Fujitsu, and using wubi to make the partion for Linux and install it, but when i choose linux at boot, it just hangs
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
b-eock said:
Im on a Fujitsu, and using wubi to make the partion for Linux and install it, but when i choose linux at boot, it just hangs
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Click to expand...
Click to collapse
Right now, I can think of only two possibilities,
1) incomplete installation (I hope that you have tried installing ubuntu multiple number of times b4 posting, so this possibility should not exist)
2) compatibility issue with your laptop's display chip. Pls try to follow this thread at http://ubuntuforums.org/showthread.php?t=1200519
Though thread discusses about problems during installation itself, but by using -X argument like they have suggested should clear one alternative.
Sent from my CSL-MI410 using XDA App
Napstar said:
Right now, I can think of only two possibilities,
1) incomplete installation (I hope that you have tried installing ubuntu multiple number of times b4 posting, so this possibility should not exist)
2) compatibility issue with your laptop's display chip. Pls try to follow this thread at http://ubuntuforums.org/showthread.php?t=1200519
Though thread discusses about problems during installation itself, but by using -X argument like they have suggested should clear one alternative.
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
Yahh, ive tried more than 11 times .... i will check that out later cuz i have some work to do, and i will let you know if it helps!
Sent from my Stock KH3/4 2.3.4 Captivate using the XDA Premium App!
Got it to work!! :d
Ok so im on Ubuntu on my new laptop now!!! Thanks, if I need help setting up the repositories or anything would you help???
b-eock said:
Ok so im on Ubuntu on my new laptop now!!! Thanks, if I need help setting up the repositories or anything would you help???
Click to expand...
Click to collapse
Hushh!!!
Finally your ubuntu is up and ready. Congrats!!
Yeah, I will surely help you. But I doubt I will be much of your use. Because I have recently started playing with Android, so I am also still learning.
Anyway, till now I am able to setup cyanogenmod on my computer and have build CWM recovery for my phone (CSL Mi-410).
I have also pulled kernel sources for my device and could successfully compile them.
Tell me if you need any help. I will try to solve it.
Ok got the rwpositories setup, trouble with actually pulling the source, it just fails
Sent from my SAMSUNG-SGH-I897 using xda premium
b-eock said:
Ok got the rwpositories setup, trouble with actually pulling the source, it just fails
Sent from my SAMSUNG-SGH-I897 using xda premium
Click to expand...
Click to collapse
Do you mean that you have initialized repository by using
repo init -u http://xxxxx.git
by setting up repository?
And does your internet connection requires proxy authentication?
[email protected]:~$ curl*https://android.git.kernel.org/repo
*> ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:30 --:--:-- 0
curl: (7) Failed to connect to 2001:4f8:1:10:1972:112:1:0: Network is unreachable
Any Ideas????
Sent from my SAMSUNG-SGH-I897 using xda premium
I was just following the AOSP info, im up to the http://source.android.com/source/downloading.html and thts where ut fails
Sent from my SAMSUNG-SGH-I897 using xda premium
b-eock said:
[email protected]:~$ curl*https://android.git.kernel.org/repo
*> ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:30 --:--:-- 0
curl: (7) Failed to connect to 2001:4f8:1:10:1972:112:1:0: Network is unreachable
Any Ideas????
Sent from my SAMSUNG-SGH-I897 using xda premium
Click to expand...
Click to collapse
Does your internet connection requires proxy id and port settings?
Because in that case you will have to provide that to curl command,
Code:
curl -x my-proxy:port https://android.git.kernel.org/repo
And if this proxy requires authentication (like in my case, as I work in my office ) then in that case
Code:
curl -U user:passwd -x my-proxy:port https://android.git.kernel.org/repo
Napstar said:
Does your internet connection requires proxy id and port settings?
Because in that case you will have to provide that to curl command,
Code:
curl -x my-proxy:port https://android.git.kernel.org/repo
And if this proxy requires authentication (like in my case, as I work in my office ) then in that case
Code:
curl -U user:passwd -x my-proxy:port https://android.git.kernel.org/repo
Click to expand...
Click to collapse
I dont think it does but i will let u know!
Sent from my SAMSUNG-SGH-I897 using xda premium
b-eock said:
I dont think it does but i will let u know!
Sent from my SAMSUNG-SGH-I897 using xda premium
Click to expand...
Click to collapse
I have just found out one more thing.
The server for android.git.kernel.org has been hacked and hence sut down for last few days.
Temporarily you can try other mirror site so as to get your job done.
You can follow these steps given at: http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/
I hope it works this time.

(Q) APP installation Errors

I'm on MM CM 7.2 & have been unsuccessful in installing certain apps
Can knockdown 2, Cross court tennis, etc to name a few
Basically heavy games are not being installed
I'm confused with this issue
But another problem
Certain games like temple run & fruit ninja are getting installed however they cannot be moved to sd card
I've reported this issue multiple times to the developer but did not get any reply
Can anyone help me plz
Sent from my Xperia X10 using xda premium
Anyone?
Sent from my Xperia X10 using xda premium
kirti_grewal said:
Anyone?
Sent from my Xperia X10 using xda premium
Click to expand...
Click to collapse
Try to install them with adb, I am using it every time if something cant be installed. Adb will show you why.
Syntax:
adb install /path/to/application.apk
(it will return error why it cant be installed or return simply Success)
HeliumX10 said:
Try to install them with adb, I am using it every time if something cant be installed. Adb will show you why.
Syntax:
adb install /path/to/application.apk
(it will return error why it cant be installed or return simply Success)
Click to expand...
Click to collapse
Thanks man
Although I'm a noob & don't know how to use adb
But I will definitely mess around now & see what happens
Sent from my Xperia X10 using xda premium
kirti_grewal said:
Thanks man
Although I'm a noob & don't know how to use adb
But I will definitely mess around now & see what happens
Sent from my Xperia X10 using xda premium
Click to expand...
Click to collapse
OK, then
YOu have used Flashtool yes? That means you have already installed adb drivers, hopefully
Am I right?
Will continue if this is true
HeliumX10 said:
OK, then
YOu have used Flashtool yes? That means you have already installed adb drivers, hopefully
Am I right?
Will continue if this is true
Click to expand...
Click to collapse
Yes you're correct
I already have the drivers
But
This adb thing is going over my head
So
Installed apps through flashtool
But they're not moving to sd card
Adb is out of league
I'm not a dev just a plain user
Sent from my Xperia X10 using xda premium
By the way I contacted the developer even though development is stopped
He said it's most probably a build.prop error
Sent from my Xperia X10 using xda premium

What does porting mean

What does porting <android version> to phone actually mean. Complete layman language.
http://lmgtfy.com/?q=what+does+porting+mean
But in all seriousness just google it next time, very simple answer.
Taking a rom/os from one device and making it work on another device
Sent from my GT-N7000 using xda premium
O! So I downloaded the jellybean for emulator and then striped out /system using yaffs tool but when I replaced /system/lib using root explorer the phone hung and wont start again and had to restore it. It is because the jellybean was compiled for armv7 and mine is armv6 or some other reason?

[Q] Diagnostic Tool.

Hey all,
Is there any diagnostic tool for the android devices what read out the devices of there is any trouble in the software or hardware?
Edit: it must be software for a PC it doesnt matter if its running linux or windows.
Kindly regards.
Johrans said:
Hey all,
Is there any diagnostic tool for the android devices what read out the devices of there is any trouble in the software or hardware?
Edit: it must be software for a PC it doesnt matter if its running linux or windows.
Kindly regards.
Click to expand...
Click to collapse
Software side use ADB and logcat
Sent from my Nexus 4 using xda premium
zacthespack said:
Software side use ADB and logcat
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thanks but i guess its only possible when usb debugging is on. not when some phone has a bootloop or even cant start.

Categories

Resources