-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCTG Import does not work #162
Comments
Does it work after you kill and re-open the app? |
No. I killed the app in settings using "force quit", re-opened the app, waited until "downloading diagnosis keys" finished and tried "CCTG Import", but the same message appears. Edit: I tried on another device with root access, and the same message appears. |
Ok, so mode switching is blocked in your scenario. I will try to reproduce and fix that. |
The workaround to enable airplane mode does not work, but I found the following workaround: |
I can confirm the same behavior happens for me on Android 11. Also using 2.3.5. I freshly installed, so can't confirm it ever worked. For me also the CCTG export mode via sharing does not work. It just opens Companion in the same mode I had it earlier. If it was root mode, then I get the root warning. In demo mode it opens demo mode. And in import mode it opens a file chooser. Closing File chooser activity with back button leads to screen full of "please wait" indicators. |
So if you chose the exposure.db that you copied from Sharing from CCTG should of course work, maybe that's an issue with Android 11? I need an Android 11 device... |
It sounds like a permission issue. I looked into logcat for Errors and see this already happening once I try to export:
So I am unable to export it to a file as well. I guess this is something out of scope for companion. But it might explain why it doesn't work as expected, due to not getting data properly. Maybe error handling could be improved? It seems to fall back into some mode it had earlier. As it never worked for me, this might be some unexpected state. I do not want to mix up issues here. The issue initially described happens here as well. The workaround as described by @Kabelgleichung worked for me as well to switch modes. I am stuck now on another problem, that CCTG/microg is not giving me the data. @Kabelgleichung I am on Android 11/nonroot. What is your environment? |
I can confirm the initial bug for latest app version (2.3.5, did not use earlier versions) on my non-rooted Android 7 phone. |
Yes. When I first shared the data from CCTG, wait until matching finished I can open the exposure.db from menu.
I am having this issue on an Android 12 and Android 11 device. The Android 12 device is not rooted, the Android 11 device is rooted (LineageOS), @stephankn |
I just installed CCTG 2.18.1.0 on a new Android 11 device (rooted, but I don't think it makes a difference) and can export from CCTG e.g. to e-mail; and also share from CCTG to WAC without any problem. |
I recently got update to Android 12 based Miui 13. With the above mentioned workaround, I used the "share" functionality to open the db. Then I could switch the mode to import. Opening directly now asks to select exposure db (I can export that to eg download folder). I am not certain how useful it is to directly open the app without sharing a recent db. The user interface in case I refuse to select a file on the picker is showing only "please wait" indicators. Could you fix the problem of mode switching and maybe display an activity/fragment in the modes where no exposure.db is available on how to load one? |
It seems that the security handling has changed on miui from 12 to 12.5 I could see this also on other apps or for ex. when I tried to install an apk from some file managers ( included also the mui standard one). So, the function to export from cctg without root is not possible anymore on these devices. Update: it seems with MIUI 13 everything works as it should thnx @stephankn for this info |
@skyerjoe maybe there was an issue with Miui 12 and 12.5, which would explain the SecurityException I had above. With Miui 13, the export works as intended. Import via sharing works as well. Changing manually the operation mode of the app fails with the initially reported problem. |
@stephankn My device will be get miui 13 on q2, so may it's to late then, I hope so xiaomi is known for surprises related to supporting his devices. Best regards |
The "CCTG Import" option does not work in Version 2.3.5 on an unrooted phone. Whenever I select the option from the menu, the message "Im Moment kann der Modus leider nicht gewechselt werden. Bitte warte, bis alle Berechnungen abgeschlossen sind.", although no key matching is done at that moment.
As far as I unterstand, some file-chooser should appear when selecting the option and an exposure.db can be opened.
The text was updated successfully, but these errors were encountered: