[Q] Android Beam - "Tap to Beam" GUI remove - Xposed General

Hi,
I am a newbie in Xposed framework.
I am wondering how to remove "tap to send" from Android Beam during sending messages via NFC in P2P mode communication.
There is listener which waiting for tap.
I think that to do some changed in class P2pLinkManager and method onLlcpActivated(). There is a listener which is waiting for confirmation (i think that it is tap) mEventListener.onP2pSendConfirmationRequested() interface method;
I found information about this method, that to do it I have to use Callback interface.
//Called when a NDEF payload is prepared to send, and confirmation is
//* required. Call Callback.onP2pSendConfirmed() to make the confirmation.
Is it possible to use this callback on event waiting confirmation ? I guess that we can not do it after invoke method onLlcpActivated() because listener is invoked in this method.
Is there another solution than rewrite method onLlcpActivated?

Related

OneBridge (iAnywhere) for Kaiser

Hi all,
I'm running iAnywhere's OneBridge software on my Kaiser to sync with the company's Lotus Notes server. The version of OneBridge client is 5.5.2007.0702.
There are currently two unresolved issues on my client aplication:
1) I'm using the LiveConnect feature (which works in similar way as the "push" technology and delivers e-mail messages to your mobile device in real time). I would like to set up OneBridge LiveConnect to notify me, when new e-mail arrives. There is an option "notify using:" and the possibilities are: display, sound, vibrate. I have chcecked all of them. When a new e-mail arrives, the device displays message, vibrates but plays only a short click - in fact this is the sound, which is named as "default.wav" (in Windows directory). I was not able to find any solution how to set different sound notification - the short click is hard to be heard. Have anybody resolved this issue? I also had the idea to replace the "default.wav" file in the Windows directory, but this is a ROM file, so it can't be replaced.
2) When the OneBridge LiveConnect client was installed, it replaced the left context button (originaly assigned to Calendar) to "Notification" function, which pops up the status of OneBridge LiveConnect service. As i can check the status also by clicking on the LiveConnect green icon in the top line next to clock, it is redundant to have the left context key assigned to the same function (blocked by this function to be precise). Anybody have an idea how to get rid of the "Notification" and get back to "Calendar" setting?
Thank you very much in advance for any answers for this (quite speciffic) questions.
I can answer half of your questions
2) - use the Softkey Changer Applet (attached) to select the application you want to use for the left (and right) soft keys.
EDIT: Once you've installed it, you'll find it in Start | Settings | System | Soft Key.
Mark.
How does onebridge compare to commontime mnotes?
To Mark Crouch: Thanks for the suggestion. I allready looked to the registry HKCU\Software\Microsoft\Today\Keys\112 where the left context key is stored and there is still Calendar there. So it seems that it is not hard-overwritten. After a soft-reset, for about 30seconds (before OneBridge LiveConnect starts), the soft-key is assigned to Calendar and then it changes to "Notification" - like in case of missed call or sms message. It looks like the OneBridge LiveConnect sends some event Notification which is then displayed by the windows mobile as usually.
To captainsensible2002: OneBridge is very robust and complex solution, but quite expensive in my oppinion. For a big company (100's of users) it is probably a good solution, similar to Blackberry or MS Exchange. My basic understanding of the LiveConnect function is that it is based on data connection - the client estabilishes connection with the server and is in stand-by mode, waiting for a packet (new mail information), which is sent by the server. The client then downloads the message. It is not very much battery consuming as the data connection is just active without any data transfers for majority of the time.
I have the exact problem listed in item 2. It is some kind of notification but once you view it, it doesn't go away like a notification should. I sure would be interested if you have found a solution. I'm not getting much support from my company.
Notification
Hi.
Did anyone of you find out what to do with the notification?
I have the same problem aswell.
The only way, how to change OneBridge sound notification - change WM default notification sound.
It can be done by editing registry value.
In registry go to:
HKCU\ControlPanel\Notifications\Default
Then change value Wave to another sound.
I change sound to \Windows\Alarm3.wma
Then Soft reset
After reset you will get different sound when mail will arrive.
If I found another solution, then I will post here.
Hi guys,
did anyone solve the notification issue?, im having the same problem
its not thats its assigned to the softbutton , it lies on top of wm own notification, rather annoing and it serves no purpose, if i wand to se thats its coonected, than i can click the icon on the top of the sceen.

Reject call programmatically

Is there any direct (or convoluted) way to reject an incoming call, i.e. send it directly to voicemail. Meaning
(a) if a call is coming in and matches certain criteria
(b) send the call to VM, and stop the ringing. (programmatically)
I've got (a) under control but I dont know how to do (b).
Any ideas?
Thanks
Jay
Well I know in the phonebook settings there is an option to send directly to voicemail for that particular number but that would require you saving the number in your phone book.
speoples20 said:
Well I know in the phonebook settings there is an option to send directly to voicemail for that particular number but that would require you saving the number in your phone book.
Click to expand...
Click to collapse
+1
I have Telemarketer1 - 7 right now in my phone book and they all go straight to voicemail with that option. Now if there was some way to block "UNKOWN"!
We need a Call Firewall / Blocker Software which can do following.
Register for Intent which can hook Incomming Call events
When Intent is raised if Checks for the number across Predefined Rules in Priority Order if any Rule matched take Action like
Reject Call
Accept and Immediately Reject THIS WILL COST CALLER
Send to Voice Mail
Reject and Reply with SMS
Reject and Create Reminder for Predefined Minutes to Remind us to Call them Back
+1
great idea
Try Youmail (it works for all phones)
There is a program for WM called Mobion MagiCall that would do everything that everyone wants on android but who can port it...
Back to my question...
Folks
I love the lively chit chat but does anyone have an answer to my original question: how do I reject a call programmatically and on the fly (not through phonebook entries set up ahead of time)?
BTW I will have an app available next week on Android Market that allows you to respond to incoming calls with an "I'll call you back asap" text or email, and it will set a reminder for you to call the caller back.
jayandro said:
Folks
I love the lively chit chat but does anyone have an answer to my original question: how do I reject a call programmatically and on the fly (not through phonebook entries set up ahead of time)?
BTW I will have an app available next week on Android Market that allows you to respond to incoming calls with an "I'll call you back asap" text or email, and it will set a reminder for you to call the caller back.
Click to expand...
Click to collapse
OMG!!! YES, WE CAN DO THAT!!!
I was going to kill myself after severe 24 hours of investigating and discovering... But I've found "fresh" solution!
// "cheat" with Java reflection to gain access to TelephonyManager's ITelephony getter
Class c = Class.forName(tm.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
telephonyService = (ITelephony)m.invoke(tm);
all all all of hundreds of people who wants to develop their call-control software visit this start point
http://www.google.com/codesearch/p?...:http://mylockforandroid\.googlecode\.com&d=0
there is a project. and there are important comments (and credits)
briefly: copy aidl file, add permissions to manifest, copy-paste source for telephony management )))
Some more info for you. AT commands you can send only if you are rooted. Than you can kill system process and send commands but you will need a reboot to allow your phone to receive and send calls =)))
I'm very hapy =) Now my Shake2MuteCall will get an update !
I use tcallblocking lite (search the market for it) to block calls from unknown numbers and any rom with the hacked phone.apk in it allows you to add numbers to a blacklist. No need for additional entries in your contact list
Moved as not Android Development.
I tried Call Firewallv1.40 freeware. It seems to be working at blocking unwanted private calls. I found it here http://www.freewarepocketpc.net/ppc-download-call-firewall-v1-4.html. The price is certainly good.
Features & Options:
a. Accecpt all calls - pretty self explainatory
b. Accept call from My Contacts only - accepts calls from contacts only, others are rejected
c. Reject all calls - pretty self explainatory
d. White List - accepts calls only from the white listed nos
e. Black List - accepts all call except from the black listed nos
f. Black List Pattern - any no STARTING from the black list pattern list is rejected.
for eg. if you enter "123", so all nos STARTING from "123" will be rejected
this is a very nice option with which you can block nos from any particular network, country, city , area or whatever you can think of.

[HELP] Create a calendar entry when receiving a specific SMS

Hi!
I'm carpooling a lot for my studies with the company BlaBlaCar.
When I book a trip, I receive a specific SMS from BlaBlaCar with the following content :
"BlaBlaCar : Réservation "initial city"-"destination city" "date [dayName. dateNumber month] ?* "hour [hh:mm]" confirmée ! Code ?* donner en voiture : "validation code". Appelez "name of the driver" " phone number [+33XXXXXXXXX]" pour les détails."
I want to make a profile wich activate himself when receiving a SMS from the expeditor "BlaBlaCar" and create a calendar event with the following info :
Name : BlaBlaCar : "name of the driver" - "initial city" -> "destination city"
Time : date and hour received in the SMS
I'm struggling to get the information from the SMS to create the calendar event.
Do someone as an idea on how to solve that?
Thank you for your help!
use notification listener app as a profile
then u have to create calendar event as an action
Yeah but it doesn't tell me how to get the information from the SMS to the calendar event details :/
you have to test the variables of the notification listener app like %nltext into the calendar event entry
Did you ever get this working? I'm looking for the exact same thing for work but my Tasker knowledge is pretty limited.

Can Tasker answer & immediately hang up to effectively block unwanted calls?ll

In the past, there was a root-assisted app Call Master that was able to block calls & prevent them from going to VoiceMail by hanging up one second after the call was taken, this prevented people being able to leave (say they left) a msg.
That was back in the old days of OS 4.2.x, now in 7.1x, th OS can block the call from needing to be answered, but it still goes thru to voicemail.
I don't know much abt this most recent version of Tasker, tho I played with it a bit when Tasker first care out yrs ago- so is someone knows of a way to do the answer/immediate hangup w/Tasker, I'll need detailed, newbie level instructions - please…
I miss being able to have the fone prevent a call fm getting to voicemail.
TIA, oldwolf
I don't know if that's possible but you can configure which calls go to voicemail natively as far as I know. So if blocked calls are handled as rejected calls you can configure to not pass them to voicemail in your phone / dialer settings
In short, yes. Just use an "end call" action. The trick is identifying the call to act on. Not in your contacts is one way. You could also add unwanted numbers to a single contact (e.g. Ignore) and act on that contact.
Abe & ktmom, thanks for your replies, but as I said, I need complete newbie level instructions on the Tasker side. @abe, I know how to get calls to voice mail- but how & where do I get blocked calls to become rejected calls in dialer settings?- I've been using a 3d party dialer forever, so I'm not familiar w/native dialer.
@ktmom, having used Call Master, I've got the theory abt how to ID calls to block/reject as 'not on contacts list, or an ignored group; & thanks for the tip on 'End Call'; but I'm still a Tasker newbie, pls walk me thru the steps, like I never saw Tasker b4, most recent version is beyond anything in 1st release.
TIA all, oldwolf
Start by installing the demo from the tasker website (if you don't have it). Leave it in beginner mode. Add a profile (plus sign bottom right) -> event -> phone -> phone ringing -> define the incoming caller. Play with this to figure out how best to meet your needs. Maybe start by blocking a specific caller in the journey to learn.
You'll then be prompted to provide a task. Give it a name (e.g. Block call). Then add an action -> phone -> end call.
Reading through the tasker wiki available on the developer's website will give you ideas and help the learning curve.
If you have no programming experience, this won't be a quick learning curve, but the task you're looking for is straight forward and amongst the simplest.
Teach a man to fish.....
Is there a consensus for Nougat?
I find many complaints about blockers no longer being able to hangup. My favorite Advanced Call Blocker will no longer do it. None that I try do it even though they claim to.
The hardest part is without a doubt to distinguish the calls. An idea could be to use an app which looks up the number. The one I use sends out toasts reading "spam". I have Autoinput register them for me. Of course, there's a lot of unwanted calls still getting through since sellers use private numbers or new numbers not yet widely identified as telemarketing.
eried1 said:
The hardest part is without a doubt to distinguish the calls. An idea could be to use an app which looks up the number. The one I use sends out toasts reading "spam". I have Autoinput register them for me. Of course, there's a lot of unwanted calls still getting through since sellers use private numbers or new numbers not yet widely identified as telemarketing.
Click to expand...
Click to collapse
Can you use Tasker to answer & hangup on Nougat?
That is the question, can it function?
Then one could work on a blocker that will keep unwanted VMs away.
As I said in post #3, you just use the end call action.
Anyone have a profile or Tasker made app to share?
ktmom said:
As I said in post #3, you just use the end call action.
Click to expand...
Click to collapse
Have you tested the End Call action from a profile? I've tested End Call on the prior version of Tasker and on the current version, and the action doesn't seem to work when called from a profile. On my phone, End Call in Tasker works fine when running the task during testing inside the task area, but Tasker's End Call does not actually work when the task is called from a profile. That functioning had been reported in the Tasker development area a long time ago, and apparently it was never fixed, since my phone worked the same as previously reported. On Nougat I was able to use the End Call task in Secure Settings with SuperSU to actually end a call using Tasker. Secure Settings hasn't been updated in a long time, so I used the following to get Secure Settings to work with SuperSU. Anway, as far as I could tell, End Call seems to be broken in Tasker.
https://forum.xda-developers.com/ap...ersu-v2-05-t2868133/post68700891#post68700891
I've been using it for years within a car mode task. Across multiple devices and tasker versions.
Interesting, maybe it just depends on the phone or something OS related. End Call in Tasker doesn't seem to work on the Pixel with Nougat or Oreo, and there were a number of similar comments online, so I thought the way my phone worked might have been common.
aviwdoowks said:
Can you use Tasker to answer & hangup on Nougat?
Click to expand...
Click to collapse
I know Secure Settings can hang up a call on my phone with Nougat rooted using SuperSU on Tasker, and the Secure Settings information also indicates there's an answer task in Secure Settings, so it's probably possible.
I have a profile, that blocks calls, but I have set it up to block calls from private, blocked, and anonymous callers. it will ring once and hang up the caller. I haven't figured out how to stop it from going to voicemail though.
Harry Tuttle said:
I have a profile, that blocks calls, but I have set it up to block calls from private, blocked, and anonymous callers. it will ring once and hang up the caller. I haven't figured out how to stop it from going to voicemail though.
Click to expand...
Click to collapse
Would you care to upload it?
PMs here do not allow attachments.
Pretty basic, the events are: PHONE RINGING+INCOMING CALL
For the numbers I've used: 0/private/blocked/unknown/anonymous or any specific numbers you want!
For the tasks CALL BLOCK
with the NUMBER MATCH being the the previous mentioned private, blocked...
Next is END CALL, which basically ends the call.
I have a NOTIFY. That puts an icon in my status bar, and a CALENDAR INSERT that puts it into my calendar.
It will block calls but it will ring one-time and disconnect the call, I've tried to silence the ringer by adding a nite but wasn't successful.
Apologies for resurrecting an older thread, but a few minutes ago I just worked out how to do exactly what the OP asked: answer and immediately hang up to effectively block unwanted calls.
I've created a rudimentary answer-and-hang-up call blocker, in Tasker, on Oreo, on a Sony Xperia X Compact, which is not rooted. I don't yet want to root my phone because Sony still provides monthly OS updates, I don't object to the Sony UI, and skvalex's Call Recorder works happily on this non-rooted phone. Once Sony turns off the update tap, then I'll investigate rooting it.
I cannot vouch that my experience will work for everyone on every device. All I can say is, it works for me. If it doesn't work for you, tinker with the various options to see if it can be made to work on your phone.
I don't want to reject calls, because then they go to voicemail and I can't be bothered with the effort of calling my voicemail to delete them. Instead, I want to answer the calls and then hang up, so there's no voicemail to handle. On my phone, the End Call task doesn't cancel the unanswered call; it sends it to voicemail.
I also want wildcard blocking because scammers often spoof caller IDs from area code prefixes which simply don't exist in the UK. I want to block all calls from fake area codes.
Extreme Call Blocker used to do both answer-and-hang-up and wildcard blocking, and was well worth the low purchase price. Unfortunately, it no longer does what it's supposed to do. The app hasn't been updated since 2016 so my suspicion is that newer versions of Android have changed things which ECB relied on. In addition, the developer's domain expired a month ago, so I'm not holding out much hope for an update to the app.
Call Control does have an answer-and-hang-up feature, which works as advertised, but the wildcard blocking does not work. At least, not on my phone. Perhaps it works for other people.
I tried a few other blockers but they all seemed to send the callers to voicemail. I got bored of testing call blocking apps at this point and figured I'd create my own.
So that's the introduction. Now on to the how-to.
This requires two apps, both of which are paid-for (but definitely worth the couple of quid asking price):
Tasker
AutoNotification
In Tasker:
Create a profile based on the Event "Phone Ringing". Add the number blocklist to the optional Caller field, using wildcards if required (for example 020* will block all calls from London). Use / as a separator, e.g. 020*/01234*/0870* etc.
Add these Tasks:
Task -> Wait -> 1 second (adjust timing for your preference)
Plugin -> AutoNotification -> Query (Configure the Apps section to intercept notifications from Phone.)
Plugin -> AutoNotification -> Actions (Configure the Intercept Action ID with the appropriate variable from the above Query. On my phone it's %anbutton2action() - yours may well differ.)
Task -> Wait -> 2 seconds (as before, adjust timing for your preference)
Phone -> End Call
It's not elegant, and requires manual updates of the Caller data in the Tasker Event, but it does what I want it to do.
If someone wants to update Extreme Call Blocker, or fix the wildcard handling of Call Control, then I'll ditch this in a heartbeat. But for now it meets my needs (and hopefully those of the OP, too).
Some additional background: In the UK (and maybe elsewhere), callers pay the termination fee to call a mobile phone, unlike in the USA and Canada where the recipient pays the termination fee. I'm in the UK so I like to answer the calls and hang up, so that the scammers get charged. Or, whoever is providing services to the scammers gets charged. Either way, if enough people do this, and the aggregate monetary cost is significant, then someone might take action to cut the scammers off.
It's a slim hope, I know, but you do what you can, right?
This morning I refined the tasks, to reduce the distraction from the phone ringing and hanging up.
This is now my current task list:
1. Audio -> Vibrate On Ringer -> Off (this does not always kill the vibration for every call, but it catches most - I suspect a timing issue)
2. Variables -> Variable Set -> Name %RingerVolume To %VOLR (save the current ringer volume level)
3. Audio -> Ringer Volume -> 0
4. Alert -> Flash -> SCAM - DO NOT ANSWER (for those times when I'm looking at the phone when it rings, or notice any vibration)
5. Task -> Wait -> 1 second
6. Plugin -> AutoNotification -> Query (Configure the Apps section to intercept notifications from Phone.)
7. Plugin -> AutoNotification -> Actions -> %anbutton2action() (Configure the Intercept Action ID with the appropriate variable from the above Query. On my phone it's %anbutton2action() - yours may well differ.)
8 Task -> Wait -> 2 seconds (as before, adjust timing for your preference)
9. Phone -> End Call
10. Audio -> Ringer Volume -> %RingerVolume (restore the previous ringer volume level)
11. Audio -> Vibrate On Ringer -> On
---------- Post added at 10:48 AM ---------- Previous post was at 10:47 AM ----------
http://tasker.dinglisch.net/userguide/en/matching.html gives some additional advice for pattern matching against callers, including a link to a very comprehensive regex reference: https://developer.android.com/reference/java/util/regex/Pattern
I could block fake London calls with 0201*/0202*/0203*/0204* and so on, but regex offers a much more efficient way to do it: ~R^020[0-69]
I'm aware that Ofcom inexplicably believes that 020 3xxx xxxx is a valid number range for London, but I've yet to encounter a reputable company which lowers itself to using 020 3xxx xxxx numbers. In my experience they're the preserve of fly-by-night outfits and scammers. So into the blocklist they go.
What is the difference in tasks "End Call" and "Block Call" and why the former does not ask for the number while the latter does?
In my experience the "block call" does not work, and the "end call" might ring the ringer once (or at times not at all) and then send the call to voicemail.
I would rather have it to NEVER ring and NOT send it to voicemail.
Suggestions?
drgkt said:
What is the difference in tasks "End Call" and "Block Call" and why the former does not ask for the number while the latter does?
In my experience the "block call" does not work, and the "end call" might ring the ringer once (or at times not at all) and then send the call to voicemail.
I would rather have it to NEVER ring and NOT send it to voicemail.
Suggestions?
Click to expand...
Click to collapse
If you want the phone to never ring, use whatever call blocking feature your service provider offers. It will be impossible for an on-device app to always prevent a ring.
From the information button on "block call" (? In a circle in the action screen)
"Call Block
Block outgoing calls to the specified matched number(s).
If no Number is specified, all calls will be blocked.
If Info is checked, all diversions and blocks will be displayed after the action.
To stop blocking, use Call Revert."
End call doesn't need a number because it's an action. You determine what calls to end through the profile then run a task with an end call action.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

How do I do this text-based task?

Hey guys, I'm trying to automate a task I do often for work. When I get a potential new customer, I receive a standard email with their information in a specific format. For example:
Name - x
Email - y
Phone - z
I am trying to figure out a way to interact with this body of text and automate it as much as possible. I would have to add a new contact with the name, and send out a standardized email as well as a text.
I haven't really made complex tasks like this, so I'm a bit lost as to where to start. I am rooted. I would also like to note that I'm using a proprietary email app (Blackberry Hub+ Inbox), so I think it may be easiest to start off the task by manually copying the body of the text and then somehow triggering the task.
Thanks in advance!
This project is actually a little complex, and it also interested me so, while I usually don't do this, here is a taskernet share.
Requires AutoTools to be installed because a webscreen is used. On install, you must edit actions 15 & 16 in the task. These are variables for the email subject and body.
The profile triggers when data starting with e.g. "Name - John Doe" is copied to the clipboard. Then a button pops up on the right side of your screen and when you tap it the information is entered into a new contact form that you can edit, cancel or save.
A second button becomes available which triggers the composed email action.
The buttons will time out after 30 seconds without triggering the associated task. You can also "fling" them away to dismiss.
The task is expecting each piece of information to be on a separate line like:
Name - John Doe
Email - [email protected]
Phone - (999) 999-9999
The labels for each line are used as variables in the task to identify the associated data. Therefore, the order does not matter. Though if "Name - " is not first, the profile will not trigger. You would need to edit the regex in the profile context.
If, for example, an address is on multiple lines, the task will need to be modified to handle that.
To limit the activation of this profile to only when the data is copied in a specific app such as an email client, add that app as a context in the profile.
The task is heavily commented.
Finally, I add my username into the profile and task names to help avoid the possibly of namespace collisions (when the imported project has the same profile, task or variable names as existing profile, task or variables). The -ktmom can be removed.

Categories

Resources