sim application toolkit android - android

I want to know what commands my sim card application toolkit is sending to the service provider.
I read somewhere that sim card application toolkit sends commands in the form of SMS or USSD. I want to know those commands.
I'm using an android phone but I can use some other phone if required. I need a detailed answer since I'm not good in all of these things.
I actually want those commands so that I can create an application to make changes in stk. There are 5 steps in my orignal stk to make a recharge but I can reduce that in 2 steps if i will know exact commands so kindly guide me about it.

Yes, sim card application toolkit may send commands in the form of SMS or USSD to operator when needed.
The sending of SMS or USSD, or even call to some specified number is trigger in modem. To find the SMS/USSD content, You need a modem log containing OTA info. You can't find those info from an Android logcat log for sure.

Related

Is it possible to send an SMS from Visual Basic 2013 through my smartphone?

I would like to send an SMS from a VB2013 application with my smartphone programmatically. I have already found several solutions how to solve this with Windows Phone (Outlook-Windows Phone). The only problem is, that I have an android device. So my question is, do you know any idea or solution that supports android?
The workflow that I want to implement is the following:
The user types into a textbox the phone number and the text on a VB2013 app.
He/She clicks to the "Send" button, and somehow it sends an SMS from the android phone to the phone number that is given by himself/herself.
Regards,
Roland
I would say that this is not possible directly.
The problem you already found is that your Smartphone is Android and
Vb.Net needs a .net Framework with which it works.
So the possibility I see is to get a connection
via USB port to your device and send some specific commands to
make your smartphone send SMS. To do this you have to use a serial port from
my point of view.
This question has already been asked, so
please take a look at:
Sending SMS with Vb.net
The .Net framework does not natively run on Android, so no this is not possible.
However, the Xamarin framework allows you to write android apps in Visual Studio.
Specifically towards your question, Xamarin has an SmsManager class that allows you to send Sms messages, the documentation can be found here.
Hope this helps.
There are several different ways to do this, but the best one is use an api like Twilio. You can literally send an sms with one line of code. They have a nuget package which would get you up and running even faster.
Another is to use carrier mail. You have to know the users carrier and then you can create an email address that sends as a text ie. 1231234123#txt.att.net. The issue with using cellular carrier email is that spammers often use this and one minute there is a message from your site and then next is spam, since it will be coming from the same carrier.email address.

LAN calling in android

I want to develop an android application for LAN calling.My app resembles apps like whatsapp, viber etc, so I googled for the same. What I got from different answer is:
Whenever we install whatsapp, the whatsapp server register our number and contact list. The app continuously pings the server and update its status on server.
When we open the app, it gets the data from server, and if a number is found in contact list, it displays the status of the number and other things.
Whenever we message some one, the message goes to server and stays there until delivered successfully.
For my app the two steps are:
Find all the devices which has my app, their IP and mac address.
When devices are found,allow calling between them.
For step 1, I have two options:
As whatsapp, I can have a server. It registers the info of the mobile phone, whenever the app is installed. The app pings the server and shows its status.
I can use my own network device discovery code. This code scans the network and find the devices.
This step is costly, whole network is flooded with the packets. And also it is quite difficult to write network device discovery code.
For step two, I want to implement client-socket programming and simply connect the microphone of one device to the speaker of another phone. I think it is challenging, but it is possible.
Please help me with network discovery code or the server setup. I am quite familiar with android development, but very novice to networking.
Also how calling is done between these devices?
I have searched for the answer and found the following links: Peer-to-peer SIP call with Android SIP Stack?
how to implement voip in android
VOIP on Android libraries or sample code
I also put a question on quora:
https://www.quora.com/How-can-I-develop-an-app-having-feature-like-whatsapp-calling-in-android
But, still I am stuck at the beginning. Please help me with it.
Not a complete answer yet, but here are the things to look for:
Assuming Java is your language, use Multicast Network discovery in Java using multicasting and https://en.wikipedia.org/wiki/IP_multicast
Calling needs more description. Does the call starts immediately (as soon as the peers detect one-another) ? How does one know the identity information - a number or a username etc. ?

How to send SMS from Android emulator to a phone using GSM modem?

Is it possible to send SMS from Android emulator to a mobile phone via a GSM modem connected to a USB port of computer ? If it is possible how can I do that
Thanks in advance!
You could do that but android won't detect it as a native antena, in other word, all functions from android to send sms or initiate a call won't work.
If the device is visible is /dev/.. You could be able to open it and send command trough serial. Unless someone wrote a driver so android can load it for gsm communication inside the emulator, my guess is that it's pretty useless.
Anyway, the emulator does have a way to test sms sending as far as I can remember, and if you really want to send sms trough your gsm dongle, It's probably a better idea to start writing a script using python for example. There is also a library that enable sms sending from linux, it might also work on other platforms.
Sending sms from python from computer:
http://designbuildtestrepeat.wordpress.com/2008/06/26/sms-over-3g-and-bluetooth-from-python/
Checking incoming sms for emulator android:
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
Sending sms between emulators:
http://xjaphx.wordpress.com/2011/07/07/sending-messages-among-devices/
And then it really depends on what you need. You didn't exactly said why you wanted to do that. You didn't say if you wanted to test sms messaging or wanted to send actual sms from computer. It's not really clear why you need android and the gsm modem at the same time.

How to know what data an Android app is sending out

How would you find out what kind of information an Android app is sending back to the "mothership"? For example, if an app is sending your ID, gender, etc. to advertisers.
Is there a way to do this in an Android app? Or would it have to be done via a packet sniffer over Wi-Fi?
Root your device.
Find a copy of tcpdump for Android
Launch tcpdump, capture a dump file.
Analyze offline with something like Wireshark.
You might check Android packet sniffer.
Unfortunatelly, you have to be root on your phone, and have the "su" command installed.
The TaintDroid project does exactly this. Installing it isn't as simple as just installing an app (of course), but they provide pretty detailed instructions. This tool has been used for exactly the purpose of detecting what kind of information an app is accessing and sending to some external source. They also provide the source code if you want to modify it for particular purposes.
The permissions tell you what data it is accessing, for example "Phone State" means getting the phones ID, Coarse or Fine Location is a permission to, so for network or gps location you need to be made aware.
Other data is behind other permissions. So if they aren't cheating you can somewhat figure out what they are using.

How to do Client server communication in Android?

I want to send and receive information between Emulators in Android.i am using two systems and i have installed android in both the systems and i have to consider one emulator as server and another as client.Now i want to send data from one to another.Anyone knows regrading this please help me with some sample code.
What sort of information do you want to send between the emulators?
You can transmit SMS messages, or simulate phone calls, from one emulator to another using the target emulator's console port number as the number to dial. The Android Developer Site describes the process in more detail under "Sending a Voice Call or SMS to Another Emulator Instance"
If you want to transmit data, unfortunately Android doesn't currently provide any P2P or Instant Messaging APIs, so there's no generic technique available through the SDK you can use.
Your best alternative is to create your own server-based solution (or your own P2P API, though that might be a little more complicated).
Take a look at Java Socket.

Categories

Resources