nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.29k stars 72 forks source link

Android TV: Unable to install bootstrap #301

Open BenediktBroich opened 11 months ago

BenediktBroich commented 11 months ago

Unable to Bootstrap zip after starting app for the first time. App version from F-Droid (Version 0.118.0_v0.3.3_nix (188033)). Also the app does not ask for or can get any permissions in the android permission menu. Old Termux( Version 0.118.0 (118)) does work as expected. Error:

Unable to install bootstrap
Nix was unable to install the bootstrap packages.
                                            ABORT TRY AGAIN

adb logcat | grep com.termux.nix

11-04 14:32:31.234   394   855 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#0](id:18a000003c5,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.236 28234 30131 I Nix.TermuxInstaller: Extracting bootstrap zip to prefix staging directory "/data/data/com.termux.nix/files/usr-staging".
11-04 14:32:31.259 28234 28234 W RenderThread: type=1400 audit(0.0:17726): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.259 28234 28234 W RenderThread: type=1400 audit(0.0:17727): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.271 28234 28234 W RenderThread: type=1400 audit(0.0:17728): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.271 28234 28234 W RenderThread: type=1400 audit(0.0:17729): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.291   394  1304 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#2](id:18a000003c7,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.291 28234 28234 W RenderThread: type=1400 audit(0.0:17730): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.565   394  1304 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#2](id:18a000003c7,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.626   394   871 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#0](id:18a000003c8,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.742   645   645 D NotificationService: 0|com.termux.nix|14|null|10102: granting content://settings/system/notification_sound
11-04 14:32:31.743   645   645 D NotificationService: 0|com.termux.nix|14|null|10102: granting content://settings/system/notification_sound
11-04 14:32:33.179 28234 28234 W RenderThread: type=1400 audit(0.0:17740): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:33.183 28234 28234 W RenderThread: type=1400 audit(0.0:17741): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix

System: Formovie THEATER Kernel-Version: 4.19.116+ Android TV-Betriebssystem-Build: RTM6.230109.094

t184256 commented 11 months ago

On November 4, 2023 2:36:22 PM GMT+01:00, Benedikt Broich @.***> wrote:

Unable to install bootstrap
Nix was unable to install the bootstrap packages.
                                           ABORT TRY AGAIN
11-04 14:32:31.234   394   855 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#0](id:18a000003c5,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.236 28234 30131 I Nix.TermuxInstaller: Extracting bootstrap zip to prefix staging directory "/data/data/com.termux.nix/files/usr-staging".
11-04 14:32:31.259 28234 28234 W RenderThread: type=1400 audit(0.0:17726): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.259 28234 28234 W RenderThread: type=1400 audit(0.0:17727): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.271 28234 28234 W RenderThread: type=1400 audit(0.0:17728): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.271 28234 28234 W RenderThread: type=1400 audit(0.0:17729): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.291   394  1304 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#2](id:18a000003c7,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.291 28234 28234 W RenderThread: type=1400 audit(0.0:17730): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:31.565   394  1304 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#2](id:18a000003c7,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.626   394   871 E BufferQueueProducer: [com.termux.nix/com.termux.app.TermuxActivity#0](id:18a000003c8,api:0,p:-1,c:394) disconnect: not connected (req=1)
11-04 14:32:31.742   645   645 D NotificationService: 0|com.termux.nix|14|null|10102: granting content://settings/system/notification_sound
11-04 14:32:31.743   645   645 D NotificationService: 0|com.termux.nix|14|null|10102: granting content://settings/system/notification_sound
11-04 14:32:33.179 28234 28234 W RenderThread: type=1400 audit(0.0:17740): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d15 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix
11-04 14:32:33.183 28234 28234 W RenderThread: type=1400 audit(0.0:17741): avc: denied { ioctl } for path="/dev/mma" dev="tmpfs" ino=357 ioctlcmd=0x4d16 scontext=u:r:untrusted_app_27:s0:c102,c256,c512,c768 tcontext=u:object_r:mstar_mma_device:s0 tclass=chr_file permissive=0 app=com.termux.nix

System: Formovie THEATER Kernel-Version: 4.19.116+ Android TV-Betriebssystem-Build: RTM6.230109.094

Does Termux install fine?

BenediktBroich commented 11 months ago

@t184256 Yes. Old Termux( Version 0.118.0 (118)) does work as expected.

J7777785 commented 10 months ago