Java coding
Construct a Code which is able to use Android Device Sensors, in order to detect malware on the device and is able to let the owner of the device know if the device is being attacked before having been attacked
Do this in Android Studio and has to be done using Java coding