Open Huexxx opened 5 months ago
Seems to be related to InputMethod... when Telegram clone invokes the keyboard we get the FATAL EXCEPTION.
I've tried to modify clonedapps list to allow to clone GBoard, but with GBoard cloned on same user (10) Telegram keeps failing in the same way.
The problem was reported too by an user of alioth build (official), but same problem here on my unnofficial build for chiron. Thank to that, I can asume that is not a device-related, kernel-related or tree-related specific issue.
In his case was using it with another user. I've got the same issue cloning it, with terminal activated work profile, or using island/insular. Same problem in all the cases.
After setting up cloned Telegram, you can launch it, but after pressing "Start messaging" app FCs.
CLONE_PROBLEM.txt CLONE_PROBLEM_D.txt
I've patched sepolicies as much as I could, but to say that there's a denial that I cannot address...
W ssioncontroller: type=1400 audit(0.0:42): avc: denied { search } for name="0" dev="sda17" ino=177427 scontext=u:r:permissioncontroller_app:s0:c177,c257,c522,c768 tcontext=u:object_r:system_data_file:s0:c512,c768 tclass=dir permissive=0
I have created the needed rule but it keeps being denied...
https://github.com/Huexxx/device_xiaomi_msm8998-common/commit/2e2bf1a84b102b253180d7cbcfb43b4362272948
I've also created this needed rule:
allow untrusted_app_32 media_rw_data_file:file { relabelfrom relabelto };
In this case I've removed the denials, but without sucess getting it to work.
I've forced FCs at 16:00:00, 16:00:10, 16:00:20... to better locate the problem on logs.
This is the main crash, and it only appears the first time:
IMHO every cloned app shouldn't need to have "android.permission.INTERACT_ACROSS_USERS_FULL" permission...
These are the recurrent FC on every attempt:
Any ideas?
I'll provide any log or test that you need.
Regards.