SlideShare a Scribd company logo
CYBER SECURITY   INFORMATION TECHNOLOGY

                                                               AppSec
                                          CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE




                                                          (By Rich Helton)
                                                                       Python for
                                               Droid (September 21, 2011)




                                                                State of Colorado
                                                             Office of Cyber Security

                                                                                                                                          State of Colorado Office of Cyber Security
Class Introduction
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE




          A good reference for an online Python class is
        http://code.google.com/edu/languages/google-python-class/
        introduction.html , PyQuick Python Class from Google University.
          Another place for reference Python Documentation,
        http://www.python.org/doc/




                                                                                                                                          State of Colorado Office of Cyber Security
Python History
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE



          From
        http://en.wikipedia.org/wiki/Python_(programming_language) ,
          Python is an interpreted, general-purpose high-level programming
        language whose design philosophy emphasizes code readability.
          The reference implementation of Python (CPython) is free and open
        source software and has a community-based development model, as
        do nearly all of its alternative implementations.
          Python interpreters are available for many operating systems, and
        Python programs can be packaged into stand-alone executable code
        for many systems using various tools.
          Python’s implementation was started in December 1989 by Guido
        van Rossum in the Netherlands as a successor to the ABD
        programming language.


                                                                                                                                          State of Colorado Office of Cyber Security
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE




                                    Android Python




                                                                                                                                          State of Colorado Office of Cyber Security
Android Python
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Android is basically a Micro Edition of Linux, and because Linux
        normally runs Python, Android can add a package to run Python.
          See
        http://hameedullah.com/develop-your-first-android-application-in-
        python.html




                                                                                                                                          State of Colorado Office of Cyber Security
Set up the Android SDK
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          First the Android environment, Software Development Kit (SDK),
        needs to be set up on the local Desktop,
        http://developer.android.com/sdk/installing.html :




                                                                                                                                          State of Colorado Office of Cyber Security
Android Virtual Device (AVD)
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

         An AVD will have to be created for debugging and testing, this is
        your target device,




                                                                                                                                          State of Colorado Office of Cyber Security
Android Python
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Create an AVD from your now installed Android SDK, by creating a
        new Virtual Device,
        http://developer.android.com/guide/developing/devices/index.html




                                                                                                                                          State of Colorado Office of Cyber Security
Android Python
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          The “New” Virtual Device for Android,




                                                                                                                                          State of Colorado Office of Cyber Security
AVD Created
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          The new AVD called “PythonDev”,




                                                                                                                                          State of Colorado Office of Cyber Security
AVD Start
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Start “PythonDev”,




                                                                                                                                          State of Colorado Office of Cyber Security
Use the Browser in the AVD
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Open the Browser in “PythonDev”, and go to
        http://code.google.com/p/android-scripting so install Android Scripting




                                                                                                                                          State of Colorado Office of Cyber Security
Download SL4A
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          After tapping on the QR code icon (center box) to download,




                                                                                                                                          State of Colorado Office of Cyber Security
Install SL4A
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Double click the download to install,




                                                                                                                                          State of Colorado Office of Cyber Security
SL4A Installed
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Installed,




                                                                                                                                          State of Colorado Office of Cyber Security
Now Python has to be installed
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Go back in the browser and to the SL4A website, hit the download
        URL for Python for Android and you will get,




                                                                                                                                          State of Colorado Office of Cyber Security
Install
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          After downloading, you need to install Python,




                                                                                                                                          State of Colorado Office of Cyber Security
Run a script
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Go to applications and select SL4A,




                                                                                                                                          State of Colorado Office of Cyber Security
Run HelloWorld.py
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Select the Run icon on script,




                                                                                                                                          State of Colorado Office of Cyber Security
Says “Hello, Android!”
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          You get the “Hello, Android!”




                                                                                                                                          State of Colorado Office of Cyber Security
See the scripts
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Android uses a bridge, called “adb” to talk from the desktop to the
        emulator. Under the android SDK/platform-tools, run “adb shell ls /
        sdcard/sl4a/scripts”,




                                                                                                                                          State of Colorado Office of Cyber Security
Write a small script
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          We are going to write a small script that prints the inputted name
        with a greeting, Notepad will work,




                                                                                                                                          State of Colorado Office of Cyber Security
Set the scripts
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Run “adb push myGreet.py /sdcard/sl4a/scripts”, to copy this
        python file to the emulator,




                                                                                                                                          State of Colorado Office of Cyber Security
Execute the script
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          Execute the “myGreet.py” script,




                                                                                                                                          State of Colorado Office of Cyber Security
Greeting
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE

          After typing in your name, you get a greeting,




                                                                                                                                          State of Colorado Office of Cyber Security
CYBER SECURITY   INFORMATION TECHNOLOGY   CRITICAL INFRASTRUCTURE   HOMELAND SECURITY   MULTI-USER NETWORK CYBER SECURITY   INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE




                                    Questions?
                                    Have a Good Day



                                                                                                                                          State of Colorado Office of Cyber Security

More Related Content

PDF
Python Final
PPT
First Steps in Android
PDF
Spring Roo Rev005
PPTX
CDIC 2013-Mobile Application Pentest Workshop
PPTX
Java & The Android Stack: A Security Analysis
PDF
Deep Dive Into Android Security
PPT
Mobile Application Security – Effective methodology, efficient testing!
PPTX
Mobile security part 1(Android Apps Pentesting)- Romansh yadav
Python Final
First Steps in Android
Spring Roo Rev005
CDIC 2013-Mobile Application Pentest Workshop
Java & The Android Stack: A Security Analysis
Deep Dive Into Android Security
Mobile Application Security – Effective methodology, efficient testing!
Mobile security part 1(Android Apps Pentesting)- Romansh yadav

What's hot (20)

PDF
From app sec to malsec malware hooked, criminal crooked alok gupta
PDF
Case Study on supply chain attack-how an rce in jenkins leads to data breache...
PDF
Case VC+: Como tornar seguro um aplicativo mobile payment sem penalizar a exp...
PPTX
Android Security : A Hacker's Perspective
PDF
Improving Mobile Authentication for Public Safety and First Responders
PDF
(Pdf) yury chemerkin _ita_2013 proceedings
PPTX
Android sandbox
PDF
(Pdf) yury chemerkin hackfest.ca_2013
PDF
Sperasoft talks: Android Security Threats
PPTX
Mobile security
PDF
Consulthink @ GDG Meets U - L'Aquila2014 - Codelab: Android Security -Il ke...
PDF
Mobile Application Security
PDF
Смирнов Александр, Security in Android Application
PPT
Understanding Android Security
PDF
Introduction to Android Application Security Testing - 2nd Sep 2017
PDF
Passwords and Fingerprints and Faces—Oh My! Comparing Old and New Authentication
PDF
(Pdf) yury chemerkin hacktivity_2013
PPTX
[Wroclaw #1] Android Security Workshop
PDF
Android Secure Coding
PPTX
Android Security
From app sec to malsec malware hooked, criminal crooked alok gupta
Case Study on supply chain attack-how an rce in jenkins leads to data breache...
Case VC+: Como tornar seguro um aplicativo mobile payment sem penalizar a exp...
Android Security : A Hacker's Perspective
Improving Mobile Authentication for Public Safety and First Responders
(Pdf) yury chemerkin _ita_2013 proceedings
Android sandbox
(Pdf) yury chemerkin hackfest.ca_2013
Sperasoft talks: Android Security Threats
Mobile security
Consulthink @ GDG Meets U - L'Aquila2014 - Codelab: Android Security -Il ke...
Mobile Application Security
Смирнов Александр, Security in Android Application
Understanding Android Security
Introduction to Android Application Security Testing - 2nd Sep 2017
Passwords and Fingerprints and Faces—Oh My! Comparing Old and New Authentication
(Pdf) yury chemerkin hacktivity_2013
[Wroclaw #1] Android Security Workshop
Android Secure Coding
Android Security
Ad

Viewers also liked (20)

PPTX
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
ODP
Mongo db rev001.
PPTX
Java Web Security Class
PPTX
Learning C# iPad Programming
PPT
Secure Ftp Java Style Rev004
PPT
Adobe Flex4
PPT
Entity frameworks101
PPT
Intro Java Rev010
PPT
NServicebus WCF Integration 101
PDF
I pad uicatalog_lesson02
PPT
Java for Mainframers
PPTX
Azure rev002
PPT
Tumbleweed intro
PPTX
C#Web Sec Oct27 2010 Final
PPTX
NServiceBus
PPT
Jira Rev002
PPT
AspMVC4 start101
PPT
Overview of CSharp MVC3 and EF4
PPTX
Web Application Firewall intro
PPTX
Salesforce Intro
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
Mongo db rev001.
Java Web Security Class
Learning C# iPad Programming
Secure Ftp Java Style Rev004
Adobe Flex4
Entity frameworks101
Intro Java Rev010
NServicebus WCF Integration 101
I pad uicatalog_lesson02
Java for Mainframers
Azure rev002
Tumbleweed intro
C#Web Sec Oct27 2010 Final
NServiceBus
Jira Rev002
AspMVC4 start101
Overview of CSharp MVC3 and EF4
Web Application Firewall intro
Salesforce Intro
Ad

Similar to Python For Droid (20)

PPTX
Presales-Present_GravityZone Products_June2023.pptx
PPTX
Presales-Present_GravityZone Products_June2023.pptx
PPTX
Privacy and security in IoT
PDF
NXP'S-PORTFOLIO-FOR-ADDRESSING-IOT-SECURITY.pdf
PDF
Prisma Cloud - CyberTech ID Forum 24.pdf
PPTX
El Futuro de la Cibersegu
PPTX
beware of Thing Bot
PDF
The Internet of Things: We've Got to Chat
PDF
Generación V de ciberataques
PDF
社会におけるIoTとセキュリティ、匿名化技術: 産業IoTのサイバーセキュリティ技術
PDF
Tsunami of Technologies. Are we prepared?
PPTX
From Reversing to Exploitation
PPTX
News bytes Sept-2011
PPTX
Iot(security)
PDF
Ce hv8 module 17 evading ids, firewalls, and honeypots
PPTX
From Reversing to Exploitation: Android Application Security in Essence
PPTX
Product security by Blockchain, AI and Security Certs
PPSX
Plataforma de Operação e Simulação Cibernética
PPTX
Rajarshi Gupta at AI Frontiers : Security is AI’s biggest challenge, AI is Se...
PDF
UQ_Cybercrime_Professionalism_Lecture_2024_07.pdf
Presales-Present_GravityZone Products_June2023.pptx
Presales-Present_GravityZone Products_June2023.pptx
Privacy and security in IoT
NXP'S-PORTFOLIO-FOR-ADDRESSING-IOT-SECURITY.pdf
Prisma Cloud - CyberTech ID Forum 24.pdf
El Futuro de la Cibersegu
beware of Thing Bot
The Internet of Things: We've Got to Chat
Generación V de ciberataques
社会におけるIoTとセキュリティ、匿名化技術: 産業IoTのサイバーセキュリティ技術
Tsunami of Technologies. Are we prepared?
From Reversing to Exploitation
News bytes Sept-2011
Iot(security)
Ce hv8 module 17 evading ids, firewalls, and honeypots
From Reversing to Exploitation: Android Application Security in Essence
Product security by Blockchain, AI and Security Certs
Plataforma de Operação e Simulação Cibernética
Rajarshi Gupta at AI Frontiers : Security is AI’s biggest challenge, AI is Se...
UQ_Cybercrime_Professionalism_Lecture_2024_07.pdf

Python For Droid

  • 1. CYBER SECURITY INFORMATION TECHNOLOGY AppSec CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE (By Rich Helton) Python for Droid (September 21, 2011) State of Colorado Office of Cyber Security State of Colorado Office of Cyber Security
  • 2. Class Introduction CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   A good reference for an online Python class is http://code.google.com/edu/languages/google-python-class/ introduction.html , PyQuick Python Class from Google University.   Another place for reference Python Documentation, http://www.python.org/doc/ State of Colorado Office of Cyber Security
  • 3. Python History CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   From http://en.wikipedia.org/wiki/Python_(programming_language) ,   Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.   The reference implementation of Python (CPython) is free and open source software and has a community-based development model, as do nearly all of its alternative implementations.   Python interpreters are available for many operating systems, and Python programs can be packaged into stand-alone executable code for many systems using various tools.   Python’s implementation was started in December 1989 by Guido van Rossum in the Netherlands as a successor to the ABD programming language. State of Colorado Office of Cyber Security
  • 4. CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Android Python State of Colorado Office of Cyber Security
  • 5. Android Python CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Android is basically a Micro Edition of Linux, and because Linux normally runs Python, Android can add a package to run Python.   See http://hameedullah.com/develop-your-first-android-application-in- python.html State of Colorado Office of Cyber Security
  • 6. Set up the Android SDK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   First the Android environment, Software Development Kit (SDK), needs to be set up on the local Desktop, http://developer.android.com/sdk/installing.html : State of Colorado Office of Cyber Security
  • 7. Android Virtual Device (AVD) CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE  An AVD will have to be created for debugging and testing, this is your target device, State of Colorado Office of Cyber Security
  • 8. Android Python CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Create an AVD from your now installed Android SDK, by creating a new Virtual Device, http://developer.android.com/guide/developing/devices/index.html State of Colorado Office of Cyber Security
  • 9. Android Python CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   The “New” Virtual Device for Android, State of Colorado Office of Cyber Security
  • 10. AVD Created CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   The new AVD called “PythonDev”, State of Colorado Office of Cyber Security
  • 11. AVD Start CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Start “PythonDev”, State of Colorado Office of Cyber Security
  • 12. Use the Browser in the AVD CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Open the Browser in “PythonDev”, and go to http://code.google.com/p/android-scripting so install Android Scripting State of Colorado Office of Cyber Security
  • 13. Download SL4A CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   After tapping on the QR code icon (center box) to download, State of Colorado Office of Cyber Security
  • 14. Install SL4A CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Double click the download to install, State of Colorado Office of Cyber Security
  • 15. SL4A Installed CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Installed, State of Colorado Office of Cyber Security
  • 16. Now Python has to be installed CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Go back in the browser and to the SL4A website, hit the download URL for Python for Android and you will get, State of Colorado Office of Cyber Security
  • 17. Install CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   After downloading, you need to install Python, State of Colorado Office of Cyber Security
  • 18. Run a script CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Go to applications and select SL4A, State of Colorado Office of Cyber Security
  • 19. Run HelloWorld.py CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Select the Run icon on script, State of Colorado Office of Cyber Security
  • 20. Says “Hello, Android!” CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   You get the “Hello, Android!” State of Colorado Office of Cyber Security
  • 21. See the scripts CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Android uses a bridge, called “adb” to talk from the desktop to the emulator. Under the android SDK/platform-tools, run “adb shell ls / sdcard/sl4a/scripts”, State of Colorado Office of Cyber Security
  • 22. Write a small script CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   We are going to write a small script that prints the inputted name with a greeting, Notepad will work, State of Colorado Office of Cyber Security
  • 23. Set the scripts CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Run “adb push myGreet.py /sdcard/sl4a/scripts”, to copy this python file to the emulator, State of Colorado Office of Cyber Security
  • 24. Execute the script CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   Execute the “myGreet.py” script, State of Colorado Office of Cyber Security
  • 25. Greeting CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE   After typing in your name, you get a greeting, State of Colorado Office of Cyber Security
  • 26. CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE HOMELAND SECURITY MULTI-USER NETWORK CYBER SECURITY INFORMATION TECHNOLOGY CRITICAL INFRASTRUCTURE Questions? Have a Good Day State of Colorado Office of Cyber Security