[MOD][Xposed][4.0.3+] Diverted call detector - Xposed Framework Modules

I've developed an Xposed module to detect when diverted (forwarded) calls are incoming. This is the support thread for this module.
The module is available here: http://repo.xposed.info/module/ch.masshardt.divertedcall
Please report any problems in this thread.

Thanks for using your time to developed this.bi am so sorry but I have no idea what this mod does. Can you please explain a little better as I don't know what diverted means.
Thanks!

A diverted call is an incoming call that was forwarded from another phone. The problem is that the number that is displayed on the phone is the calling number and not the number of the phone the call was forwarded from. So the number could be from the local country but was forwarded from a phone in a different country and there is no way to see that. With this mod it is at least possible to display a message with Tasker when such a call is incoming.
There are also other threads about this problem:
https://code.google.com/p/android/issues/detail?id=11026
https://code.google.com/p/android/issues/detail?id=2544

Deleted

Any chance you could give some further detail on how to set up within Tasker?

I've uploaded an example Tasker profile on pastebin: http://pastebin.com/G4FDZe4M
Just download the example and save it as an xml file on your phone. In Tasker the profile xml can be imported by short pressing the "PROFILE" tab in Tasker and selecting "Import".

Interesting module, but I'm not really sure what problem this app is trying to solve...
When I receive a call that was diverted I'm being shown the original callers number with a text "forwarded call" below it - but that may be due to my use of CM?
However the 2 problems I do have with diverted calls can't be addressed with this mod afaict:
- In call log there's no indication whether a call was forwarded
- Different ringtone can't be set as the standard ringtone is played by Phone app and I could use tasker only to play an additional one but not replace it.

It's actually really cool if it works as I think it does. I've been getting a lot of random calls recently, all telemarketer. (Yay me)
Over half of them have my hometown's area code, but I know they are not actually that number from research. My phone at least does not say anything about it being a forwarded call. It would be nice to have an idea if they are actually a telemarketer calling or a friend that I had lost his number.

It depends on the rom that is running on the device. Google did not implement this notification in their source code, but some roms added this feature. E.g. on my Sony device I only receive a toast message for about 2 seconds that the call was diverted. Most of the time it takes more than two seconds until I notice that the phone is running so this notification doesn't help much. Also with the intent it is possible to do other things. For instance the phone could be muted or unmuted when such a call is incoming. I for an example use the plugin to unmute the phone when a diverted call is incoming if I am in charge of my office's 24/7 hotline. For this it would be really cool if also the redirecting number could be reported, but I don't think that this information is available in the 3g protocol.

Thenetstriker said:
There are also other threads about this problem:
https://code.google.com/p/android/issues/detail?id=2544
Click to expand...
Click to collapse
As the person who created that issue in 2009, thanks for this module
Haven't quite got it to work yet in tasker yet though!

great idea .... thanks for update ....

Any updates on this whether it works before i purchase Tasker from Google Play
Thanks.

You can also use this with other apps than Tasker. Everything that supports Android Intent's should work.

@Thenetstriker
Hi, I'm trying to use this module.
I tried with tasker and e-robot but is working only one time (only for the first event).
If i reboot the phone is working again for the firs event but not the others following.
Any idea?
Tks.

problem
Thanks for your effort!
I meet the same problem with @mbgheban, "It is working the first time. If i reboot the phone, it work again for the first event but not the others following. Tasker cannot receive any more intent".
I am using android 6.0.
---------- Post added at 02:57 PM ---------- Previous post was at 02:47 PM ----------
Moreover, only ver1.1 can work at the first event. Version 1.0 didn't work even the first time.
What's the difference between these versions?

unrooted?
did anyone find a way to get a notification without rooting the phone?
I am using a S8 which is showing a forwarded call notification but of cause too short...

Related

[SOLVED]Incoming diverted call notification

I'd like to bring again into attention this lack of functionality of both Android and WinMo devices.
As far as I know, with the exception of Nokia and some Sony-Ericson devices, no others notify about receiving a call made on a diverted phone.
That is, if I have 2 numbers (A and B) and A is diverted to B, if I receive a call on A I don't see a "diverted" icon (or sign of any kind) on the phone with number B.
Still no solution or software for this?
P.S. Also when you call somebody and you are waiting on line (the other party has "call waiting" activated), there is no "waiting" sign to notify you.
This call waiting issue is also present on iPhone. I don't understand why these two functions are not present in smartphones (except Nokia Symbian) and at the same time the cheapest dumb phones have them
Actually, call waiting works for me. Whenever I am on a call and someone else calls, I hear a beep and I can see on the screen that I have another call. If I don't answer, the other call stays in my call history as an unanswered call.
About the first issue, I wondered about that too. I had a really dumb Sony Ericsson phone which supported this feature.
P.S. I misread your call waiting issue... Whenever I call someone who has call waiting I get a beep that tells me I am waiting... However, as far as I know this is an operator feature. On another operator a voice actually tells you to wait because the other party is talking.
sveon said:
However, as far as I know this is an operator feature.
Click to expand...
Click to collapse
I didn't switch to another operator, I just switched from Nokia E66 to iPhone and later to Legend when I lost that feature.
i get another issu too !!
and am sure you all get it ..
in (smart) dumb phones when i call my manager (and my manager is already talking in a call with his wife for example) it gives me different call sound tone, to notify me he is in a call so i stop calling and wait to call again later ...
in (stupid) smart phones, Windows Mobile and Legend !
if i call my manager and he is already in a call, i never hear anything to notify me! so i dont stop my call , and it really seems so stupid and disturbing from me sometimes !
the reason is what ?
i dont really know ....
is it that much hard to put these simple options ?
http://code.google.com/p/android/issues/detail?id=11026
... suggests that the functionality is within the stock Android dialler, but not in the HTC dialler. Use a ROM that allows you to install the standard dialler and use that by default?
sveon said:
Actually, call waiting works for me. Whenever I am on a call and someone else calls, I hear a beep and I can see on the screen that I have another call. If I don't answer, the other call stays in my call history as an unanswered call...
Click to expand...
Click to collapse
I was talking about "call waiting" notification when you are calling someone that has call waiting function, not when you are the one that is called and you're notified about a second incoming call. biomy explained better the idea that I was talking about.
And no, there is not about the operator. You can have a nokia on any carrier, it'll work the same. It's just the way the phone or it's software decodes the incoming call signal. As this is received by all phones the same, I presume any phone/software can decode it in the same way nokia is doing if it has this implemented. As far as I know though, there is no application on the market (paid or free) that does this simple thing. I'm sure most of us will even pay for it.
Same here.. All calls from my boss diverted to my number if he didn`t pick up phone in 10 seconds.. My old Nokia 6233 show green arrow for diverted calls, but no any notification about it with my Samsug Galaxy Spica and Samsung Galaxy S.
new_bember said:
Same here.. All calls from my boss diverted to my number if he didn`t pick up phone in 10 seconds.. My old Nokia 6233 show green arrow for diverted calls, but no any notification about it with my Samsug Galaxy Spica and Samsung Galaxy S.
Click to expand...
Click to collapse
Any updates on this please?
I have the same issue. No diverted call icon when an incoming call which has been diverted comes through
No update...seems like nobody has found a solution to it. Still waiting, pity we don't have such thing
Maybe we're not so many that needs this, in order for someone to start looking and develop something. My hope is that a developer will need this feature at some time and he'll start doing it. (or we should find a Nokia with Android )
If some android phones have the diverted call notification (galaxy s on 2.1) can the code be ported to other devices?
I divert calls from my work phone to my personal mobile, and really need to be able to tell when I'm receiving a diverted call from my work number
Samsung is the second phone brand that includes this in all or most of their phones. Doesn't matter if it's Android or not, Nokia and Samsung has this feature (and as I know they're the only ones to do it).
Maybe there is hope if an Samsung Android phone (Galaxy S) has it...maybe there will be a developer that will try to find a way or reverse engineer the ROM to find the code for it. I am willing to pay for it for sure and I'm sure some other will as well.
Diverted Call Display app for Android
After the issue bothered me enough, I have made an attempt at detecting incoming diverted calls.
The app is using the device log to find out if an incoming call is diverted, and thus needs READ_LOGS permission. READ_PHONE_STATE is needed to get notified about incoming calls.
So far the app has been tested on CyanogenMod 5 and 7 on GSM/UMTS phones. It probably won't work at all on CDMA devices and neither on devices which already implement any type of diverted call notification.
Please test if it works for you and tell me your Android firmware version (and if it's an AOSP-based community firmware).
Nexus S 3G i9023, CM7.1.0-NS - works well )) Thank you.
Xperia Arc 2.3.4 original rom OK.
I would like to be saved in the call log.
It works perfect in HD2, HyperDroid-CM7-v5.3.0 [CyanogenMod7 LEO 2.3.7][seader_R9].
Thanks
That's a great thing, you've made...alot of people happy.
Unfortunately, I've changed my Legend and replaced it with a Desire S. Playing with other ROMs, I've finally installed a MIUI ROM and it seems this "diverted notification" IS integrated in MIUI. So for me the problem was solved by having a MIUI ROM. Though I'll ask my friend who's now the owner of my ex Legend to test this...he's still using CM 7.1 on it.
Works fine on Motorola Defy with MIUI 2.3.5.
Thank You very much Ge0rG for such a beautiful solution of that problem.
Can you please add to your application notification for "call waiting" and "on hold"?
Because Motorola's and HTC's doesnt have this features.
THANK YOU VERY MUCH!
P.S. I was talking about "call waiting" notification, when you are calling someone that has call waiting function & you call him on the second line.
Brilliant... Works a treat for me...
HTC Desire HD - Stock (Orange UK) ROM.
Android 2.3.3
Kernel 2.6.55.10
Thanks - brilliant idea and well implemented - congratulations.
--
Nick
Works on Nexus One with actual cyanogenmod nightly (cm_passion_full-253, 7.2.0-RC0(?)). Perfekt!
It will be great, if this could be included in cyanogenmod directly.

Add to Blacklist - Does not Work ?

Hi All,
I needed to stop a contact calling me so I added them to the blacklist, to check I tried blacklisting my personal mobile calling the Samsung Galaxy S2, so I can see when I view the contact details the no entry symbol on the number ( Why does it not show on the contact list?, surely it would make more sense to also show on here so you can see which contacts you have blacklisted rather than have to edit or view details for each one to find?), however when I try to ring the Samsung it still rings and I can still hear ringing on my personal phone which is not what it says in the instructions ?
When I check the call log, the number is there with the no entry symbol also so it obviously knows its blacklisted, but its not stopping the call ?
Anybody else tried this?
PS: I am now using the Lightning ROM so maybe this could be aproblem with the rom so if somebody could check who is on stock rom that would be great.
Also, is the blacklist option limited to the number of entries?, is it also suppost to block sms ?
SMS can't be blocked. It depends on the network and will be sent through. You can alternatively put them under Spam/Blocked folder, that's all you can do.
About Blacklist of Contacts in GSII, yes it DOES work. I am using it from the first day. You just have to press and hold on a Contact or Call Log to add it/them to Blacklist. Yes, there is no sign whatsoever that you will see as blacklisted, but to confirm just go to, Settings-Call-Call rejection-Black list to see which number/s you have added under Blacklist. And I do believe that Blocking capability also depends on the Network, other party, whom you've blocked, will hear Ring for a second or less before hearing the Busy tone. I didn't like that, thus installed Root Call Blocker and I can say it works just the same as the in built call blocker of GSII. I am still searching for an app which could be able to do real block, i.e- Elimination of ring at the first second or two and hear Busy/Unavailable tone straightaway, but still I doubt it would work or not as it depends on the carrier you are on IMO. Still if anyone knows a good app please let us know.
Regards.
the same problem here...
i was able to block contacts by the blacklist but all of sudden i cannot...
i added them in black list and the symbol shows the they are blocked but when they calling the phone ring again...
i don't know what to do....
alwi said:
the same problem here...
i was able to block contacts by the blacklist but all of sudden i cannot...
i added them in black list and the symbol shows the they are blocked but when they calling the phone ring again...
i don't know what to do....
Click to expand...
Click to collapse
Possible corrupt file back up data and factory reset phone .
jje
I think the way blacklist works changed after the last droid update.
go to settings -> call -> call rejection -> auto reject mode ( set to Only blacklist )
The GII Blacklist is limited to 100 entries

Unlock Screen Programmatically

[Post Deleted]
glensantacruz said:
Hi Guys,
I've ported one of my apps: eNotify to the Ornate TrueSmart:
https://play.google.com/store/apps/details?id=com.hermes.enotifylite
A couple of users have written to request that eNotify turn on the screen when a new email arrives. So that works fine. However, they would also like the screen to be unlocked so that they don't need swipe to dismiss the clock-screen to see the notification.
We have a similar option that works on most Android devices: Settings / "Dismiss Screen Lock"
In code:
Deprecated Way:
KeyguardManager keyguardManager = (KeyguardManager) context.getSystemService(Activity.KEYGUARD_SERVICE);
KeyguardLock lock = keyguardManager.newKeyguardLock(context.KEYGUARD_SERVICE);
lock.disableKeyguard();
Current Way:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
BUT it doesn't work on the Ornate TruSmart which leads me to believe this isn't actually a lock screen, but something else. Is there a way to programmatically dismiss this screen?
Best Regards,
Glen
Click to expand...
Click to collapse
I don't use screen lock on my TS, and your app works fine for me, awaking the screen and presenting the popup notification. One question though: When in silent mode, the vibrate feels like just one small bump, and is barely noticed. Any way to increase the vibrate, or set a pattern? Thanks.
[Post Deleted]
glensantacruz said:
Okay. Thanks for the info. I'm still attempting to track it down. Apparently, removing the lock works on some ROMS, but not others.
You can set the vibration like:
Alerts Tab (!) -> Default Profile -> Default Alert -> Bell Chime -> Vibration
There are baked in vibrations such as:
short, medium, long
But you can also hold your finger down to record one of a custom length.
Please feel free to email me at the support address if you need anything. I'd also welcome any reports of TrueSmart specific issues that need investigating.
Thanks,
Glen
Click to expand...
Click to collapse
That worked, thanks. So far so good with my TS...
@glensantacruz, eNotifyLite did not function on my device at all. Sadly once I installed the app, google search started to crash constantly. this made my TrueSmart unusable. Once I uninstalled everything worked once again.
I had high hopes for this.
Suggestion. in the setup separate SMS and email configuration. I am not interested in email in my tiny watch screen. I only really want sms, hangouts, Phone calls and basic glance-able alerts to wake my screen. On my phone I might try your app for email.. I looks very interesting and full of features.
I am a bit confused. In order to receive these notifications the ts must be connect through BT to my phone? If that is true how are u getting past the issues with BT connection with a phone
rhineymac said:
I am a bit confused. In order to receive these notifications the ts must be connect through BT to my phone? If that is true how are u getting past the issues with BT connection with a phone
Click to expand...
Click to collapse
This is not a simple situation but I will attempt to explain my solution:
For SMS
first I have a full service SIM and account for my TS on ATT
next use google voice for my primary number, this involves installing the GV app and configuring it, then getting the GV number socialized..
next I force force sms responce on my phone and my TS to use the GV # with an Xposed plugin called "XVoice+".
For EMAIL / Internet based:
first I have a full service SIM and account for my TS on ATT that is part of a 15gb shared family plan.
The final result is I receive all SMS on both devices. A couple Caveats, GV does not support the short message format so no twitter alerts. depending on the sms source, some messages are more readable on the TS then others.
Unfortunately for me I'm in Canada and lacking Google voice. Thanks for the explanation tho. Omate is doing a ota in a few more weeks fixing the BT issue. I think I will hold off and wait and see how well it works. I've spoken with Le pen and he tells me that the new fix is working very well.

Feature Request - Network Event Notification

Some of you may remember this from Android 4.3, some might not even know it exists, on some devices is included in stock ROM (as I know Samsung devices and Sony devices have it...lucky them)
On short, there was an option in dialer settings labeled "Network event notification" that showed when you were receiving a diverted call (shown as "INCOMING CALL (FORWARDED)" instead of just "INCOMING CALL") or it showed when you call somebody and that person is already engaged in a call (shown as "DIALING (WAITING...)" instead of just "DIALING")
This information was nicely integrated within the AOSP in-call UI and was shown on that blue bar that is showing up until call is answered.
There are some hypothetical scenarios to use that, one being the case in which you have two phones/numbers and one is "personal/private" and the second is a "business" one. Say after working hours you will divert the "business" number to your "private" one just not to miss an eventually important call from office or a client. If you receive a call but this function is not in, you cannot tell if the call you're receiving is from a person that dialed your personal number or is someone calling on your work one. If we have back this option we can easily see that while phone is ringing and decide if we take the call or not.
Also when we call someone it's useful to see that the other party is engaged in a call already so we wont keep ringing and eventually get frustrated when the one we're calling is not answering (being in a call, most people do not reject an incoming second call, they just let it ring). We could easily see from first seconds that our call is "waiting" and we could hang up and try again later.
So if it is possible I would like to kindly ask for adding back this feature that we miss since KitKat is out. In the early KitKat builds there was even the option present in the dialer settings (ported from the previous Android version) but it never worked. Eventually in some ROMs it was event taken out, probably the devs considered it either useless or they didn't want to bother with it. Currently there is no KitKat ROM having this function working as far as I know (except if it was included in a stock ROM by the device manufacturer)
Thank you, hoping for a positive feedback...
Hi does anyone know if there was ever something done for this?
Bump, I also would really like to have this functionality back and it should not be too difficult to implement
Please use the QUOTE feature when replying to me to get my attention. Thanks!

Android call forwarding tracking or notifications

I am looking for this application and I really believe something like this exists, I just can't find it! I know google forwarding could do something similar, but it doesn't work with every country. And since android can do all these functions, the application like this probably already exists!
Ok, let's say call forwarding is set on phone A to forward to phone B. When I get a call to phone A I would like it to track the call, I mean to show the notification or to simply save the information about the call. But the call is forwarded to phone B.
I think about this as application on probably rooted phone, which work like this:
(let's say it all happens on phone A, which must be turned on and have credit on it)
1. Incoming call -> Start calling to forwarded number (B) (will always show that the same number (A) is calling for B)
2. If B answers the call, the application:
- Connects A phone sound to be transfered to B phone, so B would hear what the caller is saying. And the B phone sound to transfer to A phone, so the caller would hear what the B phone is answering. You probably understand that this could be recorded too, but since it's illegal in some countries it isn't necessary.
- It also starts counting the time of the call
3. When the call is finished, the app:
- Stops counting the time
- Writes caller data, call date & time, call duration to file/database
That's it!
Then we can see how much calls did we get, when they were calling, how many of them were answered, who have called and how long they have been talking.
Please let me know if you know app like this. That's ok if it's for rooted phone. That would be really helpful to find!
I can't believe there's nothing like this???

Categories

Resources