Here we will learn how to create simple malware for the Android platform. We will create simple malware that copies all text messages from a user's SMS app and stores them on the SD card as a .csv
file.
Make sure you have followed all the steps for creating an Android application from the first chapter.
Once the application is created successfully, you can follow these steps:
Open Android Studio and create a new project called
SMSCopy
:We will use API15: Android 4.0.3 as our target platform. You may choose one that is to your liking.
Select Blank Activity and click on Finish. Your project workspace should now look like this:
Navigate to, and open the
MainActivity.java
file underapp/java/com.your_package_name/MainActivity
in the left-hand window.Add the following code just before the last closing brace (at the end of the file):
public ArrayList<String> smsBuffer = new ArrayList<String>(); String...