From b7d8666a794fe90a9df54d37e9e7533179207515 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 16 Jun 2014 06:59:03 +0200 Subject: [PATCH] Do not import version number Fixes #1721 --- CHANGELOG.md | 1 + src/biz/bokhorst/xprivacy/ActivityShare.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c2e38153..58f92fd43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Changelog * Fixed applying template restricting dangerous functions ([issue](/../../issues/1728)) * Applying template with on demand restricting will enabled on demand restricting setting ([issue](/../../issues/1727)) * Fixed *inet*, *media* and *sdcard* always on demand restricting ([issue](/../../issues/1722)) +* Do not import version number ([issue](/../../issues/1721)) [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java index 084369e62..b12d9c386 100644 --- a/src/biz/bokhorst/xprivacy/ActivityShare.java +++ b/src/biz/bokhorst/xprivacy/ActivityShare.java @@ -1050,6 +1050,15 @@ public void startElement(String uri, String localName, String qName, Attributes String name = attributes.getValue("Name"); String value = attributes.getValue("Value"); + // Failsafe + if (name == null) + return; + + // Do not import version number + if (name.equals(PrivacyManager.cSettingVersion)) + return; + + // Decode legacy type if (name.startsWith("Account.") || name.startsWith("Application.") || name.startsWith("Contact.") || name.startsWith("Template.") || name.startsWith("Whitelist.")) { name = name.replace("Whitelist.", "");