PDA

View Full Version : PBO Alpine Android based software development



snappy46
02-22-2013, 07:52 PM
Development for the PBO Alpine

At the bare minimum before you dive into android PBO Alpine development you should be somewhat familiar with programming in general and more importantly JAVA or Android programming. Those with C++ experience should also be able to pick that up pretty quickly based on the similarity with JAVA when dealing with object oriented programming OOP.

That being said for those that might be interested in getting into android development for the PBO Alpine here's some guidelines to help.

1) Recommended tools/software.
- Eclipse IDE for Java EE Developers
- Android SDK
Refer to this link for those Items and installation procedure: http://developer.android.com/sdk/index.html

- Dex2Jar: http://code.google.com/p/dex2jar/downloads/list
- Jd-Gui http://java.decompiler.free.fr/?q=jdgui


2) When developing target Android 2.2 for best compatibility. For even better compability see point #3.

3) The Patriot Alpine does not use the official android 2.2 but rather a modified version with some added class specific to the PBO Alpine. Most of the changes deal with skyviia services; therefore if you wish to use some of those classes you will need to add the PBO libraries to your project build path. First however you need to create a jar file. To create the jar file specific to the PBO Alpine (Skyviia player really) do the following:

- Access Your PBO Alpine using adb. --> adb connect PlayerIPAddress
- Then pull the required core and framework files which basically makes up the library.
- adb pull /system/framework/framework.jar
- adb pull /system/framework/core.jar

- Despite being call jar files those files actually contains dex file therefore we need to convert them to jar. This can be done using the dex2jar tool following the procedure:

Windows:
- dex2jar <Path_Of_framework.jar>framework.jar
- dez2jar <Path_Of_core.jar>core.jar

Linux:
- dex2jar.sh <Path_Of_framework.jar>framework.jar
- dez2jar.sh <Path_Of_core.jar>core.jar

- Now you should have files named framework-dex2jar.jar and core-dex2jar.jar

- pull in these jars using "Add External JARs..." (assuming you're using Eclipse ADT)

- right click on Project ? Properties ? Java Build Path ? Libraries ? Add External JARs... ? (Choose the core-dex2jar.jar and framework-dex2jar.jar from above).

- You may delete the android.jar file from the libraries but this not seems to be necessary. Unless you have some issues I suggest you leave it there even if it duplicate a lot of the same classes found in the framework and core. Anyhow these libraries will definitely be needed if you try to do any type of reverse enginnering on some of the currently available PBO Alpine apps or wnat to make calls to some of the skyvvia services running on the PBO.


4) At this point you are pretty much ready to create compatible PBO Alpine apps. Unfortunately there isn't any comments on the skyviia classes but the name of the classes, methods + looking at the code gives you a pretty good idea what they are use for and what they are doing.

Hope this helps some motivated soul.

Happy computing.

Snappy

lordmayo
02-24-2013, 12:07 AM
Hope this helps some motivated soul.

Happy computing.

Snappy

WHOA Snappy that's really great stuff - very much appreciated!!!!