Advertisement
metalx1000

Android Device as DASH CAM or Security Camera

Mar 27th, 2022 (edited)
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. #dash cam DVR Software
  2. https://github.com/maxneaga/open_dash_cam_android
  3. #apk
  4. https://play.google.com/store/apps/details?id=com.opendashcam
  5. #Or I made a copy here:
  6. https://archive.org/download/open_dash_cam/open_dash_cam_android/apk/open_dash_cam.apk
  7.  
  8. #set Android device to power on whenever it is connected to power
  9. fastboot oem off-mode-charge 0
  10.  
  11. #set DASH cam software to launch whenever the device is powered on or unlocked
  12. #this doesn't seem to work any more
  13. https://f-droid.org/en/packages/news.androidtv.launchonboot/
  14.  
  15. #user termux-boot
  16. https://f-droid.org/en/packages/com.termux/
  17. https://f-droid.org/en/packages/com.termux.boot/
  18.  
  19. cat > $HOME/.termux/boot/startup.sh                                                                    
  20. #!/data/data/com.termux/files/usr/bin/sh
  21. termux-wake-lock
  22. am start --user 0 -n com.opendashcam/.MainActivity
  23.  
  24. #You may want to enable termux cron jobs to make sure that the camera doesn't stop
  25. pkg install cronie termux-services
  26. #restart termux
  27. sv-enable crond
  28. crontab -e
  29. */5 * * * * $HOME/.termux/boot/startup.sh >/dev/null 2>&1
  30.  
  31. #to easily access recorded videos use amaze create a shortcut
  32. https://f-droid.org/en/packages/com.amaze.filemanager/
  33.  
  34. #Recordings are saved to:
  35. /sdcard/Android/data/com.opendashcam/files/Movies/
  36.  
  37. #use something like Syncthing to backup videos to a remote server
  38. https://search.f-droid.org/?q=syncthing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement