Implementation of premium sms metrics.
Changing "/data/misc/sms/metadata" file permissions so that
SmsUsageMonitor.java can read sms_short_codes.xml file version.
Bug: 243187341
Test: atest com.android.internal.telephony.metrics.MetricsCollectorTest
atest com.android.internal.telephony.metrics.PersistAtomsStorageTest
atest CtsTelephonyTestCases
Change-Id: I2d62fcc1b8d5452350a481c60c740bd2a20e5ecd
This commit is contained in:
@@ -189,6 +189,13 @@ public class ConfigUpdateInstallReceiver extends BroadcastReceiver {
|
||||
if (!parent.exists()) {
|
||||
throw new IOException("Failed to create directory " + parent.getCanonicalPath());
|
||||
}
|
||||
|
||||
// Give executable permissions to parent folders.
|
||||
while (!(parent.equals(updateDir))) {
|
||||
parent.setExecutable(true, false);
|
||||
parent = parent.getParentFile();
|
||||
}
|
||||
|
||||
// create the temporary file
|
||||
tmp = File.createTempFile("journal", "", dir);
|
||||
// mark tmp -rw-r--r--
|
||||
|
||||
Reference in New Issue
Block a user