Access control in Android

You have learned many ways to protect data. You can now expand your security efforts by controlling access to the device and the app.

Course description

Access control is one of the most basic security mechanisms you can implement on a device or in the app itself. Good access control reduces the initial risk of attack or accident. In this course, you will learn about authentication and authorization. You will utilize Android’s strongest authentication mechanisms, including two-factor, biometric and one-time password logins. You will also learn about the different authorization types and implement the most common of these in your app. You will then learn to manage risks associated with IDOR and uncontrolled sessions.



Video — 00:11:34

Authentication, Part 2

Video — 00:11:03

We continue our discussion of Android authentication types and best practices.

Activity: Implementing a password checker

Video — 00:14:53

In this activity, we implement a password checker in an app.

Activity: Implementing a password checker, Part 2

Video — 00:15:03

We continue with our password checker activity.

Google sign-in

Video — 00:05:50

In this lesson, we learn about Google sign-in and how to integrate it into your app.

Activity: Signing in with Google and Facebook

Video — 00:07:48

In this activity, we implement Google and Facebook sign-in into our app.

Keys, tokens and secrets

Video — 00:06:55

In this lesson, we learn more about saving secrets in our app.


Video — 00:09:30

In this lesson, we learn about biometrics and how to implement biometric authentication in our app.

Activity: Implementing biometrics

Video — 00:12:13

In this activity, we implement fingerprint scanning to authenticate to our app.

Two-factor authentication

Video — 00:12:05

In this lesson, we learn about two-factor authentication, one-time passcodes and Google Authenticator.


Video — 00:11:48

In this lesson, we learn about authorization, access control and Android permissions.

Authorization, Part 2

Video — 00:05:40

Continuing our lesson on authorization, we examine Android dangerous permissions and how to grant them at runtime.

Authorization, Part 3

Video — 00:05:40

We conclude our lesson on authorization by seeing examples of granting Android permissions in both XML and Kotlin.

Activity: Role-based access control

Video — 00:14:39

In this activity, we implement role-based access control in our app.

Activity: Implementing runtime permissions

Video — 00:06:35

In this activity, we grant dangerous permissions during runtime in our app.


Video — 00:08:52

In this lesson, we learn how to grant authorization using OAuth.

Insecure direct object reference

Video — 00:05:37

In this lesson, we learn about the risks of IDOR.

Session management

Video — 00:11:42

In this lesson, we learn how to use Shared Preferences to manage user sessions between application restarts.

Session management, Part 2

Video — 00:04:10

In this lesson, we learn how to manage network client/server sessions.

Activity: Implementing session management

Video — 00:11:21

In this activity, we manage user sessions in our app.

Meet the author

Chrys Thorsen is a technology and education consultant with 25 years of experience. Her work has taken her around the U.S. and overseas, including as a contractor for the CDC using technology to help fight HIV/AIDS in Africa.

During her career, she has acquired 40 IT certifications, authored over 25 textbooks on a wide range of IT subjects, including secure iOS and Android coding, and created an equal number of IT-related video courses. When not working, Chrys enjoys reading scientific articles and experimenting with Internet-of-Things devices. She currently lives in Virginia with her sister, her cat and her dog which, as she describes it, “have the worst sibling rivalry imaginable.”

Unlock 7 days of free training

  • 1,400+ hands-on courses and labs
  • Certification practice exams
  • Skill assessments

Associated NICE Work Roles

All Infosec training maps directly to the NICE Workforce Framework for Cybersecurity to guide you from beginner to expert across 52 Work Roles.

  • All-Source Analyst
  • Mission Assessment Specialist
  • Exploitation Analyst

You're in good company


We use Infosec Skills to provide continuous training to our technicians and to prepare them for various certifications. Infosec Skills allows us to create personalized training programs that focus on each of our technicians’ particular roles and see their progress as they take courses. We also, recommend it to clients to make their IT support teams better.

Caleb Yankus


This has been utilized to bridge the skills gap across our cyber team and to aid them as they prepare for their various certifications. It also has provided a nice learning foundation for our various cyber team members to utilize as we continue to find ways for cross-utilization with operations while minimizing the downtime needed to ensure everyone’s knowledge is the same.

Daniel Simpson


We use Infosec Skills to provide base level knowledge for employees. We also use the services to provide in depth learning for employees as they encounter new technologies. If an employee is is assigned to a new project, we can rely on Infosec Skills to provide a rapid concentrated learning environment. This rapid concentrated learning positions our employees for success.

Infosec Skills Teams client

Plans & pricing

  • Infosec Skills Personal

    $299 / year

    • 190+ role-guided learning paths (e.g., Ethical Hacking, Threat Hunting)
    • 100s of hands-on labs in cloud-hosted cyber ranges
    • Custom certification practice exams (e.g., CISSP, Security+)
    • Skill assessments
    • Infosec peer community support
  • Infosec Skills Teams

    $799 per license / year

    • Team administration and reporting
    • Dedicated client success manager
    • Single sign-on (SSO)
      Easily authenticate and manage your learners by connecting to any identity provider that supports the SAML 2.0 standard.
    • Integrations via API
      Retrieve training performance and engagement metrics and integrate learner data into your existing LMS or HRS.
    • 190+ role-guided learning paths and assessments (e.g., Incident Response)
    • 100s of hands-on labs in cloud-hosted cyber ranges
    • Create and assign custom learning paths
    • Custom certification practice exams (e.g., CISSP, CISA)
    • Optional upgrade: Guarantee team certification with live boot camps

Award-winning training that you can trust

Comprehensive Cybersecurity Training - Infosec Skills
Cybersecurity Education and Training Gold Award - Infosec IQ
Top Rated Award - Infosec Skills
Technical Skills Development - Small Business, Mid-Market
Top 20 Online Learning Library