mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
@@ -63,7 +63,7 @@ if args.use_emulator:
|
|||||||
if args.current_app:
|
if args.current_app:
|
||||||
system_dump_command = base_adb_command + ["shell", "dumpsys", "activity", "activities"]
|
system_dump_command = base_adb_command + ["shell", "dumpsys", "activity", "activities"]
|
||||||
system_dump = subprocess.Popen(system_dump_command, stdout=PIPE, stderr=PIPE).communicate()[0]
|
system_dump = subprocess.Popen(system_dump_command, stdout=PIPE, stderr=PIPE).communicate()[0]
|
||||||
running_package_name = re.search(".*TaskRecord.*A[= ]([^ ^}]*)", system_dump).group(1)
|
running_package_name = re.search(".*TaskRecord.*A[= ]([^ ^}]*)", str(system_dump)).group(1)
|
||||||
package.append(running_package_name)
|
package.append(running_package_name)
|
||||||
|
|
||||||
if len(package) == 0:
|
if len(package) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user