SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Android emulator in Ubuntu
Basic Requirements:-


                To Install openjdk-6-jre




If you have 64-bit operating system – you need to install la32-libs also
downlad latest android sdk here

   http://developer.android.com/sdk/index.html




    extract .tgz file in your home directory
open the android-sdk-linux => tools => double click
android file => click run
click the Available Packages then choose the android platform
version and click install selected
now its take some time to install
Create vitual sd card for ur phone

Using the below command to create

    In terminal go to ur android tools directory

            => cd /home/USER_NAME/android-sdk-linux_x86/tools
Then type

       $ ./mksdcard 512M mysdcard512Mb
After installation completed to click vitual devices => click new


Now enter ur name of android vitual device

Choose the target android version

Choose ur virtual sdcard using browse button, before we
created

In hardware field, what are the features u want in ur
virtual device

Just click the new button to add more and more

Finally Click create AVD
Click start button - now ur avd is ready to use
You can add files into ur sdcard
 $ mkdir /media/mycard

  $ sudo mount -o loop /android/tools/mysdcard512Mb
/media/mycard

 #add files using cp command

 $ sudo umount /media/mycard
Setting Up ADB/USB Drivers for
Android Devices in Linux
(Ubuntu)
ADB (Android Debug Bridge)

ADB (Android Debug Bridge) is a handy tool that comes
with Android SDK that allows you to control and interface
with your Android device.
Create this file:
$ sudo /etc/udev/rules.d/##-android.rules




 NOTE: In the above file replace ## with the number 50 if you
 are running Gusty/Hardy/Dapper (50-android.rules) or with the
 number 70 if you are running Karmic Koala/Lucid Lynx/Maverick
 Meerkat(70-android.rules)
The file should read:

For Gusty/Hardy: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

For Dapper: SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

For Karmic Koala: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

For Lucid Lynx: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

For Maverick Meerkat: SUBSYSTEM==”usb”, ATTR{idVendor}==”0bb4″, MODE=”0666″

NOTE: In the above lines the code ”0bb4″ refers to a HTC device. If your
phone is from a different manufacturer, replace the code with the
appropriate from the table.




Which operating you are using to an appropriate line to
copy and paste on that file
MANUFACTURER         USB VENDOR ID
Acer                 0502
Dell                 413c
Foxconn              0489
Garmin-Asus          091E
HTC (Older Phones)   0bb4
HTC (Newer phones)   18d1
Huawei               12d1
Kyocera              0482
LG                   1004
Motorola             22b8
Nexus One/S          18d1
Nvidia               0955
Pantech              10A9
Samsung              04e8
Sharp                04dd
Sony Ericsson        0fce
ZTE                  19D2
Change permission: $ sudo chmod a+rx /etc/udev/rules.d/70-android.rules



To run ADB you need to add an environment variable to your bashrc file:

1. Open a terminal window and type: $ sudo gedit ~/.bashrc

2. Add the following line at the end: export PATH=${PATH}:/home/YOUR-
USERNAME/android-sdk-linux_x86/platform-tools

3. Save and close


You should be ready to go, type $ adb devices in a terminal window
with your phone plugged in. It shows your device



HT99PHF02521 device
Common ADB commands

     $ adb kill-server
     $ adb start-server
     $ adb shell
     $ adb install
     $ adb push
     $ adb pull


Download android emulator skins link
http://teavuihuang.com/android/
BY

          Rajkumar.S
         Kanchi Linux Users Group




Http://upcomer.wordpress.com    Http://kanchilug.wordpress.com

Contenu connexe

Tendances

Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
decenttr
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012
Chukwuma Onyeije, MD, FACOG
 
La2 Motherboard
La2 MotherboardLa2 Motherboard
La2 Motherboard
Cma Mohd
 
Ict - Motherboard
Ict - MotherboardIct - Motherboard
Ict - Motherboard
aleeya91
 
Motherboard
MotherboardMotherboard
Motherboard
Cma Mohd
 
4.4. Hashcracking server on generic hardware
4.4. Hashcracking server on generic hardware4.4. Hashcracking server on generic hardware
4.4. Hashcracking server on generic hardware
defconmoscow
 

Tendances (20)

Scaling IO-bound microservices
Scaling IO-bound microservicesScaling IO-bound microservices
Scaling IO-bound microservices
 
제 5회 DGMIT R&D 컨퍼런스: Sound Module With OperSLEs
제 5회 DGMIT R&D 컨퍼런스: Sound Module With OperSLEs제 5회 DGMIT R&D 컨퍼런스: Sound Module With OperSLEs
제 5회 DGMIT R&D 컨퍼런스: Sound Module With OperSLEs
 
Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"
 
Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners
 
Ps3 linux
Ps3 linuxPs3 linux
Ps3 linux
 
O meu computador
O meu computadorO meu computador
O meu computador
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
 
Hadoop Installation
Hadoop InstallationHadoop Installation
Hadoop Installation
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
 
Death matchtournament del2014
Death matchtournament del2014Death matchtournament del2014
Death matchtournament del2014
 
Spesifikasi server
Spesifikasi serverSpesifikasi server
Spesifikasi server
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012
 
La2 Motherboard
La2 MotherboardLa2 Motherboard
La2 Motherboard
 
Ict - Motherboard
Ict - MotherboardIct - Motherboard
Ict - Motherboard
 
Motherboard
MotherboardMotherboard
Motherboard
 
Single node hadoop cluster installation
Single node hadoop cluster installation Single node hadoop cluster installation
Single node hadoop cluster installation
 
Hadoop single cluster installation
Hadoop single cluster installationHadoop single cluster installation
Hadoop single cluster installation
 
4.4. Hashcracking server on generic hardware
4.4. Hashcracking server on generic hardware4.4. Hashcracking server on generic hardware
4.4. Hashcracking server on generic hardware
 
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
 
X Server
X ServerX Server
X Server
 

Similaire à Android in ubuntu

Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013
Opersys inc.
 
Rhodes mobile Framework
Rhodes mobile FrameworkRhodes mobile Framework
Rhodes mobile Framework
Yoshi Sakai
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Adil Khan
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
Positive Hack Days
 

Similaire à Android in ubuntu (20)

Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013
 
Rhodes mobile Framework
Rhodes mobile FrameworkRhodes mobile Framework
Rhodes mobile Framework
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 
Study on Android Emulator
Study on Android EmulatorStudy on Android Emulator
Study on Android Emulator
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
 
Installing iOS and Android Simulators on MacOSX
Installing iOS and Android Simulators on MacOSXInstalling iOS and Android Simulators on MacOSX
Installing iOS and Android Simulators on MacOSX
 
Bm 170-android-2.1 r2e
Bm 170-android-2.1 r2eBm 170-android-2.1 r2e
Bm 170-android-2.1 r2e
 
Linux
Linux Linux
Linux
 
Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
 
Challenges of container configuration
Challenges of container configurationChallenges of container configuration
Challenges of container configuration
 
Run wordcount job (hadoop)
Run wordcount job (hadoop)Run wordcount job (hadoop)
Run wordcount job (hadoop)
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Linux
LinuxLinux
Linux
 
FFMPEG on android
FFMPEG on androidFFMPEG on android
FFMPEG on android
 
Udev
UdevUdev
Udev
 

Plus de ksrajkumar87 (6)

Intro about Content Management System
Intro about Content Management SystemIntro about Content Management System
Intro about Content Management System
 
Bajji traditional snack
Bajji traditional snackBajji traditional snack
Bajji traditional snack
 
how to type tamil in ubuntu - தமிழ்
how to type tamil in ubuntu - தமிழ்how to type tamil in ubuntu - தமிழ்
how to type tamil in ubuntu - தமிழ்
 
OpenOffice Spreadsheet
OpenOffice SpreadsheetOpenOffice Spreadsheet
OpenOffice Spreadsheet
 
1 st review_doc
1 st review_doc1 st review_doc
1 st review_doc
 
Hr express abstract
Hr express abstractHr express abstract
Hr express abstract
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Android in ubuntu

  • 2. Basic Requirements:- To Install openjdk-6-jre If you have 64-bit operating system – you need to install la32-libs also
  • 3. downlad latest android sdk here http://developer.android.com/sdk/index.html extract .tgz file in your home directory
  • 4. open the android-sdk-linux => tools => double click android file => click run
  • 5. click the Available Packages then choose the android platform version and click install selected
  • 6. now its take some time to install
  • 7. Create vitual sd card for ur phone Using the below command to create In terminal go to ur android tools directory => cd /home/USER_NAME/android-sdk-linux_x86/tools Then type $ ./mksdcard 512M mysdcard512Mb
  • 8. After installation completed to click vitual devices => click new Now enter ur name of android vitual device Choose the target android version Choose ur virtual sdcard using browse button, before we created In hardware field, what are the features u want in ur virtual device Just click the new button to add more and more Finally Click create AVD
  • 9.
  • 10. Click start button - now ur avd is ready to use
  • 11. You can add files into ur sdcard $ mkdir /media/mycard $ sudo mount -o loop /android/tools/mysdcard512Mb /media/mycard #add files using cp command $ sudo umount /media/mycard
  • 12. Setting Up ADB/USB Drivers for Android Devices in Linux (Ubuntu)
  • 13. ADB (Android Debug Bridge) ADB (Android Debug Bridge) is a handy tool that comes with Android SDK that allows you to control and interface with your Android device.
  • 14. Create this file: $ sudo /etc/udev/rules.d/##-android.rules NOTE: In the above file replace ## with the number 50 if you are running Gusty/Hardy/Dapper (50-android.rules) or with the number 70 if you are running Karmic Koala/Lucid Lynx/Maverick Meerkat(70-android.rules)
  • 15. The file should read: For Gusty/Hardy: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″ For Dapper: SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”0bb4″, MODE=”0666″ For Karmic Koala: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″ For Lucid Lynx: SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″ For Maverick Meerkat: SUBSYSTEM==”usb”, ATTR{idVendor}==”0bb4″, MODE=”0666″ NOTE: In the above lines the code ”0bb4″ refers to a HTC device. If your phone is from a different manufacturer, replace the code with the appropriate from the table. Which operating you are using to an appropriate line to copy and paste on that file
  • 16. MANUFACTURER USB VENDOR ID Acer 0502 Dell 413c Foxconn 0489 Garmin-Asus 091E HTC (Older Phones) 0bb4 HTC (Newer phones) 18d1 Huawei 12d1 Kyocera 0482 LG 1004 Motorola 22b8 Nexus One/S 18d1 Nvidia 0955 Pantech 10A9 Samsung 04e8 Sharp 04dd Sony Ericsson 0fce ZTE 19D2
  • 17. Change permission: $ sudo chmod a+rx /etc/udev/rules.d/70-android.rules To run ADB you need to add an environment variable to your bashrc file: 1. Open a terminal window and type: $ sudo gedit ~/.bashrc 2. Add the following line at the end: export PATH=${PATH}:/home/YOUR- USERNAME/android-sdk-linux_x86/platform-tools 3. Save and close You should be ready to go, type $ adb devices in a terminal window with your phone plugged in. It shows your device HT99PHF02521 device
  • 18. Common ADB commands $ adb kill-server $ adb start-server $ adb shell $ adb install $ adb push $ adb pull Download android emulator skins link http://teavuihuang.com/android/
  • 19. BY Rajkumar.S Kanchi Linux Users Group Http://upcomer.wordpress.com Http://kanchilug.wordpress.com