[Q] HTC Incredible S + Accessory Development Kit (ADK) - General Questions and Answers

Hi XDA.
I am new to this forum but have been working with Android devices and application development for about a year.
Recently I switched phone and bought the HTC Incredible S.
Besides of the phone development I have an electronics consultancy company doing different development jobs and electronics hardware reviews.
This week we got the Arduino MEGA ADK to review but I am unable to install the DemoKit application on my phone.
This is the log from Eclipse:
Code:
Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
E/PackageManager(1448): Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing!
This seems like a problem regarding the missing Google API on the phone. Though the phone is currently running Android 2.3.5 with Kernel version 2.6.35.9.
After a Google search it seemed like the Google API was first included in the kernel version at and above 2.6.35 - but then why doesn't it work.
My question is if HTC have removed this from the Kernel?
And what can I do to get the Google API to my phone so I can use it with the ADK?
Best Regards
Thomas Jespersen

you are missing 2 library's:
android.hardware.usb.accessory.xml sould be placed in /system/etc/permissions/
and
com.android.future.usb.accessory.jar sould be placed in /system/framework/
you can extract them out of an up to date ported sense rom of a htc sensation.
I made an update package for that problem but i can't share the link here because I do not have posted enough post to do so.
I will try to PM the link to you.
Tell me if it works, then I know that i can buy a HTC incredible s for my development.

Hydergine said:
you are missing 2 library's:
android.hardware.usb.accessory.xml sould be placed in /system/etc/permissions/
and
com.android.future.usb.accessory.jar sould be placed in /system/framework/
you can extract them out of an up to date ported sense rom of a htc sensation.
I made an update package for that problem but i can't share the link here because I do not have posted enough post to do so.
I will try to PM the link to you.
Tell me if it works, then I know that i can buy a HTC incredible s for my development.
Click to expand...
Click to collapse
Thanks, I will be waiting for your PM.
Currently my phone isn't Rooted, but I would definitely do that if it is necessary to install this fix, so I can do the ADK development with it.

ADK
Indeed your phone needs to be rooted and have Clockworkmod installed.
As far as I know it is not hardware or firmware specific since it worked on my htc HD2 an on my HTC hero(partly). I could install the demokit.apk and it would not crash since there was no support in my kernel it could not communicate with my arduino.
Since my HD2 and my hero both run an old kernel and flashing other kernels did not work out very well I was forced to buy a nexus S (yesterday).
But since your phone has the 2.6.35 kernel and 2.3.5 from stock I think this could be the solution.
You could try to check if your kernel supports the ADK first, because you are not rooted and you maybe do not want to root your phone if it does not work afterwards.
If you have got the arduino part up and running you could try this:
#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>
Code:
AndroidAccessory acc("Google, Inc.",
"DemoKit",
"DemoKit Arduino Board",
"1.0",
"h t t p : / / w w w DOT android DOT c o m ",
"0000000012345678");
void setup();
void loop();
void setup()
{
Serial.begin(115200);
Serial.print("\r\nStart");
acc.powerOn();
}
void loop()
{
byte msg[3];
if (acc.isConnected()) {
Serial.print("Accessory connected. ");
int len = acc.read(msg, sizeof(msg), 1);
Serial.print("Message length: ");
Serial.println(len, DEC);
}
delay(100);
}
Change the "DOT" to "." and remove the [spaces] in the above otherwise I could not post this because of that "10 posts rule"
Just paste this in an empty skech and upload. The extra libraries are easy to find. Even if you are using the arduino 2009 or the arduino uno the custom files are also pretty easy to find.
The serial monitor schould say:
Code:
Start
Device addressed... Requesting device descriptor.
found possible device. swithcing to serial mode
device supports protcol 1
Device addressed... Requesting device descriptor.
found android acessory device
config desc
interface desc
if the serial monitor dislpay's something like this:
Code:
Start
Device addressed... Requesting device descriptor.
found possible device. swithcing to serial mode
Data packet error: 5could not read device protocol version
I would seriously consider buying another phone because the above was what i was getting with my HD2 on every available kernel and rom. I have been wasting my time since december.
As you see after all I had to buy an other phone after all.
I hope this helps

hi
You never get HD2 to use ADK?
i bought an arduino mega adk and i want to use it..
i don't have money to buy a new phone...
any advice? thanks

What is your current phone?
I have seen a google G1 working with ADK, i would sugest to maybe buy a second had phone that has 2.3.4 or higher on stock rom. For instance my mom's samsung galaxy mini can handle ADK on stock rom and I bought it for her Christmas for 100€, new in the store. So I think you can pick up a second hand one for a decent price (like 60€) maybe that could be the solution.
If you are going to buy a phone and you are not sure if it works with ADK take your laptop with you and use the test program that I mentioned in my last post, if the software doesn't recognize the phone you can still walk away from it.
I would really not recommend to start messing around with kernels and the library's for me it was a pain in the ass. If I would have worked all the hours that I have spend messing around, I could have bought a new HTC sensation.

hi
How Bad i can't use my HD2 with ADK..
well, i can't pay for an expensive phone but i can do and efford to buy some other phone i like HTC Sensation xl, or Motorola Atrix 2, but they are a expensive for me.. do you know if they work with ADK? other option can be a galaxy tab with 3.1 or motorola Xoom.. but i want a phone with ADK.
i haven't try my hd2 with kernel 2.6.35 with the sketch that you post.. so i'll give it a try and extract the files that someone mentioned i found them in my actual ROM..
i know it's difficult but maybe i get them to work.. thanks

htc sensation xl
I know for shure that a htc sensation xl because my girlfriend has one and I did try some stuff with that one since my hd2 wasn't compatible with ADK. I have heard people having trouble with ADK on samsung tablets so if youre are going to buy one be sure to test it before u pay for it.

Hydergine said:
you are missing 2 library's:
android.hardware.usb.accessory.xml sould be placed in /system/etc/permissions/
and
com.android.future.usb.accessory.jar sould be placed in /system/framework/
you can extract them out of an up to date ported sense rom of a htc sensation.
I made an update package for that problem but i can't share the link here because I do not have posted enough post to do so.
I will try to PM the link to you.
Tell me if it works, then I know that i can buy a HTC incredible s for my development.
Click to expand...
Click to collapse
I have now tested this on a stock but rooted ROM with 2.3.5, and 2.6.35 kernel, installed using Clockworkmod - and unfortunately it didn't work.
It gave me the complete same error as before I installed the files (*.usb.accessory.*).
Thank you anyways. I will be trying some different ROMs today to see which of them supports the ADK. Though I will be trying the Sense ones as I would like to keep using Sense.

You are right my explanation was not clear enough, the kernel needs to be compiled with the right flags set. Some developers take all the options but most of them just set the flags needed for the rom to run.

Related

Why didn't development ANDROID for HTC Whitestone (IMAGIO)?

I have some question?
1. Can HTC Whitestone run Andorid?
2. If it can run Android, why xda don't development XDA-Andorid for HTC Whitestone?
3. If it can run Andorid and XDA-Andorid available for HTC, how to install XDA-Andorid on HTC Whitestone? Step by step to install for somebody have some stupid questions as me! We'd like Andorid for my phone!
Thanks for your work! Thanks for XDA!
NOTE: Some body don't install from Whitestone Android It Booted!!! http://forum.ppcgeeks.com/showthread.php?t=104666
I tryied this but my phone hangup when run error: 1. 648895] console handover: boot [htc_fb0]-> real [tty] on screen, please tell me what does this mean and how to fix this error!?
Hi! Admin! Please move this topic to HTC Whitestone Thread! Thankssss!
drnothing said:
I have some question?
1. Can HTC Whitestone run Andorid?
2. If it can run Android, why xda don't development XDA-Andorid for HTC Whitestone?
3. If it can run Andorid and XDA-Andorid available for HTC, how to install XDA-Andorid on HTC Whitestone? Step by step to install for somebody have some stupid questions as me! We'd like Andorid for my phone!
Thanks for your work! Thanks for XDA!
Click to expand...
Click to collapse
All you gotta do is search and read!!! LOL
http://forum.ppcgeeks.com/showthread.php?t=104666
Mally2,
In the original post, there was already a reference to that PPCGeeks page. I have the same error and I'm looking for help as well. Any takers?
Thanks!
Is not a build for the Imagio
TechXII said:
Mally2,
In the original post, there was already a reference to that PPCGeeks page. I have the same error and I'm looking for help as well. Any takers?
Thanks!
Click to expand...
Click to collapse
Android is not a special "thing" you just put anywhere and run, it has a kernel and is composed out of drivers and configurations, i'm pretty shure everething is out there but needs to be packed out together...
I'm a software developer but i have no experience compiling Android, my research is driving me to the HTC Lexikon (Merge) recently launched, this PDA hardware is very similar to the Imagio and it stock's Android so the work will be almost done and we won't need to start from "0", if you can help about please contact me..
Try this one
TechXII said:
Mally2,
In the original post, there was already a reference to that PPCGeeks page. I have the same error and I'm looking for help as well. Any takers?
Thanks!
Click to expand...
Click to collapse
Try this one, this PDA holds almost the same hardware as the imagio, it deffinitely should work:
http://911sniper.blog.163.com/blog/static/14290088120108195384257/
Post your results !!!
Has AnyOne tried his solution?
the lexikon is almost alike to the imagio
and if it doesnt work you can flash back.
So its a win win
i dont use whitestone.
It booted (i guess) !!
ndnmaster096 said:
Has AnyOne tried his solution?
the lexikon is almost alike to the imagio
and if it doesnt work you can flash back.
So its a win win
Click to expand...
Click to collapse
Hi, i am currently developing Android for the Imagio, i just startted the process and some tests, yesterday i was able to boot using a Topaz old testing kernel, but the screen was blank. I plan to compile a custom kernel for the Imagio.
I posted the Lexikon image but it wont work for the imagio because of the processor are different (Imagio= MSM7600) but i guess i could use some drivers from the Lexikon...
Wish me luck, i'm reading a lot to understand the kernel and Android
You can download the image i used here:
http://www.4shared.com/file/h9LTDTdp/droid_booted_imagiotar.html
And maybe, if you find the correct cmd_line arguments for HaRET you can get the screen to work properly
Glad someone is working on this. I'm right there with you! Make a thread on the imagio forum or pm me if you need testing.

HTC Touch 2 : change the language, the OS...

I'm a brand new HTC user. I got an HTC Touch 2 (T3333) today for the half the price because the Windows Mobile OS installed is in Dutch; the seller told me that it was impossible to change but I knew for sure that it was. I mean, we are installing Android on toasters nowadays...
So it is possible, as I found out on this board (the "Mega - ROM - Hotfix - User Manual - roll-up thread" topic; I can't post links yet, sorry). I've downloaded the ROM and I'm waiting for rapidshare to allow me to download the manual...
While I wait, could you be so kind to tell me if an Android port was successful on that telephone ? If so, how well it is supported ?
If not, I'm open to any fix and tweaks topics that you can point me out in order to get the maximum out of my new phone. I'm already searching the board but I'm listening...
Thanks !
DannyBiker said:
I'm a brand new HTC user. I got an HTC Touch 2 (T3333) today for the half the price because the Windows Mobile OS installed is in Dutch; the seller told me that it was impossible to change but I knew for sure that it was. I mean, we are installing Android on toasters nowadays...
So it is possible, as I found out on this board (the "Mega - ROM - Hotfix - User Manual - roll-up thread" topic; I can't post links yet, sorry). I've downloaded the ROM and I'm waiting for rapidshare to allow me to download the manual...
While I wait, could you be so kind to tell me if an Android port was successful on that telephone ? If so, how well it is supported ?
If not, I'm open to any fix and tweaks topics that you can point me out in order to get the maximum out of my new phone. I'm already searching the board but I'm listening...
Thanks !
Click to expand...
Click to collapse
welcome to the club. I'm a touch2 (T3333) user also.. hehe for more info about Android Port to you mobile take a look at my Signature. Click it and you will see various informations. well we are currently in a process of porting it =D enjoy.
Fantastic news ! I'm definitely following your work !
Thank you...
EDIT : I will add your signature as you mentioned it on the Android-port topic, as soon as I'm allowed to. Ah, those news users limitations...
EDIT2 : And I have to wait 5 minutes to post EDIT 1...
DannyBiker said:
Fantastic news ! I'm definitely following your work !
Thank you...
Click to expand...
Click to collapse
lol its not my work... its the teams work at Touch2 / Mega section. You can check out my rom that im currently building its WM 6.5.5 os but still in working progress..
Well, thank you for spreading the good news then...
I will dive into the subject tonight.
Hmmm...I tried upgrade with a French ROM but I can't, I get the 294 error. It wasn't that easy. I tried changing the settings in the Systems menu but that didn't work obviously.
Am I missing something here ?
Okay, I'm very sorry : my browser didn't loaded the board well on my first visit and I only discovered the HTC Touch 2 Mega section now.
I will ask my question over there...

Android 2.2 (Froyo) and Pairing with Car-Kit/rSAP/HFP

Hello everyone,
I would like to share my experience in pairing my Galaxy 3 with the Car-Kit. The configuration is as follows:
Phone: Samsung Galaxy 3 GT-i5800 with Android 2.2 Froyo (not official)
Car-Kit: Bluetooth Touch-Adapter, No: 3C0051435TA
Auto: VW-Passat, Year 2007
In the VW-Specification this phone is not at all supported, and was not possible to pairing with the Touch-Adapter.
Than, I looked into the bluetooth configuration and made some small changes (my phone is rooted) to activate Hands Free Profile.
And it works!!! now I can pairing my phone and get the contacts form SIM into the adapter.
If you're interested I can provide the modified config files and for the users with no rooted phones an update.zip (I must try first).
Yes, please do ))
I've been having the same problem.
guerrpaz said:
Yes, please do ))
I've been having the same problem.
Click to expand...
Click to collapse
Ok. I'll try this weekend to post something.
Bluetooth configuration
Hello,
As I promised, the user with ROOTED phone must unzip and overwrite the attached config audio.conf file in the folder
/system/etc/bluetooth/audio.conf
The config file is from Android 2.2 (Froyo) but you can look to the similar settings for other versions of android.
If it works PLEASE give me a feedback with the following infos (useful for other users too):
Phone: - brand, model, android version
Car-Kit: - brand, model, etc.
Auto: - brand, model, year
Will do, thanks a lot.
It doesn't work, keep getting "incompatível phone" error.
Tried swapping the audio config file with yours, deleting autopair and blacklist files, restoring the old audio config without restoring autopair and blacklist...
No results.
My phone is an HTC Desire with unofficial froyo.
The car is a VW golf from 2010, equipped with a premium rcd 510 radio.
Thanks and have a nice weekend.
Sent from my HTC Desire using XDA Premium App
guerrpaz said:
It doesn't work, keep getting "incompatível phone" error.
Click to expand...
Click to collapse
I'm really sorry. I flashed my phone with a new version, rechanged the audio.conf and still works. But for HTC there are mod roms? Aren't they? These mods are supposed to be better than the stock ones!?
I'm using the latest MCR Rom witch is quite good,i think the problem is brand related.
This Android - RSap incompatibility is well documented, its open issue #4402 .
I read somewhere Samsung had implemented RSAP in their software, so maybe it's brand specific and only Samsung Android Phones will work with RSAP.
Thanks for your kindness.

[dev] porting Gingerbread from Wildfire s

Guys, I have good news, got it working but in this time I must to fix something to get screen. Beocouse it is oficial rom, I am allways for the official rom instead of cm, and I think it will be good and think it will be our start for good Gingerbread!
Thanks that's realley a good new, great job guys. I can programm but i don't know were to start, it will be grate if someone can told me, i know c, java (medium), VB 6, thanks guys
it really a good news.but,I have some questiones about the fix you released today.how to use it?recover with the new fix?Or other methods?thanks.
fernando2610 said:
Thanks that's realley a good new, great job guys. I can programm but i don't know were to start, it will be grate if someone can told me, i know c, java (medium), VB 6, thanks guys
Click to expand...
Click to collapse
help is always welcome.
froyo source code is on photon page: http://code.google.com/p/photon-android/source/checkout
for gingerbeard source code, contact munjeni.
you need to checkout code on your computer.
you need to setup a compilation environment for linux kernel compilation (ubuntu 10 for ex)
use adb to get debug messages ("adb shell dmesg" for kernel log messages, "adb logcat -d" for android log messages)
tell us if you need help
Thanks a lot I'll do some test. If I need help let you know.
Enviado desde mi HTC Photon usando XDA Premium App
I not know how to get it working only I got is boot splash screen and crash after (looping on this!)!! I've deodexed susessfully all .jar but moybe I need to deodex .apks ?? Here is logcat maybe one from you find what is problem?
It seems that the android system server is not running properly
Have a look here
Yes I know that but could not get it working
Guys, I got something but is not clean boot, need help here, please see logcat!
All jars is loaded and all apps is initialised but error is with two (jars) odexes:
Code:
I/dalvikvm( 198): DexOpt: mismatch dep name: '/data/dalvik-cache/[email protected]@[email protected]' vs. '/system/framework/com.htc.commonctrl.odex'
What is problem?
google is always your friend
http://www.google.com/search?sclien...&aqi=&bav=on.2,or.r_gc.r_pw.&biw=1280&bih=709
I tried searching google but only see pastebin and not how to solve it! I asked for help becouse I working now with cm7, and if someone is interested to find way for my phoblem I will continue with sense rom from Wildfire S, I tried and I am close to get first screen but hmmm 2 jars (htc) could not give me way to succesfully run
P.S. I deodexed all odex from framework, but two odex-jar cause problem!
@ munheni, hi, just to mention, actually it to ask, i am no dev and dont know how it works but isnt it easier to port the android on the HTC ARIA to the HTC HD MINI? they have identical hardwares...
They have NOT identical hardware

Do you guys know a tool called "AutoRoot_tools.apk "? Is it safe to use?

Hello,
first time poster here. I still use an old HTC One S C2 phone with the S3 processor. Currently I am running 4.1.1 on it. It was the only version offered to me by the update system.
On a whim I decided to google for "HTC one s c2 lineageos" hoping to find a more up to date operating system. I stumbled on a video (youtube dot com/watch?v=hgcdJkGM4cY) which is supposedly showing Android 7.1.1 on my phone.
In the video description it says this tool (apkplanet dot net/app/download-autoroot-tools-apk/) can update my phone to 7.1.1. However when I use a bit.ly link expander website the link in the video description is not pointing to apkplanet.net but to some other website which sounds a bit shady, so I wont post it here.
My questions are: Has anybody here used autoroot tools on this phone and will it be able to put 7.1.1 on my phone?
and secondly, what is the most up to date Android I could put on this phone?
Thank you and kind regards,
Fritz.

Categories

Resources