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.
Activity: Working with external code
From the course: Writing Secure Code for Android by Infosec
Activity: Working with external code
- [Instructor] Understanding Risks of Embedding Third Party Code. Activity, working with external code. In Android Studio, open an existing project and browse for your activity files. Go to Course 7, Working with External Code. Select that little app and open it. This app is going to be very simple. We're going to show just how easy it is to call Java from Kotlin. Now, you'll recall in all of our discussions that Java has a lot more vulnerabilities than Kotlin. And because it's so easy to call a Java class, we might inadvertently introduce vulnerabilities in our app that we wouldn't have if we wrote in pure Kotlin. If you look here, you can see I have a Java class, its little icon is just a C, for class, and then I have a MainActivity written in Kotlin. Let's look at the Customer Java class first. We'll double-click it, and all it is is Customer. So, it has a name, which is a String, and then it has this customer method which takes a String s and you put in the name = s;. And then you…
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)
-