I did this whole experiment according to r0ysue's article.
My environment:
Android Studio 4.1.3 Build #AI-201.8743.12.41.7199119, built on March 11, 2021 Runtime version: 1.8.0_242-release-1644-b01 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 1237M Cores: 8 Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
The phone:
Nexus 6P
Android 7.1.1
3.10.73-nethunter-angler-1.1
I modified some of his code and I didn't write scripts for demo2.
It's a good exercise. I hope this repo can help you. Good luck. ;)