It seems like the importing of system contacts into Delta Chat Core (implemented in https://github.com/deltachat/deltachat-android-ii/issues/46) is not working anymore on the latest master.
Situation:
Expected:
@r10s is currently verifying if this issue also affected him or if this is a local problem of @Boehrsi.
i can confirm that it does not work for me as well :)
Will tackle that one on Friday.
@Boehrsi Would it be possible to write a test for this?
@ralphtheninja tests for this are generally possible but everything involving the AndroidTest part (vs. normal JUnit tests) makes it significantly more complex / time consuming. But I will have a look.
Will probably finish that one on Monday, due to an unplanned home office day I wasn't able to accomplish much today.
@ralphtheninja tests for this are generally possible but everything involving the AndroidTest part (vs. normal JUnit tests) makes it significantly more complex / time consuming. But I will have a look.
Maybe not a must right now. It would just be nice to get some tests started (ci is coming) and I saw the opportunity ;)
@ralphtheninja totally get your point there ;) and totally agree with you that we should start testing. I will just have a look if it is possible without unreasonably high effort and if so I will just do it :).
Fixed by the mentioned commit (just removed the unneeded permission). I wrote a reminder for myself to recheck the testing stuff, but for now I would say it's a bit too much effort. @r10s can you also verify that it's working again?
@Boehrsi why does it fail when _too many_ rights are requested?
apart from that, yes, it's working again for me.
but i really would like to understand why :)
@r10s The app needs to define all permissions it will ever ask for in the manifest and we removed the write permission for contacts, as we don't need it. But that means the request for read and write permissions, which was performed right before importing the contacts just always failed, as the write permission was never granted. That blocked the importing process.