Go to the Android Studio’s main menu. If you already have a project open, you might have to navigate to Project’ to go to the main menu. ‘File’ → ‘Close Navigate to Before Injecting Malicious Code MalTicTacToe, select it, and Ok. → Click Next. Click to complete the import. “Finish” Next, the project needs to be cleaned. Click on Project” “Build” → “Clean Check and select “Accept” “Finish”. Step 3: Install the benign TicTacToe to the emulator Click the run button to run the app in an emulator. OK to launch the app in the emulator. Open the game from the main menu (if it does not automatically start), and you can play the TicTacToe game. In the main menu, it is called TrojanGame. Select the Back button or Menu button (bottom row of buttons) to leave the TicTacToe game. Check the contact list (refer to Step 1), the previously created contact should still exist. Close the emulator and start it again; the contact list should remain unchanged. Step 4: Inject Malicious Code Open the configuration file: AndroidManifest.xml MalTicTacToe→ app→ src→ main→ AndroidManifest.xml
Go to the Android Studio’s main menu. If you already have a project open, you might have to navigate to ‘File’ → ‘Close Project’ to go to the main menu. Navigate to Before Injecting Malicious Code → MalTicTacToe, select it, and Ok. Click Next. Click “Finish” to complete the import. Next, the project needs to be cleaned. Click on “Build” → “Clean Project” Check “Accept” and select “Finish”. Step 3: Install the benign TicTacToe to the emulator Click the run button to run the app in an emulator. OK to launch the app in the emulator. Open the game from the main menu (if it does not automatically start), and you can play the TicTacToe game. In the main menu, it is called TrojanGame. Select the Back button or Menu button (bottom row of buttons) to leave the TicTacToe game. Check the contact list (refer to Step 1), the previously created contact should still exist. Close the emulator and start it again; the contact list should remain unchanged. Step 4: Inject Malicious Code Open the configuration file: AndroidManifest.xml MalTicTacToe→ app→ src→ main→ AndroidManifest.xml
mobilelab.docx