The adb shell app_process -- Djava. Class. Path=/data/local/TMP/classes. Dex/data/local/TMP com. Example. XXXX. Main operating
Similar to the open source scrcpy server implementation,
This program can be enumerated the current mobile phone installed app information so, like this:
PackageManager PackageManager=getPackageManager ();
List
But in the main function can't get a context object, saw scrcpy server USES reflection mechanism, but how to obtain the PackageManager object??