airgap-it / airgap-vault

The AirGap Vault is installed on a spare smartphone that has no connection to any network, thus it is air gapped. This app handles the private key.
MIT License
396 stars 110 forks source link

Problem in creating account from seed #27

Closed vikramIde closed 10 months ago

vikramIde commented 4 years ago

Hi guys,

I am having issue with generating new account from existing seed phrase. Error

2020-09-01 10:12:32.201 13640-13640/it.airgap.vault E/Capacitor/Console: File: http://localhost/main.js - Line 3910 - Msg: TypeError: Cannot read property 'initStorage' of undefined

I have android studio 4 (the latest)

Previously i had compiled with android 3* versions and it had worked.

But this time it asked me to install version 4 and after that i started seeing the above issue.

some other capacitor plugins are not loading i think.

any thoughts in this ?

Thank you

vikramIde commented 4 years ago

Same issue with IOS build also

AndreasGassmann commented 4 years ago

I've never had this issue, It sounds like a problem with the secure storage.

Did you follow our build instructions?

Android: https://github.com/airgap-it/airgap-vault/blob/master/build/android/Dockerfile iOS: https://github.com/airgap-it/airgap-vault/blob/master/.gitlab-ci.yml#L59

WalletScrutiny is able to independently reproduce our Vault build (see here), so if the apk from the store works, it must be something on your end.

vikramIde commented 4 years ago

@AndreasGassmann I'll check the links you mentioned .

Yeah I was also kinda confused , as the downloaded version of APK from the store and it works.

Then somehow looks like my build process is doing something wrong.

Thank you

vikramIde commented 4 years ago

Hi @AndreasGassmann

I am trying to build the APK with the given Dockerfile in the build/android folder.

I am able to build the container perfectly, But I am unsure where the out apk file will be located.

Like I see this is the command which copies the file

RUN cp /app/android/app/build/outputs/apk/release/app-release-unsigned.apk android-release-unsigned.apk

Is it copying src and destination both inside the container itself? or in my local machine?

Because I could not find the file in my local folder.

Please let me know if I am doing anything wrong.

AndreasGassmann commented 4 years ago

Yes the file is still inside the container at the root level.

You should be able to copy it out of the container using:

$ docker cp <container-id>:/android-release-unsigned.apk android-release-unsigned.apk