05-25-2023 09:57 AM
This might be related to https://zentalk.asus.com/t5/zenfone-8/existing-twin-apps-cannot-access-media-storage-after-upgrading... but cannot say for sure, my phone is running Android 13.
After installing a second WhatsApp with TwinApps, the second one does not have access to media and perhaps some other folders. I cannot make a backup of the messages and cannot download nor send any pictures.
Trying to load a picture from a chat (it shows up as blurred):
Trying to back up the chats:
The TwinApps folder, don't know if it's right to be owned by root:
05-25-2023 09:57 AM
Trying to attach an image from the gallery:
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: Error inserting transferred=0 media_job_uuid=a80a6ea9-2968-4aaf-83e8-a69faa3a2fe2 transcoded=0 gif_attribution=0 first_scan_length=4195 direct_path=/v/t62.7118-24/zzzzzzzzzzzzz thumbnail_height_width_ratio=1.3584906 is_animated_sticker=0 file_hash=7J4nTKE8kjM7LLfn2csVDzB+zzzzzzzzzzzzzzz= file_path=null file_size=0 partial_media_hash=7F+uUHJb/B9SeaQk2TzgZb1jFeDlsMhV57au5v/1Uqg= face_x=0 face_y=0 height=1024 trim_to=0 media_key_timestamp=1651060227000 message_url=https://mmg.whatsapp.net/d/f/zzzzzzzzzzzzzzzzzzzzzzz.enc media_caption=null trim_from=0 mime_type=image/jpeg partial_media_enc_hash=null width=749 original_file_hash=null has_streaming_sidecar=0 autotransfer_retry_enabled=0 media_upload_handle=null message_row_id=208 multicast_id=null enc_file_hash=I5C6FQR6hhB3xbcstKang8/zzzzzzzzz= mute_video=0 page_count=0 first_scan_sidecar=[B@ee92f6 suspicious_content=0 file_length=31291 media_name=null media_duration=0 chat_row_id=8 media_key=[B@b7ff41b
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: message_media.message_row_id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:961)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1868)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1737)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at X.2hV.A04(:426533)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at X.2sl.A08(:478130)
05-25 18:19:56.328 28416 28449 E SQLiteDatabase: at X.2vk.A0x(:525660)
05-25 18:26:34.968 12219 10942 W CDC|API|2: [controller-0002-com.google.android.gms API] Ignoring message. Namespace 'urn:x-cast:com.facebook.fb' has not been registered.
05-25 18:26:34.981 1208 1208 E vendor.qti.hardware.perf@2.2-service: Unknown params
05-25 18:26:34.992 1534 6690 D WindowManager: addWindow start
05-25 18:26:34.996 1534 6690 D CoreBackPreview: Window{e914a55 u2357 Backing up messages}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@dbf4c37, mPriority=0}
05-25 18:26:34.997 1534 6690 W PowerManagerService: get notification of com.whatsapp/235710208 enabled failed: java.lang.SecurityException: canNotifyAsPackage for uid 235710208: uid 1000 does not have android.permission.INTERACT_ACROSS_USERS.
05-25 18:26:35.014 14288 14384 W Parcel : Expecting binder but got null!
05-25 18:26:35.024 1534 5735 I InputDispatcher: Window 'dca5db2 com.whatsapp/com.whatsapp.backup.google.SettingsGoogleDrive (server)' spent 4.9ms processing input events on average(0/12). Monitor spent 2.3ms processing input events on average(0/3). Window input events down spent 4.9ms on average (0/4). Window input events up spent 1.0ms on average (0/3). Monitor input events down spent 4.6ms on average (0/1). Monitor input events up spent 1.4ms on average (0/1).
05-25 18:26:35.035 5641 11467 I MediaProvider: CrossUser allowed. Users: 2357 and 2357
05-25 18:26:35.035 5641 6617 I MediaProvider: CrossUser allowed. Users: 2357 and 2357
05-25 18:26:35.035 5641 6531 I MediaProvider: CrossUser allowed. Users: 2357 and 2357
drwx------ 2 u0_a195 u0_a195 3452 2023-05-25 02:15 Signal
drwxrws--- 2 u0_a195 media_rw 3452 2022-07-08 21:08 Subtitles
drwx------ 3 u0_a195 u0_a195 3452 2021-11-03 06:58 Tencent
dr-xr-s--- 2 root media_rw 3452 2023-05-25 18:27 TwinApps
drwxrws--- 3 u0_a195 media_rw 3452 2022-10-17 22:13 _.hide
drwx------ 2 u0_a195 u0_a195 3452 2021-04-20 18:34 cameraDebug
05-25 18:49:14.895 1534 6697 W InputManager-JNI: Input channel object '9d0c08e com.whatsapp/com.whatsapp.gallerypicker.GalleryPicker (client)' was disposed without first being removed with the input manager!
05-25 18:49:14.905 1534 6697 W InputManager-JNI: Input channel object 'd255f47 com.whatsapp/com.whatsapp.gallery.NewMediaPicker (client)' was disposed without first being removed with the input manager!
05-25 18:49:14.911 14288 14288 W BottomSheetBehavior: BottomSheetBehavior now supports multiple callbacks. `setBottomSheetCallback()` removes all existing callbacks, including ones set internally by library authors, which may result in unintended behavior. This may change in the future. Please use `addBottomSheetCallback()` and `removeBottomSheetCallback()` instead to set your own callbacks.
05-25 18:49:14.914 1534 6702 W InputManager-JNI: Input channel object '73cb1d8 com.whatsapp/com.whatsapp.mediacomposer.MediaComposerActivity (client)' was disposed without first being removed with the input manager!
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: Error inserting transferred=0 media_job_uuid=303cba87-a5a8-4e63-bcb7-55328825c3dd transcoded=1 gif_attribution=0 first_scan_length=0 direct_path=null thumbnail_height_width_ratio=0.74647886 is_animated_sticker=0 file_hash=null file_path=/data/user/2357/com.whatsapp/files/.Shared/f491e4f5-9651-406d-bd54-327503eece0a.jpg file_size=112333 partial_media_hash=null face_x=0 face_y=0 height=1200 trim_to=0 media_key_timestamp=0 message_url=null media_caption=null trim_from=0 mime_type=null partial_media_enc_hash=null width=1600 original_file_hash=FLHa4iTBrayWg2iWMwRqzewY0jFccEwsA4BbuW2c94c= has_streaming_sidecar=0 autotransfer_retry_enabled=1 media_upload_handle=null message_row_id=3567 multicast_id=null enc_file_hash=null mute_video=0 page_count=0 first_scan_sidecar=null suspicious_content=0 file_length=112333 media_name=f491e4f5-9651-406d-bd54-327503eece0a.jpg media_duration=0 chat_row_id=60 media_key=null
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: message_media.message_row_id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:961)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1868)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1737)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at X.2hV.A04(:426533)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at X.2sl.A08(:478130)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at X.2vk.A0x(:525660)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at com.facebook.redex.RunnableRunnableShape0S0201000.run(:687762)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.os.Handler.handleCallback(Handler.java:942)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at X.0mO.dispatchMessage(:109282)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.os.Looper.loopOnce(Looper.java:241)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.os.Looper.loop(Looper.java:358)
05-25 18:49:14.976 14288 14358 E SQLiteDatabase: at android.os.HandlerThread.run(HandlerThread.java:67)
05-25 18:49:15.004 1534 6697 E ActivityManager: Sending non-protected broadcast android.intent.action.BADGE_COUNT_UPDATE from system 25562:com.asus.services/u2357s1000 pkg com.asus.twinapps
05-25 18:49:15.004 1534 6697 E ActivityManager: java.lang.Throwable
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:14130)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:14757)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:14148)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentWithFeature(ActivityManagerService.java:15011)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2384)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2782)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1280)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.os.Binder.execTransact(Binder.java:1244)
05-25 18:49:15.004 1534 6697 E ActivityManager: Sending non-protected broadcast android.intent.action.BADGE_COUNT_UPDATE from system 25562:com.asus.services/u2357s1000 pkg com.asus.twinapps
05-25 18:49:15.004 1534 6697 E ActivityManager: java.lang.Throwable
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:14130)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:14852)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:14148)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentWithFeature(ActivityManagerService.java:15011)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2384)
05-25 18:49:15.004 1534 6697 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2782)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1280)
05-25 18:49:15.004 1534 6697 E ActivityManager: at android.os.Binder.execTransact(Binder.java:1244)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: Error inserting transferred=0 media_job_uuid=303cba87-a5a8-4e63-bcb7-55328825c3dd transcoded=1 gif_attribution=0 first_scan_length=0 direct_path=/o1/v/t62.7118-24/f1/m230/up-oil-image-00cfeac5-ae31-40db-a3fb-d1a5c88f1621?ccb=9-4&oh=01_AdTDvYz865oqvp8YFFwHjVrZaMmaRulQtk5QB3UOtw669g&oe=649719E5 thumbnail_height_width_ratio=0.74647886 is_animated_sticker=0 file_hash=autifhVQqIL5EaEVOrAYQKEBf+f5NGANpKxZfn+4bNg= file_path=/data/user/2357/com.whatsapp/files/.Shared/f491e4f5-9651-406d-bd54-327503eece0a.jpg file_size=112333 partial_media_hash=Neqm49d22uIxjCbryP18cpNPY/5xOoQYvSnheyfKqwE= face_x=0 face_y=0 height=1200 trim_to=0 media_key_timestamp=1685033354953 message_url=https://mmg.whatsapp.net/o1/v/t62.7118-24/f1/m230/up-oil-image-00cfeac5-ae31-40db-a3fb-zzzzzzzzz?ccb... media_caption=null trim_from=0 mime_type=null partial_media_enc_hash=null width=1600 original_file_hash=FLHa4iTBrayWg2iWMwRqzewY0jFccEwsA4BbuW2c94c= has_streaming_sidecar=1 autotransfer_retry_enabled=0 media_upload_handle=null message_row_id=3567 multicast_id=null enc_file_hash=HDi6tBgIcPeQy/Egf0Q6kaSIdLSz8D+UgrtuHx/v2oU= mute_video=0 page_count=0 first_scan_sidecar=null suspicious_content=0 file_length=112333 media_name=f491e4f5-zzzz-406d-bd54-327503eece0a.jpg media_duration=0 chat_row_id=60 media_key=[B@a90a027
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: message_media.message_row_id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:961)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1868)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1737)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at X.2hV.A04(:426533)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at X.2sl.A08(:478130)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at X.2vk.A0x(:525660)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at com.facebook.redex.RunnableRunnableShape0S0201000.run(:687762)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.os.Handler.handleCallback(Handler.java:942)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at X.0mO.dispatchMessage(:109282)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.os.Looper.loopOnce(Looper.java:241)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.os.Looper.loop(Looper.java:358)
05-25 18:49:15.490 14288 14358 E SQLiteDatabase: at android.os.HandlerThread.run(HandlerThread.java:67)
05-25 18:49:15.541 14288 14384 W Parcel : Expecting binder but got null!
And it shows the message: "Sorry, this media file doesn't exist on your internal storage".
The following folder is empty: \Zenfone 8\Internal shared storage\TwinApps\Android\media\com.whatsapp
It looks like the permissions of the TwinApps folder or some/all of the subfolders are incorrectly set.
06-06-2023 02:01 AM
If TwinApps isn't working correctly, you can try to use Work Profile. The application installed in Work Profile don't have access to files in the Personal Profile, but from Personal Profile you can Share media to apps in Work Profile.
I configured Work Profile using Shelter app (available on F-Droid) and I'm happy with the solution.
08-21-2023 01:39 AM