status-mobile icon indicating copy to clipboard operation
status-mobile copied to clipboard

Cannot import DB in any build except e2e

Open churik opened this issue 2 years ago • 2 comments

Bug Report

Problem

Currently exporting DBs working for all builds, where it is enabled while importing is only working for apk-e2e builds

Expected behavior

can login after importing DB

Actual behavior

MyApplication 2022-09-16 13-04-32

Reproduction

  1. Open Status
  2. Try to import db according to doc with user west dwarf festival fabric pelican gallery jewel bind snack fiction awkward second and db on real device or emulator with arm-64 arcitecture

Additional Information

  • Status version: nightly 16/09/22
  • Operating System: Android, iOS
  • Log: geth.log

churik avatar Sep 16 '22 11:09 churik

cc @qfrank

churik avatar Sep 16 '22 11:09 churik

sorry, missed the notification, i'll look into it @churik , thank you

qfrank avatar Sep 19 '22 12:09 qfrank

I tested it locally on various devices, and from what I see it looks like permissions/file owner issue. In case if device is not rooted the only change which is needed to make it work is to run

adb shell <<< "chmod 777 /storage/emulated/0/Android/data/im.status.ethereum.pr/files/Download/export.db"

after pushing file to the device. Please make sure you use a correct path in that command, as I tested it on pr build it contains im.status.ethereum.pr in my case, but if that's nightly it should be im.status.ethereum.

rasom avatar Sep 30 '22 11:09 rasom

updating doc, thank you for finding the reason Roman.

churik avatar Sep 30 '22 13:09 churik