What gives battery status in File Explorer, Could export data?


  1. Posts : 8
    Windows 7 32bit
       #1

    What gives battery status in File Explorer, Could export data?


    I live in a residential neighborhood and have my own office space. This phone is hooked to my Windows 7 PC (See note 1). I used a standard USB-C to USB-A connection.


    Tracking the charge statistics of all my linked phones is something I enjoy well. The following screenshot was taken in File explorer:
    What  gives battery status in File Explorer, Could export data?-in7x3.png


    Focus of the question: identifying what this program or path is. Task manager says it is "Device properties".
    Is a RAM dump useful in this case? (See also remark 2).
    1: I kind of run a power-tower for mobile phones.
    2: I have a memory dump of this task generated from the Task Manager
      My Computer


  2. Posts : 6,086
    Windows 7 Ultimate x64
       #2

    The battery information you're seeing in Windows is probably via something called ACPI

    If you want statistics and other things, and are willing to learn, then dive into the Android Development Bridge (ADB). It's really a very simple script (program?) via the command line. So, if you want batter information data you'd enter adb shell dumpsys battery

    You might be able to batch script this for each phone. And once it's batch scripted the possibilities are endless. YOu could fire off a batch file via Voicebot, via a timer or computer action using the program Shutter Lite or a more complex macro maker program of which several exist. If you know web code like JavaScript, HTML and CSS you might be able to do something with Electron.

    Learn all about the ADB and the battery information command from the following links:



    How to Install ADB on Windows, macOS, and Linux

    https://developer.android.com/studio/command-line/adb

    Battery Status: Android. if you want to know the battery status… | by Budhdi Sharma | Android Champ | Medium






    - - - Updated - - -

    Oh, in reference to that primary color threaded social media post on a broken Powershell script, check out the ADB capability of Batterystats and the Battery Historian script. But you'll have to run it in Docker. Once you learn Docker there's 's no going back. Pretty cool stuff.


    https://developer.android.com/topic/...tery-historian

    Install Docker Desktop on Windows | Docker Documentation

    - - - Updated - - -

    If you have a Raspberry Pi.

    The Best Way To Install Docker on a Raspberry Pi and other IoT devices. - JFrog Connect

    Getting started with Docker on your Raspberry Pi . Docker Pirates ARMed with explosive stuff


    Tip: Running Zenmap to find your Raspberry Pi IP address is unnecessary. You can look in your router's connected devices or use a program called Angry IP Scanner on your local network to find the Raspberry Pi. There are even Apps that will scan your local network right from your phone. An App I use on my phone is simply called Network Scanner. I'm able to see if perhaps a rouge device is on the network or on networks I connect to. Another App is Network Analyzer.
      My Computer


  3. Posts : 8
    Windows 7 32bit
    Thread Starter
       #3

    First and foremost, I appreciate your prompt response. I'll need some time to fully grasp everything indicated above; for now, I'll go into literature done over ACPI Windows script around the period when Windows 7 was popular.


    I investigated the ADB program. At How to Install ADB on Windows, macOS, and Linux, I am stuck at step 7 of the instructions for windows. I do not receive any kind of pop up in my phone.

    I did not install it: However, I have a strong hunch that you misinterpreted my desire to interact with and debug the phones. I need to get the information (or ACPI table?) from the PC directly.


    Unfortunately, I do not own a Rasberry Pi.




    ===

    Gomesz775
    Last edited by Gomesz775; 14 May 2022 at 02:58. Reason: update
      My Computer


  4. Posts : 6,086
    Windows 7 Ultimate x64
       #4

    Try this.
      My Computer


  5. Posts : 8
    Windows 7 32bit
    Thread Starter
       #5

    F22 Simpilot said:
    Try this.
    We already do that at step 5 of setting up the phone.

    What I don't get is this:

    What  gives battery status in File Explorer, Could export data?-image-002-2-300x180.png

    btw I didn't do ./adb devices. I typed adb devices.

    Something about a key is missing (perhaps the adb server needs that?)
    Last edited by Gomesz775; 15 May 2022 at 10:28. Reason: w > We
      My Computer


  6. Posts : 6,086
    Windows 7 Ultimate x64
       #6

    In step 5 it says, " file transfer (MTP)” mode."

    Is it in this mode?


    You won't be able to send any commands to the phone via ADB and CMD prompt without FIRST making sure you have a link (a USB or WiFi link). Once that is settled you can move on to issuing commands via ADB.

    And it looks like you may need a driver. I posted this link in my first post and that's where I learned you may need a driver.

    https://developer.android.com/studio/run/oem-usb

    Samsung Android USB Driver | Samsung Developers

    Make sure you read all.

    - - - Updated - - -

    The key (RSA key) is missing because the link is bad to even give you that option for acceptance.
      My Computer


  7. Posts : 8
    Windows 7 32bit
    Thread Starter
       #7

    F22 Simpilot said:
    In step 5 it says, " file transfer (MTP)” mode."

    Is it in this mode?
    Yes, I have set ti to MTP.

    F22 Simpilot said:
    You won't be able to send any commands to the phone via ADB and CMD prompt without FIRST making sure you have a link (a USB or WiFi link). Once that is settled you can move on to issuing commands via ADB.
    Well, the file explorer already shows the phone.
    F22 Simpilot said:
    And it looks like you may need a driver. I posted this link in my first post and that's where I learned you may need a driver.

    https://developer.android.com/studio/run/oem-usb

    Samsung Android USB Driver | Samsung Developers



    Make sure you read all.
    I followed the first link, it didn't mention a driver. I also visited this link but I was following the steps there (section before the steps didn't mention a driver. I will check these.
    - - - Updated - - -
    I installed the Samsung OEM driver and it worked

    What  gives battery status in File Explorer, Could export data?-screenshot_2022-05-15-21-05-00.jpg.




    F22 Simpilot said:
    The key (RSA key) is missing because the link is bad to even give you that option for acceptance.
    So, the computer is not connected to the phone correctly, right. But the USB connection is all well.
    Last edited by Gomesz775; 15 May 2022 at 13:28.
      My Computer


  8. Posts : 6,086
    Windows 7 Ultimate x64
       #8

    So, the computer is not connected to the phone correctly, right. But the USB connection is all well.
    It's all layer 7 of the OSI model. OSI model - Wikipedia


    Now, if you want those battery stats you were looking for, that article I linked to mentions the use of Docker for the Batterystats tool and the Battery Historian script. No, you don't need a Raspberry Pi for Docker. Docker will run in Windows 10/11 as well as other OSs. Not in Windows 7 that I know of, but there might be an old version or some hack/workaround. Probably not requirement for compatibility sake on down the road though...

    If you need help with Docker go here. And/or watch some YouTube instructional videos on Docker.


    I also visited this link but I was following the steps there (section before the steps didn't mention a driver. I will check these.
    In that link, first paragraph | Run apps on a hardware device scroll down the page a bit where it says, Install OEM USB drivers
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:57.
Find Us