• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps See battery status of phone on computer

Should I port this Windows?

  • Yes - Of course, why not?

    Votes: 0 0.0%
  • No - Who cares about Windows?

    Votes: 1 100.0%

  • Total voters
    1
  • Poll closed .

wilkgr76

Lurker
I have made a program to display the percentage of your phone on your computer. Requirements:
  • Computer that can run bash
  • USB-to-phone cable
  • ADB enabled on phone
Has been tested on the following:
  • LG P716 Jelly bean stock- I've got one that works and one that doesn't, no idea why
  • LG P716 KitKat - Works
  • LG P500 with CM11 and rooted- Works
  • Samsung S3 4.4.4 stock - Doesn't work
  • HTC One S - Works (Thanks LS.xd on xda)
  • Samsung Galaxy Ace II (Thanks LS.xd on xda)
  • If you have tested and works, please tell me, I will add it to this list with reference
Your help is greatly appreciated to porting it to Windows/Mac. If you have found a phone that is not on this list, that works, please tell me.
 

Attachments

Last edited:
OK, tough call, but as you're calling for developers, I've moved this to the App Development thread.

When it's more final, you can post about it in App Announcements. Given the raw nature of a terminal interface as an option, also in the Hacking forum if you like.

To save trouble, this has both a terminal interface and a simple gui.

The shell is bash so the terminal script may work as-is. I'll test it if/when I get time.

The gui (a configurable dialog) is a sh-bang bash script outputting to zenity.

Here's a Mac zenity -

https://www.macports.org/ports.php?by=library&substr=zenity

Getting bash on Windows without Cygwin can be done.

It's possible that this is all you need -

http://win-bash.sourceforge.net/

I found an older Windows zenity port -

http://www.placella.com/software/zenity/

So maybe that can help your viewers get started.

If anyone wants just a Mac or Windows adb (because the scripts assume a local copy for each) without having to trudge through the whole SDK, you can find both here -

http://androidforums.com/threads/adb-guide-updated-2014-11-11.443072/#post-5389081

For a more platform independent approach, have you considered Python/Tk? Just curious on that.

Hope this helps!
 
Lol!

Btw - I happen to know that lightweight Windows bash runs just fine on 64-bit Win7.

And the Win version could be launched from a command line with bash and the script for a source argument, and then just wrapper that script in a no-command window bat file that they can double click.

The bat file would contain -

Code:
@echo off 
bash blah-blah-blah

Put *everything* in a folder below the bat file so people wouldn't have to look at it, of course.
 
Back
Top Bottom