hm. good question! I also dislike that my Andoer (fuxin) camera turns off when I unplug it either from a charger or from my computer. I'm not really sure how to change that behavior, but I suppose we can use
unpack_bootimg.bat script and go into
boot-root/initrd folder and peruse the
default.prop and
.rc text files there. Also after unsquashing the 2-system.img, go into
squashfs-root/
res/cfg and peruse the
.cfg files. However, there is a possibility that usb behavior is 'hard-coded' in the kernel and/or in binary system files.
Well, I know that we can get system logs by using "
busybox dmesg" or "
adb logcat" to show us things happening in the camera. Disconnect usb from camera and have the camera powered on. Get adb.exe for Windows and get busybox binary for running on the camera itself, connect your camera by usb, open command-prompt (cmd.exe), change to the folder that has busybox binary, and run these commands (copy/paste) for dmesg log messages:
Code:
adb root
adb remount
adb push busybox-armv7l.bin /dev/busybox
adb shell /dev/busybox dmesg | more > dmesg.txt
start dmesg.txt
Look at the last lines, about 10 lines in that dmesg text file.
Now UNplug your camera from usb, and run some of those commands (copy/paste) again but change the output file name:
Code:
adb root
adb remount
adb shell /dev/busybox dmesg | more > dmesg2.txt
start dmesg2.txt
Again look at the last lines, about 10 lines in that second dmesg text file.
Next, using adb again, go back to command-prompt and run these commands (copy/paste) for adb logcat log messages. We want adb logcat be running while we connect and disconnect the camera to usb:
Code:
adb root
adb remount
adb logcat -v long > logcat-linux.txt
Connect camera to usb, wait 10 seconds, and UNplug the camera from usb, and press CTRL C keys, and run the next command:
Code:
more logcat-linux.txt > logcat-windows.txt
start logcat-windows.txt
Look at the last lines, about 20 lines in that logcat text file.
here is scripts-pack from goprawn forums.
https://drive.google.com/file/d/0B4tyaJWIqCb_RTAzVlRBVUpETk0/view?usp=sharing
here is busybox binary for the camera (Linux 32-bit ARM-7/ARM-el devices)
https://www.dropbox.com/s/yl7v4shrz1rl8j5/busybox-armv7l.bin.zip?dl=0
here is ADB (adb.exe) installer, answer ' Y ' (yes) to everything.
https://www.dropbox.com/s/4cfpfh6qqg2azum/ADB_Installer_15_Second_v1.4.3.zip?dl=0