Allow library to be used by apps directly

Change-Id: Ib74be626471d73817d644c7777a2b18a32712f8a

Author: Adrian DC <radian.dc@gmail.com>
Date:   Thu Mar 8 22:46:55 2018 +0100
fm: Resolve required dependency qcom.fmradio.xml linkage

 * LOCAL_REQUIRED_MODULES should be used instead of
    LOCAL_ADDITIONAL_DEPENDENCIES to link a module

 * fm/Android.mk:
    error: qcom.fmradio: LOCAL_ADDITIONAL_DEPENDENCIES
    must only contain paths (not module names)

Change-Id: Ic0bebf752101f5d16abc52e085bae4acd0b0c61c
diff --git a/Android.bp b/Android.bp
index 63687df..291c3fd 100644
--- a/Android.bp
+++ b/Android.bp
@@ -10,3 +10,9 @@
 
     srcs: ["qcom/fmradio/**/*.java"],
 }
+
+prebuilt_etc {
+    name: "qcom.fmradio.xml",
+    src: "qcom/fmradio/qcom.fmradio.xml",
+    sub_dir: "permissions",
+}
diff --git a/qcom/fmradio/qcom.fmradio.xml b/qcom/fmradio/qcom.fmradio.xml
new file mode 100644
index 0000000..6a55cc6
--- /dev/null
+++ b/qcom/fmradio/qcom.fmradio.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+    <library name="qcom.fmradio"
+            file="/system/framework/qcom.fmradio.jar" />
+</permissions>