<?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: iMX8QM Android Automotive OS Root Permission Error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1584378#M200299</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;When I run the "su" command from the console of Android Automotive OS, I become root.&lt;/P&gt;&lt;P&gt;I want to do this with the APK I developed, but I can't.&lt;/P&gt;&lt;P&gt;As I said above, when I send the "su" command from within the APK, I get a "permission denied" error in the Android Studio console.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Efecan&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 06:22:12 GMT</pubDate>
    <dc:creator>cbl</dc:creator>
    <dc:date>2023-01-18T06:22:12Z</dc:date>
    <item>
      <title>iMX8QM Android Automotive OS Root Permission Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1583198#M200180</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I compiled Android Automotive OS 10 with userdebug build option for NXP iMX8QM.&lt;/P&gt;&lt;P&gt;I need to give root privileges by running the "su" command from within the APK that I developed with Android Studio.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;public static void sudo(String... strings) {
        try {
            Process su = Runtime.getRuntime().exec("su");
            DataOutputStream outputStream = new DataOutputStream(su.getOutputStream());

            for (String s : strings) {
                outputStream.writeBytes(s + "\n");
                outputStream.flush();
            }

            outputStream.writeBytes("exit\n");
            outputStream.flush();
            try {
                su.waitFor();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            outputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the code block below to do this. But I get the error "&lt;STRONG&gt;W/System.err: java.io.IOException: Cannot run program "su": error=13, Permission denied&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;What should I do in this situation, could you please help me this issue?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Efecan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 13:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1583198#M200180</guid>
      <dc:creator>cbl</dc:creator>
      <dc:date>2023-01-16T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM Android Automotive OS Root Permission Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1584024#M200259</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Looks like the problem is in the host setup for su, the password of the BSP is "root".&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1584024#M200259</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-01-17T14:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QM Android Automotive OS Root Permission Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1584378#M200299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;When I run the "su" command from the console of Android Automotive OS, I become root.&lt;/P&gt;&lt;P&gt;I want to do this with the APK I developed, but I can't.&lt;/P&gt;&lt;P&gt;As I said above, when I send the "su" command from within the APK, I get a "permission denied" error in the Android Studio console.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Efecan&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 06:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Android-Automotive-OS-Root-Permission-Error/m-p/1584378#M200299</guid>
      <dc:creator>cbl</dc:creator>
      <dc:date>2023-01-18T06:22:12Z</dc:date>
    </item>
  </channel>
</rss>

