Camera monitor

Post your questions and help other users.

Moderator: Martin

Post Reply
Lucy
Posts: 225
Joined: 10 Aug 2019 11:24

Camera monitor

Post by Lucy » 30 Oct 2019 18:18

Hey guys... ive been trying desperately to make a flow that logs every action of my camera including remote access, clicks, paths files were saved, etc but all i can log with my level of dumbness is app task events on start and end😢

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Camera monitor

Post by Desmanto » 03 Nov 2019 17:10

You can use trigger UI Event and try to check the Recent events to see the click. The click should can be logged using this trigger. Path of files can be check using Trigger file observer. For Remote access, I don't understand what it is for, since most camera app is user interactive. Unless it has some special API to let it be remote controlled or using bluetooth remote shutter.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Lucy
Posts: 225
Joined: 10 Aug 2019 11:24

Re: Camera monitor

Post by Lucy » 04 Nov 2019 02:17

Ah.. ok, yeah see my issue is that some of our devices have remote admin softwares and connect to each other for several purposes. These remote connections generally are through telnet, ftp and normal network based but we also use remote bluetooth access too. Neither of our software's are good enough for us to log connections, actions and paths accessed, etc in a format that we can decipher so i was hoping to achieve it from a flow.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Camera monitor

Post by Desmanto » 05 Nov 2019 18:01

It is very difficult, as you have so many ways to remote the phone. But if you can just remove all other option and shrink it to single http request, then you can make sure everything is logged. This require you to create a semi protocol (your own rule) for each http request. Use Automagic HTTP request trigger and put an asterisk path for the custom path you want.

Let say the IP is 192.168.1.100. You can use path /automagic/*, port 8080. Then from different devices, use http post to this IP at http://192.168.1.100:8080/accessfile or http:/192.168.1.100:8080/camerashutter or anything. Each post can be accompanied by data in encoded URL form for the command parameter. For /accessfile, you use param_filepath for the filepath you wanna access. For /camerashutter, you can add additional timer, location of the image or anything. You can also filter the remote host ip to make it as a kind of firewall to block unauthorized access.

Each semi protocol have its own parameter to be defined. This defintely takes some time to build it. But after you have the format structure, you can simply log each http request to get the log of all access. Since everything must go thru the same Automagic webserver
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply