Tuesday, April 8, 2014

100 Android phone without showing how to call the system call interface?


I am using Java reflection mechanism to invoke a function call can make calls and hang up the phone, but will pop up when the system comes with a call or a call is dialing interface when the system does not show how to do a call comes interface?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Then you can get the hood to find Android source code slightly, not the SDK, you generally send Intent Action.dial, or a similar call for Action, a dial DialActivity will catch up to the Action started, this is the Android system comes Call interface slightly, if you want to change, then it's their own and then imitate the system comes with dial-up interface that Acitivity, realize their interface, and take corresponding Action, but also a corresponding function, Oh, it simply that you give the original Activity change of clothes to wear on the line, do not change the original function, so you know I do not know yet, customize your interface to modify slightly.
Reply:
I'm not there to change the source code, I was the new Android project in eclipse, some systems are hidden by Java reflection API call, and I was trying to hide the system interface.
Reply:
You XML file, set the call interface yet? I think, if you set up, then set it to FALSE try, or you write code to force the interface to call Close () out ......
Reply:
reference to the third floor adong4109 reply:
you in the XML file, set the call interface yet? I think, if you set up, then set it to FALSE try, or you write code to force the interface to call Close () off ......

May I ask how to set call interface? What does it mean?
Forced to Close the call interface is how Close?
Can say more points?
Reply:
Dial-up software available in the market do not seem to call their own interface, this seems impossible at the application layer
Reply:
references, 4th Floor llxxhm reply:
reference to the third floor adong4109 reply:
You XML file, set the call interface yet? I think, if you set up, then set it to FALSE try, or you write code to force the interface to call Close () off ......

May I ask how to set call interface? What does it mean?
Forced to Close the call interface is how Close?
Can say more points?
I did not relate to the issues, but based on past experience, that you can do to try next ...
Reply:
Like the second floor to say, you call the dial-up operation, the activity of incallscreen bound together, you have to modify the code before they can hide Phone
Reply:
You do bad things? ?
Reply:
Do not use Intent underlying code to look up phone call to come out to try to extract the interface, but it may take some time
Reply:
reference to the 8th floor chrisiguy reply:
you do bad things? ?

Some people thought it is not correct to think of others, I want to show their UI
Reply:
Anyone can solve it? Waited too long, can not wait any longer, who can be resolved immediately to the sub-
Reply:
Only deep into the source code to modify the
Reply:
Can not wait, ah, there is any way to get out of the way
Reply:
Wood seems to have a way to application layer
Reply:
Is there any way to hide the system call interface that way?
Reply:
 
private void call (String number) {
Class c = TelephonyManager.class;
Method getITelephonyMethod = null;
try {
getITelephonyMethod = c.getDeclaredMethod ("getITelephony",
(Class []) null);
getITelephonyMethod.setAccessible (true);
} Catch (SecurityException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
} Catch (NoSuchMethodException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
}

try {
TelephonyManager tManager = (TelephonyManager) getSystemService (Context.TELEPHONY_SERVICE);
Object iTelephony;
iTelephony = (Object) getITelephonyMethod.invoke (tManager, (Object []) null);
. Method dial = iTelephony.getClass () getDeclaredMethod ("call", String.class);
dial.invoke (iTelephony, number);
} Catch (IllegalArgumentException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
} Catch (IllegalAccessException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
} Catch (SecurityException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
} Catch (NoSuchMethodException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
} Catch (InvocationTargetException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();
}
}

so you can start talking, but it will pop out the system call interface, how to hide the system call interface Yeah, I want to show his call interface
Reply:
When you made this post, this problem quickly dragged on for a month, this post has dragged on for a month, I too can be dragged, do not know when to solve
Reply:
No estimate is difficult to get, because the dial Dial is communicating with the module by RIL in PhoneApp in no other Intent have the authority to do it, even if you use another shell to send AT commands to the module side in the source code level, a call CLCC AT command module will return to RIL, as will trigger a call interface.
Reply:
cited 18 floor fiven_luo reply:
no estimate is difficult to get at the source code level, because the dial Dial is communicating with the module by RIL in the PhoneApp, No other Intent has the authority to do it, even if you use another shell to send AT commands to the module end, a call will be returned CLCC AT command module to RIL, as will trigger a call interface.

A little more reasonable, there is no good way to get out of what, for example, I can add these permissions apply
Reply:
This is no way, the problem is not permissions, but the entire Phone flow problems.
Reply:
If the source code level, you can modify the package / apps / PhoneApp following code will OutgoingCallScreen code rewrite, of course, this modification is huge.
Reply:
cited 21 floor fiven_luo reply:
If the source code level, you can modify the package / apps / PhoneApp following code, the code will be rewritten OutgoingCallScreen Of course, this change is huge.

I am now a 16-floor method call, is it possible to replace the phone with this APK APK Yeah
Reply:
Ready to hang on until next year to say
Reply:
cited 21 floor fiven_luo reply:
If the source code level, you can modify the package / apps / PhoneApp following code, the code will be rewritten OutgoingCallScreen Of course, this change is huge.

What can I do to change inside look at the source code, the source code to hide, and then use the 16th floor of the method call?
Reply:
If you do the landlord is a common application, then the system call interface will certainly be displayed, and you want to show your own interface, you can draw your own system interface covering a view above,
If you do not want to display the system call interface, it is only to modify the android system framework, a common theme ah what the phone can not achieve this function
Reply:
Phone must modify the entire process from the framework layer
Reply:
cited 26 floor oexpress reply:
Phone must modify the entire process from the framework layer

Can not simply a few words, the system can interface to hide?
Reply:
To modify the framework feeling
Reply:
reference to the 27th floor llxxhm reply:
cited 26 floor oexpress reply:
Phone must modify the entire process from the framework layer

Can not simply a few words, the system can interface to hide?

100% sure you can not tell
Reply:
reference to the 29th floor emue001 reply:
reference to the 27th floor llxxhm reply:
Cite 26th floor oexpress reply:
Phone must modify the entire process from the framework layer

Can not simply a few words, the system can interface to hide?

100% sure you can not tell

100% sure to tell you that I have achieved, wrote two sentences.
Found that many people have done for many years, did not delve into the spirit, I asked many of my colleagues have done a few years Android, a lot of questions, said they would not, I was just beginning to do this is resolved, including this one.
Reply:
In the application how to distinguish between dialing and the other is switched telephone? Do not tell me TelephonyManager.CALL_STATE_OFFHOOK, many people say the Internet is TelephonyManager.CALL_STATE_OFFHOOK is turned on, the fact not, try to know.
Reply:
Original software called X * at the end that is lying hidden just do not know that there was no version of Android on Saipan
Reply:
On the basis of recommendations or modify the source code, so long as the next callcard.java and associated layout modification can be replaced with your own call interface.
Reply:
reference to the 30th floor llxxhm reply:
reference to the 29th floor emue001 reply:
References to the 27th floor llxxhm reply:
Cite 26th floor oexpress reply:
Phone must modify the entire process from the framework layer

Can not simply a few words, the system can interface to hide?

100% sure you can not tell

100% sure to tell you that I have achieved, wrote two sentences.
Found that many people have done for many years, did not delve into the spirit, I asked many of my colleagues have done a few years Android, very ......

How to engage, seek advice
Reply:
reference to the 34th floor fylz1125 reply:
reference to the 30th floor llxxhm reply:

References to the 29th floor emue001 reply:
References to the 27th floor llxxhm reply:
Cite 26th floor oexpress reply:
Phone must modify the entire process from the framework layer

Can not simply a few words, the system can interface to hide?

100% sure you can not tell

100% sure to tell you that I have achieved, wrote two sentences.
Found that many people have done for many years, did not delve into the spirit ......

Dial-up status and being the first to get the call status, working, change it's useless
Reply:
Landlord. This does not work, QQ address book also displays the dialing interface system. Only add something in the interface above. Oh, can not hide, can only make changes to the system do the ROM, and
Reply:
cited 36 floor peijiangping1989 reply:
landlord. This does not work, QQ address book also displays the dialing interface system. Only add something in the interface above. Oh, can not hide, can only make changes to the system to do a ROM,

Hidden matter, how do you know dialing and phone is switched on?
Reply:
Android2.3 application can not answer the phone, no authority, there is no method to get it?
Reply:
In fact, this does not have to hide. . You can refer to the market for some applications, such as program lock, such as Caller ID, in fact, detected in time to start an interface, and then add a top view. . . Principle toast is such that you have been toast, and then press the home, there will still be found in the home interface toast. . . Refer to the specific implementation toast source between 300 to 400 lines, I seem to remember a man named TN inner class
Reply:
I remember the most is your own interface system interface cover above. In fact, when the system interface to the phone or will flash. Out how to prevent the system interface.
Reply:
reference to the 6th floor adong4109 reply:
references, 4th Floor llxxhm reply:

References to the third floor adong4109 reply:
You XML file, set the call interface yet? I think, if you set up, then set it to FALSE try, or you write code to force the interface to call Close () off ......

May I ask how to set call interface? What does it mean?
Forced to Close the call interface is how Close?
Can elaborate?
I did not relate to the issues, but based on past experience, that you can do to try ......

Xiongtai, every time you reply to someone else's problems are all the replies I see the most impressive one;
Oh, every time: "I think .... or ...."; then basically every LZ will ask you more points; You say: "I did not relate ... just based on past experience .. .. feel .... ";
Haha, too talented
Reply:
cited 41 floor fff32165 reply:
reference to the 6th floor adong4109 reply:
References to the 4th floor llxxhm reply:

References to the third floor adong4109 reply:
You XML file, set the call interface yet? I think, if you set up, then set it to FALSE try, or you write code to force the interface to call Close () off ......

May I ask how to set call interface? What does it mean?
Forced to Close the call interface is how Close?
Can elaborate?
I did not relate to the party ......

Upstairs was right, in fact, which shows that the experience itself is not here pretend to understand.
Reply:
Do not discuss these, another topic, the application how to send DTMF?
Reply:
This is very simple, ah, if you can call ril.java inside the function, direct dial function call is a call

ril.java is Telephony Framework and Ril-daemon bridge Android, the real function of various phone-related package in libril-XXXX.so inside

The results are used asyncresult function call returns, to write their own HandleMessage to collect the results can be


Reply:
Similarly, send DTMF, direct calls ril.java inside sendDtmf on it

I have realized these
Reply:
There is, without reflection can achieve the function you say, so you can run your program in PhoneApp inside.

Call ril.java in the function is very simple


mPhone = PhoneFactory.getDefaultPhone ();
Then directly
mPhone.sendDtmf (ch, this.obtainMessage (DTMF_SEND_REQ));

Finally handleMessage in,
case DTMF_SEND_REQ:
To check the results can be


Reply:
cited 46 floor kxhukxhu reply:
There is, without reflection can achieve what you say feature that lets you run in PhoneApp inside it.

Call ril.java in the function is very simple


mPhone = PhoneFactory.getDefaultPhone ();
Then directly
mPhone.sendDtmf (ch, this.obtainMessage (DTMF_SEND_REQ));

Finally handleMessage in,
ca ......

Do you mean is to change the system PhoneApp?
Reply:
cited 44 floor kxhukxhu reply:
this is very simple, ah, if you can call ril.java inside the function, direct dial function call is a call < br />
ril.java is Telephony Framework and Ril-daemon bridge Android, the real function of various phone-related package in libril-XXXX.so inside

The results are used asyncresult function call returns, to write their own HandleMessage to collect the results can be

Application is not in the source code to compile, so the function call within ril.java right?
Reply:
The reply was deleted at 2012-01-05 10:15:58 moderator

Reply:
cited 46 floor kxhukxhu reply:
There is, without reflection can achieve what you say feature that lets you run in PhoneApp inside it.

Call ril.java in the function is very simple


mPhone = PhoneFactory.getDefaultPhone ();
Then directly
mPhone.sendDtmf (ch, this.obtainMessage (DTMF_SEND_REQ));

Finally handleMessage in,
ca ......


Give me an example of it, so that we learn?
Also, please look at my post?

No comments:

Post a Comment