open misc device in write-only mode

Opening the misc block device in read-write mode runs afoul of
SELinux, which keeps the wipe code from working.  Fix.  Also change
various things to log to logcat so we can see them happening, for
future debugging.

Bug: 16715412
Change-Id: Ia14066f0a371cd605fcb544547b58a41acca70b9
This commit is contained in:
Doug Zongker
2014-08-26 09:15:08 -07:00
parent 1d5d6098f4
commit f449db2f30
2 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -20,6 +20,6 @@ LOCAL_SRC_FILES := uncrypt.c
LOCAL_MODULE := uncrypt
LOCAL_STATIC_LIBRARIES := libfs_mgr libcutils
LOCAL_STATIC_LIBRARIES := libfs_mgr liblog libcutils
include $(BUILD_EXECUTABLE)