Related
Hi everyone,
Update 31/03: Works with all 2.2.2 ROM's, including the awesome MoDaCo kitchen!
For me the notification controls for the music player are an admirable idea but ultimately useless if you don't prefer the stock music player. It would be ideal if any music player could hook into them but alas, with the current implementation that's not possible.
I found the option to turn these controls off in the Music app to be utterly unreliable. Frequently I would reboot to find the controls visible even though the option was unchecked in the Music app. I also found that if you freeze or remove the Music app the controls become visible again and there is no way to remove them.
So here's the fix:
Modified framework
Actively hides the controls every boot
Music app can be removed, controls remain hidden
All I have done is add the following code to framework-res.apk/res/layout/statusbar_expanded.xml in the music controls section.
Code:
android:visibility="gone"
And, since this didn't work for all users, I've now added the following so even if it wants to show it will be 0% high ~hidden.
Code:
android:layout_height="0dip"
Here an update.zip you can flash using Paul's Clockwork Recovery, please make a backup first.
Only tested on P990 with Android 2.2.2!
DOWNLOAD
Stock LG 2.2.2 ROM or MoDaCo r1, r1, r3 ROMs
Download: O2xNoMusicControls-v2-unsigned.zip (5.4MB)
MD5 Hash: 05090f6d6890f8ba6e1f5145dc46ae9e
OR
MoDaCo r4+ ROMs
Download: O2xNoMusicControls-v2-MCR-unsigned.zip (5.4MB)
MD5 Hash: 7eb25009d8773e47e886577e2b326a1e
Enjoy + Thanks = Win
Nice work, but did not make any change for me. Buttons still there if i remove the music.apk
did not work here either :/ really want to get rid of that
DocRambone said:
Nice work, but did not make any change for me. Buttons still there if i remove the music.apk
Click to expand...
Click to collapse
[email protected] said:
did not work here either :/ really want to get rid of that
Click to expand...
Click to collapse
Oh, really?
Well, I'll need to take another look, worked for me...
I'll do that tomorrow, thanks for the heads-up!
djmcnz said:
Oh, really?
Well, I'll need to take another look, worked for me...
I'll do that tomorrow, thanks for the heads-up!
Click to expand...
Click to collapse
I had already deleted the music.apk before I tried this, but I tried it anyway but still it was there, then adb pushed the music.apk back and removed it through settings, but when I deleted the music.apk it was there again so adb push back and now it's gone but I keep the music.apk but hide it with Launcher Pro until this works thanks!
btw this has nothing to do with the music control, but the power widget control (wifi, bluetooth etc) I change my LCD density to 190 from 240 because 240 is way to much and looks bad, but the power widget don't fit the screen if you know what I mean (it fits but there is a little emty at the right side, hard to explain but I think you can test it for yourself it you want too), is it possible to fix it? and another thing, I just want wifi, bluetooth icon there (with my Nexus S CM7 I have wifi, bluetooth and flash but there is no flash atm) is it possible to hack it somehow?
Well it's interesting, I've tested it again and it does work for me with one exception:
* When I activate the shade in landscape mode the music control comes back.
When this happens, because I have removed the Music app, I can't disable it again... But when I reboot it is gone...
So I need to look into the landscape bug... are you using landscape mode at all?
And yes, I think you can alter the toggle buttons... I'll look at that too.
didn't work for me too. The buttons reappears when I delete the music.apk
I've updated it guys, details in the first post, let me know how you get on.
[email protected] said:
btw this has nothing to do with the music control, but the power widget control (wifi, bluetooth etc) I change my LCD density to 190 from 240 because 240 is way to much and looks bad, but the power widget don't fit the screen if you know what I mean (it fits but there is a little emty at the right side, hard to explain but I think you can test it for yourself it you want too), is it possible to fix it? and another thing, I just want wifi, bluetooth icon there (with my Nexus S CM7 I have wifi, bluetooth and flash but there is no flash atm) is it possible to hack it somehow?
Click to expand...
Click to collapse
Yes, this is all possible:
Code:
<TableRow>
<ImageView android:layout_gravity="top" android:id="@id/sound_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginLeft="21.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/wifi_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/bt_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/gps_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/switch_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="21.0px" android:layout_marginBottom="0.0px" />
</TableRow>
djmcnz said:
Yes, this is all possible:
Code:
<TableRow>
<ImageView android:layout_gravity="top" android:id="@id/sound_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginLeft="21.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/wifi_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/bt_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/gps_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="17.0px" android:layout_marginBottom="0.0px" />
<ImageView android:layout_gravity="top" android:id="@id/switch_button_toggle" android:layout_width="wrap_content" android:layout_height="74.0px" android:layout_marginTop="10.0px" android:layout_marginRight="21.0px" android:layout_marginBottom="0.0px" />
</TableRow>
Click to expand...
Click to collapse
Great, is it something I can do easy or does it take some "time" (maybe you can make a update.zip file)? as I said, I only need Wifi and Bluetooth (flashlight when it's possible, maybe you can make a flashlight button?) and if would be nice if the buttons fills the screen (make them wider) when using density 190
thanks!
Confirmed functional
Thanks .
[email protected] said:
Great, is it something I can do easy or does it take some "time" (maybe you can make a update.zip file)? as I said, I only need Wifi and Bluetooth (flashlight when it's possible, maybe you can make a flashlight button?) and if would be nice if the buttons fills the screen (make them wider) when using density 190
thanks!
Click to expand...
Click to collapse
lol - the problem is the testing... I don't have my density set like that so couldn't test and the changes are very fine-grained which means there would be lots and lots of testing...
It's not hard to change but you need to first understand adb, apktool, framework-res and layout.xml stuff... it's all on the forums though!
If you get up and running with adb and apktool (http://code.google.com/p/android-apktool/ & http://forum.xda-developers.com/showthread.php?t=640592) - verified and tested - then I'll show you where to start making changes.
DocRambone said:
Confirmed functional
Thanks .
Click to expand...
Click to collapse
Thank you kind sir!
djmcnz said:
lol - the problem is the testing... I don't have my density set like that so couldn't test and the changes are very fine-grained which means there would be lots and lots of testing...
It's not hard to change but you need to first understand adb, apktool, framework-res and layout.xml stuff... it's all on the forums though!
If you get up and running with adb and apktool (http://code.google.com/p/android-apktool/ & http://forum.xda-developers.com/showthread.php?t=640592) - verified and tested - then I'll show you where to start making changes.
Click to expand...
Click to collapse
ok, I already have adb, I downloaded apktool and copied the files to the Windows directory, now what?
[email protected] said:
ok, I already have adb, I downloaded apktool and copied the files to the Windows directory, now what?
Click to expand...
Click to collapse
Try and decomplie an apk, recompile it and get it working on your phone. Report back.
Thanks for this fix! Worked like a charm, first installed a custom baked rom from modaco and after this I applied this fix and tadaa no more stupid notification!
I was just thinking about doing this, thank you very much
Woops double
Nice tweak, thanks for sharing!
Let's hope Paul adapts the mod in his custom kitchen
This patch isn't working anymore after the FR4 release. I tried it and it kept rebooting my phone, after installing FR4 without this patch it works like a charm. Is it possible you update it so that it works agan?
Here is a video I made explaining how to automatically change wallpaper on android with tasker.
https:// + youtu.be + /C7eazbrOBK4 (I can't post links since I'm a new user )
Steps:
1. Copy all photos into one folder.
2. Batch rename them to be in some order (eg: w_0.jpg, w_1.jpg, w_2.jpg, ... etc.). This can be done with solid explorer or es file explorer.
3. Open Tasker and select new task. Name it "Auto Wallpaper" or any other name you want.
4. Click on "+" and search for "Variable randomise" an select it. Set variable as "%Num", min to whatever your minimum value is "0" and max to the number on the last wallpaper. i.e if the last one says "w_36.jpg" set max to 36.
5. Go back and click on plus again. This time search for wallpaper and select "Set Wallpaper". For the file link click on the search button on top of it and browse and select one of the photos in the wallpaper folder.
6. The path will be something like "/downloads/wallpapers/w_0.jpg" . Replace the number with "%Num" (i.e "w_0.jpg" -> "w_%Num.jpg"). Also tick "Scale" and "Crop"
7. We are done with the task and now it's time to make a profile. Go to profile tab and click on "+" and create a new time based profile. Give the time when you want this profile to be active and then select "Repeat" and set the interval you want to change the wallpapers.
8. That's it! You're done. Enjoy!
How do we at stop some of the photos going on there side.
Sent from my SM-G930F using XDA-Developers Legacy app
Josh Smith10 said:
How do we at stop some of the photos going on there side.
Sent from my SM-G930F using XDA-Developers Legacy app
Click to expand...
Click to collapse
Ticking both scale and crop is the best thing you can do. I tried to see if there will be any difference if I normally apply it from gallery, but it gave the same result. I think it is the default behaviour. I kinda liked it so left it as it is.
At the end of the day, I'm not really sure. If anyone can figure it out it'll help. I'll try and see what I can do.
I made a profile that does that a while ago and redesigned it yesterday.
Change the directories to your liking.
They also look for new wallpapers in a subfolder (.toadd) and rename them automatically.
I had made an improvised version of the task by using the list files option giving output variable array %files and setting the max value as the length of the array obtained in the previous action("%files(#)") as the maximum value in the randomizer which outputs a variable %rand . Then set a varialble %wall to %files(%rand) and set wallpaper to %wall. Doesn't require me to change the name of the picture or update the max value whenever I add a picture.
Hrishikesh Patil said:
I had made an improvised version of the task by using the list files option giving output variable array %files and setting the max value as the length of the array obtained in the previous action("%files(#)") as the maximum value in the randomizer which outputs a variable %rand . Then set a varialble %wall to %files(%rand) and set wallpaper to %wall. Doesn't require me to change the name of the picture or update the max value whenever I add a picture.
Click to expand...
Click to collapse
Can you share task XML file please? I couldn't get it to work.
Vagelis1608 said:
I made a profile that does that a while ago and redesigned it yesterday.
Change the directories to your liking.
They also look for new wallpapers in a subfolder (.toadd) and rename them automatically.
Click to expand...
Click to collapse
Not working
elPsyCongroob said:
Here is a video I made explaining how to automatically change wallpaper on android with tasker.
https:// + youtu.be + /C7eazbrOBK4 (I can't post links since I'm a new user )
Steps:
1. Copy all photos into one folder.
2. Batch rename them to be in some order (eg: w_0.jpg, w_1.jpg, w_2.jpg, ... etc.). This can be done with solid explorer or es file explorer.
3. Open Tasker and select new task. Name it "Auto Wallpaper" or any other name you want.
4. Click on "+" and search for "Variable randomise" an select it. Set variable as "%Num", min to whatever your minimum value is "0" and max to the number on the last wallpaper. i.e if the last one says "w_36.jpg" set max to 36.
5. Go back and click on plus again. This time search for wallpaper and select "Set Wallpaper". For the file link click on the search button on top of it and browse and select one of the photos in the wallpaper folder.
6. The path will be something like "/downloads/wallpapers/w_0.jpg" . Replace the number with "%Num" (i.e "w_0.jpg" -> "w_%Num.jpg"). Also tick "Scale" and "Crop"
7. We are done with the task and now it's time to make a profile. Go to profile tab and click on "+" and create a new time based profile. Give the time when you want this profile to be active and then select "Repeat" and set the interval you want to change the wallpapers.
8. That's it! You're done. Enjoy!
Click to expand...
Click to collapse
Using your task, I have to change the file name and max number in Variable Randomize action every time I add a new file to my wallpapers folder.
this task, it doesn't have above drawback. But it changes only home-screen wallpaper and I can't set it to lock-screen or both.
Do you know how to do that?
EDIT: Found it! https://www.abhisek.info/blog/tasker-profile-random-wallpapers/
xml of working task
Thanks to Hrishikesh Patil and topic starter. I just add condition to grab from selected folder only jpg and png due to Tasker precondition.
Code:
<TaskerData sr="" dvi="1" tv="5.7.1">
<Task sr="task35">
<cdate>1560531444701</cdate>
<edate>1560793115421</edate>
<id>35</id>
<nme>RandWallpaper2</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>412</code>
<label>=== Проверено на Nova launcher (функция Wallpaper scrolling тоже работает) ===
Загружаем список всех картинок jpg и png (в массив)</label>
<Str sr="arg0" ve="3">/storage/8831-0XXX/DCIM/Wallpapers</Str>
<Str sr="arg1" ve="3">*.jpg/*.png</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">%mwfilelist</Str>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<label>Кол-во картинок</label>
<Str sr="arg0" ve="3">%mmax</Str>
<Str sr="arg1" ve="3">%mwfilelist(#)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>545</code>
<label>Случайный индекс</label>
<Str sr="arg0" ve="3">%mrand</Str>
<Int sr="arg1" val="1"/>
<Int sr="arg2">
<var>%mmax</var>
</Int>
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<label>Имя файла случайной картинки</label>
<Str sr="arg0" ve="3">%mfile_name</Str>
<Str sr="arg1" ve="3">%mwfilelist(%mrand)</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>109</code>
<label>Меняем обои (scale и crop никак не влияли)</label>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3">%mfile_name</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
I couldn't upload as file only as text.
elPsyCongroob said:
Here is a video I made explaining how to automatically change wallpaper on android with tasker.
https:// + youtu.be + /C7eazbrOBK4 (I can't post links since I'm a new user )
Steps:
1. Copy all photos into one folder.
2. Batch rename them to be in some order (eg: w_0.jpg, w_1.jpg, w_2.jpg, ... etc.). This can be done with solid explorer or es file explorer.
3. Open Tasker and select new task. Name it "Auto Wallpaper" or any other name you want.
4. Click on "+" and search for "Variable randomise" an select it. Set variable as "%Num", min to whatever your minimum value is "0" and max to the number on the last wallpaper. i.e if the last one says "w_36.jpg" set max to 36.
5. Go back and click on plus again. This time search for wallpaper and select "Set Wallpaper". For the file link click on the search button on top of it and browse and select one of the photos in the wallpaper folder.
6. The path will be something like "/downloads/wallpapers/w_0.jpg" . Replace the number with "%Num" (i.e "w_0.jpg" -> "w_%Num.jpg"). Also tick "Scale" and "Crop"
7. We are done with the task and now it's time to make a profile. Go to profile tab and click on "+" and create a new time based profile. Give the time when you want this profile to be active and then select "Repeat" and set the interval you want to change the wallpapers.
8. That's it! You're done. Enjoy!
Click to expand...
Click to collapse
There is no set wallpaper in tasker. Did they remove it, or is it hidden somewhere. Tasker android 1l0, 2021.
Update 30.11.2022
End of life and open source.
Due to lots of changes both in Android and in my life, I do not have the possibility to maintain / update the code any further, therefore I've decided to open source.
Code is accessible: https://github.com/borconi/obd2aa
I will like to thank all of those who supported this project.
App Requirement
Torque Pro
OBD2 Reader
Android Auto compatible headunit or at least a copy of the Headunit Reloaded App (see signature).
This app will have limited functionality if you are using Android Auto on a your phone, the only functions you will be able to use is to see are notification about the speed cameras and street card!
Gauges and torque data will NOT work!
Previous XDA purchases can be reclaimed here: https://www.b3itlabs.com/download.php
How to purchase:
Visit: https://www.b3itlabs.com/prod.php?id=2
Instructions on how to get it running:
Option 1 - Will work on any phone & car/headunit combination, however the following features won't: - AutoPlay Music, 6 Tap limit remover, DPI change
After installing the app from XDA Labs, sign up for beta testing here: https://play.google.com/apps/testing/uk.co.boconi.emil.obd2aa and update the app
Once app is updated, make sure you disable auto-update in PlayStore then please uninstall it and reinstall it from XDA Labs.
With your screen unlocked, plug in the phone to the car, when prompted which app to use make sure you select "Android Auto"
Option 2 - Might NOT work on some device combination (for sure it won't work on Xiaomi phones), but if this method works all functions of the app are available
Install
Make sure you do not have any other 3rd party app Android Auto app installed.
Open the app and hopefully it will be quite self explanatory on how to set it up (choose colours, set gauge number, etc)
Open Android Auto (on the phone), go to About, tap the "About Android Auto" header 10 times, once you are a developer from the 3 dotted right corner menu select "Start Headunit Server" (ROOT users can skip this step!)
Close Android Auto
MAKE SURE YOUR SCREEN IS UNLOCKED and connect to the car, when prompted which app to use select "OBD2AA" and always (this needs to be done one time only) - If you are a HUR user select Android Auto and always! (If you do not see the prompt to chose, please go to settings -> apps -> all apps -> Google Play Services -> Clear Defaults and then try again)
Select the last tab on the right, by pressing it again you should see an app selector and choose OBD2AA
Give it a bit of time to start pulling the data from Torque.
Change log
Version 3.2 and 3.3 released 04/11/2018
Fix "drunk" map effect on Sync 3 units
Fixed rooted devices not being able to start headunit server.
Added option to change DPI for your screen!
Added option to auto play music on start
Added option to select default start screen.
Version 3.1 releases 26/08/2018
Compatibility fix for Pie devices.
Tap limit remover now working on all device
Tap limit remover allows Maps to be searchable even when driving.
Can be used for those who have problem with the parking brake wire.
Freeze issues fixes.
Important notes
Version 3.0 releases 05/07/2018
Compatibility fix for AA 3.0 and above.
Added option for overriding 6 tap limits
Added option for Bluetooth Audio output.
Important notes
Thanks to @slash_m_a_x for the support offered on this.
- Some users have reported choppy audio when using the app, this will mainly be due to the speed of the phone, the buffer on the car/headunit and other factors which are out of my control, if that is the case and you cannot use the app please feel free to contact me for a refund.
- Bluetooth Audio output might not work on all devices, it does depend how the car/headunit handles the Bluetooth. There will be devices which completely disable A2DP/Bluetooth capabilities of the car when Android Auto is running. In this case all the sound will be heard from the phone speaker rather then the car speakers.
- Tap limit will be disabled only for cars/headunits which are equipped with a GPS.
- In rare cases it can happen that after unplugging the phone from the headunit you will see a message which says that you are still connected to Android Auto, simply Force Stop the Google Play Services.
- You always need to make sure that Headunit Server is running on the phone (unless you have root), if the icon bothers you simply hide it.
Change log
Version 2.0 releases 17/01/2018
Added new layout option
Added styled gauged
Option for custom background on each gauge.
Option for custom needle on each gauge
Removed integration for CamSam/Blitzer.de (fully integrated now)
Possibility to change needle color
Possibility to adjust arch (indent, position, length) when using custom bg
Separated speed camera settings
Option to only download speed cam db over Wifi
Fixes for min/max value
Speed camera warnings over car speaker (Thanks @martoreto for the how-to)
Street info card
Added French translation (Credit to @fbike for doing the translation)
Added Danish (Credit to @Gunde for doing the translation)
Added Finnish (Credit to @Pyrres for doing the translation)
Added Spanish (Credit to @madabase for doing the translation)
Added Italian (Credit to @ilgaspa for doing the translation)
Version 1.6a - releases 03/10/2017
Fixed negative input for min/max values
Code cleanup
Added Greek language (credit to @sosimple for translating)
Version 1.6 - releases 29/09/2017
Fixes for custom PIDS
Fixes on Graphics rendering.
Fixed overlapping text
Fixed PSI/BAR conversion
Enhanced the gauge style.
Different approach for torque data pulling.
Moved to service should start work automatically when connected to the car
Added Supports PID alarms from Torque.
Added Toggle/Collapse layout for Pid settings.
Added Preview button with random data
Added Option to toggle units display
Added notification cleanup on exit
Added translation for DE,HU,RO (Credit to @FormelLMS for DE)
Added import/export setting option
Added option for colored text
Added TPMS option/screen
Added option to override car's headlights based on day/night
Added warning screen if nothing is configured to prevent black screen with no information.
Added more settings and move them to separate Settings options.
Added customizable background
Added search for PIDs
Added Support for Heads-Up notification
Added Speed camera warnings (powered by CamSam Plus)
Supported settings/Features:
3 x Colors for each gauge
Text color
Toggle needle, arch,units,scale,decimal and text for each gauge.
Variable number or gauges ( 1 - 15 )
Set warning limit for each gauge (percentage). This will be calculated relative to the given PID max value which is retrieved from Torque at runtime.
Possibility to set gauge in reverse mode. (example fuel tank)
Units will be converted automatically based on your Preferences in Torque
TPMS Screen (if you have PID's for TPMS data)
Possibility to use custom background/needle for each gauge
Low Fuel warning
Warm Engine warning
Speed Camera Heads Up Warning
Option to Overwrite Headlights state based on calculated sunset/sunrise
How to use it?
Open app and select each PID you want to display on your screen, adjust the number or gauges you want to see adjust the preference for each PID. If you want to use custom background/needle and interested on how to, please read HERE
Locking Pid values
On some PID's Torque reports wrong min/max values, by default if while using the application a reported value is higher/lower than the initially reported range, the app will adjust the range to the new values. However in some cases this is not desired and you will like to specify manually what is the min and max value for the give PID. In this case, simple edit the minimum/maximum for the pid and they will become locked, meaning the app won't make any adjustments.
By editing, it means you have to change the min or max value, the lock is triggered by the first keypress on this input fields.
The lock will be automatically removed when you select a different PID for the same gauge.
Preferences menu
Alternative pulling - Only enable this option if you have difficulties getting gauges updated, it uses an old deprecated method of obtaining data so should not really be used.
Enable debugging - Only enable it if you have problems with the app and I requested you to collect a bug report, otherwise it will spam the logs for no reason.
Automatically start Torque on Android Auto - Nothing to explain here
Launch FartKontrol on start - launches a Danish Speed Camera app (useless outside Denmark)
Custom Background (any background you will like to use instead of the black color)
Demo - When enabled random data is generated for the PID's just to see how things will look (in case you do not have an OBD2 adapter), so don't enable it.
Pid Alarms section. You can set up a low level fuel warning (displayed as a heads up notification) and a notification when the engine is warmed up. There a several PID options for both of this, pretty self explanatory.
TPMS Settings
- You set up the 4 PID's for TPMS, this will be used to display the tyre pressure values on the TPMS screen inside Android Auto
Speed Camera
Show current street card - Displays information about current street (name and speed limit if know). This information is updated once in 5 seconds and at a minimum distance of 200 meters so it's not 100% accurate it's more for general information.
Enable speed camera warnings - This will enable the app to display speed camera warning when driving, like any app which does this it relies on a database, which means it does NOT guarantee that it will warn you of all the cameras, and it might also produce false warnings. All options are pretty self explanatory.
Export & Import
- Allows you to export your current app configuration file which can later be imported (grate way of saving time of re-doing everything) after a clean install or so. The format use for Export & Import is JSON so if you want you can manually edit/adjust the values. Please see following post for more details about the sturcture/value/meanings
Permissions
Read notification permission - Only required so the app can read the notifications from CamSam and display them on AA scren
Locations - Only required if you want the app to overwrite the day/night theme based on sunset/sunrise
Storage - Only needed if you want to use your personal image as a background and/or planning to import/export settings
Can I create my own layout for the gauges?
- Yes, see instructions below:
Here is an example of the XML structure required, once you created the XML please send it over by email to [email protected] and I will include it in the next build.
Code:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="wrapper_layout">
<!-- Left column -->
<View
android:layout_width="226dp"
android:layout_height="226dp"
android:layout_gravity="center_vertical|start"
android:tag="gauge_2"
/>
<!-- Middle column -->
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:tag="gauge_1" />
<!-- right column -->
<View
android:layout_width="226dp"
android:layout_height="226dp"
android:layout_gravity="center_vertical|end"
android:tag="gauge_3" />
</FrameLayout>
Important
Each view must contain a tag, which is formated like in the example, where the number corresponds to the Gauge number from the setting screen.
The layout which wraps everything together must have a tag called: wrapper_layout
You are free to use any Layout you want, except ScrollView.
How to produce bug report?
Step 1 you need to enabled debugging in OBD2AA app, then follow this instruction set:
2. Enabling Developer Mode
Open Settings > About phone.
Scroll down to the Build number.
Tap the Build number 7 times in quick succession until "You're now a developer" appears.
Return to the Settings menu and select Developer options.
At the top of the screen, make sure 'Developer options' is set to On (green).
Scroll down to Debugging and enable both USB debugging and Bug Report Shortcut on (green).
Tab on Logger buffer sizes: Default setting is 256K. Select 16M to help capture more information for debugging. Of note, it can affect the apps performance especially with lower spec phone, so change it back after you have finished submitting bug reports.
3. Capturing a Bug Report
It's very important to do this right after you experience the issue again, so your device can log at least one occurrence of the issue.
Hold the Power button down until the menu appears.
Select Take bug report. and wait for the device to capture the bug report.
Tap the 'Bug report captured' notification when it appears.
Share the bug report. (I recommend to email it to yourself.)
Download the bug report to your computer.
Send the bug report by email to [email protected]
I have decided to open up my software, meaning I have made the source code available on GitHub, but it's only available for personal use, and you are not allowed (under any form) to redistribute your own version of the app. You can download and compile it yourself if you wish to do so, and you can implement your own changes for your own personal use, but you cannot create clones of the software which you redistribute under your own name. Source can be found here: https://github.com/borconi/obd2aa.
Due to the fact that there are some irresponsible developers out there, who created video apps for moving cars, which was one of the main reasons Google blocked 3rd party apps, I won't be updating the code on github any more, to try to prevent those developers to use my technique to overcome the limits. If you are developing a 3rd party app and you will like to know more about how I have done this, you are always welcome to contact me. If your project is something useful, I will be more then happy to share things with you.
This does not mean it is now a free app and apk can be freely shared!
Amazing work Emil, this along with your (and ofcourse @mikereidis) Headunit Reloaded app is perfect for Android Auto on the cheap ,
Gotta subscribe to this thread! The possibility of custom PIDs would be of huge interest to me.
Seems like its stuck without any option to change on Kmph rather than mph for speed etc, its set to mph in torque
fma965 said:
Seems like its stuck without any option to change on Kmph rather than mph for speed etc, its set to mph in torque
Click to expand...
Click to collapse
Yeap a few things to iron out....
Just to tired to work on it tonight.... it was a long one yesterday to get the alpha done for today but planning to work on it this weekend....
Emil Borconi said:
Yeap a few things to iron out....
Just to tired to work on it tonight.... it was a long one yesterday to get the alpha done for today but planning to work on it this weekend....
Click to expand...
Click to collapse
No worries, i wrote that quickly... other than that seems good, still figuring out what my car supports though. thinking about selling my tablet setup and buying the same car thing as me
fma965 said:
No worries, i wrote that quickly... other than that seems good, still figuring out what my car supports though. thinking about selling my tablet setup and buying the same car thing as me
Click to expand...
Click to collapse
Well I love my setup but I HATE my handsfree, have to come up with some solution for that because it's cr...
Emil Borconi said:
Well I love my setup but I HATE my handsfree, have to come up with some solution for that because it's cr...
Click to expand...
Click to collapse
does it not support external microphones?
fma965 said:
does it not support external microphones?
Click to expand...
Click to collapse
No. I have to try with a USB soundcard (which I use with my Odroid) but haven't got the chance yet, or I might just hook my himbox to the AUX in and use it that way. The built in mic is almost unusable especially over 30 MPH.
And first version of the app is live!
Bought, installed and looking good.
I've got the Prius PIDs plugin installed in Torque so I can see the data on my Prius C.
Only about half those PIDs are available to be selected, it looks like it's hitting the maximum number of allowed items in the "Select PID" list.
Great, could you please tell me, where I can find it?
FormelLMS said:
Great, could you please tell me, where I can find it?
Click to expand...
Click to collapse
The XDALabs app was a pain, I had to:
Install the XDA app from the Play Store
Log in
Install the XDALabs app it prompted me to install
Log in again
Then open Emil's link from the first post in the XDALabs app.
Ok, thank you. Any chance to have this in play store?
Hi.
Sorry for the pain caused by XDA labs, unfortunately Google play rejected the app submission so I cannot make it available trough that channel.
As for custom PIDs yes intending to support them in the future. Currently torque doesn't provide a method to expose them to 3rd parties so I need to speak with Torque developer if that is possible, alternatively I will need to fallback to manual PID configuration.
I will see if I can build a quick webpage to host/sell the app could potentially make it easier to get the app, but it will make it more difficult to keep it updated.
Emil Borconi said:
Sorry for the pain caused by XDA labs, unfortunately Google play rejected the app submission so I cannot make it available trough that channel.
Click to expand...
Click to collapse
Understood, I had a feeling Google wasn't going to allow it.
One of the issues with XDA is that you can get there via the web but it's not obvious at all how to buy it from there.
Then you have to jump through hoops to get the right app.
Emil Borconi said:
As for custom PIDs yes intending to support them in the future. Currently torque doesn't provide a method to expose them to 3rd parties so I need to speak with Torque developer if that is possible, alternatively I will need to fallback to manual PID configuration.
Click to expand...
Click to collapse
It's already showing around half of the Prius custom PIDs, it's like the list just runs out of space for more items.
edit:
Screenshot link
leonkernan said:
Understood, I had a feeling Google wasn't going to allow it.
One of the issues with XDA is that you can get there via the web but it's not obvious at all how to buy it from there.
Then you have to jump through hoops to get the right app.
It's already showing around half of the Prius custom PIDs, it's like the list just runs out of space for more items.
Click to expand...
Click to collapse
I'll send you a logging version at some point this weekend just to see if how much data Torque actually send over. For example it doesn't show any of my custom PIDs for KIA.
Thanks for this, it is awesome..
A magnificent add to the current great app.
Here is photo of my test
too low ISO 320.
My Observation:
1: I added in Gauge 2 : Volts(CM), then put "13.5" in W.Level 1, and 12 in W.Level 2, when I switch to ODB2AA it wont open and switch back to the current tab.
then I changed W.Level 1 to "13" and it works, so looks like it wont accept a decimal value!, don't know if its a bug or error from my side.
2: Each time I switch to the OBD2AA tab it takes 13s for the data to be pulled.
3: Just once "no data pulling", I had to unplug/plug usb to work.
suggestion:
* It would be good if there is a timeout option for the data pulling to stop, so no 13s delay when switch back and forth in that time, I don't know if it is applicable in AA.
Great job Emil.
MAJED.y said:
A magnificent add to the current great app.
Here is photo of my test
My Observation:
1: I added in Gauge 2 : Volts(CM), then put "13.5" in W.Level 1, and 12 in W.Level 2, when I switch to ODB2AA it wont open and switch back to the current tab.
then I changed W.Level 1 to "13" and it works, so looks like it wont accept a decimal value!, don't know if its a bug or error from my side.
2: Each time I switch to the OBD2AA tab it takes 13s for the data to be pulled.
3: Just once "no data pulling", I had to unplug/plug usb to work.
suggestion:
* It would be good if there is a timeout option for the data pulling to stop, so no 13s delay when switch back and forth in that time.
Great job Emil.
Click to expand...
Click to collapse
Check your email The version you are mentioning is the Beta, the release version has all those sorted
Sorry I'm moving too fast
Hello guys im trying from long time to understand why Gcam no matter from the version the slow motion never worked on HTC 10 and i think is related to the media_profiles.xml because we miss some important lines in order the Slow Motion to work properly.
Anyway sometimes when the things go wrong and edit manually the Media xml file i can recive a nasty bootlopp and in order to not repeat the same all the times
can anyone who is familiar with Magisc create a simple module?! for test purpose.
This lines to be added to the Media_profiles.xml
No mater from the Buld you know that the Gcam always crash and force close when you switch to Slow Motion
But only with this MOD magisk module
https://forum.xda-developers.com/apps/magisk/module-gcam-patch-t3677993
In every build ive try i was able to switch to Slow Mo without a crash also im able to press the button of recorder and i saw the sign 120 FPS under slow motion the problem is that for now the VIEWER freeze and im not able to record a video.
But this module only add some lines in the media_presets xml so thats why i think we are close and im sure is something related just for the xml file something in our HTC 10 is different in that media profiles xml and we need to find out what exactly!
I think the GCAM cant read the seeting correctly from the XML if they are not corectly set or writen.
for example in my Media profiles by default the SLOW MOTION is missing but this dont preven the Stock HTC CAM to record slow mo maybe we have to add this in order if we want to make GCAM to work as well
If you wish chek your media_profiles.xml do u have something similar i think this is the correct lines that we are missing and have to add this line but because im tired of bootlops if im wrong everytime im looking for methood how to use it like a MODULE and in case something went wrong to be able to revert back to stock.
In the magisk module above some of the lines are incorrect and maybe thats why the view freeze
and think this are the correct we all have to add.
<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/720P : [email protected]; 27.0 Mbps -->
<EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="27000000"
width="1280"
height="720"
frameRate="120" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="highspeed720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="27000000"
width="1280"
height="720"
frameRate="120" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/1080P : [email protected]; 34.0 Mbps -->
<EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="34000000"
width="1920"
height="1080"
frameRate="60" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
I think this is the missing part for the Slow Motion to work properly on HTC 10 and few other devices as well, because we by default don`t have that config in our media profiles.
Will be very thankfull.
Thanks
Hi
I have a xiaomi mi a1 and have the same problem. Even with the module you refered slow motion crashes gcam.
I've tried one other module here https://forum.xda-developers.com/apps/magisk/module-hevc-60fps-slomo-gcam-op3t-5-t3666287 and I can film at 120frames but it's laggy (filming and playing). I think it's because it is specific for those models.
I also would like to try a module that only adds the necessary lines to media_profiles.xml, but I don't know how to do it.
Did you try to talk with the gcam module creator to see if he can try to do one like you describe?
regards
Is there a way to make the rear display always on? Currently its 30s max... I think xiaomi should allow us to set it to always. Its amoled afterall, the screen is amoled, and small.. So it wont tax the battery much i suppose?
Dekdek1 said:
Is there a way to make the rear display always on? Currently its 30s max... I think xiaomi should allow us to set it to always. Its amoled afterall, the screen is amoled, and small.. So it wont tax the battery much i suppose?
Click to expand...
Click to collapse
Haven't seen one yet, the back screen functionality is probably the biggest disappointment of this phone
The most useful feature of it is probably too prevent the phone wobbling if you use it on a table
Hopefully they will add functionality via software but after 6 weeks I'm starting to have my doubts and I'm on the latest EU weekly rom
By the way, not sure if its 100% accurate info but it seems we will have rear display working as a viewfinder for videos aswell soon.
Thx all for the input
use: setedit to edit the time of the rear screen from 3000 (30s) to what number you want. i use 3000000 so it kind like AOD
Barcovn said:
use: setedit to edit the time of the rear screen from 3000 (30s) to what number you want. i use 3000000 so it kind like AOD
Click to expand...
Click to collapse
# System Table
# "subscreen_display_time"
After reboot it is set to MIUI default value
katerpanne said:
# System Table
# "subscreen_display_time"
After reboot it is set to MIUI default value
Click to expand...
Click to collapse
Which miui Version are you using?
Cant find the specific entry.
Barcovn said:
use: setedit to edit the time of the rear screen from 3000 (30s) to what number you want. i use 3000000 so it kind like AOD
Click to expand...
Click to collapse
Do you need to root it for it?
doribak said:
Do you need to root it for it?
Click to expand...
Click to collapse
i done it today no root needed, but you have to type specifited command in ADB
lortwarCECH said:
i done it today no root needed, but you have to type specifited command in ADB
Click to expand...
Click to collapse
Any chance for a quick guide?
doribak said:
Any chance for a quick guide?
Click to expand...
Click to collapse
How to install ADB on Windows, macOS, and Linux
If you're on Windows, Linux or macOS, you can follow these step by step instructions to install ADB on your desktop or laptop PC.
www.xda-developers.com
When you have already instaled ADB, type this in command line: "ADB shell" and then:
"pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS"
Barcovn said:
use: setedit to edit the time of the rear screen from 3000 (30s) to what number you want. i use 3000000 so it kind like AOD
Click to expand...
Click to collapse
Brooo !! Thank you !!!
Make a separate thread for others.
lortwarCECH said:
How to install ADB on Windows, macOS, and Linux
If you're on Windows, Linux or macOS, you can follow these step by step instructions to install ADB on your desktop or laptop PC.
www.xda-developers.com
When you have already instaled ADB, type this in command line: "ADB shell" and then:
"pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS"
Click to expand...
Click to collapse
After that it should stay as longer as we input the time? Even after reboot
avetny said:
After that it should stay as longer as we input the time? Even after reboot
Click to expand...
Click to collapse
it is working even after reboot
lortwarCECH said:
it is working even after reboot
Click to expand...
Click to collapse
Thx for this, now I can create a Tasker profil to turn on/off rear display
And in some months people will complain about screen burn in. Haha joking, but interesting if that happens.
For those looking for more rear screen function, just seen this on telegram
Xiaomi will be add some more exciting features at Mi 11 Ultra second display. As of now these are in testing.
- Video Recording
- Vlog Video
- Slow Motion
- Timed Continues Shooting
- Time lapse Photos
- Portrait Blur
- Night Scenes
Join @TecnoStreet
Dekdek1 said:
Is there a way to make the rear display always on? Currently its 30s max... I think xiaomi should allow us to set it to always. Its amoled afterall, the screen is amoled, and small.. So it wont tax the battery much i suppose?
Click to expand...
Click to collapse
You can use the tool "setedit" from playstore
# System Table
# "subscreen_display_time"
Put in a very high numer
chrissss91 said:
Thx for this, now I can create a Tasker profil to turn on/off rear display
Click to expand...
Click to collapse
Can u please show how to make task for rear display with display on/off profile.... As I can't find the the task which activate the rear display...
abhati17 said:
Can u please show how to make task for rear display with display on/off profile.... As I can't find the the task which activate the rear display...
Click to expand...
Click to collapse
Hello,
Here are my 2 'test' tasks :
Enable subscreen :
Code:
<TaskerData sr="" dvi="1" tv="5.12.22">
<Task sr="task113">
<cdate>1621772438105</cdate>
<edate>1627111965882</edate>
<id>113</id>
<nme>Test subscreen On</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<label>Enable subscreen</label>
<Str sr="arg0" ve="3">settings put system subscreen_gesture_wakeup 1
settings put system subscreen_switch 1
settings put system subscreen_switch_show_notification_content 1</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
</TaskerData>
Disable subscreen :
Code:
<TaskerData sr="" dvi="1" tv="5.12.22">
<Task sr="task101">
<cdate>1621772438105</cdate>
<edate>1627111982325</edate>
<id>101</id>
<nme>Test subscreen Off</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<label>Disable Subscreen</label>
<Str sr="arg0" ve="3">settings put system subscreen_gesture_wakeup 0
settings put system subscreen_switch 0
settings put system subscreen_switch_show_notification_content 0</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
</TaskerData>
You can also modify display time, just add this line with other commands :
settings put system subscreen_display_time 300000