简体   繁体   中英

How close can we programmatically get to the hardware of an Android device?

the camera of my mobile (running Eclair-update1) keeps being non-responsive in 90% of the time, so I assumed a hardware defect at first. After whiping the cache and the phone user data sereval times it worked again. At least for a while. Now it stopped working again.

Browsing the net I found quite some users who experience the same problem and had a hard time after whiping their user data off the device.

So my question would be: how close can I get to the hardware with the SDK? I'd like to write an app to influence hardware states (eg re-initializing the camera, remounting the SDcard aso.), but I'd prefer doing it - if possible - with the SDK instead of NDK.

Thanks in advance!
S.

这不是sdk与ndk的问题,而是底层操作系统级别的权限,通常会阻止普通(售后市场与制造商/运营商安装)android应用程序执行原始硬件访问。

  • Download Android SDK to your computer
  • Boot device to recovery
  • Connect USB cable to PC
  • Run adb shell then
  • umount /data
  • umount /system
  • e2fsck -fv /dev/block/stl9
  • e2fsck -fv /dev/block/stl10

Taken from forum.xda-developers.com/showthread.php?t=1396366

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM