<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Service  to run script after boot Android 14 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Service-to-run-script-after-boot-Android-14/m-p/2037174#M233554</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are trying execute script after boot&lt;BR /&gt;&lt;BR /&gt;We are able to run the script with root privileges and get expected results.&lt;/P&gt;&lt;P&gt;but it fails when it try to execute after sys.boot_completed&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1)Script file is cp to /vendor/bin/ using device.mk&lt;BR /&gt;we have give executable permission to script file and then cp to target using device.mk&lt;/P&gt;&lt;P&gt;2 )We have added Sepolicy&amp;nbsp; and context_file&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) We have added a service to call the script in init.imx8mp.rc&lt;BR /&gt;&lt;BR /&gt;attached changes as patch for reference&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the service get started getting error in dmesg permissive 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 40.892401] type=1400 audit(1738600947.360:11): avc: denied { write } for comm="touch" name="local" dev="dm-45" ino=69 scontext=u:r:tinymix-setup-sh:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="ANDROID-AUTO" id="ANDROID-AUTO"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="IMX8MPLUS" id="IMX8MPLUS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 11:31:23 GMT</pubDate>
    <dc:creator>shiva141</dc:creator>
    <dc:date>2025-02-03T11:31:23Z</dc:date>
    <item>
      <title>Service  to run script after boot Android 14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Service-to-run-script-after-boot-Android-14/m-p/2037174#M233554</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are trying execute script after boot&lt;BR /&gt;&lt;BR /&gt;We are able to run the script with root privileges and get expected results.&lt;/P&gt;&lt;P&gt;but it fails when it try to execute after sys.boot_completed&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1)Script file is cp to /vendor/bin/ using device.mk&lt;BR /&gt;we have give executable permission to script file and then cp to target using device.mk&lt;/P&gt;&lt;P&gt;2 )We have added Sepolicy&amp;nbsp; and context_file&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) We have added a service to call the script in init.imx8mp.rc&lt;BR /&gt;&lt;BR /&gt;attached changes as patch for reference&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the service get started getting error in dmesg permissive 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 40.892401] type=1400 audit(1738600947.360:11): avc: denied { write } for comm="touch" name="local" dev="dm-45" ino=69 scontext=u:r:tinymix-setup-sh:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="ANDROID-AUTO" id="ANDROID-AUTO"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="IMX8MPLUS" id="IMX8MPLUS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Service-to-run-script-after-boot-Android-14/m-p/2037174#M233554</guid>
      <dc:creator>shiva141</dc:creator>
      <dc:date>2025-02-03T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Service  to run script after boot Android 14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Service-to-run-script-after-boot-Android-14/m-p/2037738#M233594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You have not added the permission of the root privilegies. you need to make chmod at moment of save the file.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 14:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Service-to-run-script-after-boot-Android-14/m-p/2037738#M233594</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-02-04T14:34:52Z</dc:date>
    </item>
  </channel>
</rss>

