+* Fri Jan 24 2014 Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org> accepted/tizen/ivi/20140110.224142@5cf7f01
+- Revert: Fixes TIVI-2064 - This workaround is no more needed (it was fixed in pkgmgr-info)
+
* Fri Jan 10 2014 Jimmy Huang <jimmy.huang@intel.com> submit/tizen_ivi_release/20140108.030030@561a602
- Fixes TIVI-2570 - Unencrypted WiFi connection fails
BuildRequires: desktop-file-utils
Requires: bluetooth-frwk-core
Requires: bluetooth-frwk-service
-Requires: privacy-manager-server
Requires: settingsd
-Requires: sqlite
Requires: wrt-installer
%description
%post
if [ -f /opt/usr/apps/.preinstallWidgets/preinstallDone ]; then
wrt-installer -i /opt/usr/apps/.preinstallWidgets/Settings.wgt;
-
-# This is a work around to grant the app privilege to access the privacy APIs
-# Since the pkg manager doesn't install the package information in the privacy database
-# and the privacy-popup is not displaying to allow user to grant access, so for now
-# just manually grant access by updating the privacy database directly
- sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PackageInfo WHERE PKG_ID='ODBQpKvkS1'";
- sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PrivacyInfo WHERE PKG_ID='ODBQpKvkS1'";
- sqlite3 /opt/dbspace/.privacy.db "INSERT INTO PackageInfo(PKG_ID, IS_SET) VALUES('ODBQpKvkS1', 1)";
- sqlite3 /opt/dbspace/.privacy.db "INSERT INTO PrivacyInfo(PKG_ID, PRIVACY_ID, IS_ENABLED) VALUES('ODBQpKvkS1', 'http://tizen.org/privacy/bluetooth', 1)";
fi
%postun
wrt-installer -un ODBQpKvkS1.Settings
-# Remove privileges from database when uninstalling
-sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PackageInfo WHERE PKG_ID='ODBQpKvkS1'";
-sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PrivacyInfo WHERE PKG_ID='ODBQpKvkS1'";
-
%files
%defattr(-,root,root,-)
/opt/usr/apps/.preinstallWidgets/Settings.wgt