Moto Hell - The Motorola Modding Community

Motorola Phone Models => Motorola A780/A1200/E2/E6/E680/V8/Z6 => Software (Phone) => Topic started by: RWolf on October 09, 2007, 10:14:30 AM

Title: Missed Calls Alert
Post by: RWolf on October 09, 2007, 10: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.




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, 07:21:16 PM
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 10, 2007, 12:14:21 AM
great work!!

how about SMS alert like i hav in my c650&e398?
Title: Re: Missed Calls Alert
Post by: pizzadox619 on October 10, 2007, 06:16:27 AM
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 10, 2007, 09:16:35 AM
Quote from: Pizzadox619 on October 10, 2007, 06:16:27 AM
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 10, 2007, 09:23:50 AM
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, 12:18:22 PM
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, 12:27:14 PM
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, 12:46:32 PM
Quote from: RWolf on October 10, 2007, 12:27:14 PM
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, 01:25:11 PM
Quote from: ilove3d on October 10, 2007, 12:46:32 PM
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, 04:27:13 PM
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, 07:52:37 PM
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, 03:25:37 PM
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, 04:43:03 PM
Quote from: Raunamaxtor on October 10, 2007, 07:52:37 PM
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, 05:51:35 PM
Great program, but I don`t need it.
Title: Re: Missed Calls Alert
Post by: CRLSboy on October 12, 2007, 04:00:27 AM
Ok, 0.3v is not full working...
"dim" sound forever...

Title: Re: Missed Calls Alert
Post by: RWolf on October 12, 2007, 09:35:44 AM
Quote from: CRLSboy on October 12, 2007, 04:00:27 AM
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, 02:54:03 PM
in autorun

where to add program in autorun

please teach me

thanks
Title: Re: Missed Calls Alert
Post by: RWolf on October 12, 2007, 07:51:41 PM
Quote from: hacker001 on October 12, 2007, 02:54:03 PMwhere 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, 12:20:31 PM
its full working now??
Title: Re: Missed Calls Alert
Post by: RWolf on October 15, 2007, 07:29:50 PM
Quote from: Raunamaxtor on October 14, 2007, 12:20:31 PM
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 20, 2007, 12:16:52 AM
Missed sms alert can be possible???
Title: Re: Missed Calls Alert
Post by: dime on November 24, 2007, 08:14:18 AM
not workin on my e2 ?? n how to autorun the porgam ??
Title: Re: Missed Calls Alert
Post by: CyberPunk on November 28, 2007, 04:01:14 AM
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!