MTP not working on boot if passcode not set

Bug #1365911 reported by Michał Sawicz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dbus-property-service (Ubuntu)
Invalid
Undecided
Unassigned
lxc-android-config (Ubuntu)
Fix Released
High
Oliver Grawert

Bug Description

mako devel-proposed#223

MTP doesn't work for me on boot if I don't have a passcode set up. This seems to be related to the new developer mode landings. Devmode is still forced on on boot so that we don't lock ourselves out, but MTP should be unaffected.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: dbus-property-service 0.5
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.7-0ubuntu2
Architecture: armhf
Date: Fri Sep 5 10:37:51 2014
InstallationDate: Installed on 2014-09-05 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140905-020205)
PackageArchitecture: all
SourcePackage: dbus-property-service
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michał Sawicz (saviq) wrote :
summary: - MTP not working on boot
+ MTP not working on boot if passcode not set
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dbus-property-service (Ubuntu):
status: New → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

the following diff will fix this:

dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von /home/ogra/Devel/packages/lxc-android-config_0.195.dsc
diff -Nru lxc-android-config-0.195/debian/changelog lxc-android-config-0.196/debian/changelog
--- lxc-android-config-0.195/debian/changelog 2014-09-04 22:59:20.000000000 +0200
+++ lxc-android-config-0.196/debian/changelog 2014-09-05 12:57:22.000000000 +0200
@@ -1,3 +1,11 @@
+lxc-android-config (0.196) utopic; urgency=medium
+
+ * drop the hardcoded forcing of adb and mtp from androids init.rc
+ * add an upstart job that forces mtp on permanently even if developer mode
+ is toggled on or off (LP: #1365911)
+
+ -- Oliver Grawert <email address hidden> Fri, 05 Sep 2014 12:53:07 +0200
+
 lxc-android-config (0.195) utopic; urgency=medium

   * Moving the UDISK_SYSTEM hint to a generic android udev rule with an
diff -Nru lxc-android-config-0.195/etc/init/force-mtp.conf lxc-android-config-0.196/etc/init/force-mtp.conf
--- lxc-android-config-0.195/etc/init/force-mtp.conf 1970-01-01 01:00:00.000000000 +0100
+++ lxc-android-config-0.196/etc/init/force-mtp.conf 2014-09-05 12:53:04.000000000 +0200
@@ -0,0 +1,10 @@
+istart on android and started lightdm
+
+task
+
+script
+ if android-gadget-service status mtp|grep -q disabled
+ then
+ android-gadget-service enable mtp
+ fi
+end script
diff -Nru lxc-android-config-0.195/var/lib/lxc/android/pre-start.d/20-no-forced-adb lxc-android-config-0.196/var/lib/lxc/android/pre-start.d/20-no-forced-adb
--- lxc-android-config-0.195/var/lib/lxc/android/pre-start.d/20-no-forced-adb 1970-01-01 01:00:00.000000000 +0100
+++ lxc-android-config-0.196/var/lib/lxc/android/pre-start.d/20-no-forced-adb 2014-09-05 12:52:15.000000000 +0200
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sed -i '/# adb force hack$/,+3d' $LXC_ROOTFS_PATH/init.rc

Changed in lxc-android-config (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Oliver Grawert (ogra)
Changed in dbus-property-service (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Oliver Grawert (ogra) wrote :

but i need to verify first that ubuntu-device-flash actually sets teh proper default when --developer-mode is used as option

Changed in lxc-android-config (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Oliver Grawert (ogra) wrote :

ok, this seems to be the case ... uploaded to the archive

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
lxc-android-config (0.196) utopic; urgency=medium

  * drop the hardcoded forcing of adb and mtp from androids init.rc
  * add an upstart job that forces mtp on permanently even if developer mode
    is toggled on or off (LP: #1365911)
 -- Oliver Grawert <email address hidden> Fri, 05 Sep 2014 12:53:07 +0200

Changed in lxc-android-config (Ubuntu):
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.