[Android] JNI TIP, udev


Android - JNI - LoadLibrary() 함수를 사용하여서

Error 나는 부분을 Debug 로 나타내도록 하자.


  /** A helper for loading native libraries stored in "libs/armeabi*". */
    public static boolean loadLibrary(String nLibName)
    {
        try
        {
            System.loadLibrary(nLibName);
            DebugLog.LOGI("Native library lib" + nLibName + ".so loaded");
            return true;
        }
        catch (UnsatisfiedLinkError ulee)
        {
            DebugLog.LOGE("The library lib" + nLibName +
                            ".so could not be loaded");
        }
        catch (SecurityException se)
        {
            DebugLog.LOGE("The library lib" + nLibName +
                            ".so was not allowed to be loaded");
        }
        
        return false;
    }


LINUX(ubuntu) 에서 Android os 를 인식하기위한 방법

LINUX: Adb does not recognize the Nexus One phone correctly, configuration must be changed. To do this follow the steps below


sudo vi /etc/udev/rules.d/90-android.rules


and add the following lines:


SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="18d1", MODE="0666", GROUP="plugdev" SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb" SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"


Then call:


sudo restart udev

90-android.rules



Android 에서 bin 파일 설치하는 방법

터미널에서
sh ./파일명

이라고 하면된다.

댓글

Designed by JB FACTORY