Research Article

A Graph-Based Feature Generation Approach in Android Malware Detection with Machine Learning Techniques

Table 3

A brief Smali snippet code of OnClick () callback.

Proc OnClick:

1$r0: = @this
2$r1 = com.example.leakageapp.Test1.method1 ()
3$r2 = android.telephony.SmsManager.getDefault ()
4$i0 = 0
5label1: if $i0 < 3 goto label2
6$r2.sendTextMessage(“+4402073210905,” null,” $r1, null, null);
7$i0 = $i0 + 1
8goto label1
9return
Proc method1:
10$r0: = @this;
11$r2 = new android.telephony.TelephonyManager;
12$r3 = $r2.getDeviceId ();
13$r4 = $r2.getSubScriberId ();
14$r5 = $r3 + $r4;
15return $r5;