SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Semelhante a 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
 

Semelhante a 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
 

Mais 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
 

Último

Último (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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)
 
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
 

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