Mobile/android
[Android] JNI TIP, udev
퓨림노
2011. 12. 20. 15:34
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
Android 에서 bin 파일 설치하는 방법
터미널에서
sh ./파일명
이라고 하면된다.
90-android.rules