diff options
author | Michael Bestas <mkbestas@gmail.com> | 2021-06-11 19:54:23 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2021-07-23 01:04:31 +0200 |
commit | e1363720b061facf6368a017398d6af43bc9fbba (patch) | |
tree | 4a36b4ed251696c8ab6fbfa50ae9d3006a0d5973 | |
parent | ad35709dbd1caf0baad9c99be233a38fa332a677 (diff) |
Read sensitive_pn.xml from product partition
Change-Id: I8bcc078b10c7bf822b2d9ebabaade626eca5fd1b
-rw-r--r-- | lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java index 48e27da4..8d904cd5 100644 --- a/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java +++ b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java @@ -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 { |