Android
By Collin Donaldson
With Strong Contributions From:
Anthony Kopczyk
Architecture
Activity Life Cycle
Activity Life Cycle - onCreate
• Set the Activity's content View; Event Listeners
• Find references to any needed Views
• Passed-in Bundle allows a programmer to restore
the Activity to its previous status
Activity Life Cycle - onStart
• Called when the Activity becomes visible
• Initialize any properties requiring information
from the Window and contained Views
Activity Life Cycle - onResume
• Called when the Activity is visible and in the
foreground
• Initialize ability for user to interact with the
Activity
Activity Life Cycle - onPause
• Called when the Activity is no longer the
foreground
• Release system resources
Activity Life Cycle - onStop
• Called when Activity is no longer visible
• Perform larger operations like writing to a database
• Save Activity's state for onStart
Activity Life Cycle - onDestroy
• Called when the system is in need of
resources
• Last chance to free resources and avoid
memory leaks
Activity Life Cycle
Views
• A building block for
UI components
• Responsible for
drawing and event
handling
• Each View has an id
• findViewById(int)
Text box, check box,
radio button, time
picker, and image
view
XML
• Eclipse IDE
• Uses XML files to
set up the mobile
application
Android Layout File
XML - Android Manifest
• Contains properties
of the application
• Permissions, SDK,
Icon, Activities
Android Manifest File
XML - Layout
• Defines the layout
of the Activity
• Set View id values
• Could achieve the
same results
through java code
Android Layout File
XML – Other Files
• Menu – Defines the
Menu to bring up
• Dimens – Defines
dimensions with names
and values
• Strings – Defines
strings with names and
values
• Lint – Defines exclusion
or customization of lint
checks
• Styles – Defines the
style to use in the
Activity
• Attrs – Defines custom
attributes that may be
used in XML Layout
files
Input Events
• OnClickListener
• OnLongClickListener
• OnFocusChangeListener
• OnKeyListener
• OnTouchListener
• OnCreateContextMenuListener
Input Events
Pre-Click Post-Click
Intents
• Starts an activity or
service
• Service – operates in
the background without
a UI
• Intents can be sent to
other Apps
• sendBroadcast()
• sendOrderedBroadcast()
• sendStickyBroadcast()
Intents – Explicit vs. Implicit
• Explicit Intents
specify a
component to start.
• Implicit Intents give
a general action to
perform.
Intents - Intent-Filter
• Specified in the Manifest
file
• Contains the types of
Intents the app wants to
receive
• Allows one app to send
an Intent to another
• If no intent filters are
specified the activity
may only be started with
an explicit Intent
• To ensure security,
always use explicit
intents when starting a
Service
• Users can not see when
a Service starts
Permission
• Allows developers
to use security
features
• Provides additional
capabilities to
consumers that
otherwise would be
impossible
“A central design point of
the Android security
architecture is that no
application, by default,
has permission to
perform any operations
that would adversely
impact other
applications, the
operating system, or the
user”
Permission
• When an
Application is
installed the
consumer must
accept the
permissions
requested by an
application
• Permissions are
defined in the
Manifest file
Permission

Facebook Messenger

Identity

Contacts/Calendar

Location

SMS

Phone

Photos/Media/Files

Camera/Microphone

Wi-Fi Connection Information

Device ID & Call Information
• Angry Birds
• Identity
• In-app purchases
• Location
• Photos/Media/Files
• Wi-Fi Connection Information
• Device ID & Call Information
Permission
• Camera/Microphone
• Allows consumers to use video chat
• Photos/Media/Files
• Allows consumers to send pictures they have
previously taken
• In order to give access, one must become
more vulnerable – like opening ports on your
router
Permission
• Using Intents and Permissions a developer
can make his/her app call a phone number.
Permission
Activity Class
Permission
Manifest File
Rooting/JailBreaking
• Rooting is the process of gaining root (a.k.a.
administrator or super user) to a smartphone.
• By default, all smartphones only give user’s
“guest” privileges.
• This is for both safety reasons and to prevent
users from doing things developers/carriers
don’t like (i.e. getting rid of their bloatware).
Pros and Cons to Root
Pros
• Download more apps and use
existing apps to fullest potential
• Flash custom ROMs
• Access locked
hardware/software features
• Tune performance
• No more bloatware
• Wi-Fi/Bluetooth Tethering
• Use apps designed for other
phones/carriers
• Install apps to an SD card
Cons
• If done incorrectly, can
possibly brick phone
• Voids any warranties you
have (even if you reverse
the root)
• Less stable/more bugs
General Security Vulnerabilities
• Flaws in Android OS itself
• Flaws in phone software/firmware
• Conventional browser based virus
• Vulnerabilities within downloaded apps
• Unconventional attacks (injecting code into
accelerometers i.e.)
Specific Vulnerabilities
• Backdoor.AndroidOS.Obad.a does not have an interface and works in
background mode, making it difficult to analyze, but that was only part of the
challenge, according to Unuchek. The application exploits an error in the
DEX2JAR software – generally used by researchers to convert APK files into
the Java Archive (JAR) format) – that disrupts the conversion of Dalvik
bytecode into Java bytecode and makes it difficult to run a statistical analysis
of the Trojan.
• Obad.a also targets an error in Android’s processing of the
AndroidManifest.xml file, which exists in every Android application to describe
the application’s structure, define its launch parameters and more. Although
Obad.a modifies AndroidManifest.xml so that it doesn’t comply with Google
standards, the vulnerability enables it to still be processed correctly,
complicating any attempt to run dynamic analysis on the application.
Next Time
• We will use a Metasploit (with a specific
module) to attack an android device.
• The “android device” will be a virtual android
machine running on an emulator
• We may also write a virus and Python and
deploy it to a device.

More Related Content

PPTX
Android overview
PDF
Introduction to Android Development and Security
PDF
Android Jump Start
PPTX
Android development orientation for starters v2
PPTX
Android village @nullcon 2012
PDF
Android Jumpstart Jfokus
PPT
Introduction to Android Development
PDF
Mobile app
Android overview
Introduction to Android Development and Security
Android Jump Start
Android development orientation for starters v2
Android village @nullcon 2012
Android Jumpstart Jfokus
Introduction to Android Development
Mobile app

Similar to android is ready for study to all the students and share as soon as possible (20)

PDF
Android
KEY
Android Development: The Basics
PPTX
Android app devolopment
PPTX
PPTX
Android 101 Session @thejunction32
PPTX
Android quick talk
PDF
Androidoscon20080721 1216843094441821-9
PDF
Androidoscon20080721 1216843094441821-9
PPSX
Android OS and its Features
PDF
PDF
Android Introduction
ODP
Java Meetup - 12-03-15 - Android Development Workshop
PPT
Android_ver_01
PDF
Learning Android 1st Edition Marko Gargenta
PDF
Learning Android 1st Edition Marko Gargenta
PDF
Android Development Tutorial
PPT
Android_Workshop
PDF
Android in Action 3rd Edition W. Frank Ableson
PPT
android-tutorial-for-beginner
PPT
Outsmarting SmartPhones
Android
Android Development: The Basics
Android app devolopment
Android 101 Session @thejunction32
Android quick talk
Androidoscon20080721 1216843094441821-9
Androidoscon20080721 1216843094441821-9
Android OS and its Features
Android Introduction
Java Meetup - 12-03-15 - Android Development Workshop
Android_ver_01
Learning Android 1st Edition Marko Gargenta
Learning Android 1st Edition Marko Gargenta
Android Development Tutorial
Android_Workshop
Android in Action 3rd Edition W. Frank Ableson
android-tutorial-for-beginner
Outsmarting SmartPhones
Ad

Recently uploaded (20)

PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Design Guidelines and solutions for Plastics parts
PPTX
Software Engineering and software moduleing
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PPTX
Principal presentation for NAAC (1).pptx
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
Measurement Uncertainty and Measurement System analysis
PPTX
ai_satellite_crop_management_20250815030350.pptx
PPTX
Petroleum Refining & Petrochemicals.pptx
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
Unit1 - AIML Chapter 1 concept and ethics
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPTX
Chapter 2 -Technology and Enginerring Materials + Composites.pptx
"Array and Linked List in Data Structures with Types, Operations, Implementat...
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Design Guidelines and solutions for Plastics parts
Software Engineering and software moduleing
Exploratory_Data_Analysis_Fundamentals.pdf
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
Principal presentation for NAAC (1).pptx
distributed database system" (DDBS) is often used to refer to both the distri...
Measurement Uncertainty and Measurement System analysis
ai_satellite_crop_management_20250815030350.pptx
Petroleum Refining & Petrochemicals.pptx
Information Storage and Retrieval Techniques Unit III
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Unit1 - AIML Chapter 1 concept and ethics
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Chapter 2 -Technology and Enginerring Materials + Composites.pptx
Ad

android is ready for study to all the students and share as soon as possible

  • 1. Android By Collin Donaldson With Strong Contributions From: Anthony Kopczyk
  • 4. Activity Life Cycle - onCreate • Set the Activity's content View; Event Listeners • Find references to any needed Views • Passed-in Bundle allows a programmer to restore the Activity to its previous status
  • 5. Activity Life Cycle - onStart • Called when the Activity becomes visible • Initialize any properties requiring information from the Window and contained Views
  • 6. Activity Life Cycle - onResume • Called when the Activity is visible and in the foreground • Initialize ability for user to interact with the Activity
  • 7. Activity Life Cycle - onPause • Called when the Activity is no longer the foreground • Release system resources
  • 8. Activity Life Cycle - onStop • Called when Activity is no longer visible • Perform larger operations like writing to a database • Save Activity's state for onStart
  • 9. Activity Life Cycle - onDestroy • Called when the system is in need of resources • Last chance to free resources and avoid memory leaks
  • 11. Views • A building block for UI components • Responsible for drawing and event handling • Each View has an id • findViewById(int) Text box, check box, radio button, time picker, and image view
  • 12. XML • Eclipse IDE • Uses XML files to set up the mobile application Android Layout File
  • 13. XML - Android Manifest • Contains properties of the application • Permissions, SDK, Icon, Activities Android Manifest File
  • 14. XML - Layout • Defines the layout of the Activity • Set View id values • Could achieve the same results through java code Android Layout File
  • 15. XML – Other Files • Menu – Defines the Menu to bring up • Dimens – Defines dimensions with names and values • Strings – Defines strings with names and values • Lint – Defines exclusion or customization of lint checks • Styles – Defines the style to use in the Activity • Attrs – Defines custom attributes that may be used in XML Layout files
  • 16. Input Events • OnClickListener • OnLongClickListener • OnFocusChangeListener • OnKeyListener • OnTouchListener • OnCreateContextMenuListener
  • 18. Intents • Starts an activity or service • Service – operates in the background without a UI • Intents can be sent to other Apps • sendBroadcast() • sendOrderedBroadcast() • sendStickyBroadcast()
  • 19. Intents – Explicit vs. Implicit • Explicit Intents specify a component to start. • Implicit Intents give a general action to perform.
  • 20. Intents - Intent-Filter • Specified in the Manifest file • Contains the types of Intents the app wants to receive • Allows one app to send an Intent to another • If no intent filters are specified the activity may only be started with an explicit Intent • To ensure security, always use explicit intents when starting a Service • Users can not see when a Service starts
  • 21. Permission • Allows developers to use security features • Provides additional capabilities to consumers that otherwise would be impossible “A central design point of the Android security architecture is that no application, by default, has permission to perform any operations that would adversely impact other applications, the operating system, or the user”
  • 22. Permission • When an Application is installed the consumer must accept the permissions requested by an application • Permissions are defined in the Manifest file
  • 23. Permission  Facebook Messenger  Identity  Contacts/Calendar  Location  SMS  Phone  Photos/Media/Files  Camera/Microphone  Wi-Fi Connection Information  Device ID & Call Information • Angry Birds • Identity • In-app purchases • Location • Photos/Media/Files • Wi-Fi Connection Information • Device ID & Call Information
  • 24. Permission • Camera/Microphone • Allows consumers to use video chat • Photos/Media/Files • Allows consumers to send pictures they have previously taken • In order to give access, one must become more vulnerable – like opening ports on your router
  • 25. Permission • Using Intents and Permissions a developer can make his/her app call a phone number.
  • 28. Rooting/JailBreaking • Rooting is the process of gaining root (a.k.a. administrator or super user) to a smartphone. • By default, all smartphones only give user’s “guest” privileges. • This is for both safety reasons and to prevent users from doing things developers/carriers don’t like (i.e. getting rid of their bloatware).
  • 29. Pros and Cons to Root Pros • Download more apps and use existing apps to fullest potential • Flash custom ROMs • Access locked hardware/software features • Tune performance • No more bloatware • Wi-Fi/Bluetooth Tethering • Use apps designed for other phones/carriers • Install apps to an SD card Cons • If done incorrectly, can possibly brick phone • Voids any warranties you have (even if you reverse the root) • Less stable/more bugs
  • 30. General Security Vulnerabilities • Flaws in Android OS itself • Flaws in phone software/firmware • Conventional browser based virus • Vulnerabilities within downloaded apps • Unconventional attacks (injecting code into accelerometers i.e.)
  • 31. Specific Vulnerabilities • Backdoor.AndroidOS.Obad.a does not have an interface and works in background mode, making it difficult to analyze, but that was only part of the challenge, according to Unuchek. The application exploits an error in the DEX2JAR software – generally used by researchers to convert APK files into the Java Archive (JAR) format) – that disrupts the conversion of Dalvik bytecode into Java bytecode and makes it difficult to run a statistical analysis of the Trojan. • Obad.a also targets an error in Android’s processing of the AndroidManifest.xml file, which exists in every Android application to describe the application’s structure, define its launch parameters and more. Although Obad.a modifies AndroidManifest.xml so that it doesn’t comply with Google standards, the vulnerability enables it to still be processed correctly, complicating any attempt to run dynamic analysis on the application.
  • 32. Next Time • We will use a Metasploit (with a specific module) to attack an android device. • The “android device” will be a virtual android machine running on an emulator • We may also write a virus and Python and deploy it to a device.