How to boot android phone programmatically? - android

I want to reboot targeted phone by SMS. Is it possible? How can we implement this?

According to this Android Developers thread on Google Groups, third party applications don't have permission to reboot the device.

Your problem has two core parts. Can you reboot the phone programatically? Can you write a program to intercept incoming SMS? If you answered YES to both of your question, it is possible to do this.
I am not a Android developer but i think this should be quite possible.
take a look # Android SMS intercept without notification icon or WAP-PUSH messages and http://mobiforge.com/developing/story/sms-messaging-android
I think BroadcastReceiver is the one you are looking for.
I have no idea whether you can programatically reset the android phone using java... Someone else might answer you about that
EDIT: I guess according to the link Bill has posted, 3rd party applications are not permitted to do a reset

If you mean by having an app waiting for a specific text, then only on a rooted phone.
Ranhiru's link tells you how to get the text without it giving a text notification. If your phone isn't rooted, then programs don't have access to functions like that. If it's rooted, I can't say exactly how to do it, I haven't tried yet, but have a look for the source of apps like quickboot, a lot of them have it all publically available on code.google.com

For the record, it IS possible to intercept SMS messages on a stock Android phone - I've written a little app which pops up a Toast when I get a text rather than having to go in to the messages app.
It's NOT possible to perform a normal shutdown/reboot/??? without rooting the phone or being Google (at least, convinving the phone you're Google) but that would be a violation of the developer agreement.
In fact, you will find huge barriers in your way if you try to do anything to the OS or any other app - Which is usually a good thing

Related

How to set a timer programmatically to boot an Android device at a specific time?

I'm currently working on an app for this kind of device:
link. I want the user to be able to set a timer to shutdown and boot (NOT reboot) at a specific time during the week.
I did a lot of researches but I have't found the answer to my question. Everybody says that's impossible to boot using a timer since the device is supposed to be off. However, in the settings of the device, there is an option "Timer Switch Machine" which allow to do that (as describe in the link above). So I think there is a way to hack this functionality throw my app, if the device is rooted. But I don't know how to do that.
Does anyone have an idea?
This functionality is not part of the AOSP. That means first you have to gain access to the source code (or alternatively talk to someone who has access to it).
You might be able to find the corresponding code by decompiling System apps (especially the app which contains the option).
Otherwise you'd have to find a contact to the developer (probably via the manufacturer).
If you have the sources, the easiest way to hook into it is normally using xposed.
But depending on the actual implementation (e.g. if it's a shell call) there might be a better way.

research on how to activate keyboard lights

I was looking for but I can not find what I need. I want to receive an SMS lights from turning on my keyboard touch .. I know to know when an sms arrives BroadcastReceiver joins the class .. but someone knows how to do to activate the backlight of the keyboard? Thanks in advance
The most correct answer is that this is not possible in a portable way (that works on every Android device). This is because the Android SDK does not define a standard way to control the keyboard backlighting system.
There are several answers though that exist such as this one which explains that it is possible to interact with the backlighting system using the sysfs, on some device. This appears to be done by interacting with the hardware by writing a value to a specific pseudo file, as follow :
echo 0 > /system/class/leds/keyboard-backlight/brightness
To do so, your application must have root privileges which requires your phone to be rooted. Also note that even if your phone is rooted, the above pseudo-file might not be available on every device having a backlighting system.

Android app for Scan an RF to intercept mobile phone calls

I was reading following article and I come up to know about RF(Radio frequency) signals are the medium of communication between connect mobile phone calls.
Idea came in my mind to have android app kind of RF scanner which secretly eavesdrop on mobile phone conversations around you.
I know i need more research but i quickly want to know if it is possible with android apps or not ?
enter link description here
Android does not offer APIs to do this. They are buried in radio kernel, which comes from pphone vendor. So answer is negative. It is possible but not with android.
PS: COTS solutions doing this are usually restricted in export and pretty expensive.
Honestly I don't see why this would be impossible. The pitfall of building an app like this would be:
a. user will most likely need a rooted phone and some kind of custom radio with their kernel. This shouldn't be a huge issue though as most users looking for something like this should have the know how to root their phone.
b. you wouldn't be able to release this on the market. as soon as google caught wind of such a malicious app they would remove it immediately.
Catching the signal of other conversation is not enough, cause signal is at least encrypted!

Android PRL update

Would it be possible to do this programatically? So far we are opening the dialer and dialing *228... but would prefer another method. Any ideas, or possible other directions?
From my research, the Android has classes to handle the upload of PRL using OTAUtils. However each phone manufacturer has different process to update the phone dependent on chipset.
You would have to service unlock phone and write the new PRL values.
There simply does not appear to be any general API to write PRL to phone.

reversing Android Market app network traffic

Source code of Android Market app is not available.
What I want to do is reversing the network protocol used by the market.
The purpose is to build a tool that can simulate a handset and search for a particular phrase, thus returning the rank of a target application (or maybe the whole list for that particular keyword)
I can connect my Android phone to my home wifi network. Then I need a way to set a "proxy" and a tool like Wireshark. Maybe it would be easier if my phone were rooted, but I don't want to mess with the factory rom. Does anybody have any suggestion? Or maybe has a rooted phone and wants to collaborate with me?
Someone has already done the work, did you look at the android-market-api - they actually have what you want!

Categories

Resources