Tuez d'autres applications à Kotlin

// add this permission to AndroidManifest.xml
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
  
//and use this code to kill the process
  
val am = getSystemService(Activity.ACTIVITY_SERVICE) as ActivityManager
am.killBackgroundProcesses(packageName)
Hjmcoder