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
2 files changed