wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Android blank white screen

Open xbtdev opened this issue 11 years ago • 16 comments

I recommended copay to a friend who installed the app and used it to store his bitcoins. That was a few months ago. Today he went to open the app to use his bitcoins and it shows a blank white screen after the splash screen (found a similar bug mentioned, #1519). He was running an old version, so we updated Copay to the latest version and tried again, same bug.

So running the latest version of copay we just see a white blank screen after the splash screen.

He has a backup, but we are unable to restore the backup because the password he remembers isn't accepted when we try to import the backup.

Any help?

xbtdev avatar Sep 15 '15 19:09 xbtdev

If this a 1-1 wallet?

Could he try to decrypt the backup using: https://bitwiseshiftleft.github.io/sjcl/demo/ ? (he should enter the backup text at Cyphertext and the password)

On Tue, Sep 15, 2015 at 4:33 PM, XBTdev [email protected] wrote:

I recommended copay to a friend who installed the app and used it to store his bitcoins. That was 6 months ago. Today he went to open the app to use his bitcoins and it shows a blank white screen after the splash screen (found a similar bug mentioned, #1519 https://github.com/bitpay/copay/issues/1519). He was running an old version, so we updated Copay to the latest version and tried again, same bug.

He has a backup, but we are unable to restore the backup because the password he remembers isn't accepted when we try to import the backup.

Any help?

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3173.

BitPay.com

matiu avatar Sep 15 '15 19:09 matiu

yes. 1-1.

I already tried using https://bip32jp.github.io/english/copay_decrypt.html

xbtdev avatar Sep 15 '15 19:09 xbtdev

The decryption worked?

On Tue, Sep 15, 2015 at 4:43 PM, XBTdev [email protected] wrote:

yes

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3173#issuecomment-140516006.

Matías Alejo Garcia @ematiu Roads? Where we're going, we don't need roads!

matiu avatar Sep 15 '15 19:09 matiu

No. It says the password he remembers for his backup is incorrect. We've tried anything we can think of.

Any way to make the app work? The wallet wasn't encrypted on the phone itself, so if the app worked we'd be able to send the funds.

xbtdev avatar Sep 15 '15 19:09 xbtdev

You mean than using https://bitwiseshiftleft.github.io/sjcl/demo/ is says the password is incorrect, right?

No, i wont work on the Copay. 6 months ago Copay was Beta and the storage format has changed in version 0.10 (https://github.com/bitpay/copay/releases/tag/v0.10.0, ~ 5 month ago)

matiu avatar Sep 15 '15 19:09 matiu

This is the backup json format: {"iv":"redacted","v":1,"iter":10000,"ks":128,"ts":64,"mode":"ccm","adata":"","cipher":"aes","salt":"redacted","ct":"redacted"}

I can privately send you the entire backup json if you would like.

But it looks like his backup was made after your new backup format (0.10), right?

Edit: just checked the date when he installed copay and created the backup (email timestamp) and it was July 16, 2015. Looks like v1.1.1 was the active release at the time. So way after #1519 was fixed, but the issue is the same as described in that bug report.

xbtdev avatar Sep 15 '15 20:09 xbtdev

By the way, he is currently running Android 4.4.2 on an LG Volt.

xbtdev avatar Sep 15 '15 20:09 xbtdev

yes, it seems to be 0.10.

It would be difficult to debug a blank screen. The only way to move forward that I can think of is you to build the Android App yourself, and run it in the phone, to see the logs.

make android-debug

on the Copay repo root, with the phone connected.

On Tue, Sep 15, 2015 at 5:00 PM, XBTdev [email protected] wrote:

This is the backup json format: {"iv":"redacted","v":1,"iter":10000,"ks":128,"ts":64,"mode":"ccm","adata":"","cipher":"aes","salt":"redacted","ct":"redacted"}

I can privately send you the entire backup json if you would like.

But it looks like his backup was made after your new backup format (0.10), right?

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3173#issuecomment-140519919.

Matías Alejo Garcia @ematiu Roads? Where we're going, we don't need roads!

matiu avatar Sep 15 '15 20:09 matiu

There isn't any way to extract the wallet data file from the device with a file explorer? I know you use the device id to salt the local file, but I could access that. The wallet on the device is not encrypted with a password so it seems like the only way to access it.

If it can't be accessed by a file explorer, maybe we could create an apk build that just dumps a plaintext copy of the wallet data.

Where on the phone filesystem are the wallet keys?

xbtdev avatar Sep 15 '15 20:09 xbtdev

Took a look at the code...

If I had an APK that would dump the results of storage.get('profile') and var getUUID to the screen or to a file.... then I could install this apk, run it, and the only thing encrypting the data would be the UUID which I have.

Thoughts?

xbtdev avatar Sep 15 '15 21:09 xbtdev

I'm checking with a file explorer app and /sdcard/Android/data/com.bitpay.copay/files/ appears to be empty. Is this where I should see a data file?

Edit: checked on my phone with working copay install and same path is empty, so I guess thats normal :)

xbtdev avatar Sep 15 '15 21:09 xbtdev

Hi, any news on this?

We use file storage, you can check the locations here:

https://github.com/apache/cordova-plugin-file/blob/master/README.md

Please note that we use File storage since:

commit cf557fe0182cd90730f024df96d05a7ead9d7f2d

Date: Sat Apr 25 14:42:17 2015 -0300

Before that, Copay used localStorage.

On Tue, Sep 15, 2015 at 6:19 PM, XBTdev [email protected] wrote:

I'm checking with a file explorer app and /sdcard/Android/data/com.bitpay.copay/files/ appears to be empty. Is this where I should see a data file?

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3173#issuecomment-140548043.

Matías Alejo Garcia @ematiu Roads? Where we're going, we don't need roads!

matiu avatar Sep 17 '15 11:09 matiu

Closed, no response. Please reopen if still active.

matiu avatar Oct 28 '15 19:10 matiu

Is it necessary to debug copay apk at first time either on device or on avd?. i did 'make android-debug' command and it created apk successfully, but failed to get avd or any device(because i did not installed it) i extracted apk and run it on android.... it stuck at white screen.... also decompiling it has some files missing as compare to standard one.

any help?

joshafest avatar Aug 10 '16 01:08 joshafest

Try this: cordova /build.sh ANDROID --clear, before make android-debug command

gabrielbazan7 avatar Aug 10 '16 01:08 gabrielbazan7

yes worked ....some libs was missing ...

joshafest avatar Aug 10 '16 03:08 joshafest