Is it possible to create an app that will?
1. Read the number for incoming calls.
2. Compare number to a list.
3. If number is on "Black List", answer then play audio message saying that this number has been disconnected or any other custom message. Hang up phone.
4. If number is on "Friend List", answer then play custom audio message then hang up.
5. If general unknown number, do nothing and allow to manually answer or send to voicemail.
6. Answer phone, play message, record caller message, then hangup.
I'm new to Android programming and was wondering if the appropriate code is accessable to a developer to do these things? I'm sure some things may be locked down for security reasons, but maybe available on a rooted phone using the app?