commit | 3bf1b81380155db7791ddfe97e77a1c1f6d90e43 | [log] [tgz] |
---|---|---|
author | Fabien Sanglard <sanglardf@google.com> | Thu Jun 08 01:00:30 2023 +0000 |
committer | Fabien Sanglard <sanglardf@google.com> | Fri Jun 09 17:25:07 2023 +0000 |
tree | b45a2f2d1e4fee05441a0ee74d847927ecb7417b | |
parent | e3d55f106cb13c9a7cda477997699c0f2ac28a77 [diff] |
Fix logfile path if not absolute If 'logfile' parameter is not absolute, no log file is written because an app default cwd is '/'. When we can, we fix it by using directory /data/data/packageName. Manual testing: adb root adb shell stop adb shell setprop dalvik.vm.extra-opts "-verbose:jdwp,startup -XjdwpOptions:logfile=fab.log,logflags=0xfff,directlog=y" adb shell start Test: Manual Bug: 286291596 Change-Id: I48c3b5513168e4a2c17013c0e1ccd0a4ea1ea734