Sensor List & Details - LG Watch Sport

Hello altruists!
Could anyone who owns a LG Watch Sport give me the result of this running the below command please?
<adb shell dumpsys sensorservice>
I want to find out details about the sensors: such as the max sampling rate for the accelerometer, etc.
Thanks in advance.

Related

AT Commands

Just been looking at this page ... I think some of the info may be helpful in solving the PDA2k (and maybe other models) Bluetooth Audio Gateway problem.
My question is how would I execute these commands? Would I need to build an application or could I do it via an application that already exists?

Using the AT Debug Log to obtain GPS commands

Hi,
To be able to enable the GPS on Hermes, a couple of things still need to be researched. One of those is what kind of AT commands are being sent to the Radio ROM to properly initialize the GPS ([email protected] etc.).
On the Hermes, the AT commands (and the resulting NMEA output) can be observed using the HTC AtDbgLog feature. I'm not sure whether the Trinity has the AtDbgLog feature as well, but if it has, somebody with a Trinity should be able to capture the actual [email protected] and related commands.
I would be very grateful if somebody with a Trinity could test the following:
1. Add the following registry keys
\HKLM\Software\HTC\ATDebugLog\Enable=1 for logging
\HKLM\Software\HTC\ATDebugLog\LogMode=1 for logging into file
2. Soft reset (wait a minute or so first to be sure the changes are persisted)
3. Use the GPS with navigation software for a few minutes
and post the results from the \Temp\AtDbg0.txt logfile? (Note: the logfile should first be copied to the device before you can copy it to Windows)
It can be disabled by removing the registry keys again and soft resetting
Bump... can anybody with a Trinity please do a quick check on this? It would really help both Trinity and Hermes users in figuring out the way the Trinity ROM is controlling the GPS!
Cheers
there are only two gps commands - [email protected] and [email protected]. Os do not do any special initialization of gps. Could not provide you with logs 'cause for some reasons i prefer not to publish my gps coords but you can beleve me - nothing interesting there: [email protected] / [email protected] do exactly what they sound for.

g1 webcam app?

does anyone know of an app that will let me use my g1 as a webcam when connected to my laptop? i remember seeing something like that when the g1 first came out but can't find the program..any help will be appreciated!
thanks
I believe i saw it on the market somewhere
I didn't know about this
IP Cam Viewer perhaps?
don't think so, ip cam viewer is for viewing webcams on your phone, instead of through a browser. doesn't make your phone work as a webcam i don't think.
had no idea there was such an app
and would be very interested on this type of app
couldn't find anything on google, just more questions about the same thing (and even less answers).
as it stands i don't think there's an app that can do this, but i can't see why it wouldn't be possible. or maybe it would. i don't know. we'll have to wait and see
I was wondering the same thing a while ago, it would be great and usefull to be able to use the cam on the G1 as a web cam for a laptop that don't have a cam.
please pritty please could you develope this idea there are many G1 users supporting this.
Here is a REALLY SIMPLE script for Linux that shows ONE way you could do this.
(I have root, but I don't know if it is required to read the framebuffer, it probably is.)
Stick the html chunk on a web page someplace.
Setup an account to allow uploading the picture and update the script to use that account/website to upload to.
I grabbed the fb2raw code from xda months ago,
I can think of lots better ways to do this, this was just quick and easy.
Code:
# June 2009
# Linux example to loop grabbing an image from the G1, display locally and post to a website.
#
# Doesn't require any code to be written/run on the G1.
# (obviously you could do all this in a G1 program and not need a tether/computer)
# Local display updates 1-2 seconds later than the G1 display, website another second or so later.
# Set the G1 to not turn off, connect to USB for data/power.
# cleanup at start
rm -f fb0.*
killall -q -9 display
let start=1
# start camera intent
adb shell "am start -a android.intent.action.MAIN -n com.android.camera/com.android.camera.Camera"
while :
do
# get and convert image
date
adb pull /dev/graphics/fb0 fb0.fb > /dev/null
fb2raw fb0.fb fb0.raw > /dev/null
convert -size 320x480 -depth 8 rgba:fb0.raw fb0.jpg > /dev/null
# create new display window
if [ "$start" == 1 ]
then
display fb0.jpg &
sleep 1
id=`xwininfo -name "ImageMagick: fb0.jpg" |grep "Window id" |cut -d\ -f 4`
let start=0
fi
# display image in existing window
display -loop 1 -window $id fb0.jpg
# send image to website (that we have a valid cert for so we don't get asked a password)
scp fb0.jpg [email protected]:/srv/www/htdocs/image.jpg
done
exit
# Example html to view image from site:
<head>
<title>Test G1 Webcam</title>
<META HTTP-EQUIV=REFRESH CONTENT="1; URL=">
</head>
<html>
<body>
<center>Test G1 Webcam<br><br><img src=fb1.jpg></center>
</body>
</html>
knoxbrder said:
Here is a REALLY SIMPLE script for Linux that shows ONE way you could do this.
(I have root, but I don't know if it is required to read the framebuffer, it probably is.)
Stick the html chunk on a web page someplace.
Setup an account to allow uploading the picture and update the script to use that account/website to upload to.
I grabbed the fb2raw code from xda months ago,
I can think of lots better ways to do this, this was just quick and easy.
Code:
# June 2009
# Linux example to loop grabbing an image from the G1, display locally and post to a website.
#
# Doesn't require any code to be written/run on the G1.
# (obviously you could do all this in a G1 program and not need a tether/computer)
# Local display updates 1-2 seconds later than the G1 display, website another second or so later.
# Set the G1 to not turn off, connect to USB for data/power.
# cleanup at start
rm -f fb0.*
killall -q -9 display
let start=1
# start camera intent
adb shell "am start -a android.intent.action.MAIN -n com.android.camera/com.android.camera.Camera"
while :
do
# get and convert image
date
adb pull /dev/graphics/fb0 fb0.fb > /dev/null
fb2raw fb0.fb fb0.raw > /dev/null
convert -size 320x480 -depth 8 rgba:fb0.raw fb0.jpg > /dev/null
# create new display window
if [ "$start" == 1 ]
then
display fb0.jpg &
sleep 1
id=`xwininfo -name "ImageMagick: fb0.jpg" |grep "Window id" |cut -d\ -f 4`
let start=0
fi
# display image in existing window
display -loop 1 -window $id fb0.jpg
# send image to website (that we have a valid cert for so we don't get asked a password)
scp fb0.jpg [email protected]:/srv/www/htdocs/image.jpg
done
exit
# Example html to view image from site:
<head>
<title>Test G1 Webcam</title>
<META HTTP-EQUIV=REFRESH CONTENT="1; URL=">
</head>
<html>
<body>
<center>Test G1 Webcam<br><br><img src=fb1.jpg></center>
</body>
</html>
Click to expand...
Click to collapse
If this can be created as an app I would buy, or even part of an rom update.
Qik app act as a webcam
turboyo said:
Qik app act as a webcam
Click to expand...
Click to collapse
That looks like it streams to the web instead of to your computer as a normal webcam. Neat though.
i really want to see an app that does this
does it exist yet?
i know theres apps for windows mobile that do this webcamera plus etc
It's possible to configure the camera within the phone as a separate device for the PC, so when you connect the G1 by USB it recognizes the phone and a camera device? I don't know if this is possible, I'm just throwing an idea.
Then with a standard driver you might be able to configure the camera in the PC and use your IM software with that camera.
I found something similar to qik but more fluid in video, its called bambuser, search for it in the market
andonnguyen said:
I found something similar to qik but more fluid in video, its called bambuser, search for it in the market
Click to expand...
Click to collapse
It's very good! I just install it and it's very nice!! I could do big use to that app! thanks!
Not actually what I was looking for to video chat with the PC, but it's good to share things I do on the go
Where did you get this fb2raw? I would like to try it
THX, dosmanak
fb2raw? i used fbshot
Hello there,
i needet do to a screenshot of my android device. it took me some time googling to find out, that nowhere the fb2raw or any other rgb565 convertig tool is working the way we need.
well i endet up modifing the fbshop for that purpose. fbshot by default does not support reading raw fb files, so i hacked it some way.
you can get it from here http://rw23.de/fbshot-0.3-android.tar.gz
and use it like that:
adb pull /dev/graphics/fb0 fb0 >/dev/null 2>&1
fbshot -d fb0 fb0.png >/dev/null
you may need to change the lines 145 if fbshot.c to fit your resolution:
pict->xres=320;
pict->yres=480;
pict->bps=16;
pict->gray=0;
this is a quick&dirty hack, but is working for me.
G1 as a WebCam for your PC. kinda temp. solution
1) You need to install DroidExplorer (google, go to developers site to see requirements)
2) You need to install VH Screen Capture (google VHSC_inst.exe)
both programs are free
3) Run DroidExplorer -> Tools -> Plugins -> Screencast
that will bring your live phone screen on to your pc desktop
you can even manage your phone from your PC
4) Run camera app on your phone
5) On your PC Start -> Programs -> Hmellyoff Labs -> VH Capture
6) On VH Capture window choose "Wideo Capture Source" -> VHScrCap,
than push "Sel. window" button and rectangle region with your phone screen
7) Open Skype (or whatever you use) and under "settings/tools" -> "video settings" -> choose WebCam "WHScrCap
========================================================
issues/limitations
- Screencast framerate is ~5fps (they will try to raise fps in future) so fix your phone securely and dont move when you talk to somebody
- Screencast window with your phone screen should be visible on your desktop - rearrange windows
- you may need to play with VHSC settings. Start -> Programs -> Hmellyoff Labs -> VHScrCap -> Config -> Create New One. or there is xml file to edit.
Picture looks good in VHSC preview screen but in Skype it shows under different aspect ratio.
=========================================================
And I dont understand if it is so easy to use G1 as a webcam for services
like Bambuser and Qik why there is no program to redirect videostream to local PC to use with IM apps?
jazzmanmonty said:
does anyone know of an app that will let me use my g1 as a webcam when connected to my laptop? i remember seeing something like that when the g1 first came out but can't find the program..any help will be appreciated!
thanks
Click to expand...
Click to collapse
qik.com has live video

Detect if field or other feature exists

Is there a way in Tasker (I know there is in Autoinput, but it slows down my device something fierce) to detect if a field or another object exists? I know how to find the ID of a field or another object, but I'm not sure how to check to see if the field exists on screen, although I'm sure that there is a method of scripting this. Can anyone assist?
Thank you!
Just to clarify, I know there is no built in feature to tasker that will accomplish this, in merely looking for either a shell or a Java script command that will accomplish this.
I don't think so. There's some interesting things you can do with the dumpsys commands...but no promises that you can detect specific fields or text on the screen. Try dumpsys display?
Sent from my g928c powered by RiverRom RR1 and SkyHigh 4.8
Thanks for the idea. Dumpsys display appears to only be related to the physical display and not much about what is actually being displayed.
I discovered that Dumpsys Window at least got me over the 1st hurdle and could tell me what windows were open, and which one was active, but after that I ran into another hurdle where I need to actually identify the presence of a button or a field.

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