ezterry / manifest-gingerbread-DS

Dream/Sapphire android manifest for Gingerbread
26 stars 8 forks source link

[feature] Not support for Open Accessory Development Kit (ADK) #32

Closed hpsaturn closed 13 years ago

hpsaturn commented 13 years ago

Testing demo app: DemoKit (https://dl-ssl.google.com/android/adk/adk_release_0512.zip)

Installation failed: (adb logcat)

E/PackageManager( 162): Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing! W/PackageManager( 162): Package couldn't be installed in /data/app/com.google.android.DemoKit-1.apk

Not support? ADK is supported in Android 2.3.4 Source code? I don't found com.android.future in source code

Resource: http://developer.android.com/guide/topics/usb/adk.html

How to I help you?

Thanks!

ezterry commented 13 years ago

Hrm... I think many things are not set up for this functionality.. (kernel, permissions, and build flags)

Will try to correct it over the next few releases.. can't promise everything will work out of box.. but hopefully the protocol can be supported.. thus if you find a device + wires + adapter it might work.

hpsaturn commented 13 years ago

Hello,

I see you already enabled the option in the kernel config:

ezgb_ebi0_defconfig:CONFIG_USB_ANDROID_ACCESSORY=y ezgb_2708_defconfig:CONFIG_USB_ANDROID_ACCESSORY=y ezgb_ebi1_defconfig:CONFIG_USB_ANDROID_ACCESSORY=y

But I tried connecting to official hardware but it didn't work: ADB: Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing!

In the device path: /system/framework The next library is not found: com.android.future.usb.accessory.jar Maybe i need to build or generate library?

Could this information in this link help?: http://forum.cyanogenmod.com/topic/26339-usb-accessory-mode-is-adk-supported-in-cm-7/

Is there anything I could do to help you getting this achieved?

ezterry commented 13 years ago

Build from source or wait for the next build of ezgb.. I've added that library.

hpsaturn commented 13 years ago

I built from source, the library was generated in the path: /system/framework and the size and permissions are: -rw-r--r-- 1 root root 2787 Aug 1 2008 com.android.future.usb.accessory.jar

but, I get the same message:

E/PackageManager( 175): Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing!

Will it be necessary register the library? or anything similar?

ezterry commented 13 years ago

Before pulling out too much hair you may wish to install your own build (ie. not just the jar file) if you havn't already and wipe dalvik cache.. could be something got confused.

Otherwise I'm not sure why it doesn’t think the library is installed. I'm not seeing anything at a glance anyway that is missing; The error you are getting is a generic installer error (missing library) and nothing specific to the Open Accessory library. Might want a logcat of the boot after the dalvik wipe to see if there was any issue registering the new library.

I'm working on other aspects atm trying to pull together the next beta.. but let me know if you find something that needs patching.

hpsaturn commented 13 years ago

Solved!!

Put in the path (/etc/permissions) the next xml: android.hardware.usb.accessory.xml

with the following lines: http://pastebin.com/6Wr4eHds

Or sync the repo with official.

ezterry commented 13 years ago

It's already in my framework: https://github.com/ezterry/GB-framework_base/blob/gingerbread/data/etc/android.hardware.usb.accessory.xml

Just needs to be copied into the output (quick edit): https://github.com/ezterry/GB-device_htc_dream-sapphire/commit/31e4cb6a3cd5603904e0b2f59da3d70cdf30f30c

hpsaturn commented 13 years ago

Video demo: http://bit.ly/qi32Tj

peppelaz commented 12 years ago

Hello everyone, I would like to install ezgingerbread on my Ideos U8150 to use the Arduino with ADK. With CyanogenMod 7 i can install Demokit, but I can not to communicate with the Arduino. Can you help me? tnx

hpsaturn commented 12 years ago

Hi,

If DemoKit was installed correctly, the problem must be in arduino. Uninstall DemoKit and please send me an logcat the installation, to verify this.

Please also send me the code that is running on your Arduino.

Regards

On Wed, Jan 18, 2012 at 6:47 AM, peppelaz < reply@reply.github.com

wrote:

Hello everyone, I would like to install ezgingerbread on my Ideos U8150 to use the Arduino with ADK. With CyanogenMod 7 i can install Demokit, but I can not to communicate with the Arduino. Can you help me? tnx


Reply to this email directly or view it on GitHub:

https://github.com/ezterry/manifest-gingerbread-DS/issues/32#issuecomment-3544493

Alvaro Antonio Vanegas P. Investigacin y Desarrollo +57 (1) 7580576 +57 (1) 2446935 +57 3014710632 http://devel.androidsith.com @hpsaturn http://twitter.com/hpsaturn Bogot, Colombia

peppelaz commented 12 years ago

Hi Antonio, tnx for your attention. The logcat eclipse does not return error and Arduino code is certainly right. My problem is that in CyanogenMod 7 for Ideos lack the ADK. I need a kernel 2.6.35+ for my Ideos U8150 or another kernel with ADK.

My error, read from serial monitor of Arduino, is:

Device addressed... Requesting device descriptor. found possible device. swithcing to serial mode Data packet error: 5could not read device protocol version

tnx for your help.

hpsaturn commented 12 years ago

Hi,

You recompiled and added the appropriate flags in the kernel from source? like: CONFIG_USB_ANDROID_ACCESSORY=y ...

peppelaz commented 12 years ago

Yes i have recompiled my kernel,

but CONFIG_USB_ANDROID_ACCESSORY is not present :(