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

the camera of my mobile phone (running Eclair-update1) remains immune in 90% of cases, so I first accepted a hardware defect. After breaking the cache and user phone data, they worked again. At least for a while. Now he did not work again.

While browsing the network, I found quite a few users who faced the same problem and had difficulty pulling out their user data from the device.

So my question is: how close can I get to the hardware using the SDK? I would like to write an application to affect the state of the equipment (for example, reinitializing the camera, reinstalling SDcard aso.), But I would prefer to do this - if possible - with the SDK instead of the NDK.

Thanks in advance!
S.

+1
source share
2 answers

This is not a sdk vs. question ndk, and basic permissions at the operating system level that prevent common (after-sales and anti-virus software) Android applications in general from making raw access to the hardware.

0
source
  • Download the Android SDK to your computer.
  • USB-
  • adb shell,
  • umount /data
  • umount /system
  • e2fsck -fv /dev/block/stl9
  • e2fsck -fv /dev/block/stl10

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

-1

Source: https://habr.com/ru/post/1774688/


All Articles