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
Reland: asop/2618135

I am not convinced asop/2618135 was the real cause of the breakages in
Chromium for three reasons:

1/ The error seems unrelated to ART (module "aconfig.test.java)
2/ The previous CL (asop/2619790) had the same errors (See
https://ci.chromium.org/ui/p/art/builders/ci/angler-armv8-debug/3558/overview). It was
not reverted but the build still came back green.
3/ Even after the rever, I still see the same kind of errors across Chromium tree (https://ci.chromium.org/ui/p/art/builders/ci/angler-armv8-debug/3559/overview).

Change-Id: I0968c502a012a8f66f3636a7c8f7f64f107946e7
2 files changed