I created an App to simulate the low memory situation of being killed by the system lmdk process, you can download it from here: https://play.google.com/store/apps/details?id=io.github.twiceyuan.ramkiller
Just click on the app's unique button and wait for your app to be killed (you can see this event in Logcat with a filtered tag of "lmdk").