Comment 3 for bug 1365911

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