Read sensitive_pn.xml from product partition

Change-Id: I8bcc078b10c7bf822b2d9ebabaade626eca5fd1b
This commit is contained in:
Michael Bestas
2021-06-11 19:54:23 +03:00
committed by Michael Bestas
parent ad35709dbd
commit e1363720b0

View File

@@ -53,7 +53,7 @@ import javax.xml.datatype.DatatypeConfigurationException;
public class SensitivePhoneNumbers {
private final String LOG_TAG = this.getClass().getSimpleName();
public static final String SENSIBLE_PHONENUMBERS_FILE_PATH = "etc/sensitive_pn.xml";
public static final String SENSIBLE_PHONENUMBERS_FILE_PATH = "/product/etc/sensitive_pn.xml";
private static final String ns = null;
private static SensitivePhoneNumbers sInstance = null;
@@ -75,8 +75,7 @@ public class SensitivePhoneNumbers {
return;
}
File sensiblePNFile = new File(Environment.getRootDirectory(),
SENSIBLE_PHONENUMBERS_FILE_PATH);
File sensiblePNFile = new File(SENSIBLE_PHONENUMBERS_FILE_PATH);
FileInputStream sensiblePNInputStream;
try {