Merge "post-umount: add dm-verity-inactivated.umount script" into tizen
[platform/upstream/meta-generic.git] / scripts / generic-desktop-applications.post
index 3634570..5b639f4 100644 (file)
@@ -1,28 +1,6 @@
 #!/bin/sh
 echo "#################### generic-desktop-applications.post ####################"
 
-function generic_desktop_applications_buxton_unprotect() {
-  chsmack -a '*' /var/lib/buxton2 || true
-  chsmack -a '*' /var/lib/buxton2/* || true
-  chmod 0777 /var/lib/buxton2 || true
-  chmod 0666 /var/lib/buxton2/* || true
-}
-
-function generic_desktop_applications_buxton_protect() {
-  chmod 0600 /var/lib/buxton2/* || true
-  chmod 0700 /var/lib/buxton2 || true
-  chsmack -a System /var/lib/buxton2/* || true
-  chsmack -a System /var/lib/buxton2 || true
-}
-
-# temp workaround to fill each user app_info database with global db infos
-. /etc/tizen-platform.conf
-generic_desktop_applications_buxton_unprotect
-ail_initdb
-pkg_initdb
-pkgdir_tool --create --allglobalpkgs
-generic_desktop_applications_buxton_protect
-
 # depends on generic-base functions
 function generic_desktop_applications_fix_userhome() {
        user=$1
@@ -36,5 +14,6 @@ function generic_desktop_applications_fix_userhome() {
 
 # fix TC-320 for SDK
 . /etc/tizen-build.conf
-[ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer
+# Disable to run below line because this results in always failure, so it can be regarded as useless.
+#[ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer