"Bad Key" returned when importing Pro Key on Android


#1

Hello, I tried to import my Pro Key. It worked fine with my Linux app. But I received “Bad Key” note on both Android devices (phone, tablet).

I downloaded key again, reboot devices, but nothing changed. Any idea?
Thank you in advance.


#2

Please send me some information to identify your key, for example the email address it was delivered to. Then I can see what’s going on. Send to andrei@everdo.net or via PM to avoid sharing publicly.


#3

This error is caused by corrupted or simply wrong key file being imported. If the key works on your PC, then it should be valid. Now somehow it got corrupted by transfer to the phone.

How did you transfer the key to the android devices?
Direct download from email or something else? Are you sure you are importing the same file as you did on Linux?


#4

Hello, I forwarded original email with key.

I have downloaded key from original email to every device. All devices has access to it through IMAP protocol.
Radim


#5

Thanks! Indeed there is something wrong with the file. I have generated a replacement for you, which should arrive by email shortly.


#6

Hello,
unfortunately, I see the same behaviour with the new key.
I tried:

  • import original key;
  • download original key again and import it again;
  • download a new received spare key and import it;
  • reboot devices several times;
  • uninstall, reboot and install app again;
  • different Launcher.

At any time I receive only “Bad Key” reply.

Both devices are Huawei. Tablet is with Android 7.0. Phone runs on Android 8.0.
If you have any other idea or if you need more information, just let me know.
Radim


#7

This is getting too weird now. I have tested the original key and it indeed didn’t work. But I have also tested the replacement twice and it did work. Are you absolutely sure you imported the new key and not accidentally used the old one?

I will be looking into other ways to diagnose the problem.


#8

So, I have done some actions.
At first I removed both keys from my tablet. After that I downloaded second received (“spare”) key and tried to import it. Negative result. Bad key message received.
Then I encouraged myself to do a factory reset of that tablet. It does not help, I received “Bad Key” message again.
Finally, I took my old Nexus 5 phone and I installed app and add Pro Key without any problem.

I do not know what is wrong, but it seems that Pro Key does not work with Huawei phone and tablet. Is there any other owner, who can confirm it?


#9

i don’t have Huawei devices, my key is good for my Oneplus phone.
also no problem for windows platform.
didn’t try linux or mac yet.


#10

@ospalej

Thank you for going through those steps. This is great info. It may indeed be a problem with a specific device firmware. I’m looking for a way to diagnose diagnose and resolve this.


#11

I’m using a Huawei phone and was able to import the key without issues.


#12

I have added some debugging code to the Android app and I will send you the diagnostics steps via email.

So far I haven’t been able to reproduce this problem on any Android version of the emulator or the available hardware devices.


#13

Hello,
I am back at home. So, I just took a flash memory stick with a micro USB and tried to transfer PRO Key from my laptop. It worked on both Huawei devices.
I have no idea, why download of file directly from my IMAP account do not work.

Thank you for your support!
Radim


#14

Glad it finally worked!

From the logs you’ve sent I concluded that something modifies the key file in the process of it being downloaded / opened because the filename is not the same as the original email attachment sent by order fulfillment.

It probably depends on the email app used to download the file. For example some program might add it to cloud storage instead of saving to downloads or something like that. I’m not sure why that might be harmful, but it certainly prevent further debugging as we can’t even see the original filename in the logs.