Check whether an app is installed in a paired device - java

Is there a way to search another devices installed application using bluetooth? Actual requirement is, is there a way to search the paired devices installed applications.
Any help is really appreciated.

Sorry, but this is not possible, unless you specifically have your own app on both sides and are somehow enabling this yourself. There is nothing built into Android to allow an arbitrary device to attack another arbitrary device (e.g., get at private information like installed applications).

Related

How can I disable and enable a USB OTG connection to power a hardware device on and off?

I am working on an android project where I use a phone to power an external device. Through a USB-OTG connection, I can power the external device.
I want to know if I can write a program on android studio where I can press a button in the app to toggle the power to this external device (turn it on and off).
I've seen it done before on an older Samsung Galaxy 3 phone (on a much older version of android) by updating data in a file; specifically this file:
/sys/devices/virtual/host_notify/usb_otg/mode
But I'm trying to write the software so it is more generic and can work on any new android device.
Is there a way to do what I need?
I've tried finding a generic way to do this but it doesn't seem possible because the only way I've seen it possible is by using shell commands to toggle exposed kernel bits through root files.
I have concluded it's likely impossible to make generic code for this as most android phones root files are organised differently. So you need to discover the specific file each time you want to use a different phone for the software.
I don't think it would be feasible for myself to create a database of different brands of phones root file structures because new phones come out all the time with new structures which would require too much maintenance on my behalf.

How to disable the "uninstall" button in Android?

In Android some system applications cannot be uninstalled.
Is there any way to configure an application so that it cannot be uninstalled by the user?
I want to hide the uninstall button in app settings, like a system app such as this:
Not really - the only way to achieve this would be to create a custom ROM. The uninstallable apps are "system apps", or apps installed by default. Often, those are unneeded apps added there by the mobile network or the phone producer. Even those can be uninstalled though when you root your phone :)
Your app can disable the Uninstall button by requesting Device Administration permission from the user.
The user cannot uninstall until they remove the Device Administration permission in Settings. In this case your app's DeviceAdminReceiver will be called, giving your app a chance to react.
http://developer.android.com/guide/topics/admin/device-admin.html
I guess you're mainly looking for a technical solution. But as there is no purely technical solution for a wider audience, you might be open for alternatives:
The phone manufacturer and the telecom provider have means to pre-install apps on a phone that cannot be uninstalled. So one way would be to get in contact with them and see if one of them is willing to cooperate with you. You'll probably need to offer them something in return.

Possible to Run a Java GUI on a computer from an Android?

If an Android device were connected to a computer via USB charger, would it be possible to launch a java GUI on the computer from the device (i.e. by pressing a button in an android app)?
Also, would this be a platform dependency nightmare?
Possible yes, not easy though and there may be some platform issues.
You would already need to have something running on the destination computer which detected the message from Android and then launched the GUI.
In fact the simplest way to do that may be to ignore the USB and just do the whole thing over the network.
You can't just run arbitrary code on the computer by plugging the phone in though, if you think about it that would be a massive security hole!

Android - Can PushLink do silent updates?

Does anyone know if PushLink can do silent updates? That is, download the app and install it without any interaction from the user?
The PushLink website is quite sparse on documentation regarding features available so I can't be sure.
Or does anyone know if it's possible to have a silent installer for android? I basically have android devices that will not do any user interaction and I need to be able to update my apps running on them.
Yes, it is possible since version 3.1.0 released at 2012.04.23.
Take a look at NINJA strategy
NINJA (Only for rooted devices) The application is just re-launched in
a new version. There isn't notification. BETA!
There's no official way to install anything on Android device without user interaction. Which is a good thing, because it prevents a lot of possible malware and exploits from working.

Detect BlackBerry devices and their PIN's programmatically

I'm looking for a programmatic way to obtain a list of BlackBerry devices connected to the computer. For *nix there's an open-source toolkit called Barry. It can display a list of connected BlackBerry's along with their PIN's (unique identifiers). Is JavaLoader or any other Windows tool capable of serving the same task?
BlackBerry Desktop can detect device and it's PIN, but I need a way of programmatic access to this information.
Any suggestions?
UPDATE: Apparently, JavaLoader.exe has an option named "enum". I'm checking whether it works as expected.
"enum" command works perfectly.

Categories

Resources