Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Android Selector 1.1"

(Install plugin files)
(Installation)
Line 63: Line 63:
 
  echo create cache file
 
  echo create cache file
 
  adb shell ">/data/dalvik-cache/data@data@com.android.browser@app_plugins@%MODULE%-%VERSION%@%PWM_ANDROID_JAR%@classes.dex"
 
  adb shell ">/data/dalvik-cache/data@data@com.android.browser@app_plugins@%MODULE%-%VERSION%@%PWM_ANDROID_JAR%@classes.dex"
 +
 +
Restart Android and launch I-Card Selector.
  
 
===Configuration===
 
===Configuration===

Revision as of 09:52, 12 November 2009

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}

Higgins logo 76Wx100H.jpg

Version

This page describes the Android solution being developed for Higgins 1.1.

Introduction

This is a standalone Android application that can be launched automatically from a relying party website. For more information about Information Cards and Selectors visit http://informationcard.net

End User Perspective

The Android I-Card Selector allows users to use their I-Cards at relying parties.

This component only works at relying parties that explicitly support it.

AndroidSelectorScreenshot3.png

Installation

Installation on Windows

First of all, you must have installed Android SDK (at now 1.6 version). If ANDROID_SDK environment variable not setted, do next:

  • set ANDROID_SDK variable with value of path to Android SDK;
  • update PATH variable with you ANDROID_SDK variable.

After that, connect you device (or run emulator with Android 1.6) to PC. Next steps must execute with connected device or emulator. Unpack archive and go to directory with unpacked files.

Install apk files

Execute "install_apk.bat" or run in command-line:

for /r %i in (*.apk) do adb install %i
Install plugin files

Execute "install_plugin.bat" file or run in command-line:

set MODULE=pwm
set VERSION=0.1.0.0

set ANDROID_DEVICE_BROWSER_DIR=/data/data/com.android.browser
set ANDROID_DEVICE_INSTALL_DIR=%ANDROID_DEVICE_BROWSER_DIR%/app_plugins
set PLUGIN_NAME=%MODULE%.so
set PLUGIN_RESOURCES_DIR=%ANDROID_DEVICE_INSTALL_DIR%/%MODULE%-%VERSION%
set HTML_FILES_PATH=.

rem filenames for copying
set PWM_ANDROID_JAR="pwm-android.jar"
set SCRIPT_HTML="script.html"
set PWM_SO="pwm.so"

echo Create directories on the target.
adb shell mkdir %ANDROID_DEVICE_BROWSER_DIR% >/dev/null
adb shell mkdir %ANDROID_DEVICE_INSTALL_DIR% >/dev/null
adb shell mkdir %PLUGIN_RESOURCES_DIR% >/dev/null

echo copy so files
adb push %PWM_SO% %ANDROID_DEVICE_INSTALL_DIR%/%PWM_SO%
adb push %PWM_ANDROID_JAR% %PLUGIN_RESOURCES_DIR%/%PWM_ANDROID_JAR%
adb push %SCRIPT_HTML% %PLUGIN_RESOURCES_DIR%/%SCRIPT_HTML%

echo create cache file
adb shell ">/data/dalvik-cache/data@data@com.android.browser@app_plugins@%MODULE%-%VERSION%@%PWM_ANDROID_JAR%@classes.dex"

Restart Android and launch I-Card Selector.

Configuration

The Android I-Card Selector uses the following settings:

AndroidSelectorScreenshot1.png AndroidSelectorScreenshot2.png

Deployer Perspective

Building

The projects are:

  • app/org.eclipse.higgins.android.icard.npapi
  • app/org.eclipse.higgins.android.icard.selector
  • app/org.eclipse.higgins.android.icard.service

These projects can be checked out from the Eclipse repository at the following SVN URIs:

https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/app/org.eclipse.higgins.android.icard.npapi
https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/app/org.eclipse.higgins.android.icard.selector
https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/app/org.eclipse.higgins.android.icard.service

In order to build the Android I-Card Selector, you need the following:

To build all in Eclipse you need the following steps:

  • Check out all these projects from SVN (you can do it with Subversive plug-in).
  • Add ksoap2-android library into the classpath of service project.
  • Build Selector and Service.
  • Set up ANDROID_BUILD_TOP and ANDROID_SDK variables in the properties of NPAPI (Properties -> C/C++ Build -> Environment).
  • Build NPAPI (with run Android emulator or device).

Developer Perspective

Architecture

Android selector 1.1.101.png
(Diagram Key)

Components, Packages & Services

Components:

Services:

Back to the top