<?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 Re: Android 9 Custom Service crashes with clean AOSP build in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027121#M151780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Diego.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;VInothS,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2019 12:02:06 GMT</pubDate>
    <dc:creator>vinothkumars</dc:creator>
    <dc:date>2019-11-26T12:02:06Z</dc:date>
    <item>
      <title>Android 9 Custom Service crashes with clean AOSP build</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027118#M151777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Dear NXP,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;I am&amp;nbsp;&lt;/SPAN&gt;working on IMX8QM with Android 9.&amp;nbsp;Custom Service&lt;SPAN style="color: #242729;"&gt;&amp;nbsp;will crash immediately after with &lt;STRONG&gt;clean Android 9 build.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit; "&gt;But, In incremental build is working proper,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; : ; color: #242729; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; init: Service 'usb-update' (pid 1773) exited with status 0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;Build Steps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;source build/envsetup.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;lunch&amp;nbsp;mek_8q_car-userdebug&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;make clean&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;make -j6&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;After flashed, board boot stopped with following "&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;init: Service 'usb-update' (pid 1712) exited with status 1&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;logcat&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;output is below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;[ 24.567040] capability: warning: `main' uses 32-bit capabilities (legacy support in use)&lt;BR /&gt;[ 26.883154] type=1400 audit(1574312331.560:31): avc: denied { map } for pid=1866 comm="update_engine" path="/dev/event-log-tags" dev="tmpfs" ino=10312 scontext=u:r:update_engine:s0 tcontext=u:object_r:runtime_event_log_tags_file:s0 tclass=file permissive=1&lt;BR /&gt;[ 26.905910] type=1400 audit(1574312336.156:32): avc: denied { dac_read_search } for pid=1846 comm="Binder:1846_1" capability=2 scontext=u:r:installd:s0 tcontext=u:r:installd:s0 tclass=capability permissive=1&lt;BR /&gt;[ 27.043460] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a&lt;BR /&gt;[ 27.104893] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a&lt;BR /&gt;[ 27.116612] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a&lt;BR /&gt;[ 27.292579] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 27.307130] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default&lt;BR /&gt;[ 27.317227] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 27.332096] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default&lt;BR /&gt;[ 27.342317] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 27.356932] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default&lt;BR /&gt;[ 27.367309] init: Received control message 'interface_start' for 'android.hardware.ir@1.0::IConsumerIr/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 27.381624] init: Could not find service hosting interface android.hardware.ir@1.0::IConsumerIr/default&lt;BR /&gt;[ 27.407791] init: processing action (sys.sysctl.extra_free_kbytes=*) from (/init.rc:725)&lt;BR /&gt;[ 27.424139] init: Received control message 'interface_start' for 'android.hardware.vr@1.0::IVr/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 38.968372] type=1400 audit(1574312336.156:32): avc: denied { dac_read_search } for pid=1846 comm="Binder:1846_1" capability=2 scontext=u:r:installd:s0 tcontext=u:r:installd:s0 tclass=capability permissive=1&lt;BR /&gt;[ 38.973122] init: Received control message 'interface_start' for 'android.hardware.oemlock@1.0::IOemLock/default' from pid: 1685 (/system/bin/hwservicemanager)&lt;BR /&gt;[ 38.988474] type=1400 audit(1574312388.664:33): avc: denied { dac_read_search } for pid=1713 comm="Binder:1713_3" capability=2 scontext=u:r:vold:s0 tcontext=u:r:vold:s0 tclass=capability permissive=1&lt;BR /&gt;[ 39.001237] init: Could not find service hosting interface android.hardware.oemlock@1.0::IOemLock/default&lt;BR /&gt;[ 61.190476] type=1400 audit(1574312388.664:33): avc: denied { dac_read_search } for pid=1713 comm="Binder:1713_3" capability=2 scontext=u:r:vold:s0 tcontext=u:r:vold:s0 tclass=capability permissive=1&lt;BR /&gt;[ 61.208394] type=1400 audit(1574312410.888:34): avc: denied { read } for pid=1712 comm="usb-update.sh" name="media_rw" dev="tmpfs" ino=8655 scontext=u:r:usb-update:s0 tcontext=u:object_r:mnt_media_rw_file:s0 tclass=dir permissive=1&lt;BR /&gt;[ 61.208567] audit: audit_lost=15 audit_rate_limit=5 audit_backlog_limit=64&lt;BR /&gt;[ 61.229117] type=1400 audit(1574312410.888:34): avc: denied { read } for pid=1712 comm="usb-update.sh" name="media_rw" dev="tmpfs" ino=8655 scontext=u:r:usb-update:s0 tcontext=u:object_r:mnt_media_rw_file:s0 tclass=dir permissive=1&lt;BR /&gt;[ 61.235811] audit: rate limit exceeded&lt;BR /&gt;&lt;STRONG&gt;[ 61.237875] init: Service 'usb-update' (pid 1712) exited with status 1&lt;/STRONG&gt;&lt;BR /&gt;[ 61.256443] type=1400 audit(1574312410.888:35): avc: denied { open } for pid=1712 comm="usb-update.sh" path="/mnt/media_rw" dev="tmpfs" ino=8655 scontext=u:r:usb-update:s0 tcontext=u:object_r:mnt_media_rw_file:s0 tclass=dir permissive=1&lt;BR /&gt;[ 61.287681] type=1400 audit(1574312410.888:35): avc: denied { open } for pid=1712 comm="usb-update.sh" path="/mnt/media_rw" dev="tmpfs" ino=8655 scontext=u:r:usb-update:s0 tcontext=u:object_r:mnt_media_rw_file:s0 tclass=dir permissive=1&lt;BR /&gt;[ 61.308656] type=1400 audit(1574312410.888:36): avc: denied { getattr } for pid=2168 comm="usb-update.sh" path="/system/bin/toybox" dev="dm-0" ino=1371 scontext=u:r:usb-update:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=1&lt;BR /&gt;[ 61.329989] type=1400 audit(1574312410.888:36): avc: denied { getattr } for pid=2168 comm="usb-update.sh" path="/system/bin/toybox" dev="dm-0" ino=1371 scontext=u:r:usb-update:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=1&lt;BR /&gt;[ 61.351227] type=1400 audit(1574312410.888:37): avc: denied { execute } for pid=2168 comm="usb-update.sh" name="toybox" dev="dm-0" ino=1371 scontext=u:r:usb-update:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=1&lt;BR /&gt;[ 61.371493] type=1400 audit(1574312410.888:37): avc: denied { execute } for pid=2168 comm="usb-update.sh" name="toybox" dev="dm-0" ino=1371 scontext=u:r:usb-update:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=1&lt;BR /&gt;[ 61.391676] type=1400 audit(1574312410.888:38): avc: denied { read open } for pid=2168 comm="usb-update.sh" path="/system/bin/toybox" dev="dm-0" ino=1371 scontext=u:r:usb-update:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=1&lt;BR /&gt;[ 81.762527] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a&lt;BR /&gt;[ 81.896850] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #242729; font-weight: inherit;"&gt;VinothS,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 09:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027118#M151777</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2019-11-22T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Android 9 Custom Service crashes with clean AOSP build</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027119#M151778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I am facing the same problem. After clean build service crashed and Android boot also stopped, what was the issue. I need some general information about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;VinothS,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027119#M151778</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2019-11-25T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Android 9 Custom Service crashes with clean AOSP build</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027120#M151779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the custom services are out of our scope of support. Furthermore, you are using a product that is still in pre-production. I have found the following, hope it could be useful for you.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.android.com/guide/components/services?hl=es-419" title="https://developer.android.com/guide/components/services?hl=es-419"&gt;Descripción general de los servicios &amp;nbsp;|&amp;nbsp; Android Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for the inconvenience this may give you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 18:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027120#M151779</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-11-25T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Android 9 Custom Service crashes with clean AOSP build</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027121#M151780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Diego.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;VInothS,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 12:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027121#M151780</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2019-11-26T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Android 9 Custom Service crashes with clean AOSP build</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027122#M151781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the final configuration and it's resolve the clean build issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. give permissive to run the service&lt;/P&gt;&lt;P&gt;BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. start the service from init&lt;/P&gt;&lt;P&gt;# Start the service&lt;BR /&gt;&amp;nbsp; &amp;nbsp;start usb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;# Provide the root permission to the script&lt;BR /&gt;&amp;nbsp;exec - root root vendor -- /vendor/bin/usb.sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;# start the usb service&lt;BR /&gt;&amp;nbsp;service usb /vendor/bin/usb.sh&lt;BR /&gt;&amp;nbsp;class main&lt;BR /&gt;&amp;nbsp;user root&lt;BR /&gt;&amp;nbsp;group root system&lt;BR /&gt;&amp;nbsp;disabled&lt;BR /&gt;&amp;nbsp;oneshot&lt;BR /&gt;&amp;nbsp;seclabel u:r:usb:s0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. add in file context,&lt;/P&gt;&lt;P&gt;/vendor/bin/usb.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u:object_r:usb_exec:s0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Define sepolicy.&lt;/P&gt;&lt;P&gt;type usb, domain;&lt;BR /&gt;type usb_exec, exec_type, vendor_file_type, file_type;&lt;/P&gt;&lt;P&gt;init_daemon_domain(usb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;VinothS,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 04:31:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Custom-Service-crashes-with-clean-AOSP-build/m-p/1027122#M151781</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2019-11-27T04:31:21Z</dc:date>
    </item>
  </channel>
</rss>

