Add Frequency Bands to Your Qualcomm Device

Those of you who travel quite a bit undoubtedly own more than one device due to frequency band … more

More Android 5.0 Details Revealed, Microsoft Band Fitness Tracker – XDA TV

Google talks more about Android 5.0 Lollipop! That and much … more

Google Allows Search Queries To Interact With Apps

Android 5.0 Lollipop brings lots of new features that are quite useful for end users and … more

Lenovo Officially Owns Motorola, Following ~$3 Billion Deal

Google is now officially no longer the owner of American phone manufacturer … more
Post Reply

[APP] AudioBoost 2.4 - support and feedback

OP carlocb

18th August 2010, 04:29 PM   |  #1  
OP Senior Member
Flag Bologna
Thanks Meter: 8
 
263 posts
Join Date:Joined: Aug 2010
More
CREDITS:
My work is ONLY the application, it was intended for my personal use, but I figured that it could be useful to someone else, until supercurio doesn't come out with something better (and I hope he will).
So the HARD PART of the work, like finding out how to tweak the volume limit using alsa, etc. was done by supercurio and we should all thank him a lot for all his work!
Thanks also to RyanZA for creating the z4root application, very very useful!

PREREQUISITES:
1. Your phone must be ROOTED!


ATTENTION FOR FROYO!!:
With froyo official updates, it is NO LONGER possible to flash custom update.zip!! If you want to leave your phone unrooted, however, there is a simple way to achive this:

1. Download from the market the free application "z4root" from our beloved RyanZA! (http://forum.xda-developers.com/showthread.php?t=833953)
2. Use the z4root application to get root privileges
3. Now open audioboost and choose "NORMAL INSTALL"
4. Now or whenever you feel like it, if you want, you can just open z4root again and *unroot* your device. After that, you can even erase z4root and continue using audioboost without problems until next firmware upgrade...the app won't leave any trace and it won't be noticeable that your phone has been rooted.
If you liked this approach, you can also donate to RyanZA for the wonderful app he's created!


INSTALLATION:
If you had previously a beta version installed, please uninstall it before trying the release 1.0.

If you don't have already installed alsa, the app will check your installation when you launch it, and eventually it will ask you to install alsa. Please do so.

FEATURES:
- Headphones, speaker and microphone tweaking!
- I optimized the code a lot, so now it is very low on resource usage, even with a 1-second refresh rate!
- You can leave it in background all day without noticing any lag or anything!
- Now with some sort of icon.
- Signed.

UPDATED 1.1:
- When clicking exit button it will clean up better.
- Cleaned up a bit the Settings activity, and added preview of next feature (statusbar notifications).
- Changed Info activity a bit.

UPDATED 1.2:
- Fixed a bug that prevented the app to work properly!

UPDATED 1.3:
- GLOBAL REFRESH! Now the refresh time and enabling/disabling is under Settings and works for ALL controls (headphones, speaker and mic).
- Fixed (hopefully) problems with ALSA INSTALLATION, plus now a progress dialog is displayed (just for you to know that is working and for me when posting problems - I hope not - you can say "stuck at x%"...)
- Fixed QUIT bug. Now when you click the exit button it should really exit and not show up in background even with task killer. PLEASE DO NOT KILL THE APP, use the exit button!!!
- Now menu has icons!
- Plus a lot of things that you may not notice, but are very useful for overall speed and low system resource impact! The code has been changed A LOT, let me tell ya!

...Well hope everything works just fine! Please post feedback on mic functioning with these new features!

UPDATED 1.4.1:
- Just fixed a little thing which prevented the correct alsa installation, nothing definitive as I'm looking to manage every single possible error scenario...

UPDATED 2.0:
- Works even on unrooted phones
- Alsa installation takes now a split second! You MUST do that even if you used version 1.x (permissions changed...)
- Audio-boosting feature is a service that can be backgrounded
- Statusbar notification
- Start on phone boot
- Refresh rate in milliseconds...you can have values lower than 1 second, default is 500ms...obviously greater values = worst experience = better performance....your call! :P
- New app logo...hope you like it!
- A lot of other improvements that I'm not remembering right now! :P

UPDATED 2.1:
- Fixed lagging issues (OMG java Timer class implementation on android sucks badly!!!)

- Dropped "always active" option in settings (not very user-friendly/intuitive)

- Added little dialog when hitting menu/Quit that asks if you want to background the app or close it for good (more user-friendly for my taste)

Regarding *lagging* issues: of course, if you keep like 2-3 milliseconds refresh it WILL lag indeed! That depends on use-cases:

- I, for instance, use my app when listening to music while driving. In that circumstance, I have no problem occupying resources because I'm not actually using my phone apart from playing music. If an email comes in though, I'd *hate* to have to wait 10 seconds to boost volume again, so I keep 100-200ms. When I exit the car, I click "disable" and close audioboost.

- Someone who is listening to music while using the phone intensively should use a higher refresh.

I think that with 2000ms refresh, version 2.1 shouldn't lag even all-day long. Even with lower values it should be fine...you should find your preferred setting by yourselves!

UPDATE 2.2 - 2.3 - 2.4:
- Fixed some bugs.
- Improved froyo compatibility.
- Mounts /system as rw during install.

PLEASE FEEL FREE TO RATE/COMMENT THE APP IN THE MARKET, THANK YOU EVERYBODY


- OLD:

Ok...let's explain a bit. Yesterday evening I wanted to know if it existed a tweak to boost the audio volume coming from the headphones. I think that there is some sort of European law or something like that which limits the volume that headphones can produce. This is probably a good thing to avoid hearing problems with *headphones*, but in my situation it sucks badly! Yes, because I use my phone as a music source in my car, and my car hifi is not powerful enough to let me hear my music at the level I like...
However...I was addressed at this thread, from post #300 on...
Well, I read the thread (and I STRONGLY ADVISE you do the same before downloading anything from my post), but I didn't like very much the limitations of that tweak. It works alright, but it seems to me that an sh script is not the more comfortable way to go on a mobile phone. If you think differently from me, feel free to keep using the script method, without posting useless comments.

So I created a tiny little (horrible I must say) application which kinda does basically the same thing as the script, but in a (from my point of view) much cooler way! It is very ugly, but it's my first android application and I bought the phone just 2 weeks ago...
How does this work? Very simple: there is a textbox in which you can enter the desired amp level, an enable button and a disable one. You should enter the value you prefer (default is 62), then click enable button. You should now leave the app RUNNING in background. When you are finished using the tweak you can tap the disable button to return to the default (of the firmware) settings.
Basically what the application does is it creates a 2-seconds timer which calls everytime the alsamixer (a little better than using an infinite loop as in the script...) with the desired settings. It doesn't seem to impact the battery life too much from my little testing, but please post any feedback on this point.
Last edited by carlocb; 13th November 2010 at 01:00 PM.
The Following 2 Users Say Thank You to carlocb For This Useful Post: [ View ]
18th August 2010, 05:01 PM   |  #2  
Member
Flag Matera
Thanks Meter: 0
 
47 posts
Join Date:Joined: Jul 2010
More
Thank you! This is useful
18th August 2010, 05:13 PM   |  #3  
Senior Member
Flag londonderry
Thanks Meter: 173
 
2,149 posts
Join Date:Joined: Mar 2010
what is the default and what are the ranges it supports thanks
18th August 2010, 05:23 PM   |  #4  
OP Senior Member
Flag Bologna
Thanks Meter: 8
 
263 posts
Join Date:Joined: Aug 2010
More
The default is 56 (and that's the value it puts when you click the disable button). The range varies from 0 to 63, but from 0 to 35 it's the same low level. It's all written on the supercurio's post I mentioned!
18th August 2010, 05:47 PM   |  #5  
Senior Member
Flag londonderry
Thanks Meter: 173
 
2,149 posts
Join Date:Joined: Mar 2010
thanks works ok.. you dont have to keep it running the setting does not go back to default unless you unplug and replug in the headphone.. also this is only for headphone boost not for speaker..

finally 2 secs seems like overkill every 10-30 sec would be ok to0.. maybe you could make that user seteable.. also an exit button would be nice since i start it set the level higher and kill it..as long as i dont unplug headphones it stays so i would like to exit without going to task killer..
thanks agian.
18th August 2010, 06:16 PM   |  #6  
OP Senior Member
Flag Bologna
Thanks Meter: 8
 
263 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by lgkahn

thanks works ok.. you dont have to keep it running the setting does not go back to default unless you unplug and replug in the headphone.. also this is only for headphone boost not for speaker..

finally 2 secs seems like overkill every 10-30 sec would be ok to0.. maybe you could make that user seteable.. also an exit button would be nice since i start it set the level higher and kill it..as long as i dont unplug headphones it stays so i would like to exit without going to task killer..
thanks agian.

I'll look into those suggestions after dinner, thanks! However, I don't see why you should kill it...I mean, it's like 20kb of app...I don't think it occupies that much ram...
The point of the app is that when you unplug the headphone and replug it after 2sec it bumps volume again...if you kill it becomes useless...
18th August 2010, 06:28 PM   |  #7  
Senior Member
Flag londonderry
Thanks Meter: 173
 
2,149 posts
Join Date:Joined: Mar 2010
Quote:
Originally Posted by carlocb

I'll look into those suggestions after dinner, thanks! However, I don't see why you should kill it...I mean, it's like 20kb of app...I don't think it occupies that much ram...
The point of the app is that when you unplug the headphone and replug it after 2sec it bumps volume again...if you kill it becomes useless...

it is not the memory footprint i dont like anything running starting up every so often and checking status.. not sure what it does to battery or cpu usage.. especially in not necessary... maybe a widget added to the app with a picture that changes showing boost when on and when you click toggles on or off.. and you only need to open the actuall app for settings..
if you can bundle this with the other app so you dont have to manually install and untar on you card. you could probably charge a couple of bucks for it in the store... but more most people the manual install and untar of the other app is slightly complicated.
18th August 2010, 07:01 PM   |  #8  
OP Senior Member
Flag Bologna
Thanks Meter: 8
 
263 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by lgkahn

it is not the memory footprint i dont like anything running starting up every so often and checking status.. not sure what it does to battery or cpu usage.. especially in not necessary... maybe a widget added to the app with a picture that changes showing boost when on and when you click toggles on or off.. and you only need to open the actuall app for settings..
if you can bundle this with the other app so you dont have to manually install and untar on you card. you could probably charge a couple of bucks for it in the store... but more most people the manual install and untar of the other app is slightly complicated.

Well that of the widget is a GREAT idea! I'll look into it, but I can't promise anything, because as I said it's the first time I develop anything for a mobile phone, I just read two or three tutorials on android developing this morning and the actual coding part was like a couple of hours of work. Add to that the fact that it's been 4 years since last time I wrote software (let alone java, which was the first language I learned, but I never used it for real developing) and now I'm doing with very different things in my life! Of course I will try to upgrade and make a better app, as this one is horrible...if people are interested I'll do it, but it'll take some time!
18th August 2010, 07:06 PM   |  #9  
Senior Member
Flag ::1
Thanks Meter: 42
 
690 posts
Join Date:Joined: May 2008
More
Quote:
Originally Posted by carlocb

Well that of the widget is a GREAT idea! I'll look into it, but I can't promise anything, because as I said it's the first time I develop anything for a mobile phone, I just read two or three tutorials on android developing this morning and the actual coding part was like a couple of hours of work. Add to that the fact that it's been 4 years since last time I wrote software (let alone java, which was the first language I learned, but I never used it for real developing) and now I'm doing with very different things in my life! Of course I will try to upgrade and make a better app, as this one is horrible...if people are interested I'll do it, but it'll take some time!

I'm sure your work will make a lot of people happy.

Thanks for your time Carlo.
18th August 2010, 09:16 PM   |  #10  
Member
Flag Matera
Thanks Meter: 0
 
47 posts
Join Date:Joined: Jul 2010
More
Grande Carlo!

Ti consiglierei di salvare il livello di output dell'ultima sessione in modo tale che uno non lo debba reinserire. Ma quanta batteria consuma questa applicazione?
Altro piccolo consiglio: inserisci un terzo pulsante per poter disattivare l'applicazione senza ripristinare a 56 il volume, in modo tale da non dover avere la tua app in background ma poter comunque utilizzare il volume al max

Great idea Carlo!
I'd suggest to modify a few things in your app:
1)Try to insert a third button for closing the service without resetting the volume to the normal one, also because it is enough to unplug the headphones to change it.
2)Can you modify save the latest used volume? This way the next time you open the app you do not have to change it again.

Buona fortuna! Grande idea!

Post Reply Subscribe to Thread

Tags
audio, tweak, volume boost
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes