signalapp / Signal-Android

A private messenger for Android.
https://signal.org
GNU Affero General Public License v3.0
25.62k stars 6.15k forks source link

Unable to find backup file, attempt #12986

Closed Paulchen232 closed 1 year ago

Paulchen232 commented 1 year ago

Debuglog: https://debuglogs.org/android/6.21.3/01177a09899b85a8e75fd79b7194592f0f3adbcfef9b98ae995db6e8b7552c31 My mother's backup still doesn't work. Signal also attempts to write to non-existent external storage. Perhaps anywhere can Help my.

Originally posted by @Paulchen232 in https://github.com/signalapp/Signal-Android/issues/12915#issuecomment-1580315829

Backup failed Cellphone: Samsung A53 Android: 12,13 Signal 6.21.3 I do not understand why Signal do this. So it is not correctly recognized that no external memory is available and with external memory it works too not.

Paulchen232 commented 1 year ago

My mother can`t send the neu debuglog as http. Debuglog

Paulchen232 commented 1 year ago

in the debug log he does not find so many stickers.

Paulchen232 commented 1 year ago

First of all I transferred the account to a Nokia G22. The backup then worked there. There were some illegibility in the backup which I corrected with signalbackup-tools. I was able to export the chats as html. But back on the Samsung A53, the backup still didn't work.

clark-signal commented 1 year ago

So when you transfered to the Nokia G22 you hit some issues as well that you had to fix with signalbackup-tools? Do you remember what the issues were?

Paulchen232 commented 1 year ago

Oh, I think I didn't fix anything. Since the backup works on the Nokia G22, the use of "signal backup-tools" was nonsenns. The inbound and outbound backups were the same. On Wednesday I will transfer the account again from the Samsung A53 to my Nokia G22 and then uninstall and install Signal on the Samsung A53. I don't think I've done that before. I'm curious if the backup on the Samsung works again when I transfer the account back.

Paulchen232 commented 1 year ago

Backup on Samsung A53 futurmore not work. @clark-signal What android.calling.telecomModelBlockList in the debuglog means? Debuglog: In the Sysinfo is the Model: SM-S536B And "android.calling.telecomModelBlockList" is ..., SM-A530* What make this? My mother thinks that on 02/02/2023 the backup worked once. After a backup has been restored.

Paulchen232 commented 1 year ago

@clark-signal I hope you can soon my help.

cody-signal commented 1 year ago

Have you tried selecting a different location to store the backup? It usually works best to create a new folder than use an existing one. For example, don't use "Downloads" or other system controlled folders.

android.calling.telecomModelBlockList is completely unrelated and is about calling.

Paulchen232 commented 1 year ago

Yes I did that but it didn't help.

android.calling.telecomModelBlockList is completely unrelated and is about calling.

Paulchen232 commented 1 year ago

Ok, I was thinking it might have something to do with the problem as the phone model is so similar.

clauz9 commented 1 year ago

I see you reopened the issue, does it still happen with the most recent version of signal ?

Paulchen232 commented 1 year ago

The close was an error. The backup works not.

clauz9 commented 1 year ago

Can you open "App info" for signal and let me know what permissions you have allowed for the app, and also check in the "storage" section to see if you have "External storage" permitted

You can enter "app info" by long tapping on the signal in on, and then tapping on the small "information" icon

Screenshots ![Screenshot_20230706_185924_One UI Home](https://github.com/signalapp/Signal-Android/assets/77681918/7393546a-0df4-44bb-bd68-e8f5fa965eb9) ![Screenshot_20230706_185425_Settings](https://github.com/signalapp/Signal-Android/assets/77681918/92a1d4da-9d88-438d-bb04-ec37cf2c4a54) ![Screenshot_20230706_185442_Settings](https://github.com/signalapp/Signal-Android/assets/77681918/511e97ff-285d-4616-89db-7af9dfb4e4f0)
Paulchen232 commented 1 year ago

I have also do this: :\Program Files (x86)\Minimal ADB and Fastboot>adb shell appops get org.thoughtcrime.securesms Uid mode: COARSE_LOCATION: foreground FINE_LOCATION: foreground READ_CALENDAR: ignore WRITE_CALENDAR: ignore CALL_PHONE: ignore READ_SMS: ignore RECEIVE_SMS: ignore RECEIVE_MMS: ignore SEND_SMS: ignore CAMERA: ignore RECORD_AUDIO: ignore READ_EXTERNAL_STORAGE: ignore GET_ACCOUNTS: ignore READ_MEDIA_AUDIO: ignore READ_MEDIA_VIDEO: ignore READ_MEDIA_IMAGES: ignore LEGACY_STORAGE: ignore COARSE_LOCATION: allow; rejectTime=+10m2s798ms ago FINE_LOCATION: allow; time=+22m28s686ms ago; rejectTime=+10m2s798ms ago READ_CONTACTS: allow; time=+1h21m59s999ms ago WRITE_CONTACTS: allow; time=+1d4h51m54s635ms ago WRITE_SMS: ignore; rejectTime=+1d5h0m6s660ms ago SYSTEM_ALERT_WINDOW: default; rejectTime=+4h32m51s116ms ago WRITE_CLIPBOARD: allow; time=+1d4h49m47s475ms ago WAKE_LOCK: allow; time=+10m2s174ms ago; duration=+395ms READ_PHONE_NUMBERS: allow; time=+1d5h0m6s660ms ago RUN_ANY_IN_BACKGROUND: allow START_FOREGROUND: allow; time=+7m35s714ms ago (running) ACCESS_RESTRICTED_SETTINGS: allow; time=+1d3h43m7s68ms ago

And I do READ_EXTERNAL_STORAGE to allow. I think the problem Comes from a Huawei P9 Lite with internal memory on SD card. It was adopted with the Smart Switch app. On 29./30. I dry more: account to another Cellphone, new install Signal, backup test with neu account.

clauz9 commented 1 year ago

Well here's what I have...


Uid mode: COARSE_LOCATION: foreground
FINE_LOCATION: foreground
READ_CALENDAR: ignore
WRITE_CALENDAR: ignore
CALL_PHONE: ignore
READ_SMS: ignore
RECEIVE_SMS: ignore
RECEIVE_MMS: ignore
SEND_SMS: ignore
CAMERA: ignore
RECORD_AUDIO: ignore
READ_EXTERNAL_STORAGE: ignore
GET_ACCOUNTS: ignore
READ_MEDIA_AUDIO: ignore
READ_MEDIA_VIDEO: ignore
READ_MEDIA_IMAGES: ignore
LEGACY_STORAGE: ignore
COARSE_LOCATION: allow
FINE_LOCATION: allow; time=+5m47s16ms ago; rejectTime=+9m23s883ms ago
READ_CONTACTS: allow; time=+3m33s515ms ago
WRITE_SMS: ignore; rejectTime=+6m13s161ms ago
SYSTEM_ALERT_WINDOW: default; rejectTime=+6m18s391ms ago
CAMERA: allow; time=+1d0h59m59s740ms ago; duration=+1s747ms
READ_CLIPBOARD: allow; time=+3h58m59s832ms ago
WRITE_CLIPBOARD: allow; time=+4d0h21m9s511ms ago
WAKE_LOCK: allow; time=+2m59s620ms ago; duration=+2s676ms
GET_USAGE_STATS: default; rejectTime=+11s886ms ago
READ_PHONE_NUMBERS: allow; time=+6m13s161ms ago
START_FOREGROUND: allow; time=+17s664ms ago (running)
WRITE_MEDIA_AUDIO: deny; rejectTime=+1d0h36m40s88ms ago
MANAGE_EXTERNAL_STORAGE: default; rejectTime=+1d0h36m40s89ms ago
ACCESS_RESTRICTED_SETTINGS: allow; time=+11m56s360ms ago

The only thing that I can see that might make a difference is the MANAGE_EXTERNAL_STORAGE permission..

so since you seem comfortable using ADB, can you try

adb shell appops set --uid org.thoughtcrime.securesms MANAGE_EXTERNAL_STORAGE allow

And see if that fixes anything 🤔

When you run the ADB command make sure, there's only one phone connected to the PC, otherwise you need to specify which device to run the command on.

Paulchen232 commented 1 year ago

Ok, I dry this later. I say If anything fixes.

Paulchen232 commented 1 year ago

I have let MANAGE_EXTERNAL_STORAGE set to allow. That probably means all files access. Backup not working. I'll try again something on the 29th/30th.

clauz9 commented 1 year ago

Read this https://github.com/signalapp/Signal-Android/issues/12915#issuecomment-1624078250

Paulchen232 commented 1 year ago

One more thing: I've seen that in the diagnostic log this often occurs with different stickers: java.io.FileNotFoundException: /data/user/0/org.thoughtcrime.securesms/app_stickers/sticker... Do you know how this is possible?

With another mobile phone where everything works, it is not in the "All files access" list either.

clauz9 commented 1 year ago

Signal is not there, but "external storage" should be, have you looked at the screenshot ?

Paulchen232 commented 1 year ago

Very very nice, now I have anderstand what to do. I see external storage with System-Apps. External storage call in German: externer Speicher. It is now on and the Backup work! I have explane it my mother with Telegram because shy must do it.

Many thanks!

clauz9 commented 1 year ago

You're welcome, and I hope you mom figures it out... 👍

Paulchen232 commented 1 year ago

The message of success came from my mother! 🙂