device/sample: Enhanced example to include usage of exposing APIs

Change-Id: Id0c0b2201ecb3d087ec1ae48b6629ee4f403dbfb
diff --git a/products/addon_stub_defs b/products/addon_stub_defs
new file mode 100644
index 0000000..2fed57a
--- /dev/null
+++ b/products/addon_stub_defs
@@ -0,0 +1 @@
++com.example.android.platform_library.*
diff --git a/products/sample_addon.mk b/products/sample_addon.mk
index 85c7486..ef15a10 100644
--- a/products/sample_addon.mk
+++ b/products/sample_addon.mk
@@ -27,6 +27,9 @@
 PRODUCT_SDK_ADDON_COPY_MODULES := \
     com.example.android.platform_library:libs/platform_library.jar
 
+# Rules for public APIs
+PRODUCT_SDK_ADDON_STUB_DEFS := $(LOCAL_PATH)/addon_stub_defs
+
 # Name of the doc to generate and put in the add-on. This must match the name defined
 # in the optional library with the tag
 #    LOCAL_MODULE:= platform_library
diff --git a/sdk_addon/manifest.ini b/sdk_addon/manifest.ini
index fc82727..2a0be24 100644
--- a/sdk_addon/manifest.ini
+++ b/sdk_addon/manifest.ini
@@ -13,7 +13,7 @@
 description=sample add-on
 
 # version of the Android platform on which this add-on is built.
-api=3
+api=15
 
 # revision of the add-on. This must be a strict integer.
 revision=1