[Android 2.1+] Spirit FM Radio (Unlocker) - Paid Software Announcement and Discussion

This thread has been created for discussion of the paid Spirit FM Radio Unlocker app for Android.
It was created for a problem which may no longer exist. New XDA members with less than 10 posts were unable to post in a "developer forum". If you can, please post in the main thread:
http://forum.xda-developers.com/showthread.php?t=1059296
Please feel free to ask questions related to the free app or the paid Spirit FM Radio Unlocker here.
From a previous version of the overview at: https://market.android.com/details?id=com.mikersmicros.fm&feature=search_result
Spirit FM Radio is a real tuned FM radio app that supports RDS data. It is NOT a streaming app.
It works on a few stock phones with Broadcom or TI FM chips, but usually requires SuperUser/root access. It is mostly likely to work well on CyanogenMod ROMs.
Google does not support FM, and Broadcom and TI specs are secret, so this app uses painstakingly reverse-engineered low level methods. PLEASE do not rate it down if it doesn't work on your device.
Work is underway to support as many devices as is feasible.
Please purchase the Spirit FM Radio Unlocker to enable full functionality and help to continue this development.

Post deleted.

Post reserved. Three is a magic number.

In response to evgenln's post about Motorola DroidX problems on CM7 posted originally here, starting at post 7: http://forum.xda-developers.com/showthread.php?t=1157255
I spent most of today looking over the latest CyanogenMod code for FM:
- The app,
- The framework,
- The hardware and JNI components,
- The FM related audio code.
I see that there is now some FM code for some Motorola devices. I think it's early code and AFAIK there is no working FM app for CM on Motorola phones. (?)
I think something in this new code might be causing some issues, but I can't really say it's "to blame".
There is work I need to do to make my Texas Instruments code more robust, on my HTC Legend as well as the Motorola devices.
I can announce and let you know when further attempts at running my app should be tried on Motorola devices, but there are also many other tasks on my "to do" list than need to get some time.

Thanks for your reply, I'll wait.

evgenln said:
Thanks for your reply, I'll wait.
Click to expand...
Click to collapse
I uploaded a new version I'd like you to try. Details here: http://forum.xda-developers.com/showpost.php?p=15641161&postcount=707

oh.thanks..
ernaraw

mikereidis said:
I uploaded a new version I'd like you to try. Details here: http://forum.xda-developers.com/showpost.php?p=15641161&postcount=707
Click to expand...
Click to collapse
Oh, thank you , better than stock radio, my fm radio on stock rom is suck.

Warlord_Link said:
Oh, thank you , better than stock radio, my fm radio on stock rom is suck.
Click to expand...
Click to collapse
Great !
There is a July 16 version on the Market now: If you haven't tried yet, there's a newer version on the Market: https://market.android.com/details?id=com.mikersmicros.fm

hi again mike(from the forum this time )
so here is my issue: i've read in your other thread about your app working on x10 mini. i have the x10 mini pro, and i am facing this issue: app starts normally, seems to play sound well and find stations. but: there is something that happens non-stop: it is as if it tunes to a station and then changes again to another frequency, then again to another, then to others and back to the first one. all of these happen repeatedly during a short time, and it seems i am not able to tune to a specific station and listen to it. i have your latest version, with region set to greece and audio method Sony Ericsson, which worked for the other guy with the x10 mini as i read. any ideas?
thanks in advance!

DeadTed said:
hi again mike(from the forum this time )
so here is my issue: i've read in your other thread about your app working on x10 mini. i have the x10 mini pro, and i am facing this issue: app starts normally, seems to play sound well and find stations. but: there is something that happens non-stop: it is as if it tunes to a station and then changes again to another frequency, then again to another, then to others and back to the first one. all of these happen repeatedly during a short time, and it seems i am not able to tune to a specific station and listen to it. i have your latest version, with region set to greece and audio method Sony Ericsson, which worked for the other guy with the x10 mini as i read. any ideas?
thanks in advance!
Click to expand...
Click to collapse
Hi DeadTed; thanks for your report.
See this for my most recent version:
http://forum.xda-developers.com/showpost.php?p=16002110&postcount=778
The new version has an "Email Logs" Menu function explained in that post.
Your issue seems to be a more difficult issue that will require you to check "Debug Extra" in "Menu->Settings" before selecting "Menu->Email Logs".
I look forward to looking over your debug logs.
Do you have the same results if you select Regional Band Europe, or even North America ?

mikereidis said:
Hi DeadTed; thanks for your report.
See this for my most recent version:
http://forum.xda-developers.com/showpost.php?p=16002110&postcount=778
The new version has an "Email Logs" Menu function explained in that post.
Your issue seems to be a more difficult issue that will require you to check "Debug Extra" in "Menu->Settings" before selecting "Menu->Email Logs".
I look forward to looking over your debug logs.
Do you have the same results if you select Regional Band Europe, or even North America ?
Click to expand...
Click to collapse
thanks mike!
i downloaded the latest version. problem still remains, even with region set to Europe or North America.. i also checked the debug extra option, but i cant send the logs. a message pops up saying no application can send email or sth like that.. is there another way to send the logs e.g. take them from the folder they are saved in?
also i verified that the app actually tunes to radio stations for my phone, since while switching bug occured i listened for a while to the specific station that existed in the frequency i was. probably there is an issue with nearby frequencies that get messed up?.. that's a guess, but you know better for sure! ^^

DeadTed said:
thanks mike!
i downloaded the latest version. problem still remains, even with region set to Europe or North America.. i also checked the debug extra option, but i cant send the logs. a message pops up saying no application can send email or sth like that.. is there another way to send the logs e.g. take them from the folder they are saved in?
also i verified that the app actually tunes to radio stations for my phone, since while switching bug occured i listened for a while to the specific station that existed in the frequency i was. probably there is an issue with nearby frequencies that get messed up?.. that's a guess, but you know better for sure! ^^
Click to expand...
Click to collapse
Yes. After you select the Email Logs function you can access the file as:
/data/data/com.mikersmicros.fm/cache/sprt_debug.txt
If you have adb installed on a connected PC you can do:
adb pull /data/data/com.mikersmicros.fm/cache/sprt_debug.txt

mikereidis said:
Yes. After you select the Email Logs function you can access the file as:
/data/data/com.mikersmicros.fm/cache/sprt_debug.txt
If you have adb installed on a connected PC you can do:
adb pull /data/data/com.mikersmicros.fm/cache/sprt_debug.txt
Click to expand...
Click to collapse
ok got the file with root explorer from there to my sd and then to my pc. i think you won't be able to read it though cause it seems that all text is written without any major space left between and it looks like a huge box of letters xD but we'll see; i've attached the log.

DeadTed said:
ok got the file with root explorer from there to my sd and then to my pc. i think you won't be able to read it though cause it seems that all text is written without any major space left between and it looks like a huge box of letters xD but we'll see; i've attached the log.
Click to expand...
Click to collapse
Thanks ! I can read it fine.
Text files on Unix/Linux/Android use Linefeed characters to end lines. Windows uses Carriage Return AND Linefeed characters. This has been a problem for 30 years now, since the first MS/PCDOS versions, LOL.
If you want to read them, there are some Windows programs that can, such as WordPad or Word or Office Office etc.
I'll let you know what I find.

DeadTed said:
i have the x10 mini pro, and i am facing this issue: app starts normally, seems to play sound well and find stations. but: there is something that happens non-stop: it is as if it tunes to a station and then changes again to another frequency, then again to another, then to others and back to the first one. all of these happen repeatedly during a short time, and it seems i am not able to tune to a specific station and listen to it.
Click to expand...
Click to collapse
You haven't mentioned it but you are running CyanogenMod.
It appears your FM chip is starting up in one of the search modes for some reason. I'm not sure why, but if you can run these commands from a PC while the app is running, I hope we can stop the search.
Please capture the output and send me a copy. I presume you can copy from here and post to a command line window. Entering all these by hand is bound to cause errors.
adb shell hcitool cmd 3f 133 a 2 0
adb shell hcitool cmd 3f 133 2d 2 0
adb shell hcitool cmd 3f 133 2e 2 0
adb shell hcitool cmd 3f 133 f 2 0
adb shell hcitool cmd 3f 133 12 2 0
adb shell hcitool cmd 3f 133 13 2 0
adb shell hcitool cmd 3f 135 13 2 0 3f ff
adb shell hcitool cmd 3f 135 12 2 0 0 4
adb shell hcitool cmd 3f 135 f 2 0 0 3
adb shell hcitool cmd 3f 135 2e 2 0 ff ff
adb shell hcitool cmd 3f 135 2d 2 0 0 0
adb shell hcitool cmd 3f 135 a 2 0 0 c0
adb shell hcitool cmd 3f 135 2d 2 0 0 1
adb shell hcitool cmd 3f 133 a 2 0
adb shell hcitool cmd 3f 133 2d 2 0
adb shell hcitool cmd 3f 133 2e 2 0
adb shell hcitool cmd 3f 133 f 2 0
adb shell hcitool cmd 3f 133 12 2 0
adb shell hcitool cmd 3f 133 13 2 0
After the 2nd section (writes) you should hopefully be locked to 97.1.
If the searching continues, try setting the date forward by 7 days and power-cycle the app. This will turn off RDS which might help.

mikereidis said:
Thanks ! I can read it fine.
Text files on Unix/Linux/Android use Linefeed characters to end lines. Windows uses Carriage Return AND Linefeed characters. This has been a problem for 30 years now, since the first MS/PCDOS versions, LOL.
If you want to read them, there are some Windows programs that can, such as WordPad or Word or Office Office etc.
I'll let you know what I find.
Click to expand...
Click to collapse
that's a quite interesting thing about windows xD it was t txt file and opened with Notepad by default that's why it was a mess; didn't try it with MS Office Word or Wordpad

mikereidis said:
You haven't mentioned it but you are running CyanogenMod.
It appears your FM chip is starting up in one of the search modes for some reason. I'm not sure why, but if you can run these commands from a PC while the app is running, I hope we can stop the search.
Please capture the output and send me a copy. I presume you can copy from here and post to a command line window. Entering all these by hand is bound to cause errors.
Click to expand...
Click to collapse
Yes i do run CyanogenMod 6 by owain(the final version). I tried to enter the commands but they seem to not work because this message appears after executing each one of them: Send failed: File descriptor in bad state
for instance this is what i get for the first two commands:
C:\Users\trizos>adb shell hcitool cmd 3f 133 a 2 0
< HCI Command: ogf 0x3f, ocf 0x0133, plen 3
0A 02 00
Send failed: File descriptor in bad state
C:\Users\trizos>adb shell hcitool cmd 3f 133 2d 2 0
< HCI Command: ogf 0x3f, ocf 0x0133, plen 3
2D 02 00
EDIT: forget this; i was not running the app while trying these commands xD i will try it and post again later
Send failed: File descriptor in bad state

ok now I run the commands successfully but the problem is not fixed. also tried the trick with the date for disabling RDS but that did not work either. i attach the output from the commands as seen on cmd from my pc

DeadTed said:
ok now I run the commands successfully but the problem is not fixed. also tried the trick with the date for disabling RDS but that did not work either. i attach the output from the commands as seen on cmd from my pc
Click to expand...
Click to collapse
Thanks ! "File descriptor in bad state" is an error you get when Bluetooth is off.
But just enabling Bluetooth with the FM off won't give us the answers we need.
If you can run this command several times with the FM on we can see if the frequency is changing:
adb shell hcitool cmd 3f 133 a 2 0
Your 97.1 MHz should always show "00 C0" at the end of the output.
Beyond that, we can see the most important FM registers by running the following:
adb shell
# Now at the phone shell command prompt
for i in 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f; do hcitool cmd 3f 133 $i 2 0;done
# The above is all one line
exit
# Should now be back at the PC command line.
Note that the line in middle is one BIG line. You will likely have to paste it separately.
Thanks...
EDIT: Forgot to mention, but I didn't see anything unusual in the debug logs, EXCEPT for these events occurring regularly, which make me think the chip is searching:
- RSSI level has fallen below the threshold configured by SEARCH_LVL_SET
- Received signal frequency is out of range.
- Stereo indication changed

Related

Paste what you last copied...

How dare you accuse me of being a large black crow and then killing me! :x
heh now with firewire it init and all but it's writeprotected for some reason or so it claim odd via firewire chip and odd oxfort firewire/usb2 to ide chip in the case which one or both is yet to be decovered
now the past few years I talk to people around the world, instead of watching the nightly news
Don't laught ;-)
You Are My Sunshine
My only sunshine.
You make me happy
When skies are grey.
You'll never know, dear,
How much I love you.
Please don't take my sunshine away
atndall
shock absorber
date time level ssid file record volume
03/07/2004 05:36:39 full 3862419201 143 0 000015
13/07/2004 23:15:26 full 4099866113 81 49 000044
14/07/2004 05:18:03 full 4105436161 135 0 000062
14/07/2004 23:46:08 full 4122456321 127 42 000061
15/07/2004 05:28:03 full 4127707905 141 0 000063
15/07/2004 23:52:05 full 4144665857 135 138 000064
16/07/2004 05:37:03 full 4149964545 141 0 000065
17/07/2004 00:00:51 full 4166918913 146 54 000041
17/07/2004 05:24:23 full 4171888385 140 0 000066
19/07/2004 23:47:56 full 4233075969 128 51 000077
20/07/2004 05:23:11 full 4238225153 115 0 000050
20/07/2004 23:57:15 full 4255337217 140 112 000004
21/07/2004 05:25:59 full 4260386561 129 0 000076
22/07/2004 00:03:36 full 4277553153 153 61 000002
22/07/2004 05:27:42 full 4282531329 139 0 000049
22/07/2004 23:42:28 full 4379649 123 92 000093
23/07/2004 05:22:46 full 9606657 125 0 000003
23/07/2004 23:56:24 full 26712065 139 46 000008
24/07/2004 05:30:43 full 31847169 128 0 000067
26/07/2004 23:21:45 full 92535041 90 54 000011
27/07/2004 05:25:37 full 98124033 134 0 000010
28/07/2004 00:00:48 full 115253505 115 35 000012
28/07/2004 05:31:06 full 120326657 91 0 000052
28/07/2004 23:15:21 full 136673537 84 43 000042
29/07/2004 05:24:42 full 142346753 130 0 000070
29/07/2004 23:14:32 full 158779649
BIOS Type: Phoenix NoteBIOS 4.0 Release 6.0.
8/7/2004 Sent email - US - Statement fax request
4/8/2004 Sent email - US - Statement fax request
The contact popup window doesn't seem to do anything for me, it displays the contact details but when I click on the phone number, a white horizontal line
http://www.vnunet.be/datanews/news.asp?ids=20040824007
#007e50
3. Total Loss
I thought a shuttle was a retro heli ??? !!!!!
http://www.hitachigst.com
On Tuesday please enter the result of the backup in the following spreadsheet. It will be the monthly backup.
ETX3M
Teste e Grelha de Avaliação
010-00226-04
Microsoft Visual C++ 2005 Express Edition Beta

[Developement] Computer App to Control Phone

i know we have a few applications that allow us to use our phone's screen and keyboard to control our computer, and while it is cool, it's just not something that i have a use for currently. i was wondering if there were any apps that you know of that allow me to have a window on my comp that is my home screen on my phone and control things on the phone from the comp. i hate when i am working on my themes and i get 100 texts and i have to go from using the comp it using the phone and back and forth. WM had several apps like that and i loved them when i was running windows but now i run linux(ubuntu 8.10) and i would love to be able to type texts and run apps on my phone while using the computer keyboard.
i have looked through the market and can't seem to find anything on there and i was hoping someone could point me to one elsewhere or if i missed one on the market. thanks in advance
That would be cool. A VNC Server has already been ported to iPhone, so it's probably not too difficult for someone who knows what they're doing (i.e, not me =P)
It would definitely be great to be able to type text messages and whatnot using the computer's keyboard and screen instead of that tiny little G1 keyboard.
or if there are some commands i can run from adb shell that would work too, all i have been able to figure out how to do is play an mp3 on the phone by typing the command. cool but not what i would like.
alright, for those that care i have figured out how to start an app on the phone by using the adb shell commands, and i can even start to compose a text if i do it correctly
to start the messaging app you need to type in the adb shell(or android terminal but the point is to be able to do it from the comp
adb shell
am start -a android.intent.action.MAIN -n com.android.mms/com.android.mms.ui.ConversationList
the above line brings up the conversation list to allow you to choose a list, but i have yet to figure out how to atually pick a convo from that page
to bring up the compose message to start a new text type in the following
am start -a android.intent.action.MAIN -n com.android.mms/com.android.mms.ui.ComposeMessageActivity
from there i can input the number to send the message to but not what i want the text to say,
input text <string> #that inputs a single word and no more after the word text
so if i were to type
'input text hello android' my phone would act as if i had just typed hello, this also works on the home screen to search your contacts. i am working on in[utting more than one word and also choosing your conversation from the comp
Cool! nice progress. Maybe other Android intents can be used...
progress
i know i can start any app by knowing the commands for it now and typing it in. but for right now my main concern is getting a multi word string to appear in the text box. if i can get that then i just need to figure out how to attach "input keyevent 66" to it as well so it runs cleanly. key 66 is the enter key and i figured out several others along the way but i will list them later. i pulled the input file from the /system/bin directory and maybe someone else should have a look at it and figure out how to acheive multi word texts without placing "_" between all the words, cause right now that's where i'm at. i'm attaching the file for the guru's to take a look at. obviously it isn't saved as a .txt file on the phone but that's how i uploaded it to here.
CALLING THE ANDROID GURU'S TAKE A LOOK AT THIS
Cool. Once you figure out a bunch of commands, I could try making a user interface for it as a project...
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
juangil said:
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
Click to expand...
Click to collapse
Im not sure if you know that your posting in a forum dedicated to the G1/android but MPT supports, as the name would suggest, motorola phones only.
juangil said:
just wanna drop this lines here, there is an app from motorola MPT Motorola Phone tools, and it does all that you want and more, the phone can be connected to the pc via USB or Bluetooth... you can send receive msg, phone calls, see and edit contacts, drop images, ringtones browse the files etc
Click to expand...
Click to collapse
does said program work with the G1? i can't imagine moto being nice and making a program that works for everyone else's phone
kp126 said:
Im not sure if you know that your posting in a forum dedicated to the G1/android but MPT supports, as the name would suggest, motorola phones only.
Click to expand...
Click to collapse
yeah I know, my bad.. just wanted to put an example of an app (that of course is only for motorola) for any1 wanting to do something like it
i know there's several out there for different phones, but nothing for android. hell i'd be satisfied if i could just have the emulator read from my phone and let me control it that way. right now i don't like what i have to do to send a text
input text hello
input keyevent 62
input text android
input keyevent 66
that is a whole lot of typing for a simple text that says "hello android" and then sends it
would it be possible to write a program that takes what you type and breaks it into one word or one letter segments and runs the proper keyevent for each charecter there?
from what i remember of my programming in java and visual basic from years ago is that it would basically be set to read an input and use a case method to say if $input=="hello" then adb shell input text hello. it would be easier i would assume to just break it down into words and place "adb keyevent 62" between each word to input the spaces, and at the end of the line of input you would have to have the code "input keyevent 66"
i have the keyevent mapped out for each button and such on the phone if anyone is interested. i will see what i can come up with on my own though for now
Hope!
I would <3 who ever release's this in some form or another =)
I could really use an application that lets me use my phone from my computer. Preferably it'd show the desktop of the phone, and allow remote access to all the features.
I don't know if it's possible, but it sounds like some of you are progressing, so I hope for the best.
that is the goal, but right now i think i want to just get a java script written by the end of the week next week that reads the key i press on the computer and inputs it into the phone. so i have a lot of relearning to do since i haven't written javascript in 4 years and even then it was just simple stuff to be run in a console. if someone wants to take whatever i get done and run with it to make a FREE APP then by all means. if i find my work in a paid app then you better hope the US gov't can't find you cause i'll be at your door ready to kick your ass.
i'm not sure how one would go about coding the computer to display the phone desktop, but however it gets done i would prefer it to be written in java so all users of linux, mac, and windows can use it.
alright i have found a program that allows me to display the phone screen on the computer using java *hooray* but it does not switch to landscape when the phone does, and i can't control the phone from the app. it was written so that people could do presentations with the phone instead of using the emulator. the gist of it is described here
http://groups.google.com/group/cw-android/browse_thread/thread/d2dbcabee6bcba1a
i have already emailed the developer asking politely to see the code and for permission to try and run with it to make the ideal app. at this point the only thing i could come up with would be to make a javascript that had a case for each key on the keyboard and when a key is pressed it sends the corresponding command(adb shell input keyevent ##) to the phone. this would work fine to use the arrow keys to control the phone, and i am not sure how to code the mouse into it yet. i will be waiting for a response from the dev hopefully he will give his permission and blessing for us to use the app.
Tubaking182,
Perhaps I could offer some help. Brad Fitz has written a program that injects keys into the Linux input layer. Perhaps the source code to his project can help you. It appears to contain a key code map. Here is the link to his code:
http://github.com/bradfitz/android-misc/blob/master/type.pl
Also, here is a link to his live journal entry regarding his program.
http://brad.livejournal.com/2400054.html
All of this would be wonderful to have with my G1. I wish all involved the best of luck!
the developer of the program i posted gives his blessing but he claims what we are trying to do is impossible without certain firmware. he claims that android does not support remote control. i have already proven it can be done though but you have to use keyvalues instead of the mouse. i don't know much java, but i know i need a case switch that executes adb shell input keyevent when i press a key on the computer. if someone wants to tell me the proper syntax and java command to run a run a command then awesome i can write this up *hopfully* and start testing it.
would it work if i typed it as
int key = evt.getKeyCode();
switch (key){
case 65: run.exec(adb shell input keyevent 29);
break;
what would be the proper way to execute the adb command
tubaking182 said:
the developer of the program i posted gives his blessing but he claims what we are trying to do is impossible without certain firmware. he claims that android does not support remote control. i have already proven it can be done though but you have to use keyvalues instead of the mouse. i don't know much java, but i know i need a case switch that executes adb shell input keyevent when i press a key on the computer. if someone wants to tell me the proper syntax and java command to run a run a command then awesome i can write this up *hopfully* and start testing it.
would it work if i typed it as
int key = evt.getKeyCode();
switch (key){
case 65: run.exec(adb shell input keyevent 29);
break;
what would be the proper way to execute the adb command
Click to expand...
Click to collapse
I've been doing Java for about 4 or 5 years now, nothing to fancy, but anyway,
Code:
int key = evt.getKeyCode();
switch (key)
{
case 65:
Runtime.getRuntime().exec("adb shell input keyevent 29"); // I dont know if this is what you "run" variable is referring to. and you would need quotes around your command as it takes a String parameter.
break;

[Q] No input from bluetooth keyboard/case CM9

I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
fredmc2020 said:
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Click to expand...
Click to collapse
Check the CM9 thread and see if it mentions any Bluetooth incompatibility.
I'll see if I can get your any info on that.
Sent from my MIUI Evo 3D
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.
lewmur said:
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.
Click to expand...
Click to collapse
My keyboard does connect to the touchpad on CM9 (it says "connected" after I put in the key on the keyboard), however it does not register any button presses. In other words, I am connected but cannot type.
I have even uninstalled CM9 and re-installed from scratch. Still nothing.
I have been sitting here trying to figure this one out too... no luck. I am however trying to use the slim keyboard from my iMac (and magic mouse). Both connect as input devices (they show up as a keyboard and a mouse) but neither of them DO anything in any app or home.
Did anyone end up resolving this issue because it is the exact problem I have now as well?
juzz18 said:
Did anyone end up resolving this issue because it is the exact problem I have now as well?
Click to expand...
Click to collapse
There is a app called Bluetooth Keyboard on the market that should do the trick
Have you tried pairing via terminal?
Sent from my Galaxy Nexus using Tapatalk 2
fredmc2020 said:
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?
When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Click to expand...
Click to collapse
Up....i have the same problem....
cryomike said:
Up....i have the same problem....
Click to expand...
Click to collapse
this is the part where someone else has this problem. Booted into webOS just to type this. :/
I have this case and I have no troubles connecting with CM9, running the 07/20 nightly. I have found that if I pair it in WebOS, it won't connect properly when I reboot to CM9, but if I tell CM9 to forget it, then turn the keyboard off and back on, I can press the connect button on the keyboard and re-pair it, and it will work properly.
The case fits nice and snug, too, once I slit the bottom of it slightly for a bit more give...it's designed for an iPad, so the Touchpad needs just a hair more space.
you can manually add the hciconfig, hcitool, and hidd binaries to your system/xbin/ directory.
move all three of these binaries to the directory
chmod them to 4755
then you should be able to run the tools from the terminal
pair the keyboard to the touchpad with whatever pin, probably 0000 or 1234 or whatever.
it will probably say paired but not connected
then run hciconfig and it should show you the mac addy of your bluetooth adapter and list the device as hci0
then run hcitool scan
that will show you the mac addy of the keyboard
once you have that then you can connect to it with hidd --connect [macaddyofkeyboard]
verify youre connected properly then by hidd con
that will show you your bluetooth connection to the keyboard and ebverything should work like normal.
you can make a script to connect faster in the future also.
if you want to see more options for these tools you can always hciconfig --help hcitool --help hidd --help
how exactly do i run these?
Vnge said:
how exactly do i run these?
Click to expand...
Click to collapse
you can run them from any terminal emulator, if you create a script you can easily just execute the script each time instead of runnin the tools from the terminal.
Does chmod need a directory or something like that after? I'm going to attempt to write a script for it
Vnge said:
Does chmod need a directory or something like that after? I'm going to attempt to write a script for it
Click to expand...
Click to collapse
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that
if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
For me the issue is not that the keyboard is not connecting, but rather that it is not being used as an input device. I tried your instructions and succesfully connected my keyboard, but there was still no input. If I use an app such as bluekeyboard JP that works. Anyone have any ideas?
Sent from my cm_tenderloin using xda premium
How come you guys have to do all that complicated-looking stuff, but I don't? Not complaining (or bragging), just genuinely curious.
haxin said:
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that
if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
Click to expand...
Click to collapse
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
Vnge said:
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
Click to expand...
Click to collapse
thats what the hid is human input device, so when you type hidd --server and hidd --connect youre connecting the device as an input device. you can see more options by typing hidd --help from the terminal

VB.NET problem

Hi ,
I just registered to this forum, because I recently I've been starting to use RPI.
Since my best knowledge in programming is VB.net I made my program in Visual Studio 2010.
On my windows computer my program runs just fine.
I found on the internet that I could run that program using MONO on RPI so I installed it.
Few days ago I tried to run some simple forms and programs on RPI with mono (in comand promt : $ mono MyProg.exe)
and it worked.
Now I completed my program, so I copied it on Raspberry Pi and launched it.
Problem is that Form of program shows only for few seconds and also not complete.
After that in Comand Promt shows a lot of lines why this program wasn't properly executed, but I don't really understand it.
I hope someone can help .
With regards
PS: I can also post Comand promt report if it would be helpfull
matonja1000 said:
Hi ,
I just registered to this forum, because I recently I've been starting to use RPI.
Since my best knowledge in programming is VB.net I made my program in Visual Studio 2010.
On my windows computer my program runs just fine.
I found on the internet that I could run that program using MONO on RPI so I installed it.
Few days ago I tried to run some simple forms and programs on RPI with mono (in comand promt : $ mono MyProg.exe)
and it worked.
Now I completed my program, so I copied it on Raspberry Pi and launched it.
Problem is that Form of program shows only for few seconds and also not complete.
After that in Comand Promt shows a lot of lines why this program wasn't properly executed, but I don't really understand it.
I hope someone can help .
With regards
PS: I can also post Comand promt report if it would be helpfull
Click to expand...
Click to collapse
While I am not a Visual Basic expert if you can post the command prompt report I will be happy to take a look at it for you and see what I can figure out.
shimp208 said:
While I am not a Visual Basic expert if you can post the command prompt report I will be happy to take a look at it for you and see what I can figure out.
Click to expand...
Click to collapse
I'm posting 3 images. One of them also shows how program was starting to launch properly but the chrashed.
Problem is since I'm new I can't post outside link.
shrani.si/f/6/3J/3CDJrNW9/img20140221105920.jpg
shrani.si/f/K/OW/4Sm7AneI/img20140221105903.jpg
shrani.si/f/3J/h6/446I9fs0/img20140221105841.jpg
matonja1000 said:
I'm posting 3 images. One of them also shows how program was starting to launch properly but the chrashed.
Problem is since I'm new I can't post outside link.
shrani.si/f/6/3J/3CDJrNW9/img20140221105920.jpg
shrani.si/f/K/OW/4Sm7AneI/img20140221105903.jpg
shrani.si/f/3J/h6/446I9fs0/img20140221105841.jpg
Click to expand...
Click to collapse
I managed to start it with wine.
Thanks anyway.
Use Wine,
It is similar to "Mono".
Google for how you can install it.

Change from 2G to 4G

Did anyone try on Nougat 7.1 to change from 2G to 4G by running the classical shell scripts? I tried, but no luck.
Thanks
Yes with the app toggle network type
Javi22 said:
Yes with the app toggle network type
Click to expand...
Click to collapse
Could you, please, let me know how did you use the shell scripts in Tasker, since you say you have used the app toggle network type?
gothy.gothy said:
Could you, please, let me know how did you use the shell scripts in Tasker, since you say you have used the app toggle network type?
Click to expand...
Click to collapse
It works as a plugin, create task, add action, look for plugin, there you select toggle network app
Javi22 said:
It works as a plugin, create task, add action, look for plugin, there you select toggle network app
Click to expand...
Click to collapse
It doesn't work.
I wanted the help related to the shell script, but, anyway, thank you.
gothy.gothy said:
It doesn't work.
I wanted the help related to the shell script, but, anyway, thank you.
Click to expand...
Click to collapse
AFAIK you can't change 2g 4g with shell, but that plugin works.... Need to check the config of the app and select allow tasker to work
what do i do just download apk and put in phone and istall it thats it
You can actually switch 2G - 4G using shell command provided your phone is rooted. Check this - http://www.hackmyandroid.com/tasker...rk-when-your-device-is-connected-to-wifi/9129
Code:
settings put global preferred_network_mode 9
is the command which does that.
lalitindoria said:
You can actually switch 2G - 4G using shell command provided your phone is rooted. Check this - http://www.hackmyandroid.com/tasker...rk-when-your-device-is-connected-to-wifi/9129
Code:
settings put global preferred_network_mode 9
is the command which does that.
Click to expand...
Click to collapse
Can you please share on which device you got this working? On the Note4 MM is not working.
Thanks,
aleksandar.1 said:
Can you please share on which device you got this working? On the Note4 MM is not working.
Thanks,
Click to expand...
Click to collapse
I tried it on my ZenFone Zoom - Android 6.0 and it works well!
I think it depends on which device and/or Android version you have. The command itself works well, but the value is different. But you're able to query the value. Set the preferred network mode manually to e.g. LTE, and execute
settings list global
You will see a list of parameters and their value. Search for "preferred_network_mode1=". The shown value stands for LTE. You can do this for all network modes to get a list of all values.
I can't open tasker, I'm in nougat. 7.1.1
lalitindoria said:
You can actually switch 2G - 4G using shell command provided your phone is rooted. Check this - http://www.hackmyandroid.com/tasker...rk-when-your-device-is-connected-to-wifi/9129
Code:
settings put global preferred_network_mode 9
is the command which does that.
Click to expand...
Click to collapse
This command only effective when i open Settings, otherwise it will stay with 2G. anything need to refresh?
windongg said:
This command only effective when i open Settings, otherwise it will stay with 2G. anything need to refresh?
Click to expand...
Click to collapse
actually You need to issue 'service call ' command with appropriate parameters for 'phone' service.
briefly:
- issue 'service list' command and note string like 'phone: [com.android.internal.telephony.ITelephony]'
- decompile framework.jar
- jump to 'smali_classes2/com/android/internal/telephony/' directory
- get transaction index from 'ITelephony$stub.smali' file. in my case it looks like 'setpreferrednetworktype:I= 0x5a', which stands for 90 dec
- fire the command 'service call phone 90 i32 1'
where
90 - transaction index
i32 - service pointer telling we're passing digit (s16 for string)
1 - network mode You need (full list, 15 of them could be found in RilConstants file)
that's it. Thanks to my Russian colleagues at local forum.
for CM13 at least the command should look like 'service call phone 90 i32 0 i32 1'
where 'i32 0' tells the mode should be switched for the first SIM. 'i32 1' referrs to 'the second SIM'
axxbat said:
actually You need to issue 'service call ' command with appropriate parameters for 'phone' service.
briefly:
- issue 'service list' command and note string like 'phone: [com.android.internal.telephony.ITelephony]'
- decompile framework.jar
- jump to 'smali_classes2/com/android/internal/telephony/' directory
- get transaction index from 'ITelephony$stub.smali' file. in my case it looks like 'setpreferrednetworktype:I= 0x5a', which stands for 90 dec
- fire the command 'service call phone 90 i32 1'
where
90 - transaction index
i32 - service pointer telling we're passing digit (s16 for string)
1 - network mode You need (full list, 15 of them could be found in RilConstants file)
that's it. Thanks to my Russian colleagues at local forum.
for CM13 at least the command should look like 'service call phone 90 i32 0 i32 1'
where 'i32 0' tells the mode should be switched for the first SIM. 'i32 1' referrs to 'the second SIM'
Click to expand...
Click to collapse
Thanks for the detail information, is the 90 a fixed number?
Try this for lte
settings put global preferred_network_mode1 10
windongg said:
Thanks for the detail information, is the 90 a fixed number?
Click to expand...
Click to collapse
highly doubt. the issue is transaction codes are undocumented, so couldn't be considered constant. even assume they could be silently change between OS versions.
the previous post of mine was a kind of 'solution concept'. to figure out real transaction codes i'd dig into sources in every separate case.
UPD. for my specific Philips w8510 (MTK-based) even readings for transactions differ from canonical Android.
Code:
.field static final TRANSACTION_set3GCapabilitySIM:I = 0x89
.field static final TRANSACTION_setGprsConnType:I = 0x5b
.field static final TRANSACTION_setGprsTransferType:I = 0x5c
so, it highly depends on ROM developer
axxbat said:
highly doubt. the issue is transaction codes are undocumented, so couldn't be considered constant. even assume they could be silently change between OS versions.
the previous post of mine was a kind of 'solution concept'. to figure out real transaction codes i'd dig into sources in every separate case.
UPD. for my specific Philips w8510 (MTK-based) even readings for transactions differ from canonical Android.
Code:
.field static final TRANSACTION_set3GCapabilitySIM:I = 0x89
.field static final TRANSACTION_setGprsConnType:I = 0x5b
.field static final TRANSACTION_setGprsTransferType:I = 0x5c
so, it highly depends on ROM developer
Click to expand...
Click to collapse
Got it, thanks Bro.
axxbat said:
- issue 'service list' command and note string like 'phone: [com.android.internal.telephony.ITelephony]'
- decompile framework.jar
- jump to 'smali_classes2/com/android/internal/telephony/' directory
- get transaction index from 'ITelephony$stub.smali' file.
Click to expand...
Click to collapse
I've read what seems to be the original post about this using Google Translate, and I'm still confused about how to apply it to my phone. When I run service list I get the noted item, but framework.jar doesn't seem to have anything to decompile in the Google Pixel stock rom. Is there another way to track down the source for the "transaction index" and "network mode" items for my phone.
JasMan78 said:
I think it depends on which device and/or Android version you have. The command itself works well, but the value is different. But you're able to query the value. Set the preferred network mode manually to e.g. LTE, and execute
settings list global
Click to expand...
Click to collapse
On my stock rom Pixel, the preferred_network_mode and preferred_network_mode1 both remain the same as the network type settings are changed in *#*#4636#*#* testing.
I don't know this code and therefore I'm not sure what it exactly does or if it's still working on Pixel phones.
Have you tried to change the network in the menue, and checked then the values of both variables?

Categories

Resources