[Q] Motoactv Workout app Crash Force Closing when BLE Polar H7 Paired - Other SmartWatches

I'm pretty sure I had this working on the NA Rom, I'm now using the Stock EU 8GB Rom and the workout app wont start when my HRM is paired..
It crashes and force closes.
However the HRM does pair, and I can see my Heartrate displayed when I use the Heart rate clock face.
Anyone experienced this ? Any fix anyone knows of ?

scoobdriver said:
I'm pretty sure I had this working on the NA Rom, I'm now using the Stock EU 8GB Rom and the workout app wont start when my HRM is paired..
It crashes and force closes.
However the HRM does pair, and I can see my Heartrate displayed when I use the Heart rate clock face.
Anyone experienced this ? Any fix anyone knows of ?
Click to expand...
Click to collapse
Reading Moto Support forums, looks like it may have stopped working in ROM upgrade to 1.7.xx Does anyone have 1.6.13 for example ?

Fix for pairing with Polar H7
Hi scoobdriver,
This problem is related to versions 1.7.x of the MotoACTV firmware. There are several posts in the Motorola forums, but no official answer from Moto for the last two years. Up to now, the only solution if you wanted to pair your H7 with the MotoACTV was to revert to 1.6.12 (the last rom working with the H7). Luckily, ClearD root tool can do that for you ("return to stock" functionality flashes 1.6.12). Please read the instructions carefully before you try to root your device if you choose to follow this path.
In my case, I decided to follow a different path and go into the code for comparing both 1.7.10/12 and 1.6.12 (the last working rom). I found out that some dev at Moto thought that a null pointer check was not necessary when setting up the activity screen, and this caused an uncaught null pointer exception and the already famous crash "Sorry. The application Workout (com.motorola.gault.activity) has stopped unexpectedly. Please try again." Surprisingly, it had nothing to do with BLE protocol or with any compatibility problem with Polar implementation/interpretation of BLE.
I have fixed and repackaged the conflictive apk (attached); after several tests and workouts it has not given me any problems. If you want to test it, you can update you MotoACTV to the latest rom (1.7.10/1.7.12) with MotoCast, root it (read the available excellent tutorials on how to do it, if you need), download the attached file and copy it to the device with adb:
Code:
adb remount
adb pull /system/app/Workout.apk Workout_backup.apk # (if you want to backup your original apk)
adb push Workout.apk /system/app/
adb shell chmod 644 /system/app/Workout.apk
I know it could be packaged in a more friendly (non-adb) way, but I want to make sure it really works before going on. I have tested it with ClearD rom, but it should also work for a stock rom. Anyway, be warned that rooting and playing with adb is at your own risk, as usual. In any case, If you test the modified apk and you get any undesired result, do not hesitate to come back to this post.

J*R said:
Hi scoobdriver,
This problem is related to versions 1.7.x of the MotoACTV firmware. There are several posts in the Motorola forums, but no official answer from Moto for the last two years. Up to now, the only solution if you wanted to pair your H7 with the MotoACTV was to revert to 1.6.12 (the last rom working with the H7). Luckily, ClearD root tool can do that for you ("return to stock" functionality flashes 1.6.12). Please read the instructions carefully before you try to root your device if you choose to follow this path.
In my case, I decided to follow a different path and go into the code for comparing both 1.7.10/12 and 1.6.12 (the last working rom). I found out that some dev at Moto thought that a null pointer check was not necessary when setting up the activity screen, and this caused an uncaught null pointer exception and the already famous crash "Sorry. The application Workout (com.motorola.gault.activity) has stopped unexpectedly. Please try again." Surprisingly, it had nothing to do with BLE protocol or with any compatibility problem with Polar implementation/interpretation of BLE.
I have fixed and repackaged the conflictive apk (attached); after several tests and workouts it has not given me any problems. If you want to test it, you can update you MotoACTV to the latest rom (1.7.10/1.7.12) with MotoCast, root it (read the available excellent tutorials on how to do it, if you need), download the attached file and copy it to the device with adb:
Code:
adb remount
adb pull /system/app/Workout.apk Workout_backup.apk # (if you want to backup your original apk)
adb push Workout.apk /system/app/
adb shell chmod 644 /system/app/Workout.apk
I know it could be packaged in a more friendly (non-adb) way, but I want to make sure it really works before going on. I have tested it with ClearD rom, but it should also work for a stock rom. Anyway, be warned that rooting and playing with adb is at your own risk, as usual. In any case, If you test the modified apk and you get any undesired result, do not hesitate to come back to this post.
Click to expand...
Click to collapse
Thank you so much for this J*R! I just bought a motoactv just to use it with BLE accessories and none were working until I applied your APK. Straight forward very easy to follow instructions. Everything is working now.
I can't believe Motorola is not doing anything about it. Even if it's a discontinued product, it doesn't have to be a useless one....
rocos

not working
Hi and thank s for your work.
i m cleardroid rooted (1.7.10) and put your workout.apk fix on my actv...but still not ok. (Same msg: workout... crash....try again later)
First time, when i try to backup my original workout.apk in adb , the file was not founded on my actv. I push whatever your apk in system/app and everything is ok in adb. But nothing change for my problem when i try to launch a jogging.Is it possible that my actv system path is different of your example? (System/app)
i dont know if is it possible to explore the system file of my actv, at least for know where path is my original workout and replace it by your fix.
thank s man and sorry for my ugly english...i m french.

Related

Android - ADB File Explorer (modified for Vogue port)

I have noticed one of two of you Vogue guys using my ADB File Explorer on your Android ports and coming across a couple of problems. I have updated the application which should allow for full functionality. This is tested and working, a few small bugs remaining for now I'm focusing on a getting to v1.0 before looking into ports.
Original post:
http://forum.xda-developers.com/showthread.php?t=523960
Project Page:
http://code.google.com/p/adb-file-explorer/
The Vogue version is listed under the downloads page.
thank you thank you thank you
thank you
i am one of those who have tried to use your adb file explorer
i will test it right now and let you know how it works
EDIT
tested and worked i was able to see my phone and all its files as soon as i plugged it in
i was able to transfer a music file into the mymusic on the sdcard
however i noticed that the list of music files on the phone was not a complete list it started at M- z and even after refreshing many times the list was the same
even after i transferred the "test.mp3" i had to check the on the phone because the list of music on the adb file explorer did not change
over all works well but a few things to fix
thank you with all this work being done on the vogue i may never have to buy an android phone
sorry posted in the wrong forum
evilclosetmonkeynate said:
thank you
i am one of those who have tried to use your adb file explorer
i will test it right now and let you know how it works
EDIT
tested and worked i was able to see my phone and all its files as soon as i plugged it in
i was able to transfer a music file into the mymusic on the sdcard
however i noticed that the list of music files on the phone was not a complete list it started at M- z and even after refreshing many times the list was the same
even after i transferred the "test.mp3" i had to check the on the phone because the list of music on the adb file explorer did not change
over all works well but a few things to fix
thank you with all this work being done on the vogue i may never have to buy an android phone
Click to expand...
Click to collapse
Thanks for testing.
I've not come across this bug before, it may be specific only to the Vogue so unless I get bug reports for official Android phones then I won't be doing anything further for ports until the program is at version 1.0.
If you use ADB via the command line, do you still get this problem('adb shell busybox ls [path]')? Are you using the latest version of busybox on your port?
Those would be the first things I'd check.
The file listing should automatically update once the transfer is complete, currently there is no status bar or anything so you'll just have to wait it out. I'll add a status bar if I can find a way to output progress info from ADB.
makethetick said:
Thanks for testing.
I've not come across this bug before, it may be specific only to the Vogue so unless I get bug reports for official Android phones then I won't be doing anything further for ports until the program is at version 1.0.
If you use ADB via the command line, do you still get this problem('adb shell busybox ls [path]')? Are you using the latest version of busybox on your port?
Those would be the first things I'd check.
The file listing should automatically update once the transfer is complete, currently there is no status bar or anything so you'll just have to wait it out. I'll add a status bar if I can find a way to output progress info from ADB.
Click to expand...
Click to collapse
no big rush to fix the bug just the fact that it works is good for me
as for busybox i couldn't tell you that would better answered by vilord or dzo or any of the developers
Update released, v.0.3.1.
All future versions will be compatible with ports
not working
I cannot for the life of me get my vogue running android 2.0.1. eclair to connect via adb,
the drivers install, and lists in my device manager as an htc dream,
put the adb.exe in my system32, then plugged in, installed drivers, and then run the file explorer, but it says there is no phone connected.
Any ideas?

HELP ! ROM Update to Android 2.0 / 2.1

Hey Guys at first sorry for my english i'm not good in it. And I'm a Android newbie I just gained a bit exerience with my Touch Diamond but it's broken now..okay but that's not the probleme....
If got a question:
After about 2 days of searching for an android 2.0 or 2.1 ROM I was a little bit confused of the diffrent news everybody was talking about. I'm root on my Hero. That was the first an last thing I made with my device.
1. Everybody is gonna talk about MoDaCo 3.0 but when I was trying to download his ROM my browser never got a request. Is the site down, where that ROM is hosted ?? Could someone give me a working link with this ROM ??
2. Is there a ROM with Android 2.0 or 2.1 outside or even not ??? And if yes are they working well ???
Would be nice if someone can help me =) thanks a lot.
Please answer soon if you know something about that =)
Greetz BassdoxXx
you can get modaco's roms at his website, www.modaco.com.
in the android development section there are some 2.0/1 roms, none of them works flawless, see for yourself if it fits your needs.
Thanks a lot for your fast answer. =)
The problem that i couldn't open the modaco page was my isp -.- i downloaded it at school
BassdoxXx said:
Thanks a lot for your fast answer. =)
The problem that i couldn't open the modaco page was my isp -.- i downloaded it at school
Click to expand...
Click to collapse
What? Does ISP's block that site? Lol, would never happened in Norway
there is a few 2.0+ roms out there for the hero.
most seem to be very usable now.
best sense ui would be lox/behnaam community release on 1.6.
http://htcpedia.com/forum/showthread.php?t=1448
there are two aosp roms worth looking at.
lox aosp ( im using that on a daily basis)
http://htcpedia.com/forum/showthread.php?t=1416
jnwhiteh aosp
http://htcpedia.com/forum/showthread.php?t=1528
Hello all,
I am having very specific request when it comes to choosing a proper rom for install on to my hero.
I am blind. Stock roms are only running Android 1.5. More robust accessibility features are available starting with Android 1.6 and improving even more with Android 2.0.
So for sure I am forced to upgrade my hand set.
There are various roms, some of their authors have even disable google specific features so I know I can't install such a rom.
All the accessibility efforts are being lead by the google developers.
Most likely these accessibility tools won't be usefull to most of you but please can anyone recommend me a rom where market is working and where the following applications can be installed and used?
- eyesfree suite of applications,
- talkback - the google screen reader for android,
- tts service.
All possible help is already appreciated.
sorry for the double posting. I've accidentally posted twice and I am unable to remove the post.
Hope anybody can help me please.
pvdeejay said:
Hello all,
I am having very specific request when it comes to choosing a proper rom for install on to my hero.
I am blind. Stock roms are only running Android 1.5. More robust accessibility features are available starting with Android 1.6 and improving even more with Android 2.0.
So for sure I am forced to upgrade my hand set.
There are various roms, some of their authors have even disable google specific features so I know I can't install such a rom.
All the accessibility efforts are being lead by the google developers.
Most likely these accessibility tools won't be usefull to most of you but please can anyone recommend me a rom where market is working and where the following applications can be installed and used?
- eyesfree suite of applications,
- talkback - the google screen reader for android,
- tts service.
All possible help is already appreciated.
Click to expand...
Click to collapse
i am on mcr3.0, i looked in the market, i can find 8 apps for eyesfree, tts is one of these. i didn't try to install one of these, but usually it works. the search for talkback returned nothing.
not that i want to be rude, but wouldn't you be better off with another phone if you are blind? i can not imagine a touchscreen only phone would be suitable for someone who is not able to see... especially because there are great devices out there that have a full qwerty keyboard, and come with android 2.0 out of the box... imho this would be a better solution.
again, the last thing i want to be is rude, but maybe this was your mistake: you posted in the htc hero section of this forum, the hero is a touch screen only device, including a virtual keyboard on the screen. it has only six buttons and a trackball, and two rocker buttons for the volume. just to make clear we are talking about the same device
if you are still up for the hero you could try the 2.1 rom from here: http://htcpedia.com/forum/showthread.php?p=30418&posted=1#post30418
best you try for yourself, it has some drawbacks, but maybe in areas you don't need (afaik syncing with exchange does not work for example, which wouldn't be a problem for me...). otherwise it might be worth to wait another week or two, we all are waiting unpatiently for the official eclair release from htc
keep asking if you need to know more, but maybe open a new thread, since your problems are very specific, and might drown between all the newbies question about "how to root my phone".
Hello,
Thanks for your reply and a great attitude.
Yes it may sound strange I have really got HTC Hero here. I know I'll be having problems with virtual keyboard but also I am afraid accessibility features of Android phones are not really such mastered one can use it daily. For example reading emails and content from the web browser is not yet possible. I just want to try how things work and I would also like to touch the virtual keyboard. If I can memorize computer keyboard and use it daily, typewriter keyboard, nokia mobile phone keyboard, then perhaps I might be able to make some use of this too.
I am sory but here are some more questions:
I haven't yet verified with some sighted friends but... is it possible my hero is running even older version of android like Android 1.5? I've based the assumption that it's most likelly running 1.5 because majority of the devices I was reading on the net are running it.
You've been triyng to locate eyes-free applications on the market but you were unable to find talkback. Are you sure you are running newer version of Android than 1.5?
Talkback is supposed to be installed with Android 1.6 andd 2.0 by default and you should be able to find it in the accessibility menu of your phone. I am not sure how well this applies to the custom roms.
Talkback requires google's accessibility api which is reported to be available on Android 1.6 upwards.
To tell you the full story first I've asked on the eyes-free google group whether some accessibility experts from there can help me but no one knowledgeable enough has replied to my query, so I'm trying my luck here then.
Oh I am really excited since I've got really well formed informative reply.
Thanks again
Edit:
Also, I've seen somewhere in the forums here this leaked HTC rom does not support the market. Has this been rectified already? You know if market does not work then most likelly I won't be able to install these applications I am tallking about.
Also you are mentioning possibility to wait a few weeks until HTC guys role out the official update for Hero. Wouldn't that break chances I will be able to root my device later?
Edit2:
Ooops, I should read better next time. Market works on this rom. The problem is paid apps can't be installed which is hopefully not a big issue for me since most of the accessibility enabled applications are free.
Which of the downloads from Hero 21 do I need?
63.18.55.06JU_6.35.09.26) or No Wipe Download. I will need a wipe I am sure but since this link says nowipe I am ehmmm. confused.
pvdeejay,
Unfortunately there is not an 'official' update for Android 1.6, 2.0 or 2.1 as of yet. There are rumours of one coming out soon, but nothing cast-iron yet.
You are correct in that the Hero runs 1.5. It does say it under Settings | About Phone (bottom item on list)| Firmware Version (bottom on list again), although without a working screen reader, there is probably little use in knowing how to find that.
If you did want to upgrade, I'm sure plenty of people could help find a ROM that would suit. The only issue with that is that you would need a rooted phone with a custom recovery image installed. Unfortunately, a lot of the procedures would not be easy for you, as the software that you might need to use to go through the procedure is probably not designed that well for accessibility tools. I don't know what kind of software you are using, but some of the instructions for making goldcards are quite complex, and involve editing some numbers in a 'table' which could be quite difficult for you, I would imagine.
I'm sure a friend would be able to help you out with making a goldcard/rooting if you did want to install a custom ROM (you'll probably be waiting a while otherwise ). They could even root their phone while doing yours (just share the goldcard between the devices).
Nonetheless, there is probably a ROM out there with little removed from it. I'll have a look just now, but you would need to have your phone rooted to do anything just now.
When it comes to rooting and installing custom recovery image. Do you thing the following instructions might work for me?
These instructions don't require a gold card:
- How to Root HTC Hero and Install Amon Ra Recovery Image
- How to install a custom rom on a HTC Hero
Hello,
Here are some numbers I've asked my friend to read from system -> about screen. The phone interface is in czech so I am unable to get some names translated to english, but I believe some of the geeks will understand these identifiers and might be able to help me what is best:
Code:
firmware: 1,5
63.118.55.O6U|6.35.04.25
2.6.27-a5504199
Build number: 1.76.405.6 146733 CL# 47214 release-keys
Software version: 1.0.0.A6288
pvdeejay,
to sum it up:
the hero definitly runs on android 1.5. there are no roms for older android versions, and a few homebrewn for newer versions, as we said already.
i searched for talkbalk on my 1.5 rom, so it is obvious that i couldn't find it...
about rooting of newer roms: it is just a matter of time, sooner or later there will be always methods of rooting a rom. what i meant by waiting is: wait until the official update is out, then wait a few more hours until the first rooted and customized rom is out
@pvdeejay,
I would have to agree with kendong2 that waiting for the official ROM is probably the best idea for you at the moment. There are no guarantees that an unofficial ROM would help, and it would be another user interface to try and learn.
@kendon,
I noticed he has the original, easily rooted version of the hero. IIRC, that is what I had on my G2 (and had the security unlocked bootloader out the box). If that's the case, would pvdeejay be able to 'fastboot boot' a full system img file for the purposes of testing it out to see if it meets the requirements.
The reason I ask is that I've only ever fastbooted my AmonRA recovery (I didn't flash it, because I never felt any need to). I'm guessing you could fastboot a full img, but I'm not sure about the practical issues of where it would be stored in memory...
Sorry guys originally I believed I am slowly getting into the matter and am begining to understand how flashing / rooting / upgrading home brew firmwares works on these phones.
After these 2 posts I feel like a total noob again.
Now again some very concrete questions:
What about these 2 guides I've posted links to?
Can I somehow got [Recovery] [13-Dec-2009] RA-hero-v1.5.2 installed so I will be able to do nandroid backup and then possibly flash some new roms?
Can I really brick my phone by trying to install amon ra?
Originally I thought the process works as follows:
1) get the custom recovery image installed (that's the amon ra in this case),
2) do a nandroid backup which will dump everything usefull on to the memory card,
3) backup and reformat the card,
4) download a rom, rename it to update.zip, put it onto the root folder of the cart, reboot the hero in recovery mode, do the wipe of the data partition, and run update,
5) reboot again and believe it's good.
Also some very significant bit is the thing you are all calling the radio. I am afraid I've not identified this bit thus it's missing in this summary.
Which files will I need to download if I decide to try Android 2.1 community edition 1.8? Are these files I've copied links to a few posts earlier both needed?
Can you please check this list, identify the things I am missing, and make suggestions and corrections why this may not work on my device based off of those number I tried to put down here?
Even if I won't be able to do this right now I'd be happy to get corrections as I can learn something new.
Of course I won't be doing all this on my own. I will ask my bro to read all the stuff to me and we'll do it according to your advices.
To give some bits about me and my computer skills, I believe I am a Windows power user, Basically I do also understand unix, I know what's bash how the files are arranged in a file system, can use command-line tools, telnet, ssh. I am working as a network administrator here so some background is there really.
Hi pvdeejay,
Answers to your questions here.
You can actually use fastboot to 'temporarily' load up the AmonRA recovery image into memory and run it from there. I do that on my phone, for the simple reason that I can't be bothered ) ) to flash the recovery. Once you get AmonRA running, the first thing you should do is make a Nandroid backup. It will be saved to your SD card, so then get the nandroid directory of your card and save it to your PC (just in case!)
So, here's how you'd go about this.
(Make sure you have the android sdk installed, and that adb and fastboot commands are working). USB cable should be plugged in throughout.
Before you begin, put the ROM you want (ie. Android 2.1 community edition 1.8) into the root of the microSD card (a .zip file).
Code:
adb devices
Should list your phone's serial number
Now turn off the phone, and turn it on with the back key held down (the one at the very bottom right of the device).
You should enter fastboot mode. Now type
Code:
fastboot devices
and you should see the serial number again.
Now type
Code:
fastboot boot AmonRA.img
where AmonRA.img is a file in your present working directory that is the filename of the latest custom recovery image. This does NOT flash your phone, it merely runs the image (pretty much as close as you get to risk free, other than sitting there with a tinfoil hat on )
See screenshot of the recovery image here:
http://www.sizzledcore.com/wp-content/uploads/2009/12/RA-hero-recovery-image-500x375.jpg
Make the Nandroid backup by choosing 'Nandroid Vx.x Backup' and waiting a while.
If your ROM needs a wipe first (most new ones do), select Wipe data/factory reset. You will lose all your user data on the device (but you've got a nandroid backup just in case)
You're now good to go. So choose "Apply sdcard:choose zip"
Now select the custom ROM zip file you downloaded. It doesn't even need to be called update.zip! Choose it from the list and push trackball.
Wait for the update.zip to go in. Do NOT turn off the device or pull the battery. First boot can take a very long time (upto 30 minutes). Just keep it plugged in via USB and wait...
As for radios, see http://android.modaco.com/content/h...-24-11-hero-roms-radios-in-update-zip-format/ and look at the section titled radios. The latest one is in bold. It is a .zip file as well, that you use these exact same instructions for to install (don't do the wipe or anything like that. Just install the .zip file)
anon2122 said:
@kendon,
I noticed he has the original, easily rooted version of the hero. IIRC, that is what I had on my G2 (and had the security unlocked bootloader out the box). If that's the case, would pvdeejay be able to 'fastboot boot' a full system img file for the purposes of testing it out to see if it meets the requirements.
The reason I ask is that I've only ever fastbooted my AmonRA recovery (I didn't flash it, because I never felt any need to). I'm guessing you could fastboot a full img, but I'm not sure about the practical issues of where it would be stored in memory...
Click to expand...
Click to collapse
this is correct so far, i did the same, except i installed the recovery. i play a lot with my phone, the installed recovery image with the nandroid backup is the best i have ever seen for a phone...
@pvdeejay
you always write so much...
i try to answer everything:
the two guides you posted are good for your situation. i never tried flashrec, but from what i read it is safe to use. i installed my recovery image through fastboot, the guide is here: http://android.modaco.com/content/h...ng-the-patched-recovery-image-on-your-device/
i have no idea how this works out for you, but my honest suggestion would be that you have someone seeing assisting you, you CAN brick your phone, though it is not likely if you follow the instructions precisely. the process is not very time consuming at all, so you don't need to bother anyone for days of their time.
edit: and now i read your post to the end and saw that your brother will be helping you, so you are on the right track
once you have the recovery installed you can make nandroid backups, and i would suggest that you do this first thing after installing the recovery, better make a backup too much than one too less...
the 5 steps you described are correct, except there is no need to rename the zipfile anymore, you can select any .zip from your sdcard.
the radio part is the number that begins with 63.18.55.06, then comes two letters and then more numbers. as by now the version can be identified by the letters, with JU being the up-to-date one. in general you can say the newer the better, but you have to try for yourself. start with the newest one, if you have problems go back.
thanks this seems to be pretty doable plus I will easily be able to restore the current data backed using nandroid backup.
Which android SDK do I need the latest one?
The commands I need to type are supposed to be typed on the PC or on the phone? I assume on the PC but I just would like to ensure.
Hero21 1.8 community edition has a recommended radio listed in the first post. Is it necessary to install that one as well? What should I install first the actual rom or the radio? Do I need installing radio at all? Should i do the same with radio i.e. renaming it to update.zip and using amonra to install it?
Also will I be able to use this method even if I install another rom (running amonra without actually flashing it)?
Edit:
sorry guys did not realize renaming to update.zip is no longer needed.
Edit2:
is there an easy way on how to access sd card from windows? I can't just remove the card from phone and insert it into my laptop because I don't have the proper adapter. Previously my boss was using the hero and perhaps it would be nice to backup the sd card first.
Edit3:
uhmmm, installing android sdk is perhaps not as simple as it sounds.
I have just seen this article.
I am on a limited gprs internet connection, can you please suggest sdk features I won't need to save some download bandwith?
- you need only the adb binary (thats adb.exe for windows) from the sdk, the rest is not needed for this.
- install the radio from the 2.1community-rom-thread, it is the newest. install the radio first. DO NOT PULL THE BATTERY until the phone has rebooted completely. if you pull the battery during radio upgrade your phone will be dead. it takes a few minutes, do not panic!
- you can copy the contents of the sdcard via the usb-cable, plug it into your pc and pull down the notification bar...
Do I need to run SDK Setup.exe when I have downloaded android sdk for windows?
Or can I simply run that binary from the command-line without the installation?
Do I need any USB drivers so my phone can be recognized?

[Q] Bluetooth Keyboard (HID profile?)

Hi,
My brother's desperate to get a bluetooth keyboard working with his HTC Hero (UK). Currently runs the stock HTC 2.1-update1.
It's easy enough to pair them (we've tried two) but they remain paired but unconnected. With my Galaxy S (stock 2.2.1) they work fine. I gather this is because the Hero doesn't support the SPP or HID profiles.
We've also tried most of the apps we can think of: Keypro (sits on 'connecting'), Blueinput (force-closes when you click to select they keyboard), the JP one (sits on 'connecting'). Looking at the forum for keypro it looks like they're aware of this issue and haven't yet been able to correct it.
I've heard rumours that people running custom ROMs (eg based on Cyanogenmod) have been able to get keyboards working.
So - has anyone managed to get a bluetooth keyboard working with one of these devices, and if so how? Would prefer a solution that keeps Sense installed but he says he'll let me go to vanilla android.
Thanks in advance.
For the benefit of future users (and because the forum seems to be littered with questions like this!) we managed to get it working by installing FroydVillain 1.7.2.
Main problem was the lack of a flash_image binary to install the nandroid recovery image, but we copied over one we downloaded and it worked without issue.
Keyboard was recognised immediately and works fine as an HID device.
That's interesting! But could you detail, what were the steps of this successful installing? I also have an old bt keyboard, which I'm unable to use with the hero... Thank's if you can explain any more...
Mostly we used the instructions from http:##www|villainrom.co.uk/vBwiki/index.php/Installing_Custom_ROMs , though with a change for flashing the rom as the binary wasn't available on his phone.
More specifically - use the Froydvillain download mirrors at http:##www|villainrom.co.uk/forum/showthread.php?3698 and the wiki page above, and download:
Froydvillain 1.7.0
Froydvillain 1.7.1 upgrade
Froydvillain 1.7.2 upgrade
Universal Androot
AmonRA Recovery image
Stick everything onto the SD card - either using a USB cable and your phone, or we just used a USB card reader.
Install Universal Androot. We used HTC sync and just double-clicked on the .apk but you could also use a file manager (the wiki recommends Astro).
Install Android Terminal Emulator from the market.
Root the phone using Androot (he was running the latest 2.1 so we used the 2.0-2.2 root button).
The next bit is where we differed from the wiki instructions. They tell you to type:
Code:
su
flash_image recovery /sdcard/[I]<name of recovery image file>[/I]
reboot recovery
We found that there was no flash_image binary on my brother's phone (the error read 'flash_image: not found' so downloaded one - there's a copy at http:##cyanogen-files.carneeki.net/flash_image.zip ; I can't remember exactly where we got the one we used.
The instructions we found with the binary suggested something complicated involving remounting the system partition (it's normally read-only so you can't copy the binary there). Equally, you can't run it directly from the sd card without remounting as it's set not to allow executables. We just ran it from the data partition:
Copy the flash_image file to the sd card and use:
Code:
su
cp /sdcard/flash_image /data/flash_image
chmod 700 /data/flash_image
/data/flash_image recovery /sdcard/[i]<name of recovery image file>[/i]
sync
Then just power off the phone and turn it back on with the 'Home' button pressed. You should find yourself in recovery mode using your new recovery image.
We then used Backup/Restore > Nand backup to backup the current ROM to the SD card. Then from the Wipe menu we ran through each option in turn to ensure a fully fresh setup (I gather this isn't essential, but is advised). Lastly we used Flash zip and sequentially flashed 1.7.0, 1.7.1, then 1.7.2.
Then we rebooted, and waited... and waited... and waited... The VillainROM logo with the scary red-eyed android pulsated for about 30 minutes before I gave up and removed the battery. I took out the SD card and turned the phone back on; this time it was only a few minutes before we found ourselves with a fully functional (and factory-fresh) phone.
We put the sd card back in and set up the phone as normal; then turned on bluetooth and paired the phone with the keyboard (with ours it was a matter of typing a PIN on the keyboard and pressing enter, and duplicating the number on the phone) - it was instantly recognised as an HID device and worked perfectly!
Hope that's of some use - as I mentioned before it's essentially the same as the standard instructions except for the step involving the missing flash_image binary.
[edit: sorry, I'm not allowed to post links it seems! You'll have to cut and paste, and replace the '##' with '//', and the '|' with '.']
Thank you, you were very kind! But it seems basically only a normal fv installation on a rooted phone... Only I become a bit confused with all the /data/system operations... I can try installing fv 1.72, but at the moment I don't want to give back my floyo 1.20, which is more responsive (in my phone), but gives no sinal of accepting to connect the paired bt...
Yes - it was just a new ROM install which did the job - only the lack of flash_image and the lengthy bootup before we removed the sd card confused us so hopefully it's useful to someone trying the same.
I've not heard of Floyo - but the reason I decided to try FroydVillain was that it was CyanogenMod-based rather than HTC sense based as I heard that HTC don't include bluetooth HID support in their ROMs.
The CyanogenMod changelog http:##wiki.cyanogenmod.com/index.php?title=Changelog suggests that HID support has been included since 6.0.0 so I'd expect anything based on CyanogenMod since that should be fine. I chose FroydVillain simply because my brother's not very techy and I wanted a fairly mainstream ROM for him...
Not so simple...! Out of curiosity, I went to install froyd villain, but as I imagined the result was the same! "Paired but not connected"... It seems that when you rooted the hero, something remained in /system, no idea what was it! If a developer could read this, perhaps he could understand what happened... Floyo is simply another rom based on cm... the difference is all in the rooting process, seemingly...
Not for me
Hi Guys,
as I have been running Froyd Villain 1.7.2 for a rather long time now I thought I might give it a try. As there is an Apple Bluetooth keyboard dusting around here I had quite high hopes.
The pairing process worked well and it shows an Icon with the BT Symbol encased in Black and two arrows. In the BT settings it tells me that I am connected to a BT device, never the less, no matter what input field I choose, I cannot type on the BT keyboard. There is no other Input method I could choose from either so it's still not working for me.
Damn.
What keyboard where you using?

Issues with Accelerometer/Screen Rotation

Before I get shut down for posting about a topic that has been posted before - I am doing this so others can access all the info in one place without having to scour the web/forum/posts.
Firstly let me point out a couple of important topics of discussion:
- You may just have a phone that has a hardware error. If you run through this post and options and you don't have any success, give some serious thought to getting it repaired because no matter how many new rom releases come out it isn't going to fix it.
- Full SELinux Support - If you use TWRP2 they have recently updated to 2.7.0.1 - It's worth reading through the 'Note' listed in the changelog. They talk about how Full SELinux Support is needed for installing Kit Kat roms and some of their older versions didn't support it. (http://teamw.in/project/twrp2)
- Rom and App settings - The Rom has several places to tick/untick screen rotation. Some apps also have screen rotation toggles. The important one is the Rom settings, make sure you have actually turned rotation on. It can be found in the notifications menu at the top of your screen (if you haven't removed it through customisation), also in Settings>Display> which is not to be confused with 'Smart rotation'.
- Smart Rotation - You do not need this turned on for screen rotation to work. In fact I would recommend leaving it turned off as it slows screen rotation down. I'll leave it up to you.
- Samsung Bloatware - There has been some talk on the forum about how removing Samsung apps has caused screen rotation to break. This is possible as several library files are shared. Since you are running a "custom" Rom it's hard to know whether any scripts have been included in the installation that haven't been specifically listed in a changelog.
- Model Vs Region Vs Solution - There are quite a few S4 models available at present. Most of these have hardware differences and the solution that worked for someone else may not work for you. It's good for you to start by learning what the differences are and what components were included in the version you purchased (this will save headaches later).
BACKUP YOUR DATA - I will not be held responsible for any actions you take with your device!
Ok, let's get started with the options/work arounds that you may wish to use and how they work (You will need to have root access):
1. ReInstall the Rom - This is the first place to start. You can usually install over the top of the initial installation without any issues. This would replace any data that may be corrupt from the installation. If you have installed a custom kernel it will install the one that comes with the Rom.
2. Clean install of the Rom - Sometimes we have to strip it all the way back to like-new. This means you would need to Factory Reset the phone (this will remove all apps and sign in data). If you wish to go all the way in cleaning off your device there is a Format option available in TWRP2 and PhilzTouch. Don't format unless you know what you're doing otherwise you could format the EFS data and then you're screwed. Don't say you haven't been warned.
3. a) Install a Library file (through recovery) - This is a script that has been built to replace a library file that is removed when you uninstall Samsung Hub. There is a discussion taking place in the Note3 forum where you can get the file. Be sure to follow their instructions exactly. http://forum.xda-developers.com/showthread.php?p=50099965
b) Install a Library file (through Android) - Using the same ScreenRotation.zip file you can download from the link above, open the zip and save 'libgnustl_shared.so'. You will need to put this file on your phone somewhere you can find it so you can copy it to the correct location and set some permissions. You need root access to even attempt this one, if you are unsure about what you're doing I would proceed with caution. It's not rocket science however you want to make sure that you don't alter any of the other files. You need to place libgnustl_shared.so into the \System\Lib folder. If the file is already there I would rename the old file rather than copying over the top. This just saves you in case anything else goes wrong and you need to go back a step. You need to change the permissions of the file before going anywhere. I used ES File Explorer to move the file and it allows simple change of the file permissions (through properties). It needs to be -rw-r--r-- or if you are using ES File Explorer then it should read Owner: Read & Write, Group: Read, Other: Read. You will then need to boot into recovery and wipe cache and davlik cache (don't confuse this with Wipe: Factory Reset).
4. Install a Stock Rom from YOUR phone provider - Telco's spend time and money ensuring their releases work with all the features of the phone, this is sometimes the reason why they take so long to update their software. Some of these features are Telco specific and others are region specific (hence my comment about being aware of what you have purchased). If you have installed a stock rom and you still have screen rotation issues it is likely (not guaranteed) that there is a hardware issue. In my experience installing a stock unmodified rom often addresses the issues that crop up on custom roms. It's worth testing it for a day or two on stock to ensure it's not intermittent. If you are willing to go to all the trouble you could try installing a custom rom again. I have has success in the past doing it this way. I can only assume that the installation of the stock rom addresses issues with internal components/firmware.
5. Kit Kat Roms - If you have loaded a bootloader that excludes you from installing your carriers stock rom (due to it being Jelly Bean or earlier), there are stock Kit Kat roms you can download in the forum. You won't have the added support of carrier addons and tweaks, however you will still get stock Samsung which is the next best thing.
What to do if none of the above work?
There are two options 1. Send it off for repair 2. Continue to work on it yourself with the help of others on the forum.
If you wish to continue working on it yourself or you have voided your warranty here are some tools to help. You need to take a look at whether your accelerometer is working - This is indicative only (an indicator) and will help you narrow the problem down.
1. In your dialer (phone) put in the following *#0*#
This will allow you to go in and see how the components are responding - You want to take a look at Sensors.
2. Accelerometer Monitor/Test Applications
There are quite a few for free on the market place - They will show you how the X, Y & Z axis are responding to the movement of the phone. Sometimes it is quite obvious when certain axis are not responding at all. Some of these applications will allow you to calibrate the sensors. I am not 100% sure whether these calibration options will work on Kit Kat. If you are speaking with a developer of a custom rom they will often query you for log data, this is code that will help them work out what is going wrong. This doesn't guarantee they will be able to fix it. Not all of the accelerometer apps provide a log but is necessary information you'll need if you decide to go down that path.
(AndroSensor is relatively good - https://play.google.com/store/apps/details?id=com.fivasim.androsensor)
Let me know how you go.

Strace command

Hi, first of all, sorry if this is the wrong place to post this, I tried on the development section but I couldn't so here it is the thing;
First of all, I'm using the default rom(AQH3) with root. The point is that I have used other phones, and I have been using strace command as any other linux command, on the android terminal or via adb. However, I recently bought a S8 but it seems it does not include this command in the rom by default. BusyBox does not incluide it either, so the only aproach left was to copy the strace binary from my previous phone to the S8...i do thinks that's not a good idea but at the moment that's the best I can do. Sometimes it works good, but with some apps I can't use it because the information i get is useless; It gives me all the time
Code:
restart_syscall(<... resuming interrupted restart_syscall ...>)
Which is not really usefull...What could I do to use strace on my S8 properly? Maybe I'm missing something, or is there a way to download a 'official' strace binary for this rom/phone? It seems to me that Samsung does not provide you this utility but maybe I'm wrong. I searched everywhere but I found nothing.
Thanks everybody for your time and your help!
You need strace built (preferably staticly) for the right architecture for it to follow the system calls correctly. Ive actually had plans to build one for a while, will share if I do
partcyborg said:
You need strace built (preferably staticly) for the right architecture for it to follow the system calls correctly. Ive actually had plans to build one for a while, will share if I do
Click to expand...
Click to collapse
So you think the problem is that the strace I'm using is for armv7 and so S8 has armv8 does not work properly? I was thinking that maybe the problem was S8 android/kernel version

Categories

Resources