[FE training-materials-updates] android: Move the ueventd fixup later (when we actually saw what it's for)

Maxime Ripard maxime.ripard at free-electrons.com
Tue Jul 22 11:42:37 CEST 2014


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=3439594b39efe19beb4a9c3cb0069eeee842aadc

>---------------------------------------------------------------

commit 3439594b39efe19beb4a9c3cb0069eeee842aadc
Author: Maxime Ripard <maxime.ripard at free-electrons.com>
Date:   Tue Jul 22 11:26:44 2014 +0200

    android: Move the ueventd fixup later (when we actually saw what it's for)
    
    Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>


>---------------------------------------------------------------

3439594b39efe19beb4a9c3cb0069eeee842aadc
 labs/android-jni-library/android-jni-library.tex |   22 ++++++++++++++++++++--
 labs/android-native-app/android-native-app.tex   |   21 ---------------------
 2 files changed, 20 insertions(+), 23 deletions(-)

diff --git a/labs/android-jni-library/android-jni-library.tex b/labs/android-jni-library/android-jni-library.tex
index c905e7a..9013814 100644
--- a/labs/android-jni-library/android-jni-library.tex
+++ b/labs/android-jni-library/android-jni-library.tex
@@ -44,8 +44,26 @@ We should now have a system with the files
 Test what you did so far by using the \code{TestJNI.apk} application
 you'll find in the \code{felabs/android} directory.
 
-Install it using adb, and make sure that you see a succesful message
-in the logs after running it.
+Install it using adb, and run it.
+
+\section{Fix the Problems}
+
+The permission model of Android is heavily based on user
+permissions. By default, your USB device won't be accessible to
+applications. We didn't see this behaviour because we ran the mlbin
+program as root. To test if the program runs properly, test it as a
+random user on the system.
+
+To do so, you can use the command \code{su}, and you can test with the
+user \code{radio} for example.
+
+When you start your tests, you will find that \code{libusb} cannot
+open the usb devices because of restricted permissions. This can be
+fixed through \code{ueventd.rc} files. Add a device-specific
+\code{ueventd} configuration file to your build to make the files
+under \code{/dev/bus/usb/} world accessible.
+
+You should now see a succesful message in the logs after running it.
 
 \section{Going further}
 
diff --git a/labs/android-native-app/android-native-app.tex b/labs/android-native-app/android-native-app.tex
index eca3f92..2229689 100644
--- a/labs/android-native-app/android-native-app.tex
+++ b/labs/android-native-app/android-native-app.tex
@@ -35,24 +35,3 @@ standard input, following by the duration in seconds:
 
 For example, use \code{L 1 U 1 F 5} will turn left for one second, up
 for one second and fire a missile.
-
-\section{Fix the Problems}
-
-The permission model of Android is heavily based on user
-permissions. By default, your USB device won't be accessible to
-applications. We didn't see this behaviour because we ran the mlbin
-program as root. To test if the program runs properly, test it as a
-random user on the system.
-
-To do so, you can use the command \code{su}, and you can test with the
-user \code{radio} for example.
-
-When you start your tests, you will find that \code{libusb} cannot
-open the usb devices because of restricted permissions. This can be
-fixed through \code{ueventd.rc} files. Add a device-specific
-\code{ueventd} configuration file to your build to make the files
-under \code{/dev/bus/usb/} world accessible.
-
-After completing this lab, you can ask your instructor to
-give you a URL where Free Electrons' solution is available, and compare
-it with what you implemented.



More information about the training-materials-updates mailing list