android container should not enable adb and mtp from default.prop

Bug #1416293 reported by Oliver Grawert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Michael Frey
lxc-android-config (Ubuntu)
Fix Released
High
Oliver Grawert

Bug Description

if the android container rootfs is built with ro.debuggable=1 it will put a default.prop file into the container rootfs with persist.sys.usb.config set to mtp,adb. on first boot after a factory flash (not using ubuntu-device-flash) when there was no value for this property set prior to starting the container this causes the gadget to be in adb mode without running adbd daemon. in his case the device will show up as "offline" in "adb devices" on a PC until developer mode was toggled once in the settings UI.

lxc-android-config needs to ship a pre-start.d snippet that removes this entry from default.prop. this way recovery boots can still benefit from ro.debuggable being set while adb behavior will not be affected in normal boots.

--- /var/lib/lxc/android/pre-start.d/20-no-default-prop-adb ---

#! /bin/sh

sed -i '/^persist.sys.usb.config=.*/d' $LXC_ROOTFS_PATH/default.prop

---

Oliver Grawert (ogra)
Changed in lxc-android-config (Ubuntu):
assignee: nobody → Oliver Grawert (ogra)
status: New → In Progress
importance: Undecided → High
Changed in lxc-android-config (Ubuntu RTM):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Oliver Grawert (ogra)
Oliver Grawert (ogra)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc-android-config - 0.217

---------------
lxc-android-config (0.217) vivid; urgency=medium

  * make sure persist.sys.usb.config is not set in default.prop on builds with
    ro.debuggable=1 enabled (LP: #1416293)
 -- Oliver Grawert <email address hidden> Fri, 30 Jan 2015 09:31:22 +0100

Changed in lxc-android-config (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
importance: Undecided → High
milestone: none → ww07-2015
status: New → In Progress
Changed in canonical-devices-system-image:
assignee: nobody → Michael Frey (mfrey)
milestone: ww07-2015 → ww09-2015
Changed in canonical-devices-system-image:
milestone: ww09-2015 → ww11-2015
no longer affects: lxc-android-config (Ubuntu RTM)
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.