From the course: Writing Secure Code for Android by Infosec
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Exception handling, part 1
From the course: Writing Secure Code for Android by Infosec
Exception handling, part 1
- Let's talk about exception handling. What does that mean? What is exception handling? This is when you respond to and recover from some kind of error condition in your app. If you handle the exception, it lets you gracefully deal with the problem and continue the program execution. Exceptions in your app are one of the greatest problems in any kind of mobile app. And we want to make sure that we deal with them in a graceful way. We don't want our code to be buggy. We don't want the app to be unstable. One of the problems, not only will it crash and irritate your customer, but also, it could push weird values and unexpected behavior further down the road as the app continues to function. The old mantra is bug-free code is secure code. Here is Kotlin exception handling in a nutshell. Kotlin only has unchecked exceptions. What that means is a checked exception is discovered at compile time. Java had the ability to have checked exceptions. And with that, you could say, "Don't worry. If…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
System integrity8m 26s
-
(Locked)
Application integrity11m 28s
-
(Locked)
Understanding risks of embedding third-party code8m 16s
-
(Locked)
Activity: Working with external code6m 58s
-
(Locked)
Exception handling, part 16m 52s
-
(Locked)
Exception handling, part 27m 8s
-
(Locked)
Printing and logging, part 18m 53s
-
(Locked)
Printing and logging, part 29m 39s
-
(Locked)
Activity: Handling exceptions, logging and printing, part 113m 2s
-
(Locked)
Activity: Handling exceptions, logging and printing, part 211m 46s
-
(Locked)
Testing types, part 113m 57s
-
(Locked)
Testing types, part 23m 9s
-
(Locked)
Tamper protection10m 2s
-
(Locked)
Activity: Reverse engineering an Android app8m 32s
-
(Locked)
Root detection8m 45s
-
(Locked)
Social engineering6m 39s
-
(Locked)
New vulnerability research2m 36s
-
(Locked)
Secure Android coding roundup5m 19s
-
(Locked)
-