Closed ReinIsNOTaDev closed 1 year ago
Thanks, this is due to the API changes starting on Android 11 that restrict storage access for apps. Export/Import must be rewritten to accommodate these changes while offering legacy support for older versions.
Downgrading worked for me.
Samsung Galaxy S21 FE 5G Android 13
adb install -r -d twisty-timer-v4.6.4.apk
I have a similar problem. When clicking on Import or Export the file chooser dialog opens but shows no files. I'm running Android 10 on a Xiaomi Mi 8.
Adding android:requestLegacyExternalStorage="true"
to the application tag in AndroidManifest.xml
solved this issue for me. This could be a temporary fix until the import/export functions will be rewritten.
Downgrading worked for me.
Also worked for me. Thanks!
Same here on MIUI 13.0.2 (Android 12) => Message that export is not possible
Same on MIUI 12.5.18.0 (Android 11) => nothing happens
Will try the downgrade to 4.6.4
Downgrading worked for me.
Samsung Galaxy S21 FE 5G Android 13
- Download the apk
- open terminal in downloads folder
- connect the phone with usb to the computer, install adb on the computer, enable adb on the phone
- downgrade the app via adb
adb install -r -d twisty-timer-v4.6.4.apk
Is the downgrade completely safe? I would prefer to keep my 7k solves.
Is the downgrade completely safe? I would prefer to keep my 7k solves.
I did it on My Redmi with MIUI 13 / Android 12 some minutes ago and it worked. If this process is safe for you? Don't know. I did it. You have to decide it for yourself
Complete Steps on the phone:
Steps on Windows:
Downloaded Android Studio and installed it
Downloaded the 4.6.4 from the GitHub Account if aricneto (go to Code and then you can download the APK)
Put in c:\temp\twisty-timer-v4.6.4.apk
Started a CMD and searched for adb.exe (dir adb.exe /S)
adb.exe devices => listed one device
adb.exe install -r -d c:\temp\twisty-timer-v4.6.4.exe Output: Performing Streamed Install Success
Back to the phone, started Twisty and looked in "Feedback" and Version changed from 4.6.8 to 4.6.4
Export, Export for backup => Exported about 20.000 solve times
Last Step: Developer menu and switch the slider for USB Debugging to OFF and the slider for the complete developer menu also => The developer menu disappears.
So worked for me...
@aricneto Maybe this help...
I added this quick hack in "onExportSolveTImes":
if (!Environment.isExternalStorageManager()) {
Intent intent = new Intent(ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION, Uri.parse("package:" + BuildConfig.APPLICATION_ID));
startActivityForResult(intent, APP_STORAGE_ACCESS_REQUEST_CODE);
}
and the constant was defined
final static int APP_STORAGE_ACCESS_REQUEST_CODE = 501; // Any value
501? => see stack overflow
In a Debug on my device I got a new permission dialog with "access to all files" and after I that the export did work.
Any news on a fix?
I used the workaround mentioned above - downgrading to 4.6.4
For TwistyTimer to be able to export solves to CSV, it must have some internal storage right? Does anybody know if this internal storage can be accessed from your phone/laptop if developer mode is enabled?
This way I could manage my exports manually for now without downgrading...
Does anybody know if this internal storage can be accessed from your phone/laptop if developer mode is enabled?
adb backup
should work.
I'll be working on that this weekend, now that I got some free time. I'll update this issue once it's been pushed to production and fixed. Thanks @Domalar for the suggestions and pull requests, also thanks everyone else for notifying this issue.
@aricneto I do not want to pressure you, but any update on this? 🙏
Issue has been fixed in 2fcd6f7d2697a0810f37245ac033f1da12448382. All thanks go to @hato-ya who fixed it in their fork.
APK has been published on the Play Store and is awaiting Google's review. In the meantime, you can update it directly by installing this (signed) apk: Twisty Timer v4.7.0
I feel upset that I reinstalled Twisty Timer now. Oh well...
When you click the Export/Import Button, Nothing happens.
Phone Used: Realme 9 Pro, Android 13 Does work in my Oppo F5 (Android 7)