yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Escaladez2:
I looked at power manager, and it does change settings depending on whether it is plugged in or not. The real point of my inquiry is not whether setting can be changed, but can power sources be ID'd. Setting change is just an application of the information. You could also have it launch an app too if plugged in, IE a navigation or music app starts when plugged into car charger.
[G1 Android Development] Afirejar:
Detecting the difference between the USB cable and wall/car charger should be simple enough - only one of those has a computer on the other end, and the phone already detects that. It even shows up in the spare parts app on CyanogenMod as "charging (AC)" and "charging (USB)".

Not sure if there is a way to differentiate between car and wall charger. (Though you could always hack something together using the GPS and define the car charger as "any non-USB charger outside a set location". If you're not travelling much, that is.)
[G1 Android Development] Ohsaka:
If you use "Spare Parts" and bring up the battery info screen, it will indicate (AC) or (USB) when the phone is charging...

Using the AC charger makes a big difference on these phones. I run Wifi Tether on 3G all day long at work. Using the USB charger, the phone will die. Using AC, it will stay on 100 charge even if I'm streaming music all day...

I think the max output on a USB cable is 0.5 amps. The HTC charger is labeled as max output 1 amp. I'm no electrician, but the AC cable could in fact be twice as good as USB charging.
[G1 Apps and Games] heldc:
I want an app to wake me on the subway, but apps that set off an alarm based on location won't work, cos I'm in DC and have no cell or GPS signal in most of the subway system. I was thinking that if there was an app that could set off an alarm based on how many times the accelerometer has registered a speed increase or decrease, maybe combined with an elapsed time counter, that would work, since each combination of 'slow down then speed up after 10 seconds' would be one subway stop closer to when I want to get off the train.

Is there an app like this already, or is anyone working on something similar?
[G1 Apps and Games] deepside7:
Couldn't you just set a timed alarm based on how long it takes for you to reach your stop usually? Set it say, 5-10 mins early just to be safe....
[Touch HD Windows Mobile ROM Development] Raptordin:
I have installed Dutty's Rom R12 with manilla 2.1 and all is great except for SMS

Whenever I click on the SMS icon in Manilla I get this Attached Image, can any one help me please.
[Touch HD Windows Mobile ROM Development] Fallen Spartan:
Don't actually use this rom, but would advise you to ask your query within that rom thread which can be found here

Thread closed
[Windows Mobile Apps and Games] darkm857:
Is there any version of this available for Windows Mobile?
[Windows Mobile Apps and Games] silvertorch:
No. As far as I know both the Armory and Authenticator apps are iPhone/iTouch only.
[Windows Mobile Apps and Games] steezee:
there is a version for the MDA Compact III if you know how to change your user agent in firefox you can download the files for it and install the files to the phone....i found a tutorial on it on another website, ill post a link to it here
[Windows Mobile Apps and Games] steezee:
http://deathcoil.net/authguide.html

Hope this helps, i used the one for MDA III follow all the steps in the guide up to the changing user agents and replace the agent for the V3i with the following if you choose to use the MDA III instead of the V3i...but it works just fine using the MDA III

MDA-III/08.B4.34R MIB/2.2.1 Profile/MIDP-2.0

The Serial number on the authenticator is obtained when the authenticator is activated with blizzard after it is installed. So it may be possible to make a .cab installer for Windows Mobile phones without compromising account security by everyone having the same authenticator. If anyone actually wants to make an attempt at building a windows mobile installer i can send you the jar and the jad file if you PM me or leave a post in this thread

I also copied the instructions into a txt document incase the page was to vanish
[Windows Mobile Apps and Games] Paul22000:
Has anyone gotten this to work on Android?
[Windows Mobile Apps and Games] sniggle:
Apparently you didn't read the page at all :)
[Windows Mobile Apps and Games] Paul22000:
You misread my post ; )

I wasn't asking if the one guy who posted that got it to work. I was asking if anyone HERE has gotten it to work. ; )
[Windows Mobile Apps and Games] Niscandia:
I have gotten the Battle.net Mobile Authenticator to work with Windows Mobile 6.1/6.5 and Android.

For WM6, I used Esmertec Jbed 20090217.5.1R2. Just install Jbed, then use file explorer to open up blizzard_mobile_auth_US_BMA_176x220_icon_15x15_1_0_0.jad

Everything works quite well from there on out.

As for Android, easiest way is to find a system image that has Java already installed (never got it to work with the midlet app on the market), or if you want to take the harder route Java.pk & libjbedvm.so.

-----

Now something that you didn't ask for, it is possible to "clone" the battle.net database so that it is synced between Android and WM6, useful for those of us who are using WM6 devices and using Haret to boot into Android.

As for the java applets they store their saved variables in a .db file, on android it will probably be located around /sdcard/java/Installed, on WM6 I found it at /windows/appdb. Both using "s0_d0.db".

Opening both files up, and replacing two key components, the Battle.net ID (US-XXXX-XXXX-XXXX) and a 40 character id, from one of the db files with the items from the other will make them both produce the same pass.

Very useful if you use both OSes, even more useful in that backing up those two items you can "recreate" your id. But in that they are now a new security problem as well....

Now if Blizzard would just allow us to download the two tiny files instead of making us pay a $1 for a 2-4 hour download window...
[Windows Mobile Apps and Games] Paul22000:
How can I check if Java is installed? And is there a way to get it if it's not? I have a G1
[Windows Mobile Apps and Games] Niscandia:
The stock G1 doesn't have java from what I remember, If you did you'll have a Java icon with the rest of your applications. Java came on the Hero rom if I remember correctly.

If you have rooted your G1, follow the link here to install it. May not need a rooted G1, but I can't say for sure since I don't have one.... yet...
[Windows Mobile Apps and Games] gilroykilroy:
Worked fine on my Sprint HTC Hero. What seems to be left out of the instructions is how to get the jar/jad to the phone.

What I did was use the apk converter app they have at http://www.netmite.com/android/srv/1.6/getapk.php and used adb to send that to my Hero. There is probably an easier way (like put the jar/jad on the SD card in a certain directory?) but this method worked for me.
[Windows Mobile Apps and Games] steezee:
it would be awesome make a VGA and wVGA version of it so it the buttons are actually finger friendly and the key is a little bigger
[Windows Mobile Apps and Games] Paul22000:
So I'm trying to do this on my T-Mobile G1 (Android). However, the Motorola V3i is only for AT&T, Sprint, and Cellular One.

Which one should I choose?

I chose AT&T and put in my T-Mobile number and never got a text message. I also tried my Google Voice and never got a text message either.

Anyone know? Has anyone done it on Android?

[Edit]: Just tried the others. Cellular One works, and Sprint works, just not AT&T.

Just logged in with it, woo.
[Windows Mobile Apps and Games] Paul22000:
Anyone know what it would take to run this in Windows?

I tried using Sun's Java Phone Emulator:

http://java.sun.com/products/sjwtoolkit/download.html

And surprisingly, the BMA app loads up and looks just fine:

Unfortunately, the code it has is completely wrong (doesn't match my G1's code). Even after mashing sync, the two never have the same code (my phone is always correct; emulator always incorrect).

Any ideas on why this would be? And any ideas on other methods that might work for running the BMA in Windows?

(Trying to find a way to get BMA for people without Windows Mobile, iPhone, or Android)
[Windows Mobile Apps and Games] Niscandia:
Ok, Just now got back to being able to play with the BMA a little.

First the two codes should not match between the Emulator and your G1 phone, unless you copied the ID code & hash from one to the other.

If you check the ID code on the G1 (Menu-Setup), you should get a code in the order of "US-XXXX-XXXX-XXXX". Doing the same thing on the emulator you should get a different code. Same format, but some of the numbers should be off. Which means it is generating a different access code.

Unfortunately I haven't had much time to find out where Sun's Java emulator stores its saved variables for the current emulation. I will say that it is storing it somewhere. Since each launch of it is coming up with the same ID Code in the setup window. So TECHNICALLY it should be working like it is supposed to in the emulator. But I can't say that it IS working until I can try it with an account (trial accounts work wonders for this..... ) or find the saved variables and copy the information for my primary onto the emulator.

Now I will say that the emulator will make accounts slightly less secure then a version on a phone, which is slightly less secure then the key chain. The primary reason is easy of copying. If someone gets a hold of the saved variables for the emulator, they can duplicate your BMA key, and with your account/password gain entry. Just a warning.... But needing 3 pieces of id is more secure then 2....
[Windows Mobile Apps and Games] Paul22000:
Well, the whole idea is to stop basic/generic keyloggers from stealing your password. I highly doubt there are any keyloggers out there written to hack into and steal the saved variables from Sun's Java Emulator for use with a Motorola V3i Battle.net Authenticator, so that they can then purchase a Battle.net Authenticator, run through the setup/hack guide for a Motorola V3i, and emulate the same setup code.

A bit far fetched, wouldn't you say? ;)

In any case, an account with a Java Emulator Battle.net Authenticator is STILL more secure than an account without any authenticator at all, for those people who don't have an officially supported phone, or Android/Windows Mobile phone (which is the whole reason I'm asking).

Hmm, that makes sense. I didn't think to check to see if the the setup codes were the same. I just assumed the set up code was something already imbedded within the downloaded jad/jar links. Didn't realize they changed.

I'll test this out this weekend.

[Edit]: Although... If it changes, doesn't that mean that the downloaded application itself is static and unchanging?

Or in other words, if the setup code will re-generate randomly for the device its being installed on, what's to stop me from installing it on multiple phones?
[Windows Mobile Apps and Games] Niscandia:
Nope the codes are given out when the BMA app goes onto the internet that very first time, and then never again. It obtains the serial code, and a hash code. If you take a look at a previous post of mine, I posted how to copy these two so that a WM6 and a Android phone produce the same code.

From how it looks the same BMA app is given out to everyone, I could easily be wrong, since a few minor key points might be changed as in screen res... but I kinda doubt it.... The monkeys selling the app on Blizzard's behalf, well I have nothing good to say....

Now for the BMA to generate a code that Blizzard accepts, it has to know the time that Blizzard servers are using, along with the OS's time. The sync command gets Blizzard's time, and then computes the offset and uses that for the following codes.

-----

Just for cross referencing:

blizzard_mobile_auth_US_BMA_176x220_icon_15x15_1_0_0.jad
CRC32 C0A85A22
MD5 791C44F8D77DA92F04ABE0B1FEBBA99D
SHA-1 C7E2D2292AF93C5FDB304AEF2E0993464D35A7B4

blizzard_mobile_auth_US_BMA_176x220_icon_15x15_1_0_0.jar
CRC32 DD167387
MD5 F58AF211B41A14CAE1DDD5D5F652825D
SHA-1 ACD2077A5A97DD7FF7ED78CF7ED54F1587F8988F

That way we can see if they are the same, possibly locate the actual files inside if they are not and see where/what is changed.

My guess is if there is a change it is for tracking to see who released the files, not because of platform.

-----

As for the less secure part, basically just covering my ass :)

I don't believe a key logger would do such a thing.... disgruntled X... that is another story...
[Windows Mobile Apps and Games] Paul22000:
Wait, so if the codes are given out the first time it goes onto the internet, how is the code on my phone different from the one in the Java Emulator on my PC?

Or are we confusing Setup Code vs Serial Code vs Hash Code?

If so, I'm not sure which is which.

I'm not sure I follow what you're doing here.

Did you purchase two authenticators?
[Windows Mobile Apps and Games] Niscandia:
Ok, there are 3 codes you should know about on the BMA app.

1st code -> Serial number

Basicly this code is the ID code from what I've gathered. The common code format of US-XXXX-XXXX-XXXX

2nd code -> Hash number

This is a 40 character code, that is my guess is what the entry code is made from. This is only a guess at this time though... As I'm still going though alot of data. Just a long data of XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Just as a note this is a Alpha numeric. I also haven't yet tested to see if this is just a hash check or if the 3rd code is generated from this.

3rd code -> Entry code

This is the code that you enter into WoW when you log in. This one changes every 30 seconds if I remember correctly. In the format of XXXXXXXX

------

Initializing the BMA causes the java midlet to go online and request the 1st and 2nd codes. These are then stored and saved for later. These are also the codes required to "clone" a BMA installation.

After having been online, it will no longer need to contact the server unless the time gets off (I do not know if it uses just time, date, or seconds since the epoch...)

Using, probably, the 2nd code it generates the 3rd code for entry into WoW.

Most people will never see code 2, but will see the first code probably only once when they register the BMA with their Battle.net account.

Since the second code is hidden in the data, there is no function in the java to display it (yes I've been looking, and trying to figure out how to do better scaling...)

--- edit ----

Forgot to answer your last part.

The two files are the two that you download when you do the purchase.

Really only the .jar is needed, and the .jad just points to the .jar so to speak.

As for the hashes, that is so you can check the hashes on your two files (or if you just have the .jar, just on it).
[Windows Mobile Apps and Games] Paul22000:
So basically, the only reason that the Java Emulator doesn't work is because I ran the app on my phone first?

And if I could find the db files on my G1 (been looking for the past 20 min), I could transport them to Windows and then the Java Emulator would work?
[Windows Mobile Apps and Games] Niscandia:
In a nutshell, yes. The emulator is working correctly from what I can see, just that is has serial and hash codes, completely different then your phone does.

Transplanting the files won't technically work, unless both java midlet runners use the same type of file format. This is where Java is both very good and hellish.

Java allows the applications to run and work almost perfectly across all systems... but how the files are stored, and the formatting of the files differs according to the java emulator upon the system running the apps.

As for where the G1 stores the files, I'm not sure. But using Ion on my Kaiser, my SD card had a directory made, the path in Android would be something close to "/sdcard/java/Installed/" But this is on my Kaiser, not a G1....

But the file you are looking for should be something simular to "s0_d0.db", "s1_d0.db", "s2_d0.db", etc. Just depending upon when you installed the BMA on your G1. ("s0_d0.db", if you had no other java midlets installed, "s1_d0.db" if you had one before, and so on.)

As for where the storage files for the emulator on Windows is... I'm still hunting for it... So if you find that file first please let me know.
[Windows Mobile Apps and Games] Niscandia:
Ok, now I'm concerned about the BMA application... but first things first.

Sun Java Wireless Toolkit saved variable location:

C:\Users\<username>\j2mewtk\<version>\appdb\DefaultColorPhone\

<username> Is the user currently logged into windows when running the Emulator.

<version> is the version number of the emulator.

I'm also guessing DefaultColorPhone can be changed if you changed settings on how to run the BMA application.

So there is the file location for the emulator. The save variable for me had the name of "run_by_class_storage_#Token#Record.db"

----------

Now on to what new things I've found out

Code 1 -> This is an easy to enter code for the user to register the device

Format US-XXXX-XXXX-XXXX

Code 2 -> Alpha Numeric code that is 40 characters long. Any change to this code alters the generated code (syncing does not fix this). Thus this code is the only one needed to be backed up for being able to access the account.

Code 3 -> Code generated from Code 2, that is entered into World of Warcraft. From how it looks there are MULTIPLE codes that are valid at any given time. Using WM6 generated one code, and the emulator generated a completely different code. Both where valid codes....

------

So to recap:

Codes from 2 or more different devices can be in sync.

Codes generated from those devices can be different, but still work....

Unknown how many codes are valid at any given point.

And I tested by logging into WoW using the emulator's code, and it worked with out any problems, but only after the 40 digit code was replaced with my original.

So using the Sun's emulator does indeed work for logging into WoW. So nothing more is needed, save for syncing the utility across the platforms. I have an Ipod Touch which I'm looking into where that data is stored, so if something happens to my phone I'll have that as a backup... but the Ipod stores things differently, and that the Ipod runs a native app, not a java midlet.
[Windows Mobile Apps and Games] Paul22000:
I searched the sdcard for these files and unfortunately, nothing came up. There are a lot of *.db files, but for Android settings and other app settings. There is a BMA folder on the sdcard, but it has files like 2819.1, 2819.15 etc.

Hmmm, if the codes are initialized the very first time the program runs, does that mean if I wipe my phone and attempt to reinstall the app, I'll get a different setup code and basically be locked out of my WoW account?
[Windows Mobile Apps and Games] Niscandia:
You got it.

Hence why I took the time to find the database files, and copied them over to my computer (yes I'm paranoid they are in a TrueCrypt container)

That 40 digit code that you will never see unless you can find where your phone saves the data file, is the key to your account. If that it lost, prepare for a nice long talk with Blizzard on the phone.

Worst case you could do searches though all the files for your serial code (the one that looks like: US-XXXX-XXXX-XXXX) it is stored just like that in the data file. Other then that, I don't know where it might be saved...

For me that data file is 243 bytes... (windows shows it as 1k... gota love rounding)
[Windows Mobile Apps and Games] Paul22000:
I'm home now, yay.

So just to compare, here's what I get:

blizzard_mobile_auth_US_BMA_176x220_icon_15x15_1_0_0.jad
CRC32	c0a85a22
MD5	791c44f8d77da92f04abe0b1febba99d
SHA-1	c7e2d2292af93c5fdb304aef2e0993464d35a7b4

blizzard_mobile_auth_US_BMA_176x220_icon_15x15_1_0_0.jar
crc32	dd167387
MD5	f58af211b41a14cae1ddd5d5f652825d
SHA-1	acd2077a5a97dd7ff7ed78cf7ed54f1587f8988f

Exactly the same?

Hmmm...

A) So... The jad/jar files that people download are always exactly the same then?

B) I ran the Emulator and compared the setup codes. On my phone, the setup code is US-xxxx-xxxx-xx49. On the emulator, it's US-xxxx-xxxx-xx85, where every "x" on both setup codes is exactly the same!

I used the emulator the same night I purchased the app an installed it on my phone. So it would make sense that the numbers are very close together, with the Emulator having a higher number (since I did it 30-45 minutes after the first run on my phone).

So I guess it determines the Setup Code based on the TIME that you first run the app?

Hmm, it must be? Because I too have the "run_by_class_storage_#Token#Record.db", Last Modified: 10/22 10:12pm.

C) Huzzah! I unhooked my battle.net account from my phone's BMA, put in the Emulator's Setup Code US-xxxx-xxxx-xx85, and I was able to log in with the Emulator's login code! (HAH! Authenticator: No phone required!) Thanks, this is awesome!

So again, I don't see how you couldn't use the same jad/jar files on different PCs, since I'm betting the setup code will be different on every PC/device? Right now I could attach an account to the setup code from my phone, and another account to the setup code on the emulator. What's to stop people from doing this?
​
[Windows Mobile Apps and Games] cjm2576:
Same problem, different carrier. I'm on Verizon... I've tried all the different carriers and never get the text msg. Any ideas? I'm guessing I'm SOL.
[Windows Mobile Apps and Games] amaltheos:
I have a G1 unlocked on AT&T and I get the instant message with my code. I put in the code and get a message confirming my purchase but no url to actually download the file. Am I missing something?
[Windows Mobile Apps and Games] Paul22000:
Yes, you should get messages like these:
[Windows Mobile Apps and Games] amaltheos:
I get the first and third messages but not the second with the link. Atleast I know what I am missing now. Thank you very much for that Paul22000!
[Windows Mobile Apps and Games] Leddy:
The jad/jar files are the same for everyone.

If you don't have a QVGA phone you can use the Myriad Java package on the XPERIA X2 thread http://xdaforums.com/showthread.php?t=587176 which has support for changing the software resolution (stretching).

The US/EU code that you get at the start is sent from the Blizz server, it will change with every (fresh) installation of the Authenticator. If you wipe your phone without removing the authenticator from your account (or otherwise cause it to be uninstalled) you can have it removed by calling phone support and providing the serial key for your original WoW game as a means of ID.
[Windows Mobile Apps and Games] Paul22000:
Yeah, I've stopped using the authenticator on my G1 for that reason. Especially since we tend to wipe our phones so often here at XDA ; )

Instead, I use it on my PC via the Java emulator. That way, I can back up the necessary files with the keys in it, as described in previous posts, so I never risk getting f'ed over and locked out of my account.
[Windows Mobile Apps and Games] amaltheos:
I've tried to download the software using a friend's phone and we encountered the same issue, we get the pin and then the account charge confirmation but no message with a url link at all. We used the correct phone and provider (obviously) since he had one of the supported phones. I will probably call the support number they list unless anyone is willing to PM me the .jar =P
[Windows Mobile Apps and Games] AwaKeN:
Is it possible to get that .jar file by PM ? I want to give it a try before purchasing it !
[Windows Mobile Apps and Games] amaltheos:
From what I know (mostly from the EU WOW forums) the $1 cost is to cover the 3rd party phone download service Blizzard is using and not the actual software. They wanted to keep it simple and easy for everyone with phones rather than give them a .jar and worry about data cables.

If you want to see if you can get the authenticator running in the mean time, try searching for the EU version on google. I've found the .jar for that one floating around but it produces an EU serial number so you cannot associate it with a US bnet account.