<?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 Linux adb root permission is abnormal in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-adb-root-permission-is-abnormal/m-p/1335287#M179597</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; The imx8qxpc0mek kernel version is 4.14.98.2.3.3，the yocto version is&amp;nbsp;2.5.2.We wanted to use ADB in Linux, so we integrated with bitbake android-tools.However, we found that after the client established a connection with the device through adb shell, it was abnormal to switch to root permission by su command, and operations such as chmod cannot be performed under root permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The following are the adb.service in use and the adb.sh that starts the ADB service,What changes should be made to resolve the root permission exception&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Unit]
Description=adb start service
After=network.target

[Service]
Type=simple
WorkingDirectory=/home
ExecStart=/home/adb.sh
ExecStop=/bin/kill -s TERM $MAINPID


[Install]
WantedBy=multi-user.target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/sh

groupadd -g 2000 test
groupadd soft3
useradd -u 2000 -g soft3 -G testtom

modprobe g_ffs idVendor=0x18d1 idProduct=0xd002 iSerialNumber="test"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &amp;amp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Sep 2021 07:00:24 GMT</pubDate>
    <dc:creator>Chris_Zheng</dc:creator>
    <dc:date>2021-09-06T07:00:24Z</dc:date>
    <item>
      <title>Linux adb root permission is abnormal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-adb-root-permission-is-abnormal/m-p/1335287#M179597</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; The imx8qxpc0mek kernel version is 4.14.98.2.3.3，the yocto version is&amp;nbsp;2.5.2.We wanted to use ADB in Linux, so we integrated with bitbake android-tools.However, we found that after the client established a connection with the device through adb shell, it was abnormal to switch to root permission by su command, and operations such as chmod cannot be performed under root permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The following are the adb.service in use and the adb.sh that starts the ADB service,What changes should be made to resolve the root permission exception&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Unit]
Description=adb start service
After=network.target

[Service]
Type=simple
WorkingDirectory=/home
ExecStart=/home/adb.sh
ExecStop=/bin/kill -s TERM $MAINPID


[Install]
WantedBy=multi-user.target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/sh

groupadd -g 2000 test
groupadd soft3
useradd -u 2000 -g soft3 -G testtom

modprobe g_ffs idVendor=0x18d1 idProduct=0xd002 iSerialNumber="test"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &amp;amp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 07:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-adb-root-permission-is-abnormal/m-p/1335287#M179597</guid>
      <dc:creator>Chris_Zheng</dc:creator>
      <dc:date>2021-09-06T07:00:24Z</dc:date>
    </item>
  </channel>
</rss>

