Check dir path before updating permissions. am: 58a6452ed4 am: 9976a26dd7 am: 655eb317ff am: 4ce131dce9 am: 8c3bcb78ac am: 5539c0ec9a

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/19734281

Change-Id: I47bf454b15973fc83fac86b5513722c7483b8901
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>