Moto Hell - The Motorola Modding Community

Motorola Phone Models => Software (Phone) => Topic started by: RWolf on October 09, 2007, 12:14:30 am



Title: Missed Calls Alert
Post by: RWolf on October 09, 2007, 12:14:30 am
Well, it does exactly what it is named for: produces periodical sound alerts when missed calls are present, like in E398 and some other motophones.
Current version is 0.3.
Check README file for help.

  • Download v0.3 (https://motohell.com/index.php?action=dlattach;topic=1338.0;attach=495)


Below are the details for version 0.1 (outdated)
by now, the program has minimal functionality.
It does the trick by recognizing (actually, just comparing) missed calls window pattern on screenshots, so you have to provide that pattern with pattern editor attached.
Installation:
1. Copy missed_calls to phone FS, in this example I copy it to /ezxlocal/download/mystuff/unKnown/
2. Get your phone show "Missed calls" window, then take a screenshot:
cp /dev/fb0 /mmc/mmca1/my_screenshot
3. Load the screenshot into missed_calls.exe, mark the key pattern (e.g. something which differs the missed calls window screen from others) and save it to missed_calls.pat.
4. Copy missed_calls.pat to phone FS (again, to /ezxlocal/download/mystuff/unKnown/).
5. Add the program to autorun, like this:
/ezxlocal/download/mystuff/unKnown/missed_calls -pattern /ezxlocal/download/mystuff/unKnown/missed_calls.pat -wait 180
then reboot to get it work.

Command line keys:
-pattern filename - use the pattern,
-playvol N - sound volume 0-63, default 10,
-wait N - alert repeat time in seconds, default 300.


Title: Re: Missed Calls Alert
Post by: RWolf on October 09, 2007, 09:21:16 am
ok, got rid of those patterns and screenshots with a little help from guys at motofan.ru; now the program doesn't depend on current skin and language, installation also became easier.
1. Copy missed_calls to, say, /ezxlocal/download/mystuff/unKnown/
2. Add the program to autorun:
/ezxlocal/download/mystuff/unKnown/missed_calls -wait 180
3. Reboot.


Title: Re: Missed Calls Alert
Post by: aku46 on October 09, 2007, 02:14:21 pm
great work!!

how about SMS alert like i hav in my c650&e398?


Title: Re: Missed Calls Alert
Post by: pizzadox619 on October 09, 2007, 08:16:27 pm
downloading now. U don't give us a source, maybe someone can learn it. :D


Title: Re: Missed Calls Alert
Post by: RWolf on October 09, 2007, 11:16:35 pm
downloading now. U don't give us a source, maybe someone can learn it. :D
that's ok, now I have to solve some issues and make sure the program works fine; also thinking of SMS alert. The next version will be GPL'ed.


Title: Re: Missed Calls Alert
Post by: Exploited on October 09, 2007, 11:23:50 pm
The idea with the screenshots comparison is great!

PM me if you want me to mirror it on E2mod.com


P.S. I am moving this thread to "Phone software"


Title: Re: Missed Calls Alert
Post by: ilove3d on October 10, 2007, 02:18:22 am
opened with hexeditor ( no source, so... )

it seems read file from ezx_user, the recent call history binary file
maybe sms alert will come soon, as author has found out the secret of the binaries stored in phone


Title: Re: Missed Calls Alert
Post by: RWolf on October 10, 2007, 02:27:14 am
By now, there's a problem with the app: when phone is being charged, it works fine, but when phone enters power-saving mode, it seems that OS pauses the program. Any ideas how to prevent it?


Title: Re: Missed Calls Alert
Post by: ilove3d on October 10, 2007, 02:46:32 am
By now, there's a problem with the app: when phone is being charged, it works fine, but when phone enters power-saving mode, it seems that OS pauses the program. Any ideas how to prevent it?
maybe make it as a daemon program, using fork() and setsid().
I'll be very glad if everyone shares the source of his modding programs


Title: Re: Missed Calls Alert
Post by: RWolf on October 10, 2007, 03:25:11 am
maybe make it as a daemon program, using fork() and setsid().
I'll be very glad if everyone shares the source of his modding programs
I'll share the source in the next version, this one is still kind of test app and needs to be improved.


Title: Re: Missed Calls Alert
Post by: ilove3d on October 10, 2007, 06:27:13 am
I'm doing some kind of strong and powerfull QT programs.
but, sure, it's not stronger than the Kaleidoscope


Title: Re: Missed Calls Alert
Post by: error398 on October 10, 2007, 09:52:37 am
it so great.. but i didnt understand how to mod it.. can someone give it the easy step..

thanks


Title: Re: Missed Calls Alert
Post by: RWolf on October 11, 2007, 05:25:37 am
As I realize the problem, the phone suspends sound subsystem in absence of external power supply, that's why alerts are muted.
I need a hint how to wake phone (sound subsystem, to be exact) from power saving mode programmatically.

Here goes version 0.3 with sources. I've made an attempt to keep sound awake (use -force to switch this option on); unfortunately, it results in periodical quiet clicks.
Also, sound files are supported (-playsound filename).
Check README file for help.


Title: Re: Missed Calls Alert
Post by: ilove3d on October 11, 2007, 06:43:03 am
it so great.. but i didnt understand how to mod it.. can someone give it the easy step..

thanks

do you mean QT programming ?
use Lasly's SDK.


Title: Re: Missed Calls Alert
Post by: crz on October 11, 2007, 07:51:35 am
Great program, but I don`t need it.


Title: Re: Missed Calls Alert
Post by: CRLSboy on October 11, 2007, 06:00:27 pm
Ok, 0.3v is not full working...
"dim" sound forever...



Title: Re: Missed Calls Alert
Post by: RWolf on October 11, 2007, 11:35:44 pm
Ok, 0.3v is not full working...
"dim" sound forever...
Have you tried -force key?


Title: Re: Missed Calls Alert
Post by: hacker001 on October 12, 2007, 04:54:03 am
in autorun

where to add program in autorun

please teach me

thanks


Title: Re: Missed Calls Alert
Post by: RWolf on October 12, 2007, 09:51:41 am
where to add program in autorun
Different firmwares use different locations for autorun script; it can be /ezxlocal/autorun/startup.sh or, as in Kaleidoscope, /ezxlocal/download/mystuff/unKnown/startup.txt


Title: Re: Missed Calls Alert
Post by: error398 on October 14, 2007, 02:20:31 am
its full working now??


Title: Re: Missed Calls Alert
Post by: RWolf on October 15, 2007, 09:29:50 am
its full working now??
Yes, it works, with an issue I mentioned before (clicks); I still haven't found a way how to do a programmatic wake-up.


Title: Re: Missed Calls Alert
Post by: CRLSboy on October 19, 2007, 02:16:52 pm
Missed sms alert can be possible???


Title: Re: Missed Calls Alert
Post by: dime on November 23, 2007, 11:14:18 pm
not workin on my e2 ?? n how to autorun the porgam ??


Title: Re: Missed Calls Alert
Post by: CyberPunk on November 27, 2007, 07:01:14 pm
This is useless for me as I don't receive almost any call... I rather prefer a SMS alert... with also vibration, depending on current profile... as other motorola phones.

I don't think this is easy, but well, it would be very nice...

Thanks for the app anyway!