ndk-build를 사용하여 안드로이드 프로젝트에 OpenCV 라이브러리를 추가하는 과정 및 OpenCV를 사용하여 카메라 영상을 그레이스케일로 변경하는 방법을 설명합니다.



테스트 환경은 다음과 같습니다.


  • Windows 10

  • OpenCV 4.0.1

  • Android Studio 3.3.1

  • Android 9.0 (API 28)

  • NDK 19




다음 순서로 설명합니다.




1. 안드로이드 프로젝트 생성


2. 프로젝트에 OpenCV 라이브러리 추가


3. ndk-build 사용한 NDK + OpenCV 카메라 예제


4. 참고





최종 수정 -  2019. 2. 7: Android Studio 3.3.1로 업데이트 되면서 변경된 부분들 반영


업데이트 날짜 기준으로 최신 버전으로 안드로이드 스튜디오 및 패키지를 업데이트 후 확인했습니다.




1. 안드로이드 프로젝트 생성

Android Studio 3.3.1 이상이라면 1-1번, Android Studio 3.2 버전 이하이면 1-3번을 진행하세요.


1-1. Empty Activity를 선택합니다.





1-2. Name 항목에 프로젝트 이름을 적고, Minimum API level은 API 21을 선택합니다.





1-3. 안드로이드 스튜디오에서 Include C++ Support 체크 박스를 체크하지 않고 새로운 프로젝트를 생성합니다.





1-4. Minimum SDKAPI 21로 해야 합니다.






1-5.  프로젝트에 추가할 액티비티로 Empty Activity를 선택합니다.





1-6. 하위 버전과의 호환성을 고려한다면  Backwards Compatibility (AppCompat) 체크박스를 체크한 상태로 둡니다.

MainActivity 액티비티에서 Activity 클래스 대신에 AppCompatActivity 클래스를 사용하게 됩니다.





2. 프로젝트에 OpenCV 라이브러리 추가


2-1. OpenCV 4.0.0에서 빠졌던 안드로이드용 패키지가 OpenCV 4.0.1에서 다시 추가되었습니다.


OpenCV를 위한 깃허브에서 opencv-4.0.1-android-sdk.zip 파일을 다운로드 합니다.

https://github.com/opencv/opencv/releases




압축을 풀어서 C:\에 복사해줍니다.



OpenCV 4.0.1에서만 필요한 작업입니다. OpenCV 4.1.0에서는 해줄 필요가 없습니다.

진행하기 전에 C:\OpenCV-android-sdk\sdk에 있는 build.gradle 파일을 C:\OpenCV-android-sdk\sdk\java에 덮어쓰기합니다.

Cannot resolve symbol 'styleable' 에러가 발생하기 때문에 필요한 작업입니다.



NDK 18부터  OpenCV 깃허브에서 배포되는 Android용 OpenCV 패키지 빌드시 사용되었던 GNUSTL(gnustl_static / gnustl_share)을 지원하지 않습니다.  

그래서 다음 포스팅을 참고하여 OpenCV 소스 코드로부터 Android 용 OpenCV를 빌드해야 합니다.


Android용 OpenCV 빌드하는 방법  

https://webnautes.tistory.com/1268




2-2. C:\OpenCV-android-sdk 위치에 빌드된 Android용 OpenCV가 있는 것으로 전제하고 진행하겠습니다.





2-3. 앞에서 진행한 프로젝트 생성이 완료되기를 기다리기 위해 안드로이드 스튜디오 왼쪽 아래에 Gradle build finished 메시지가 보이고 MainActivity.java 파일이 화면에 보일때 까지 대기합니다.





OpenCV 라이브러리 모듈을 프로젝트로 가져오기 위해 메뉴에서 File > New > Import Module를 선택합니다.



Source directory 입력란 옆에 있는 버튼을 클릭합니다.




OpenCV-android-sdk 디렉토리 하위에 있는 sdk 디렉토리를 선택하고 OK 버튼을 클릭합니다.




Module name opencv로 수정하고 Finish 버튼을 클릭합니다.





2-4. 안드로이드 스튜디오의 왼쪽 아래에 Gradle build finished라는 메시지가 보일 때까지 기다립니다.




app 모듈에서 opencv 라이브러리 모듈을 사용하도록 설정해줘야 합니다.

메뉴에서 File > Project structure를 선택한 후,  대화상자 왼쪽에 보이는 리스트에서 app를 선택합니다.




Dependencies 탭을 선택하고 오른쪽 상단에 위치한 초록색 +를 클릭합니다.




메뉴에서 Module dependency를 선택합니다.




추가했던 opencv 모듈이 보입니다. OK버튼을 클릭합니다.





이제 opencv 모듈 app 모듈에서 사용할 수 있게 설정되었습니다. 이제 OK 버튼을 클릭하여 Project Structure 창을 닫습니다.





2-5. 안드로이드 스튜디오의 왼쪽 아래에 Gradle build finished라는 메시지가 보일 때 까지 기다립니다.




문제없이 opencv 모듈이 추가되었다면 다음처럼 보입니다.





3. ndk-build 사용한 NDK + OpenCV 카메라 예제

3-1.  안드로이드 스튜디오에서 ndk-build를 사용하여 C/C++ 코드를 컴파일 및 디버그하기 위해서는 다음 2가지가 필요합니다.


  • The Android Native Development Kit (NDK)

안드로이드에서 JAVA 코드와 C/C++ 코드를 같이 사용할 수 있게 해줍니다.


  • LLDB

C/C++ 코드를 디버그하기 위해 사용되는 디버거입니다. 설치해주면 예전에 잡히지 않았던 에러나

           예외상황이 검출되며 에러 발생한 C/C++ 코드 위치를 알려줍니다.



안드로이드 스튜디오 메뉴에서 Tools > SDK Manager를 선택합니다.

메뉴에 SDK Manager 항목이 보이지 않는다면 툴바에서 아래 아이콘을 클릭합니다.




SDK Tools 탭에서  NDK, LLDB를 선택하고 Apply 버튼을 클릭하면 다운로드 및 설치가 진행됩니다.





3-2. AppCompatActivity 클래스를 사용한 액티비티에서 타이틀바를 없애기 위해서 styles.xml 파일에 다음 코드(노란색)를 추가합니다.



<resources>

   <!-- Base application theme. -->
   <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
       <!-- Customize your theme here. -->
       <item name="colorPrimary">@color/colorPrimary</item>
       <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
       <item name="colorAccent">@color/colorAccent</item>
       <!-- No Title Bar-->
       <item name="windowActionBar">false</item>
       <item name="windowNoTitle">true</item>
   </style>

</resources>



그리고 상태바도 없애기 위해 MainActivity의 onCreate() 메소드에 다음 코드(노란색)가 필요합니다.

나중에 언급하는 자바 코드에 포함되어 있으므로 여기에선 추가할 필요 없습니다.


       getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
               WindowManager.LayoutParams.FLAG_FULLSCREEN);
       getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
               WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

      setContentView(R.layout.activity_main);


참고 http://commin.tistory.com/63




3-3. 레이아웃 파일 activity_main.xml 을 다음 코드로 대체합니다.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   tools:context=".MainActivity" >
   
   <org.opencv.android.JavaCameraView
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:id="@+id/activity_surface_view" />

</LinearLayout>





3-4. 매니페스트 파일 AndroidManifest.xml 에  다음 코드(노란색)를 추가합니다.



<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

   package="com.tistory.webnautes.useopencvwithndk_build">



   <uses-permission android:name="android.permission.CAMERA"/>
   <uses-feature android:name="android.hardware.camera" android:required="false"/>
   <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
   <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
   <uses-feature android:name="android.hardware.camera.front.autofocus"  android:required="false"/>

   <supports-screens android:resizeable="true"
       android:smallScreens="true"
       android:normalScreens="true"
       android:largeScreens="true"
       android:anyDensity="true" />


   <application
       android:allowBackup="true"
       android:icon="@mipmap/ic_launcher"
       android:label="@string/app_name"
       android:roundIcon="@mipmap/ic_launcher_round"
       android:supportsRtl="true"
       android:theme="@style/AppTheme">
       <activity android:name=".MainActivity"
           android:screenOrientation="landscape"
           android:configChanges="keyboardHidden|orientation">

       <intent-filter>
               <action android:name="android.intent.action.MAIN" />

               <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
       </activity>
   </application>

</manifest>



앱에서 안드로이드 디바이스의 카메라에 접근하기 위해서는 필요한  퍼미션 입니다.


<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
<uses-feature android:name="android.hardware.camera.front.autofocus"  android:required="false"/>



android:screenOrientation 속성을 landscape로 해주어야 OpenCV JAVA API를 사용하여  전체화면에 카메라 영상을 보여 줄 수 있습니다.


android:screenOrientation="landscape"




3-5. JNI(Java Native Interface)를 사용하여 C/C++ 함수를 호출하는 JAVA 코드를 작성합니다.

자바코드 파일 MainActivity.java를 다음 코드로 대체합니다.



package com.tistory.webnautes.useopencvwithndk_build;

import android.annotation.TargetApi;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.SurfaceView;
import android.view.WindowManager;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase;
import org.opencv.android.LoaderCallbackInterface;
import org.opencv.android.OpenCVLoader;
import org.opencv.core.Mat;


public class MainActivity extends AppCompatActivity
       implements CameraBridgeViewBase.CvCameraViewListener2 {

   private static final String TAG = "opencv";
   private CameraBridgeViewBase mOpenCvCameraView;
   private Mat matInput;
   private Mat matResult;

   public native void ConvertRGBtoGray(long matAddrInput, long matAddrResult);


   static {
       System.loadLibrary("opencv_java4");
       System.loadLibrary("native-lib");
   }



   private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
       @Override
       public void onManagerConnected(int status) {
           switch (status) {
               case LoaderCallbackInterface.SUCCESS:
               {
                   mOpenCvCameraView.enableView();
               } break;
               default:
               {
                   super.onManagerConnected(status);
               } break;
           }
       }
   };


   @Override
   protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);

       getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
               WindowManager.LayoutParams.FLAG_FULLSCREEN);
       getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
               WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
       setContentView(R.layout.activity_main);


       if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
           //퍼미션 상태 확인
           if (!hasPermissions(PERMISSIONS)) {

               //퍼미션 허가 안되어있다면 사용자에게 요청
               requestPermissions(PERMISSIONS, PERMISSIONS_REQUEST_CODE);
           }
       }

       mOpenCvCameraView = (CameraBridgeViewBase)findViewById(R.id.activity_surface_view);
       mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);
       mOpenCvCameraView.setCvCameraViewListener(this);
       mOpenCvCameraView.setCameraIndex(0); // front-camera(1),  back-camera(0)
       mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
   }

   @Override
   public void onPause()
   {
       super.onPause();
       if (mOpenCvCameraView != null)
           mOpenCvCameraView.disableView();
   }

   @Override
   public void onResume()
   {
       super.onResume();

       if (!OpenCVLoader.initDebug()) {
           Log.d(TAG, "onResume :: Internal OpenCV library not found.");
           OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_2_0, this, mLoaderCallback);
       } else {
           Log.d(TAG, "onResum :: OpenCV library found inside package. Using it!");
           mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
       }
   }

   public void onDestroy() {
       super.onDestroy();

       if (mOpenCvCameraView != null)
           mOpenCvCameraView.disableView();
   }

   @Override
   public void onCameraViewStarted(int width, int height) {

   }

   @Override
   public void onCameraViewStopped() {

   }

   @Override
   public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {

       matInput = inputFrame.rgba();

       //if ( matResult != null ) matResult.release(); fix 2018. 8. 18

       if ( matResult == null )

           matResult = new Mat(matInput.rows(), matInput.cols(), matInput.type());

       ConvertRGBtoGray(matInput.getNativeObjAddr(), matResult.getNativeObjAddr());

       return matResult;
   }



   //여기서부턴 퍼미션 관련 메소드
   static final int PERMISSIONS_REQUEST_CODE = 1000;
   String[] PERMISSIONS  = {"android.permission.CAMERA"};


   private boolean hasPermissions(String[] permissions) {
       int result;

       //스트링 배열에 있는 퍼미션들의 허가 상태 여부 확인
       for (String perms : permissions){

           result = ContextCompat.checkSelfPermission(this, perms);

           if (result == PackageManager.PERMISSION_DENIED){
               //허가 안된 퍼미션 발견
               return false;
           }
       }

       //모든 퍼미션이 허가되었음
       return true;
   }



   @Override
   public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                          @NonNull int[] grantResults) {
       super.onRequestPermissionsResult(requestCode, permissions, grantResults);

       switch(requestCode){

           case PERMISSIONS_REQUEST_CODE:
               if (grantResults.length > 0) {
                   boolean cameraPermissionAccepted = grantResults[0]
                           == PackageManager.PERMISSION_GRANTED;

                   if (!cameraPermissionAccepted)
                       showDialogForPermission("앱을 실행하려면 퍼미션을 허가하셔야합니다.");
               }
               break;
       }
   }


   @TargetApi(Build.VERSION_CODES.M)
   private void showDialogForPermission(String msg) {

       AlertDialog.Builder builder = new AlertDialog.Builder( MainActivity.this);
       builder.setTitle("알림");
       builder.setMessage(msg);
       builder.setCancelable(false);
       builder.setPositiveButton("예", new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface dialog, int id){
               requestPermissions(PERMISSIONS, PERMISSIONS_REQUEST_CODE);
           }
       });
       builder.setNegativeButton("아니오", new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface arg0, int arg1) {
               finish();
           }
       });
       builder.create().show();
   }


}




3-6.  javah를 사용하여 자바 코드에서 선언한 네이티브 메소드에 대응하는 C/C++ 함수가 선언되어 있는 헤더 파일을 jni 디렉토리에 자동으로 생성합니다.



우선 javah를 실행하기 편하게 안드로이드 스튜디오의 외부 도구로 등록합니다. 메뉴에서 File > Settings를 선택합니다.

Settings 창의 왼쪽 목록에서 Tools > External Tools를 선택하고 오른쪽에서 초록색 +를 클릭합니다.




아래처럼  각 항목의 내용을 채웁니다.


◼ Name

javah


◼ Description

Android Tool - javah


◼ Advanced Options를 클릭하고 다음 두 항목을 체크

Make console active on message in stdout

Make console active on message in stderr


◼ Program  

Android Studio에서 번들로 제공되는 OpenJDK를 사용하면 program에 다음처럼 입력합니다.

C:\Program Files\Android\Android Studio\jre\bin\javah.exe


Oracle의 JDK를 사용한다면 program에 다음처럼 입력합니다. 사용하는 jdk 버전에 따라 디렉토리 위치가 다를 수 있습니다.

C:\Program Files\Java\jdk1.8.0_131\bin\javah.exe


◼ Arguments :

-v -jni -d $ModuleFileDir$/src/main/jni $FileClass$


◼ Working directory:

$SourcepathEntry$



다 입력하고나서 OK를 클릭하여 설정을 저장합니다.




External Tools에 javah가 추가되었습니다.




MainActivity를 선택하고 마우스 우클릭 후 보이는 메뉴에서 External Tools >  javah를 선택합니다.




문제 없이 진행되면 다음과 같은 메시지가  출력됩니다.


"C:\Program Files\Android\Android Studio\jre\bin\javah.exe" -v -jni -d C:\Users\webnautes\AndroidStudioProjects\UseOpenCVwithndkbuild\app/src/main/jni com.tistory.webnautes.useopencvwithndk_build.MainActivity


[Creating file RegularFileObject[C:\Users\webnautes\AndroidStudioProjects\UseOpenCVwithndkbuild\app\src\main\jni\com_tistory_webnautes_useopencvwithndk_build_MainActivity.h]]


Process finished with exit code 0



코드에 한글이 포함된 경우 다음과 같은 메시지들이 같이 출력되는데 결과를 얻는데 상관없으므로 무시하셔도 됩니다.


Error: unmappable character for encoding MS949



app / src / main 디렉토리 아래에 jni 디렉토리가 생성되고 그 안에 패키지 이름이 포함된 헤더 파일(여기엔선 com_tistory_webnautes_useopencvwithndk_build_MainActivity.h)이 생성됩니다.

현재 android 뷰이기 때문에 app / cpp디렉토리에 위치한 것처럼 보입니다.


자바 코드의 패키지 이름(com.tistory.webnautes.useopencvwithndk_build)과  액티비티 이름(MainActivity)의 조합으로 헤더 파일의 이름이 결정됩니다.





3-7. 자바에서 선언한 네이티브 메소드를 위한 C/C++ 구현을 cpp / main.cpp 파일에 작성합니다.

main.cpp는 공유 라이브러리 파일로 컴파일 되어 자바 코드에서 로드되어 사용됩니다.


cpp 디렉토리를 선택한 후, 마우스 우클릭하여 메뉴에서 New > File을 선택합니다.


새로 생성할 파일 이름으로  main.cpp를 적고 OK를 클릭합니다.




cpp에 main.cpp 파일이 생성됩니다.


main.cpp  파일에 다음 헤더파일 2개를 추가합니다.

두 번째 헤더파일은 앞에서 생성한 헤더파일 이름을 적어줍니다.

#include <jni.h>
#include "com_tistory_webnautes_useopencvwithndk_build_MainActivity.h"



두번째 헤더파일을 열어보면  JAVA에서 선언한 네이티브 메소드에 대응하는 JNI 함수가 다음 처럼  정의되어 있습니다.


/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_tistory_webnautes_useopencvwithndk_build_MainActivity */

#ifndef _Included_com_tistory_webnautes_useopencvwithndk_build_MainActivity
#define _Included_com_tistory_webnautes_useopencvwithndk_build_MainActivity
#ifdef __cplusplus
extern "C" {
#endif
#undef com_tistory_webnautes_useopencvwithndk_build_MainActivity_PERMISSIONS_REQUEST_CODE
#define com_tistory_webnautes_useopencvwithndk_build_MainActivity_PERMISSIONS_REQUEST_CODE 1000L
/*
* Class:     com_tistory_webnautes_useopencvwithndk_build_MainActivity
* Method:    ConvertRGBtoGray
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_tistory_webnautes_useopencvwithndk_1build_MainActivity_ConvertRGBtoGray
 (JNIEnv *, jobject, jlong, jlong);

#ifdef __cplusplus
}
#endif
#endif


생성된 JNI 함수를 main.cpp 파일에 복사해오고(파란색 부분) 추가로 필요한 코드를( 노란 부분) 추가합니다.

#include <jni.h>
#include "com_tistory_webnautes_useopencvwithndk_build_MainActivity.h"

#include <opencv2/opencv.hpp>


using namespace cv;



extern "C"{

   JNIEXPORT void JNICALL
  Java_com_tistory_webnautes_useopencvwithndk_1build_MainActivity_ConvertRGBtoGray(
           JNIEnv *env,
           jobject  instance,
           jlong matAddrInput,
           jlong matAddrResult){


       Mat &matInput = *(Mat *)matAddrInput;
       Mat &matResult = *(Mat *)matAddrResult;

       cvtColor(matInput, matResult, COLOR_RGBA2GRAY);


     }
}




3-8.  ndk-build를 사용하여 공유 라이브러리(.so)를 빌드하기 위해서는 Android.mk 파일과 Application.mk 파일을 작성해줘야 합니다.

 


cpp 디렉토리를 선택한 후, 마우스 우클릭하여 메뉴에서 New > File을 선택합니다.

새로 생성할 파일 이름으로 Android.mk를 적고 OK를 클릭합니다.




Text가 선택된 상태에서 OK를 클릭합니다.



cpp 에 Android.mk 파일이 생성됩니다.




Android.mk 파일에 다음 내용을 추가합니다.


공유 라이브러리를 생성할 경우에는 사용되는 외부 라이브러리 정보와 직접 작성한 C/C++ 소스코드 관련 정보를 입력합니다.


machine-woong님이 지적해주셨습니다. 진행하실때  OPENCVROOT 위치가 실제 Android용 OpenCV가 설치된 경로인지 확인을 하세요.


현재는 프로젝트 폴더 내의 opencv 폴더에 존재합니다.


LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

#opencv library
OPENCVROOT:= C:\Users\webnautes\AndroidStudioProjects\UseOpenCVwithndkbuild\opencv

OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on
OPENCV_LIB_TYPE:=SHARED
include ${OPENCVROOT}\native\jni\OpenCV.mk


LOCAL_MODULE    := native-lib
LOCAL_SRC_FILES := main.cpp
LOCAL_LDLIBS += -llog

include $(BUILD_SHARED_LIBRARY)




Android.mk를 생성한 방법대로 cpp에  Application.mk 파일도 TEXT 파일로 생성합니다.



Application.mk 파일에 다음 내용을 추가합니다. 컴파일시 사용되는 여러 변수들을 정의합니다.


APP_OPTIM := debug
APP_ABI := arm64-v8a armeabi-v7a x86 x86_64

APP_PLATFORM := android-28

APP_STL := c++_static
APP_CPPFLAGS := -frtti -fexceptions
NDK_TOOLCHAIN_VERSION := clang

APP_BUILD_SCRIPT := Android.mk




3-9. app 모듈의 build.gradle ndk-build를 사용하여 C/C++ 빌드가 이루어지기 위해 필요한 내용을 추가해줍니다. (노란색 줄)



android {

   compileSdkVersion 28

   defaultConfig {

       applicationId "com.tistory.webnautes.useopencvwithndk_build"

       minSdkVersion 15

       targetSdkVersion 28

       versionCode 1

       versionName "1.0"

       testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

   }

   buildTypes {

       release {

           minifyEnabled false

           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

       }

   }

   externalNativeBuild {

       ndkBuild {

           path 'src/main/jni/Android.mk'

       }

   }


}




3-10. Sync Now를 클릭하여 Gradle build를 시작합니다.




문제 없으면 왼쪽 아래에 Gradle build finished라는 메시지가 보입니다.





빌드 후, 안드로이드 폰에 설치하여 실행시켜 보면  안드로이드폰의 방향에 따라 카메라 영상도 같이 회전합니다.  







4. 참고

Android Studio에서 안드로이드 프로젝트 생성시  Include C++ Support 체크박스를 설정한 경우 생성되는 소스 코드


https://developer.android.com/ndk/guides/index.html


https://developer.android.com/studio/projects/add-native-code.html


https://github.com/googlesamples/android-ndk


http://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html


http://docs.opencv.org/2.4/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html







해봤어요 www.facebook.com/webnautes/
진행하다가 문제 생기면 사소한 것이라도 댓글로 남겨주시면 감사하겠습니다.

  1. 이전 댓글 더보기
  2. 맹주호 2018.07.26 18:12 신고

    혹시 화면에서 convertRGBtoGray 하지 않고 카메라 컬러영상 띄우기는 방법을 알수있을까요??

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 18:16 신고

      다음처럼 수정해보세요.

      @Override
         public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {

             matInput = inputFrame.rgba();

             return matInput;
         }

  3. 맹주호 2018.07.26 18:18 신고

    정말감사합니다... 이렇게 쉽게 해결되는 거였네요..

  4. 맹주호 2018.07.26 18:24 신고

    다른기능들에 관해 여쭤보고 싶은데 여기다 더 여쭤봐도 되나요?
    예를들면 사진을 .bmp형식으로 저장후 grayscale하려고 합니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 18:25 신고

      네~

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 18:26 신고

      기존에 cpp코드에 넘겨서 하던것을 자바코드로만으로 하려는 건가요?

    • 맹주호 2018.07.26 18:28 신고

      네 그렇습니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 19:06 신고

      다음처럼 수정하면 됩니다.

      @Override
      public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {


      matInput = inputFrame.rgba();

      if ( matResult != null ) matResult.release();
      matResult = new Mat(matInput.rows(), matInput.cols(), CvType.CV_8UC1);

      Imgproc.cvtColor(matInput, matResult, Imgproc.COLOR_RGB2GRAY);

      return matResult;
      }

    • 맹주호 2018.07.26 19:20 신고

      저는 카메라 어플을 켰을때 grayscale하지 않고 컬러 상태로 켜져있다 버튼을 눌러 사진을 찍으면 그사진이 컬러상태로 저장소에 .bmp형태로 저장한후 grayscale을 하는 방법을 찾고있습니다..

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 19:25 신고

      버튼 클릭하면 이미지 저장하는 구현은 다음 포스팅 3번에 있습니다.
      http://webnautes.tistory.com/1087

      BMP파일로 저장한다는 의미가 파일인지 메모리상의 객체에 저장하는 건가요?



    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 19:26 신고

      그레이스케일로 변환하는 코드를 버튼 클릭시 처리하도록하면 될듯합니다.

    • 맹주호 2018.07.26 21:02 신고

      저장을 하면 어느경로로 저장되는건가요???

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.07.26 21:20 신고

      앞에서 언급한 포스팅과 아래 블로그글을 참고하세요.

      http://indienote.tistory.com/31

  5. 초심자 2018.08.06 14:28 신고

    안녕하세요 정말 잘 보고 있습니다.
    저는 mac 유저인데 jdk폴더에(cd /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/bin)
    javah파일이 없습니다.. 이런경우는 어떻게 하면 좋을까요
    조언 주시면 감사하겠습니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.06 15:03 신고

      터미널에서 javah입력하면 실행안되나요?

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.06 15:04 신고

      없다면 Mac용 jdk를 다시 설치해보세요..

    • 초심자 2018.08.07 21:04 신고

      혹시 jdk버전이 어떻게 되나요?.
      제가 10.0버전인데, 찾아보니 8버전 이상부터
      javah를 없앴다는군요.. 지우고 이전버전을 깔아야 할까요..? 답변 주시면 정말 감사하겠습니다

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.07 21:19 신고

      다음 버전입니다.

      http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  6. 초심자 2018.08.09 15:42 신고

    정말 잘 보고 있습니다.
    회색 이외의 필터를 입히려면 어떻게 해야하나요? 검색을 해도 마땅한게 안나와서리...
    혹 키워드라도 조언을 주실수 있는지요.
    답변주시면 정말 감사하겟습니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.09 16:25 신고

      main.cpp 파일을 보시면 입력 영상 matInput을 그레이스케일로 변환시키기위해 cvtColor 함수를 사용하고 있습니다.


      다른 효과를 주려면 OpenCV C++ API를 공부하셔야 합니다...

      https://docs.opencv.org/3.4.2/d7/da8/tutorial_table_of_content_imgproc.html

  7. Favicon of https://dualwield.tistory.com BlogIcon dualwield 2018.08.16 15:53 신고

    안녕하세요. 안드로이드 NDK + OpenCV 3.4.1 버전을 설치하고 예제를 만들었는데요.
    다른 동작은 다 잘되는데 추가로 다른 코드를 넣지않은 글 그대로 따라해서
    그레이 스케일 화면으로 나오는 상태에서 갤럭시s9 이나 기타 다른 폰에서 실행했을 때

    카메라가 시간이 지날 수록 조금씩 끊기는 현상이 발생해서 이렇게 문의드립니다.
    혹시 3.4.1 이나 3.4.2 에서 프로젝트를 실행하면 그런 현상은 없는지 다른 분들께서 경험 좀 공유해 주시기 바랍니다.
    혹시 그렇다면 어떻게 해서 해결을 해야하는지도 여쭤봅니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.16 16:43 신고

      처음 실행시켰을 때에 비해서 좀 시간이 지나니 약간 딜레이가 생기네요..

      한 프레임 읽어올때마다 결과 영상 저장하는 Mat을 해제하고 다시 생성하는 것을 반복해서 생기는 문제가 아닌가 싶습니다.

      //if ( matResult != null ) matResult.release();
      if (matResult == null)
      matResult = new Mat(matInput.rows(), matInput.cols(), matInput.type());


      적용해보고 결과를 알려주세요..

  8. Favicon of https://dualwield.tistory.com BlogIcon dualwield 2018.08.17 09:42 신고

    opencv 3.4.1 을 3.4.2로 바꾸다가 뭔가 꼬여버려서 시간이 좀 걸렸네요.
    버전을 쉽게 바꾸는 방법이 있을가요?

    알려주신 방법대로

    한 프레임 읽어올때마다 결과 영상 저장하는 Mat을 해제하고 다시 생성하는 것을 반복해서 생기는 문제가 아닌가 싶습니다.

    matResult.release() 를 없애니 한결 부드러워졌습니다. 아무래도 release 하면서 gc 가 호출되어서 뚝뚝 끊기는 느낌이 시간이 지날 수록 심했거든요.

    혹시나해서 추가적으로 openCV 튜토리얼 첫번째 기본 카메라 샘플을 돌려봤는데도 약간의 랙 같은 것이 느껴집니다. 중간중간 프레임 저하가 발생하는 문제가 있네요.
    openCV 자체에 버그가 있는 것인지 아직 잘 모르겠습니다.

    다음과 같은 글이 있는데 제가 3.4.1에서 확인해보면 여전히 갤럭시s9이나 기타 장치에서 약간의 버벅임이 있습니다.

    https://github.com/opencv/opencv/issues/11229

    관련글이나 해결이 되면 다시 글 남기겠습니다.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.17 10:47 신고

      피드백 감사합니다. 찾아보니 3.4.2 사용자인데 NDK를 사용하지 않아도 느려진다는 말이 있네요. 안드로이드폰에따라 발생하는 버그일 가능성이 있어보입니다.

      해상도를 바꾸면 개선된다는 글도 보입니다.

  9. ho 2018.08.22 15:51 신고

    javah 추가하면 헤더가 안만들어지는데 어떻게 해야할까요? jni 폴더는 만들어지는데
    "C:\Program Files\Android\Android Studio\jre\bin\javah.exe" -v -jni -d C:\Users\user\AndroidStudioProjects\UseOpenCVwithndkbuild\app/src/main/jni com.tistory.webnautes.useopencvwithndk_build.MainActivity
    Error: Could not find class file for 'com.tistory.webnautes.useopencvwithndk_build.MainActivity'.

    Process finished with exit code 1

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.22 15:53 신고

      클래스 파일 이름이 틀렷다고 합니다. javah 설정을 다시 확인 해보세요

    • ho 2018.08.22 17:55 신고

      javah 설정에 있는 것을 복사해서 붙혀넣었는데 왜 안될까요 ???ㅠㅠ

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.22 18:16 신고

      javah 설정할때 적은 안드로이드 프로젝트 위치를 확인해봐야 할듯 보입니다.

    • ho 2018.08.22 19:03 신고

      C:\Users\user\AndroidStudioProjects\UseOpenCVwithndkbuild

      이렇게 되어있습니다 ㅠㅠㅠ

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.22 19:22 신고

      혹시 로그에 출력된 경로에 한글 디렉토리 이름이 있나요?

    • ho 2018.08.23 14:28 신고

      한글로 되어있는건없어요 ㅠㅠ 2주전인가 3주전에는 됬는데 갑작이 안되니까 어디가 문제인지 모르겠네요 ㅠㅠ

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.08.23 14:47 신고

      처음부터 다시 해보는게 좋을것 같습니다. 꼬인부분을 찾는게 더 어렵습니다

  10. Favicon of https://redmuffler.tistory.com BlogIcon 날지 2018.10.17 10:16 신고

    항상 잘 보고 있습니다!
    external tool에서 추가 하는 과정이 cygwin을 사용하는 과정과 동일한건지 궁금합니다.

  11. js12 2018.11.20 20:02 신고

    open-cl 3 apk있는 버전으로 깔아서 실행했는데요
    빌드 성공적으로 했는데 갤럭시 8에서 실행했을때
    package not found
    openCV manager package was not found! try to install it 이게 나오면 어떤거죠??ㅠㅠ

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.11.20 20:04 신고

      실행하는데에는 문제 없는 경고 메시지로 알고 있습니다. 혹시 실행안되나요?

    • js123 2018.11.20 20:40 신고

      yes or no 선택하게 나온다음
      no를 누르면 그냥 꺼지고
      yes를 누르면 핸드폰 playstore로 넘어갑니다. 그리고 항목을 찾을 수 없습니다. 이런식으로 뜨네요 ㅠㅠ apk버전이 있는 opencl3버전이라 따로 빌드하진 않았는데 ㅠㅠ 문제를 알 수 없어서 답답합니다 ㅠㅠ

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.11.20 20:53 신고

      컴파일 한게 아닌가보네요. OpenCV Manager는 플레이스토어에서 삭제된걸로 알고 있습니다.

  12. 안녕하세요 2018.11.22 11:41 신고

    개발자님 안녕하세요 어제 그 사람입니다.
    오늘은 쭉쭉 가고 싶었는데 이렇게 또 글을 적게 되었습니다. ㅠㅠㅠㅠㅠ

    댓글에도 몇 개 나와있어서 따라해봤는데 ㅠㅠㅠ 혹시나 시간이 지났으니 또 다르지 않을까 하는 마음에 적습니다.
    "C:\Program Files\Android\Android Studio\jre\bin\javah.exe" -v -jni -d C:\Users\newjak\AndroidStudioProjects\OpenCVTest04\app/src/main/jni com.example.newjak.opencvtest04.MainActivity
    Error: Could not find class file for 'com.example.newjak.opencvtest04.MainActivity'.

    Process finished with exit code 1

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.11.22 12:01 신고

      사용하신 javah 명령에는 오류가 없습니다.

      다른 문제 인듯합니다.

      보통 한글 이름이 경로에 포함되거나 패키지이름이 틀린경우에 발생하는데 올려주신 내용으로는 문제가 없어보입니다

    • 안녕하세요 2018.11.22 13:31 신고

      넵 감사합니다
      NDK로 잘 안되서 CMAKE사용법으로 다시 하고 있는 중입니다!

  13. 이이이 2018.12.05 17:31 신고

    꼼꼼히 따라해 보았는데 org/opencv/android/Camera2Renderer.java
    org/opencv/android/Camera2View.java
    org/opencv/android/CameraGLRendererBase.java
    에서 많은 에러들이 발생합니다 ...

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.05 21:28 신고

      어떤 에러가 발생하나요?

    • 이이이 2018.12.06 09:51 신고

      오류는 버전잡아서 해결했습니다 ~~ 혹시 기능 구현 코딩작업을 할려면 어디서 해야되나요 ? 따로 cmake라는 것이 필요한가요 ? main.cpp 이쪽에서 작업하는건가요

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.06 09:55 신고

      자바코드 onCameraFrame메소드에서 자바로 구현하고 cpp코드 함수에서 C++로 구현할 수 있습니다.

    • 이이이 2018.12.06 10:19 신고

      안드로이드 스튜디오 안에서 다 작업이 가능한거맞나요 ~

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.06 10:20 신고

      네 가능합니다.. 프로젝트 창에서 열수 있습니다

  14. BTJ 2018.12.09 18:34 신고

    안녕하세요! 포스팅 잘 보고 있습니다~!

    올려주신데로 진행하면, 오류는 안나는데 직접 폰에 올려보면 앱을 중지했다는 메세지와 함께 실행이 안되네요ㅠㅜ

    한가지 의심되는건, main.cpp를 클릭하면 상단에

    The file is not part of the project. Please include it in the appropriate build file (build.gradle, CMakeLists.txt or Android.mk etc) and sync the project

    라는 메세지가 나오는데 아무래도 안스에서 main.cpp를 인식하지 못하는거 같습니다..

    혹시 해결방안이 있을까요?

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.09 19:34 신고

      로그캣에서 에러를 확인해야 해결할 수 있습니다.

    • BTJ 2018.12.09 20:24 신고

      LogCat을 처음 써봐서 전부 복사해서 남김니다..
      =========================
      2018-12-09 20:19:01.734 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute done *filter
      -I fw_dozable -m owner --uid-owner 10202 -j RETURN
      COMMIT
      , res : 0
      2018-12-09 20:19:01.754 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:01.771 15404-15404/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 121 ms
      2018-12-09 20:19:01.781 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:01.798 4787-4837/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:19:01.808 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:01.858 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute *filter
      -I fw_dozable -m owner --uid-owner 99695 -j RETURN
      COMMIT
      2018-12-09 20:19:01.865 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute done *filter
      -I fw_dozable -m owner --uid-owner 99695 -j RETURN
      COMMIT
      , res : 0
      2018-12-09 20:19:01.869 4298-4298/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 113 ms
      2018-12-09 20:19:01.876 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute *filter
      -D fw_INPUT -j fw_dozable
      -D fw_OUTPUT -j fw_dozable
      COMMIT
      2018-12-09 20:19:01.883 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute done *filter
      -D fw_INPUT -j fw_dozable
      -D fw_OUTPUT -j fw_dozable
      COMMIT
      , res : 0
      2018-12-09 20:19:01.930 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:01.939 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:01.946 3289-3289/? E/BpSurfaceComposerClient: Failed to transact (-1)
      2018-12-09 20:19:01.947 3289-3289/? E/BpSurfaceComposerClient: Failed to transact (-1)
      2018-12-09 20:19:01.953 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:02.021 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: android.uid.bcmgr, scannerId: 4, reportDelayMillis=0
      2018-12-09 20:19:02.024 4787-5451/? E/SLocation: start setEventGeofenceCellDatas : 0
      2018-12-09 20:19:02.025 4787-5451/? E/SLocation: end setEventGeofenceCellDatas
      2018-12-09 20:19:02.081 4787-5451/? E/SLocation: start setEventGeofenceCellDatas : 0
      2018-12-09 20:19:02.082 4787-5451/? E/SLocation: end setEventGeofenceCellDatas
      2018-12-09 20:19:02.150 5444-5486/? E/RequestManager_FLP: [LocationManagerService] Location request ab4c9d0 network interval=0 from system
      2018-12-09 20:19:02.151 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: android.uid.bcmgr, scannerId: 4, reportDelayMillis=0
      2018-12-09 20:19:02.154 3289-3289/? E/WebContentsProviderClient: requestExtensionListIfNeeded - Did not reach the update period. So should not request to Server.
      2018-12-09 20:19:02.155 3289-3289/? E/NFC: isAndroidBeamAllowed - Begin
      2018-12-09 20:19:02.170 8838-9731/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen
      2018-12-09 20:19:02.181 13194-13194/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:19:02.182 13194-13194/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:19:02.182 13194-13194/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:19:02.209 4787-13200/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:19:02.210 4787-13200/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:19:02.365 6520-6814/? E/memtrack: Couldn't load memtrack module
      2018-12-09 20:19:02.414 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:02.529 4496-12281/? E/(FPLOG): DeviceEnableInt 1 8 10 1
      2018-12-09 20:19:02.529 4496-12281/? E/(FPLOG): 2.0.36.0 DeviceSetClock 0
      2018-12-09 20:19:02.537 7279-7279/? E/ViewRootImpl: sendUserActionEvent() returned.
      2018-12-09 20:19:02.576 4496-12281/? E/(FPLOG): DeviceWaitInt poll trigger
      2018-12-09 20:19:02.577 4496-12281/? E/(FPLOG): 2.0.36.0 DeviceSetClock 1
      2018-12-09 20:19:02.577 4496-12281/? E/(FPLOG): DeviceEnableInt 0 8 10 1
      2018-12-09 20:19:02.718 13220-13220/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:19:02.718 13220-13220/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:19:02.718 13220-13220/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:19:02.781 4436-4436/? E/audit: type=1400 audit(1544354342.778:155265): avc: denied { write } for pid=13220 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:19:02.794 4436-4436/? E/audit: type=1300 audit(1544354342.778:155265): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=7084a95f40 a2=2 a3=0 items=0 ppid=4450 pid=13220 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:19:02.794 4436-4436/? E/audit: type=1327 audit(1544354342.778:155265): proctitle="com.samsung.android.lool"
      2018-12-09 20:19:02.794 4436-4436/? E/audit: type=1400 audit(1544354342.790:155266): avc: denied { write } for pid=13220 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:19:02.795 4436-4436/? E/audit: type=1300 audit(1544354342.790:155266): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7084ad3600 a2=42 a3=1b6 items=0 ppid=4450 pid=13220 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:19:02.795 4436-4436/? E/audit: type=1327 audit(1544354342.790:155266): proctitle="com.samsung.android.lool"
      2018-12-09 20:19:03.198 13249-13249/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:19:03.199 13249-13249/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:19:03.199 13249-13249/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:19:03.316 4496-5579/? E/(FPLOG): 2.0.36.0 DeviceSetClock 0
      2018-12-09 20:19:03.360 13194-13194/? E/ACRA: Skipping ANR Detector for process: com.instagram.android:mqtt
      2018-12-09 20:19:06.295 5444-5486/? E/RequestManager_FLP: [LocationManagerService] Location remove ab4c9d0 from system
      2018-12-09 20:19:06.314 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:06.335 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:06.346 4787-5451/? E/SLocation: ScanResult List is null
      2018-12-09 20:19:06.470 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:19:07.847 5536-5721/? E/TelephonyManagerWrapper: use backup gid : null
      2018-12-09 20:19:11.271 3289-3289/? E/chromium: [ERROR:password_manager.cc(629)] CanProvisionalManagerSave No provisional save manager
      2018-12-09 20:19:13.017 4787-5366/? E/Watchdog: !@Sync 51391 [2018-12-09 20:19:13.017]
      2018-12-09 20:19:37.260 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 8ms lastUpdatedAfter : 550172 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 20:19:42.307 7078-7078/? E/SPPClientService: [[PushClientService]] reqType : 0
      2018-12-09 20:19:42.322 7078-7078/? E/SPPClientService: [[PushClientService]] F:false, D:false, E:false, T:false, S:true, R:false
      2018-12-09 20:19:43.037 4787-5366/? E/Watchdog: !@Sync 51392 [2018-12-09 20:19:43.037]
      2018-12-09 20:19:57.837 4787-4837/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:20:05.716 4787-4837/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:20:05.731 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:20:05.744 4787-4837/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:20:05.747 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute *filter
      -D fw_INPUT -j fw_standby
      -D fw_OUTPUT -j fw_standby
      COMMIT
      2018-12-09 20:20:05.787 4469-4653/? E/IptablesRestoreController: [iptables debug]iptables-restore execute done *filter
      -D fw_INPUT -j fw_standby
      -D fw_OUTPUT -j fw_standby
      COMMIT
      , res : 0
      2018-12-09 20:20:05.802 13509-13509/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:05.805 13509-13509/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:05.805 13509-13509/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:05.830 4787-13508/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:20:05.830 4787-13508/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 20:20:05.850 13524-13524/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:05.851 13524-13524/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:05.851 13524-13524/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:05.872 13532-13532/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:05.873 13532-13532/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:05.873 13532-13532/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:05.939 13554-13554/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:05.939 13554-13554/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:05.939 13554-13554/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.104 13578-13578/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.104 13578-13578/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.104 13578-13578/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.309 13617-13617/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.310 13617-13617/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.310 13617-13617/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.390 4787-5051/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=10369, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
      2018-12-09 20:20:06.496 13651-13651/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.496 13651-13651/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.497 13651-13651/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.537 13664-13664/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.540 13664-13664/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.540 13664-13664/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.570 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 0Kb duration : 3ms lastUpdatedAfter : 29310 ms mFlush_time_threasold : 2000 mCurrentSize : 235
      2018-12-09 20:20:06.602 13686-13686/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.602 13686-13686/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.602 13686-13686/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.639 13702-13702/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.640 13702-13702/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.640 13702-13702/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:06.697 4787-5051/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=10373, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
      2018-12-09 20:20:06.819 13686-13686/? E/MTPRx: configured is false
      2018-12-09 20:20:06.837 13738-13738/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:06.837 13738-13738/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:06.838 13738-13738/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:07.005 13761-13761/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:07.005 13761-13761/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:07.005 13761-13761/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:07.024 4787-4829/? E/zygote64: failed to kill 1 processes for processgroup 13220
      2018-12-09 20:20:07.099 13785-13785/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:07.100 13785-13785/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:07.100 13785-13785/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:07.146 13801-13801/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:07.150 13801-13801/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:07.150 13801-13801/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:07.158 13686-13686/? E/MTPJNIInterface: Getting CryptionKey from JAVA
      2018-12-09 20:20:07.235 13686-13686/? E/MTPJNIInterface: noti = 17
      2018-12-09 20:20:07.257 13686-13686/? E/MTPPlaObsrvr: inside setContext()
      2018-12-09 20:20:07.257 13686-13686/? E/MTPPlaObsrvr: Inside registerContentObserver
      2018-12-09 20:20:07.258 13686-13823/? E/MTPPlaObsrvr: inside createplafiles
      2018-12-09 20:20:07.267 13686-13686/? E/MtpService: onCreate.
      2018-12-09 20:20:07.269 13686-13686/? E/MtpService: < MTP > Registering BroadCast receiver :::::
      2018-12-09 20:20:07.271 13686-13686/? E/MtpService: < MTP > Registering BroadCast registerBroadCastPolicyRec :::::
      2018-12-09 20:20:07.274 13686-13686/? E/MtpService: < MTP > Registering BroadCast registerBroadCastEmergencyRec :::::
      2018-12-09 20:20:07.276 13686-13686/? E/MtpService: onStartCommand.
      2018-12-09 20:20:07.277 13686-13823/? E/MTPPlaObsrvr: playlist count is0
      2018-12-09 20:20:07.277 13686-13823/? E/MTPPlaObsrvr: inside try branch createplafiles
      2018-12-09 20:20:07.277 13686-13823/? E/MTPPlaObsrvr: inside deleteing plas createplafiles
      2018-12-09 20:20:07.278 13686-13827/? E/MtpService: handleMessage. msg= { when=-2ms what=0 arg1=1 obj=Intent { cmp=com.samsung.android.MtpApplication/.MtpService } target=com.samsung.android.MtpApplication.MtpService$ServiceHandler }
      2018-12-09 20:20:07.280 13686-13686/? E/MTPJNIInterface: < MTP > Registering BroadCast receiver :::::
      2018-12-09 20:20:07.284 13686-13686/? E/MTPJNIInterface: < MTP > Registering BroadCast receiver :::::::
      2018-12-09 20:20:07.285 13686-13686/? E/MTPJNIInterface: noti = 110
      2018-12-09 20:20:07.285 13686-13686/? E/MTPJNIInterface: noti = 102
      2018-12-09 20:20:07.286 13686-13686/? E/MTPJNIInterface: setting Media scanner status0
      2018-12-09 20:20:07.286 13686-13686/? E/MTPJNIInterface: After setting Media scanner status0
      2018-12-09 20:20:07.286 13686-13686/? E/MtpService: onStartCommand.
      2018-12-09 20:20:07.286 13686-13832/? E/libmtp: [check_media_scanner_status : 0661] -->Unable to get Object Class and clearing cls 2 [check_media_scanner_status 661]
      2018-12-09 20:20:07.287 13686-13832/? E/MTPJNIInterface: Getting media scanner status0
      2018-12-09 20:20:07.287 13686-13827/? E/MtpService: handleMessage. msg= { when=0 what=0 arg1=2 obj=Intent { cmp=com.samsung.android.MtpApplication/.MtpService } target=com.samsung.android.MtpApplication.MtpService$ServiceHandler }
      2018-12-09 20:20:07.288 13686-13832/? E/MTPJNIInterface: DeviceName is Null in System
      2018-12-09 20:20:07.289 13686-13832/? E/MTPJNIInterface: DeviceName is Galaxy S9
      2018-12-09 20:20:07.290 13686-13832/? E/libmtp: [memCpy : 0111] -->memcpy failed [memCpy 111]
      2018-12-09 20:20:07.292 13686-13832/? E/libmtp: [get_external_storage : 0524] -->object path is returned null from java [get_external_storage 524]
      2018-12-09 20:20:07.293 13686-13832/? E/MTPJNIInterface: Status for mount/Unmount :unknown
      2018-12-09 20:20:07.293 13686-13832/? E/MTPJNIInterface: SDcard is not available
      2018-12-09 20:20:07.301 13686-13832/? E/libmtp: [mtp_init_device_info : 0585] -->[mtp_init_device_info 585]Error opening file /data/misc/radio/ahrh,(fd<0) IMEI [
      000000000000000
      ]
      2018-12-09 20:20:07.308 13686-13832/? E/MTPJNIInterface: Status for mount/Unmount :unknown
      2018-12-09 20:20:07.308 13686-13832/? E/MTPJNIInterface: SDcard is not available
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) API call with NULL database connection pointer
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) misuse at line 118653 of [8201f4e1c5]
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) API call with NULL database connection pointer
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) misuse at line 118653 of [8201f4e1c5]
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) API call with NULL database connection pointer
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) misuse at line 118653 of [8201f4e1c5]
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) API call with NULL database connection pointer
      2018-12-09 20:20:07.308 13686-13832/? E/SQLiteLog: (21) misuse at line 118653 of [8201f4e1c5]
      2018-12-09 20:20:07.310 13686-13835/? E/libmtp: [mtp_init_device : 0723] -->[mtp_init_device 723] After open the MTP fd = 67 and line = 723...
      2018-12-09 20:20:07.310 13686-13835/? E/libmtp: [sua_support_present : 1316] --> [sua_support_present:1316] returning false
      2018-12-09 20:20:07.320 13686-13686/? E/MTPJNIInterface: noti = 13
      2018-12-09 20:20:07.324 13686-13836/? E/SQLiteLog: (14) cannot open file at line 36136 of [8201f4e1c5]
      2018-12-09 20:20:07.324 13686-13836/? E/SQLiteLog: (14) os_unix.c:36136: (2) open(/data/data/com.android.providers.settings/databases/settings.db) -
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) Process .MtpApplication : Pid (13686) Uid (1000) Euid (1000) Gid (1000) Egid (1000)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) osStat failed "/data/data/com.android.providers.settings/databases/settings.db" due to error (2)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) osStat failed "/data/data/com.android.providers.settings/databases" due to error (2)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) Stat of /data/data/com.android.providers.settings : st_mode(40700) st_uid(1000) st_gid(1000) st_ino(1704007)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) Stat of /data/data : st_mode(40771) st_uid(1000) st_gid(1000) st_ino(1703937)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (1) Stat of /data : st_mode(40771) st_uid(1000) st_gid(1000) st_ino(2)
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (21) API call with unopened database connection pointer
      2018-12-09 20:20:07.325 13686-13836/? E/SQLiteLog: (21) misuse at line 118653 of [8201f4e1c5]
      2018-12-09 20:20:07.325 13686-13836/? E/MTPJNIInterface: Value of device_name is Galaxy S9
      2018-12-09 20:20:07.389 12183-3891/? E/btfm: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
      Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
      java.lang.RuntimeException: ManagedChannel allocation site
      at btfn.<init>(:com.google.android.gms@14574021@14.5.74 (040408-219897028):1)
      at btfm.<init>(:com.google.android.gms@14574021@14.5.74 (040408-219897028):2)
      at btfm.<init>(:com.google.android.gms@14574021@14.5.74 (040408-219897028):1)
      at bsyk.b(:com.google.android.gms@14574021@14.5.74 (040408-219897028):14)
      at zhm.a(:com.google.android.gms@14574021@14.5.74 (040408-219897028):7)
      at zhn.a(:com.google.android.gms@14574021@14.5.74 (040408-219897028):1)
      at zeb.c(:com.google.android.gms@14574021@14.5.74 (040408-219897028):6)
      at com.google.android.gms.growth.service.GrowthTaskChimeraService.a(:com.google.android.gms@14574021@14.5.74 (040408-219897028):54)
      at ybp.run(:com.google.android.gms@14574021@14.5.74 (040408-219897028):5)
      at qtz.run(:com.google.android.gms@14574021@14.5.74 (040408-219897028):19)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
      at rab.run(Unknown Source:7)
      at java.lang.Thread.run(Thread.java:764)
      2018-12-09 20:20:07.410 13686-13840/? E/MtpMediaDBManager: count : 3132
      2018-12-09 20:20:07.446 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: com.google.uid.shared, scannerId: 5, reportDelayMillis=0
      2018-12-09 20:20:07.469 8838-9731/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen
      2018-12-09 20:20:07.470 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 20:20:07.492 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 20:20:07.901 30098-30098/? E/adbd: recv: OPEN 0000004e 00000000 000e:73 68 65 6C 6C 3A 67 65 74 70 72 6F 70 00
      2018-12-09 20:20:07.901 30098-30098/? E/adbd: service_to_fd: shell:getprop
      2018-12-09 20:20:08.034 30098-30098/? E/adbd: recv: OPEN 0000004f 00000000 000b:74 72 61 63 6B 2D 6A 64 77 70 00
      2018-12-09 20:20:08.052 30098-30098/? E/adbd: recv: OPEN 00000050 00000000 0014:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 2D 68 65 6C 70 00
      2018-12-09 20:20:08.052 30098-30098/? E/adbd: service_to_fd: shell:logcat --help
      2018-12-09 20:20:08.118 30098-30098/? E/adbd: recv: OPEN 00000051 00000000 001e:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 20 2D 76 20 65 70 6F 63 68 00
      2018-12-09 20:20:08.119 30098-30098/? E/adbd: service_to_fd: shell:logcat -v long -v epoch
      2018-12-09 20:20:08.131 13686-13840/? E/MTPJNIInterface: noti = 29
      2018-12-09 20:20:08.131 30098-30098/? E/adbd: recv: OPEN 00000052 00000000 0014:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 2D 68 65 6C 70 00
      2018-12-09 20:20:08.131 30098-30098/? E/adbd: service_to_fd: shell:logcat --help
      2018-12-09 20:20:08.169 30098-30098/? E/adbd: recv: OPEN 00000053 00000000 001e:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 20 2D 76 20 65 70 6F 63 68 00
      2018-12-09 20:20:08.169 30098-30098/? E/adbd: service_to_fd: shell:logcat -v long -v epoch
      2018-12-09 20:20:09.001 13911-13911/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:09.002 13911-13911/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:09.002 13911-13911/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:09.133 13927-13927/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:09.133 13927-13927/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:09.133 13927-13927/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:09.420 8838-9731/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen
      2018-12-09 20:20:09.420 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 5, reportDelayMillis=0
      2018-12-09 20:20:10.599 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 0Kb duration : 16ms lastUpdatedAfter : 4029 ms mFlush_time_threasold : 2000 mCurrentSize : 237
      2018-12-09 20:20:11.379 5444-5486/? E/RequestManager_FLP: [LocationManagerService] Location request badaaf1 gps interval=0 from com.nianticlabs.pokemongo
      2018-12-09 20:20:11.401 5444-5486/? E/RequestManager_FLP: [LocationManagerService] Location request ab11a62 network interval=0 from com.nianticlabs.pokemongo
      2018-12-09 20:20:11.453 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:20:11.476 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:20:11.498 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:20:11.518 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:20:11.543 5444-5486/? E/RequestManager_FLP: [FusedLocationApi] Location request d11e3c5 PRIORITY_HIGH_ACCURACY interval=0 from com.nianticlabs.pokemongo
      2018-12-09 20:20:12.950 14016-14016/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:12.950 14016-14016/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:12.950 14016-14016/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:13.049 4787-5366/? E/Watchdog: !@Sync 51393 [2018-12-09 20:20:13.049]
      2018-12-09 20:20:13.399 4285-8311/? E/wv_dash: No saved usage table. Creating new table.
      2018-12-09 20:20:13.478 4285-8311/? E/wv_dash: No saved usage table. Creating new table.
      2018-12-09 20:20:19.542 30098-30098/? E/adbd: recv: OPEN 00000054 00000000 0022:73 68 65 6C 6C 3A 6C 73 20 2F 73 79 73 74 65 6D 2F 62 69 6E 2F 73 63 72 65 65 6E 72 65 63 6F 72 64 00
      2018-12-09 20:20:19.543 30098-30098/? E/adbd: service_to_fd: shell:ls /system/bin/screenrecord
      2018-12-09 20:20:33.695 6520-22843/? E/WakeLock: GCM_HB_ALARM release without a matched acquire!
      2018-12-09 20:20:37.161 14098-14098/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:20:37.162 14098-14098/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:20:37.162 14098-14098/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1400 audit(1544354437.290:155275): avc: denied { write } for pid=14098 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1300 audit(1544354437.290:155275): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=7084a95f40 a2=2 a3=0 items=0 ppid=4450 pid=14098 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1327 audit(1544354437.290:155275): proctitle="com.samsung.android.lool"
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1400 audit(1544354437.290:155276): avc: denied { write } for pid=14098 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1300 audit(1544354437.290:155276): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7084ad3600 a2=42 a3=1b6 items=0 ppid=4450 pid=14098 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:20:37.294 4436-4436/? E/audit: type=1327 audit(1544354437.290:155276): proctitle="com.samsung.android.lool"
      2018-12-09 20:20:37.437 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 8ms lastUpdatedAfter : 26838 ms mFlush_time_threasold : 2000 mCurrentSize : 662
      2018-12-09 20:20:43.056 4787-5366/? E/Watchdog: !@Sync 51394 [2018-12-09 20:20:43.056]
      2018-12-09 20:21:13.068 4787-5366/? E/Watchdog: !@Sync 51395 [2018-12-09 20:21:13.068]
      2018-12-09 20:21:31.049 15404-15404/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 216 ms
      2018-12-09 20:21:31.194 15404-15404/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 143 ms
      2018-12-09 20:21:31.436 14152-14152/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:21:31.437 14152-14152/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:21:31.437 14152-14152/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:21:31.739 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:21:31.768 4293-4293/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:21:31.792 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:21:31.813 4293-4935/? E/Sensors: inject_scontext_data: New ssp_data_injection_fd(31)
      2018-12-09 20:21:32.101 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 20:21:32.153 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 20:21:36.557 14152-14164/? E/System: Uncaught exception thrown by finalizer
      2018-12-09 20:21:36.561 14152-14164/? E/System: java.lang.AssertionError: Failed to close dex file in finalizer.
      at dalvik.system.DexFile.finalize(DexFile.java:336)
      at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250)
      at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237)
      at java.lang.Daemons$Daemon.run(Daemons.java:103)
      at java.lang.Thread.run(Thread.java:764)
      2018-12-09 20:21:37.542 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 3ms lastUpdatedAfter : 60104 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 20:21:43.085 4787-5366/? E/Watchdog: !@Sync 51396 [2018-12-09 20:21:43.085]
      2018-12-09 20:22:00.043 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 20:22:13.098 4787-5366/? E/Watchdog: !@Sync 51397 [2018-12-09 20:22:13.098]
      2018-12-09 20:22:26.128 14241-14241/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 20:22:26.130 14241-14241/? E/libpersona: scanKnoxPersonas
      2018-12-09 20:22:26.130 14241-14241/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 20:22:26.206 4436-4436/? E/audit: type=1400 audit(1544354546.202:155277): avc: denied { write } for pid=14241 comm="oid.sm.provider" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:22:26.207 4436-4436/? E/audit: type=1300 audit(1544354546.202:155277): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=7084a95f40 a2=2 a3=0 items=0 ppid=4450 pid=14241 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:22:26.207 4436-4436/? E/audit: type=1327 audit(1544354546.202:155277): proctitle="com.samsung.android.sm.provider"
      2018-12-09 20:22:26.207 4436-4436/? E/audit: type=1400 audit(1544354546.202:155278): avc: denied { write } for pid=14241 comm="oid.sm.provider" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 20:22:26.207 4436-4436/? E/audit: type=1300 audit(1544354546.202:155278): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7084ad3600 a2=42 a3=1b6 items=0 ppid=4450 pid=14241 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 20:22:26.207 4436-4436/? E/audit: type=1327 audit(1544354546.202:155278): proctitle="com.samsung.android.sm.provider"
      2018-12-09 20:22:37.674 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 2ms lastUpdatedAfter : 60132 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 20:22:43.108 4787-5366/? E/Watchdog: !@Sync 51398 [2018-12-09 20:22:43.108]

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.09 21:07 신고

      올려주신 로그에는 에러 관련 메시지가 안보입니다.

      로그캣에서 Verbose를 Error로 변경하고
      다시 실행 보세요..
      그리고 그 옆에 있는 항목이 안드로이드 폰으로 되어있는지.. 그리고 현재 실행중인 앱이름으로 되있는지도 보세요.

    • BTJ 2018.12.09 21:30 신고

      아.. 죄송합니다 다시 올려드리겠습니다.
      확인해보니, 현재 실행중인 항목은 제 폰으로 되어있습니다
      ==========================================
      2018-12-09 21:27:08.163 30098-30098/? E/adbd: recv: OPEN 000000df 00000000 0014:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 2D 68 65 6C 70 00
      2018-12-09 21:27:08.163 30098-30098/? E/adbd: service_to_fd: shell:logcat --help

      --------- beginning of system
      2018-12-09 21:27:08.233 30098-30098/? E/adbd: recv: OPEN 000000e0 00000000 001e:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 20 2D 76 20 65 70 6F 63 68 00
      2018-12-09 21:27:08.233 30098-30098/? E/adbd: service_to_fd: shell:logcat -v long -v epoch
      2018-12-09 21:27:13.803 4787-4953/? E/AlarmManager: No more alarm at this time. nowELAPSED=3779656522 batch.start=3779665364 mNextWakeup=3779665364 mNextNonWakeup=3779656522 mAlarmBatches.size=75
      2018-12-09 21:27:13.803 4787-4953/? E/AlarmManager: Batch 1 size = 4 : 3779665364, Batch 2 size = 1 : 3779675626, Batch 3 size = 1 : 3779702719
      2018-12-09 21:27:13.803 4787-4953/? E/AlarmManager: No more alarm at this time. mNextWakeup will be set as zero : 3779665364
      2018-12-09 21:27:14.761 27709-27709/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:27:14.762 27709-27709/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:27:14.763 27709-27709/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:27:14.903 4787-5366/? E/Watchdog: !@Sync 51527 [2018-12-09 21:27:14.902]
      2018-12-09 21:27:15.228 27760-27760/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:27:15.229 27760-27760/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:27:15.229 27760-27760/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:27:15.573 15580-15633/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:27:44.726 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 6ms lastUpdatedAfter : 47287 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 21:27:44.915 4787-5366/? E/Watchdog: !@Sync 51528 [2018-12-09 21:27:44.915]
      2018-12-09 21:27:55.343 4787-4837/? E/BatteryStatsService: no controller energy info supplied
      2018-12-09 21:28:14.930 4787-5366/? E/Watchdog: !@Sync 51529 [2018-12-09 21:28:14.929]
      2018-12-09 21:28:22.960 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: com.google.uid.shared, scannerId: 5, reportDelayMillis=0
      2018-12-09 21:28:22.978 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:28:23.018 8838-9731/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen
      2018-12-09 21:28:23.023 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:28:24.900 8838-9731/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen
      2018-12-09 21:28:24.901 8838-9732/? E/BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 5, reportDelayMillis=0
      2018-12-09 21:28:44.207 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info1
      2018-12-09 21:28:44.217 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info2
      2018-12-09 21:28:44.237 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info3
      2018-12-09 21:28:44.242 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info4
      2018-12-09 21:28:44.247 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info5
      2018-12-09 21:28:44.252 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info6
      2018-12-09 21:28:44.257 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info7
      2018-12-09 21:28:44.262 4787-4975/? E/TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info8
      2018-12-09 21:28:44.795 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 5ms lastUpdatedAfter : 60068 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 21:28:44.947 4787-5366/? E/Watchdog: !@Sync 51530 [2018-12-09 21:28:44.946]
      2018-12-09 21:29:00.020 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:29:14.958 4787-5366/? E/Watchdog: !@Sync 51531 [2018-12-09 21:29:14.957]
      2018-12-09 21:29:25.712 30098-30098/? E/adbd: recv: OPEN 000000e1 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
      2018-12-09 21:29:25.713 30098-30098/? E/adbd: service_to_fd: shell:pm list users
      2018-12-09 21:29:26.410 27868-27868/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
      2018-12-09 21:29:26.676 27868-27868/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
      2018-12-09 21:29:26.747 30098-30098/? E/adbd: recv: OPEN 000000e2 00000000 0031:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 6F 72 67 2E 74 65 63 68 74 6F 77 6E 2E 66 69 6E 64 63 61 72 6F 70 65 6E 63 76 00
      2018-12-09 21:29:26.747 30098-30098/? E/adbd: service_to_fd: shell:dumpsys package org.techtown.findcaropencv
      2018-12-09 21:29:26.822 30098-30098/? E/adbd: recv: OPEN 000000e3 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
      2018-12-09 21:29:26.822 30098-30098/? E/adbd: service_to_fd: shell:pm list users
      2018-12-09 21:29:27.169 27887-27887/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
      2018-12-09 21:29:27.271 27887-27887/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
      2018-12-09 21:29:29.165 30098-30098/? E/adbd: recv: OPEN 000000e4 00000000 001a:73 68 65 6C 6C 3A 77 6D 20 64 69 73 6D 69 73 73 2D 6B 65 79 67 75 61 72 64 00
      2018-12-09 21:29:29.165 30098-30098/? E/adbd: service_to_fd: shell:wm dismiss-keyguard
      2018-12-09 21:29:29.177 30098-30098/? E/adbd: recv: OPEN 000000e5 00000000 0032:73 68 65 6C 6C 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 63 72 65 61 74 65 20 2D 72 20 2D 74 20 2D 53 20 39 38 31 39 32 30 33 00
      2018-12-09 21:29:29.177 30098-30098/? E/adbd: service_to_fd: shell:cmd package install-create -r -t -S 9819203
      2018-12-09 21:29:29.541 27900-27900/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
      2018-12-09 21:29:29.684 27900-27900/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
      2018-12-09 21:29:30.262 30098-30098/? E/adbd: recv: OPEN 000000e6 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 33 35 33 37 39 20 31 30 31 32 38 33 38 39 33 37 20 30 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:30.263 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 35379 1012838937 0_slice__ -
      2018-12-09 21:29:30.513 30098-30098/? E/adbd: recv: OPEN 000000e7 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 33 38 30 32 37 20 31 30 31 32 38 33 38 39 33 37 20 31 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:30.513 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 38027 1012838937 1_slice__ -
      2018-12-09 21:29:30.706 30098-30098/? E/adbd: recv: OPEN 000000e8 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 35 38 32 30 35 20 31 30 31 32 38 33 38 39 33 37 20 32 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:30.706 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 58205 1012838937 2_slice__ -
      2018-12-09 21:29:30.900 30098-30098/? E/adbd: recv: OPEN 000000e9 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 33 35 36 37 33 20 31 30 31 32 38 33 38 39 33 37 20 33 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:30.900 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 35673 1012838937 3_slice__ -
      2018-12-09 21:29:31.147 30098-30098/? E/adbd: recv: OPEN 000000ea 00000000 0040:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 31 31 33 35 33 38 20 31 30 31 32 38 33 38 39 33 37 20 34 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:31.148 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 113538 1012838937 4_slice__ -
      2018-12-09 21:29:31.371 30098-30098/? E/adbd: recv: OPEN 000000eb 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 31 35 34 34 34 20 31 30 31 32 38 33 38 39 33 37 20 35 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:31.371 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 15444 1012838937 5_slice__ -
      2018-12-09 21:29:31.566 30098-30098/? E/adbd: recv: OPEN 000000ec 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 37 36 37 32 33 20 31 30 31 32 38 33 38 39 33 37 20 36 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:31.566 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 76723 1012838937 6_slice__ -
      2018-12-09 21:29:31.818 30098-30098/? E/adbd: recv: OPEN 000000ed 00000000 0045:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 39 38 37 31 33 35 20 31 30 31 32 38 33 38 39 33 37 20 37 5F 64 65 70 65 6E 64 65 6E 63 69 65 73 20 2D 00
      2018-12-09 21:29:31.819 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 987135 1012838937 7_dependencies -
      2018-12-09 21:29:32.131 30098-30098/? E/adbd: recv: OPEN 000000ee 00000000 0048:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 34 31 38 39 36 32 20 31 30 31 32 38 33 38 39 33 37 20 38 5F 72 65 73 6F 75 72 63 65 73 2D 64 65 62 75 67 20 2D 00
      2018-12-09 21:29:32.131 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 418962 1012838937 8_resources-debug -
      2018-12-09 21:29:32.436 30098-30098/? E/adbd: recv: OPEN 000000ef 00000000 003f:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 31 36 31 32 35 20 31 30 31 32 38 33 38 39 33 37 20 39 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:32.436 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 16125 1012838937 9_slice__ -
      2018-12-09 21:29:32.689 30098-30098/? E/adbd: recv: OPEN 000000f0 00000000 0041:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 31 30 39 32 39 33 20 31 30 31 32 38 33 38 39 33 37 20 31 30 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:32.689 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 109293 1012838937 10_slice__ -
      2018-12-09 21:29:32.966 30098-30098/? E/adbd: recv: OPEN 000000f1 00000000 0040:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 32 30 37 39 34 20 31 30 31 32 38 33 38 39 33 37 20 31 31 5F 73 6C 69 63 65 5F 5F 20 2D 00
      2018-12-09 21:29:32.966 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 20794 1012838937 11_slice__ -
      2018-12-09 21:29:33.241 30098-30098/? E/adbd: recv: OPEN 000000f2 00000000 0044:65 78 65 63 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 77 72 69 74 65 20 2D 53 20 37 38 39 33 39 30 35 20 31 30 31 32 38 33 38 39 33 37 20 31 32 5F 61 70 70 2D 64 65 62 75 67 20 2D 00
      2018-12-09 21:29:33.241 30098-30098/? E/adbd: service_to_fd: exec:cmd package install-write -S 7893905 1012838937 12_app-debug -
      2018-12-09 21:29:34.241 30098-30098/? E/adbd: recv: OPEN 000000f3 00000000 002c:73 68 65 6C 6C 3A 63 6D 64 20 70 61 63 6B 61 67 65 20 69 6E 73 74 61 6C 6C 2D 63 6F 6D 6D 69 74 20 31 30 31 32 38 33 38 39 33 37 00
      2018-12-09 21:29:34.241 30098-30098/? E/adbd: service_to_fd: shell:cmd package install-commit 1012838937
      2018-12-09 21:29:34.825 27973-27973/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:34.826 27973-27973/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:34.826 27973-27973/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:34.830 27973-27973/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:34.830 27973-27973/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:35.486 27989-27989/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:35.487 27989-27989/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:35.487 27989-27989/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:35.579 28007-28007/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:35.580 28007-28007/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:35.580 28007-28007/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:44.935 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 6ms lastUpdatedAfter : 60140 ms mFlush_time_threasold : 2000 mCurrentSize : 629
      2018-12-09 21:29:44.972 4787-5366/? E/Watchdog: !@Sync 51532 [2018-12-09 21:29:44.971]
      2018-12-09 21:29:45.097 4458-318/? E/installd: Failed to delete /data/app/vmdl1012838937.tmp: No such file or directory
      2018-12-09 21:29:45.130 30098-30098/? E/adbd: recv: OPEN 000000f4 00000000 0006:73 79 6E 63 3A 00
      2018-12-09 21:29:45.131 30098-30098/? E/adbd: service_to_fd: sync:
      2018-12-09 21:29:45.167 30098-30098/? E/adbd: recv: OPEN 000000f5 00000000 0099:73 68 65 6C 6C 3A 61 6D 20 73 74 61 72 74 20 2D 6E 20 22 6F 72 67 2E 74 65 63 68 74 6F 77 6E 2E 66 69 6E 64 63 61 72 6F 70 65 6E 63 76 2F 6F 72 67 2E 74 65 63 68 74 6F 77 6E 2E 66 69 6E 64 63 61 72 6F 70 65 6E 63 76 2E 4D 61 69 6E 41 63 74 69 76 69 74 79 22 20 2D 61 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 61 63 74 69 6F 6E 2E 4D 41 49 4E 20 2D 63 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 63 61 74 65 67 6F 72 79 2E 4C 41 55 4E 43 48 45 52 00
      2018-12-09 21:29:45.167 30098-30098/? E/adbd: service_to_fd: shell:am start -n "org.techtown.findcaropencv/org.techtown.findcaropencv.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
      2018-12-09 21:29:45.250 3289-3289/? E/WebContentsProviderReceiver: onReceive - not approved application
      2018-12-09 21:29:45.284 28075-28075/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:45.284 28075-28075/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:45.285 28075-28075/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:45.340 4787-4806/? E/ActivityManager: getPackageFromAppProcesses, return null :28073
      2018-12-09 21:29:45.500 4787-4787/? E/SDAgentPackageStateReceiver: Not going to handle 'org.techtown.findcaropencv'!
      2018-12-09 21:29:45.554 28097-28097/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:45.555 28097-28097/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:45.555 28097-28097/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:45.601 30098-30098/? E/adbd: recv: OPEN 000000f6 00000000 000b:6A 64 77 70 3A 32 38 30 39 37 00
      2018-12-09 21:29:45.601 30098-30098/? E/adbd: service_to_fd: jdwp:28097
      2018-12-09 21:29:45.658 28075-28121/? E/AASAservice-TokenRule: parseToken() : TokenFile is null
      2018-12-09 21:29:45.660 4787-21051/? E/AASATokenParser: set xml file does not exist
      2018-12-09 21:29:45.670 28075-28121/? E/AASAservice-IntentThread: AASAIntentThread : myrule is null.
      2018-12-09 21:29:45.981 28128-28128/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:45.982 28128-28128/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:45.982 28128-28128/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:46.032 12183-28115/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:29:46.107 28142-28142/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:46.107 28142-28142/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:46.107 28142-28142/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:46.447 25423-25423/? E/SKBDN: axv [USICM][getSelectedText] updated, but null is returned
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1400 audit(1544358586.478:155389): avc: denied { write } for pid=28142 comm="oid.sm.provider" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1300 audit(1544358586.478:155389): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=7084abd500 a2=2 a3=0 items=0 ppid=4450 pid=28142 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1327 audit(1544358586.478:155389): proctitle="com.samsung.android.sm.provider"
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1400 audit(1544358586.478:155390): avc: denied { write } for pid=28142 comm="oid.sm.provider" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1300 audit(1544358586.478:155390): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7080f309c0 a2=42 a3=1b6 items=0 ppid=4450 pid=28142 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 21:29:46.489 4436-4436/? E/audit: type=1327 audit(1544358586.478:155390): proctitle="com.samsung.android.sm.provider"
      2018-12-09 21:29:46.656 28097-28097/org.techtown.findcaropencv E/linker: library "/system/lib64/libnative-lib.so" ("/system/lib64/libnative-lib.so") needed or dlopened by "/system/lib64/libnativeloader.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/lib/arm64:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/base.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_dependencies_apk.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_resources_apk.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_slice_0_apk.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_slice_1_apk.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_slice_2_apk.apk!/lib/arm64-v8a:/data/app/org.techtown.findcaropencv-JI7H98YvUyMxSk5INiurqg==/split_lib_slice_3_apk.apk!/lib/arm64
      2018-12-09 21:29:46.663 28097-28097/org.techtown.findcaropencv E/AndroidRuntime: FATAL EXCEPTION: main
      Process: org.techtown.findcaropencv, PID: 28097
      java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib64/libnative-lib.so" needed or dlopened by "/system/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace"
      at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
      at java.lang.System.loadLibrary(System.java:1657)
      at org.techtown.findcaropencv.MainActivity.<clinit>(MainActivity.java:37)
      at java.lang.Class.newInstance(Native Method)
      at android.app.Instrumentation.newActivity(Instrumentation.java:1180)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2829)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030)
      at android.app.ActivityThread.-wrap11(Unknown Source:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6938)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
      2018-12-09 21:29:46.693 28175-28175/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:46.694 28175-28175/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:46.694 28175-28175/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:46.974 4787-4824/? E/PhoneWindow_APM :: sendNotificationForAppPermissionMonitor callingPid = 4787, uid = 1000
      2018-12-09 21:29:46.974 4787-4824/? E/PhoneWindow_APM :: sendNotificationForAppPermissionMonitor 2
      2018-12-09 21:29:46.974 4787-4824/? E/PhoneWindow_APM :: sendNotificationForAppPermissionMonitor 21000_4787
      2018-12-09 21:29:46.974 4787-4824/? E/PhoneWindow_APM :: isCalledPackage return false
      2018-12-09 21:29:46.974 4787-4824/? E/PhoneWindow_APM :: sendNotificationForAppPermissionMonitor mIsMonitoredFeature = true
      2018-12-09 21:29:46.988 5245-710/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:29:46.988 5245-710/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:29:46.989 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:46.992 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:46.993 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:46.995 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:46.997 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:46.999 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.004 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.006 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.008 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.017 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.023 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.025 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.027 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.032 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.032 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.033 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.033 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.034 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.034 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.036 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.036 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.037 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.040 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.041 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.041 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.041 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.045 4787-4842/? E/EdmStorageProvider: Admin not in database, something went wrong
      2018-12-09 21:29:47.143 15580-15633/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:29:47.237 25423-25423/? E/SKBDN: axv [USICM][getSelectedText] updated, but null is returned
      2018-12-09 21:29:47.246 28204-28204/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:47.246 28204-28204/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:47.246 28204-28204/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:47.255 15580-15633/? E/ActivityThread: Failed to find provider info for com.samsung.android.game.gamehome.data
      2018-12-09 21:29:47.276 28217-28217/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:47.278 28217-28217/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:47.279 28217-28217/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:47.405 28217-28233/? E/DatabaseUtils: Writing exception to parcel
      java.lang.IllegalArgumentException: Unknown URI content://com.samsung.android.hmt.vrsvc.vr/app
      at com.samsung.android.hmt.vrsvc.provider.VRProvider.query(VRProvider.java:321)
      at android.content.ContentProvider.query(ContentProvider.java:1063)
      at android.content.ContentProvider.query(ContentProvider.java:1155)
      at android.content.ContentProvider$Transport.query(ContentProvider.java:244)
      at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:102)
      at android.os.Binder.execTransact(Binder.java:682)
      2018-12-09 21:29:47.406 15580-15633/? E/VRLauncherManager: android.provider.Settings$SettingNotFoundException: vr_launcher_hidden_apps
      2018-12-09 21:29:47.491 15515-15702/? E/PBSessionCacheImpl: sessionId[68237235784965699] not persisted.
      2018-12-09 21:29:47.593 28241-28241/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:47.593 28241-28241/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:47.593 28241-28241/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:47.839 4787-4829/? E/zygote64: failed to kill 1 processes for processgroup 27006
      2018-12-09 21:29:47.863 28261-28261/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:47.863 28261-28261/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:47.863 28261-28261/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:48.101 28282-28282/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:48.102 28282-28282/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:48.102 28282-28282/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:48.115 28294-28294/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:48.116 28294-28294/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:48.116 28294-28294/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:48.294 28317-28317/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:48.295 28317-28317/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:48.295 28317-28317/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:48.606 28334-28334/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:48.607 28334-28334/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:48.607 28334-28334/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:48.621 28317-28317/? E/BixbyEm-1.0.00-115: Is Bixby Service available:false
      2018-12-09 21:29:48.724 28353-28353/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:48.724 28353-28353/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:48.724 28353-28353/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:49.272 28386-28386/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:49.273 28386-28386/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:49.273 28386-28386/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:49.458 28417-28417/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:49.459 28417-28417/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:49.459 28417-28417/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:49.708 28439-28439/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:49.709 28439-28439/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:49.709 28439-28439/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:49.861 28439-28454/? E/SPPClientService: ShipBuild Binary : True
      2018-12-09 21:29:49.891 28458-28458/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:49.891 28458-28458/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:49.891 28458-28458/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:50.051 28474-28474/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:50.051 28474-28474/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:50.051 28474-28474/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:50.055 4787-5051/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=10395, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
      2018-12-09 21:29:50.254 28490-28490/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:50.254 28490-28490/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:50.255 28490-28490/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:50.910 4436-4436/? E/audit: type=1400 audit(1544358590.902:155393): avc: denied { read } for pid=28490 comm="skaf.l001mtm091" name="temp" dev="sysfs" ino=25116 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:50.911 4436-4436/? E/audit: type=1300 audit(1544358590.902:155393): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=e2fd5670 a2=20000 a3=0 items=0 ppid=4451 pid=28490 auid=4294967295 uid=10215 gid=10215 euid=10215 suid=10215 fsuid=10215 egid=10215 sgid=10215 fsgid=10215 tty=(none) ses=4294967295 comm="skaf.l001mtm091" exe="/system/bin/app_process32" subj=u:r:untrusted_app_25:s0:c512,c768 key=(null)
      2018-12-09 21:29:50.911 4436-4436/? E/audit: type=1327 audit(1544358590.902:155393): proctitle="com.skt.skaf.l001mtm091"
      2018-12-09 21:29:51.174 28537-28537/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:51.179 28537-28537/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:51.179 28537-28537/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:51.393 4436-4436/? E/audit: type=1400 audit(1544358591.386:155396): avc: denied { read } for pid=28537 comm=".wifiagent.tmap" name="temp" dev="sysfs" ino=25116 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:51.393 4436-4436/? E/audit: type=1300 audit(1544358591.386:155396): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=e2fd6ae8 a2=20000 a3=0 items=0 ppid=4451 pid=28537 auid=4294967295 uid=10215 gid=10215 euid=10215 suid=10215 fsuid=10215 egid=10215 sgid=10215 fsgid=10215 tty=(none) ses=4294967295 comm=".wifiagent.tmap" exe="/system/bin/app_process32" subj=u:r:untrusted_app_25:s0:c512,c768 key=(null)
      2018-12-09 21:29:51.393 4436-4436/? E/audit: type=1327 audit(1544358591.386:155396): proctitle="com.skt.wifiagent.tmap"
      2018-12-09 21:29:51.697 28579-28579/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:51.698 28579-28579/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:51.698 28579-28579/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:51.836 28599-28599/? E/Zygote: isWhitelistProcess - Process is Whitelisted
      2018-12-09 21:29:51.837 28599-28599/? E/libpersona: scanKnoxPersonas
      2018-12-09 21:29:51.837 28599-28599/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
      2018-12-09 21:29:51.896 4436-4436/? E/audit: type=1400 audit(1544358591.890:155397): avc: denied { write } for pid=28599 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:51.896 4436-4436/? E/audit: type=1300 audit(1544358591.890:155397): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=7084a95f40 a2=2 a3=0 items=0 ppid=4450 pid=28599 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 21:29:51.897 4436-4436/? E/audit: type=1327 audit(1544358591.890:155397): proctitle="com.samsung.android.lool"
      2018-12-09 21:29:51.897 4436-4436/? E/audit: type=1400 audit(1544358591.890:155398): avc: denied { write } for pid=28599 comm="ng.android.lool" name="com.samsung.android.lool-9bRwZ5hXrvFkDIcYSrXQBA==" dev="dm-3" ino=1049944 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G960N_8.0.0_0017 audit_filtered
      2018-12-09 21:29:51.897 4436-4436/? E/audit: type=1300 audit(1544358591.890:155398): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7084ad3600 a2=42 a3=1b6 items=0 ppid=4450 pid=28599 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="ng.android.lool" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
      2018-12-09 21:29:51.897 4436-4436/? E/audit: type=1327 audit(1544358591.890:155398): proctitle="com.samsung.android.lool"
      2018-12-09 21:29:53.955 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 0Kb duration : 17ms lastUpdatedAfter : 9020 ms mFlush_time_threasold : 2000 mCurrentSize : 232
      2018-12-09 21:29:55.194 4787-4824/? E/ViewRootImpl: sendUserActionEvent() returned.
      2018-12-09 21:29:57.956 20861-20893/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 2ms lastUpdatedAfter : 4000 ms mFlush_time_threasold : 2000 mCurrentSize : 739
      2018-12-09 21:30:00.068 4787-4953/? E/AlarmManager: No more alarm at this time. nowELAPSED=3779822787 batch.start=3779823729 mNextWakeup=3779823729 mNextNonWakeup=3779822719 mAlarmBatches.size=73
      2018-12-09 21:30:00.068 4787-4953/? E/AlarmManager: Batch 1 size = 1 : 3779823729, Batch 2 size = 1 : 3779854677, Batch 3 size = 1 : 3779903857
      2018-12-09 21:30:00.068 4787-4953/? E/AlarmManager: No more alarm at this time. mNextWakeup will be set as zero : 3779823729
      2018-12-09 21:30:00.158 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0
      2018-12-09 21:30:00.225 15580-15580/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.09 22:13 신고

      다음 같은 에러가 발생했습니다.

      2018-12-09 21:29:46.663 28097-28097/org.techtown.findcaropencv E/AndroidRuntime: FATAL EXCEPTION: main
      Process: org.techtown.findcaropencv, PID: 28097
      java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib64/libnative-lib.so" needed or dlopened by "/system/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace"



      혹시 안드로이드용 OpenCV를 컴파일해서 사용했나요?

      그랬다면 컴파일할때 사용한 arm64-v8a 아키텍처가 사용중인 폰과 다르기 때문에 발생한 에러입니다.


      안드로이드 폰의 아키텍쳐를 확인해서 안드로이드용 OpenCV 컴파일시 arm64-v8a 대신에 적어줘야 합니다.


      답변 내용찾은 출처는 아래 사이트 입니다.

      https://github.com/sensepost/objection/issues/119

    • BTJ 2018.12.09 23:19 신고

      안녕하세요~! 우선 빠른 답변 정말 감사드립니다.
      한가지 궁금한게 있는데, 말씀해주신
      "안드로이드용 OpenCV 컴파일시 arm64-v8a 대신에 적어줘야 합니다" 라는 부분이
      build.gradle(Moduel:app)의 ndk 작성부분과 Application.mk의 APP_ABI에 적어주면 되는것이 맞나요? 아직 처음이라 잘 모르겠네요..

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.10 08:53 신고

      안드로이드용 OpenCV를 컴파일해서 사용했나요? 아님 다운로드받아서 했나요?

    • BTJ 2018.12.10 10:13 신고

      opencv.org에서 Android pack을 다운받아서 하였습니다.
      기존에 영상처리는 해본적이 있어서, 그때 사용한 opencv 3.2.0 버전을 사용하였습니다

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.10 10:54 신고

      Application.mk와 build.gradle의 arm64-v8a를 사용중인 안드로이드폰의 아키텍처로 변경하면 됩니다.

    • BTJ 2018.12.10 11:41 신고

      Application.mk와 build.gradle의 arm64-v8a를 사용중인 안드로이드폰의 아키텍처로 변경했는데도 안되네요..ㅠㅜ
      혹시 이따 집에가서 Application.mk와 build.gradle의 소스 내용을 올려드릴테니 봐주실수 있으신가요..?

    • BTJ 2018.12.10 14:06 신고

      ndk-build를 사용하면 cmake에서 사용되는 native-lib.cpp 파일은 필요가 없는건가요?
      제 환경에서는 처음에 바로 생성되길래 아직 그대로 두고 있는데.. 왠지 이거때문에 그런거 같기두 하네요..

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.10 14:28 신고

      프로젝트 생성시 c++ 파일 추가 체크하면 생성되는 파일 같습니다.

      ndk-build에서는 새로 디렉토리를 생성해서 cpp파일을 추가합니다.

      프로젝트를 다시 생성해 볼 필요가 있는 듯합니다

    • BTJ 2018.12.13 11:04 신고

      다시 생성하니 되었습니다!
      정말 감사합니다!

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.13 11:24 신고

      축하드립니다.~

  15. min 2018.12.12 21:26 신고

    안녕하세요. opencv와 지문 스캐너를 사용하여 비교하는 어플을 개발 중인 안드로이드 경험이 없는 왕왕왕초보 자바 개발자입니다..
    블로그 포스팅 내용보고 opencv는 붙였는데 기존에 됬던 지문 스캔기능에서 오류가 나는데 도와주실 수 있을까요....

    에러 내용 입니다..


    2018-12-12 21:26:10.644 17727-17727/com.example.fpdemo E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.fpdemo, PID: 17727
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/lib/arm64, /data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libfpalgo.so"
    at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
    at java.lang.System.loadLibrary(System.java:1657)
    at com.fpreader.fpcore.FPMatch.<clinit>(FPMatch.java:19)
    at com.fpreader.fpcore.FPMatch.getInstance(FPMatch.java:8)
    at com.fpreader.fpdevice.BluetoothReader.InitMatch(BluetoothReader.java:1168)
    at com.example.fpdemo.BluetoothReaderTestActivity.onStart(BluetoothReaderTestActivity.java:167)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1340)
    at android.app.Activity.performStart(Activity.java:7200)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2918)
    at android.app.ActivityThread.startActivityNow(ActivityThread.java:2732)
    at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:136)
    at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:348)
    at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:769)
    at android.widget.TabHost.setCurrentTab(TabHost.java:423)
    at android.widget.TabHost.addTab(TabHost.java:233)
    at com.example.fpdemo.MainPageActivity.onCreate(MainPageActivity.java:34)
    at android.app.Activity.performCreate(Activity.java:7183)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2908)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030)
    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6938)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2018.12.13 11:26 신고

      libfpalgo.so 라이브러리 파일을 못찾는것 같습니다. OpenCV를 붙이기전에 사용하던 건가요?

      java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/lib/arm64, /data/app/com.example.fpdemo-u7R4JqNTKPaCKPOkeC9K7w==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libfpalgo.so"

  16. min 2018.12.13 17:15 신고

    답변 감사합니다.. opencv 붙이기 전에는 잘됬던 프로젝트입니다..
    지문 스캐너 프로젝트는 32bit so파일을 이용합니다..
    opencv는 64bit라서 안되는 것 같습니다..ㅠ 방법이 없을까요?

  17. min 2018.12.13 19:57 신고

    C:\Users\Min\Desktop\android\FingerPrint\app\build\intermediates\transforms\stripDebugSymbol\debug\0\lib\arm64-v8a 이경로에 so 파일들을 복사하니 이제는 이런 오류가 나네요..ㅠ 어떻게 해결 방법이 없을까요..

    2018-12-13 19:55:25.640 24493-24493/com.example.fpdemo E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.fpdemo, PID: 24493
    java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.example.fpdemo-VmJ4BOqntLBh5cklRmYhhA==/lib/arm64/libfpalgo.so" is 32-bit instead of 64-bit
    at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
    at java.lang.System.loadLibrary(System.java:1657)
    at com.fpreader.fpcore.FPMatch.<clinit>(FPMatch.java:19)
    at com.fpreader.fpcore.FPMatch.getInstance(FPMatch.java:8)
    at com.fpreader.fpdevice.BluetoothReader.InitMatch(BluetoothReader.java:1168)
    at com.example.fpdemo.BluetoothReaderTestActivity.onStart(BluetoothReaderTestActivity.java:167)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1340)
    at android.app.Activity.performStart(Activity.java:7200)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2918)
    at android.app.ActivityThread.startActivityNow(ActivityThread.java:2732)
    at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:136)
    at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:348)
    at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:769)
    at android.widget.TabHost.setCurrentTab(TabHost.java:423)
    at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:167)
    at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:690)
    at android.view.View.performClick(View.java:6877)
    at android.view.View$PerformClick.run(View.java:26069)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6938)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

  18. 지풍이 2019.01.09 21:06 신고

    혹시 화면에 보이는 이미지를 버튼을 이용해서 찍어서 갤러리에 저장할 수 있는 방법도 알려주실 수 있을까요???

  19. teruteru 2019.01.16 13:16 신고

    2-4번에서 모듈이 보이지 않는데 이유를 혹시 알 수 있을까요ㅠㅠ
    추가는 완료되었고, 혹시 안됐나 싶어서 다시 해보니까 이미 opencv 이름으로 있다고 나와요..

  20. 2019.04.11 02:47

    비밀댓글입니다

  21. ㅋㄷㅇ 2019.04.11 02:54 신고

    안녕하세요 . 포스팅 잘 보고 있습니다.
    저가 이 포스팅을 보고 안드로이드 opencv 환경을 구축 및 예제를 잘 따라 해 봤는데요.

    다름이 아니라 몇주 째 해결이 안되고 있는데요,,
    opencv 를 이용하여 손 스켈레톤을 인식하는 어플리케이션을 구현하고 자 하는데
    코드에 Net net = readNetFromCaffe(protoFile, weightsFile) 가 포함된 c++코드입니다.

    caffe 가 딥러닝과 연관이 있는걸로 알고 있기 때문에
    이 코드 또한 안드로이드에 이식 가능 한지 여쭤봅니다 ㅠ
    가능 하다면 방법까지 알려주신다면 너무 감사하겠습니다.,.

    • Favicon of https://webnautes.tistory.com BlogIcon webnautes webnautes 2019.04.11 08:30 신고

      검색해보니 caffe를 안드로이드 용으로 포팅한 것이 있긴하네요.

      https://github.com/sh1r0/caffe-android-lib

+ Recent posts