Disable Android from emitting LogCat messages - android

Is it possible to disable Android on a device from emitting ALL log messages from ALL apps?

On a rooted device maybe. With your own ROM mod, certainly. Otherwise, no. Bear in mind the logs are kept even when your tools are not looking at those logs (e.g., device is disconnected from your development machine).

No, you cannot do this. Some devices (like Huawey's) got logging disabled and you have to do some magic to get this functionality restored, but this is just custom firmware modification by huawey.

On a Huawei device, you dial:
*#*#2846579#*#*
This will bring up an app where you can disable all log messages. I'm sure every device has some secret phone number that lets you do this. No rooting necessary.

Related

Block single apk notifications via adb

I'm looking to change notifications settings for a single application remotely.
I've got the device enrolled into a MDM.
Android device running 6.01.
I can remotely deploy / update apps etc...
However, I want to disable notifications for this. I can't seem to find a hands off approach to doing this.
I'd have to break out of the end user lock down application.
Go to settings
apps
find app
notifications
block
restart device.
Is there a way I can remotely make this change?
Thanks in advance.
you might have more luck asking your MDM provider but there is no way to achieve this from the platform. This is not a requirement I have heard before, typically enterprise devices are configured to block all notifications or allow all. If you do not plan on using the application in question you could likely disable the entire app remotely but being able to disable notifications for that specific app remotely is not currently possible.
The MDM provider said it was an OS behavior and needs to be suppressed from the OS. I got it sorted by disabling them the manual way.

Android app accessing locked down phone dialler

My company has written an android driver app (for making deliveries) from which the driver can select a 'call' button to dial the customer they are delivering to. I know how to change the intent to auto dial the number instead of the user having to manually initiate the call but I would like to know if there is a way of somehow locking the dialler down in some way.
Best solutions would be to either a) ensure that the phone returns to the drivers app after the call hangs up, or b) disabling the number pad on the dialler so they cannot call any other numbers.
I have searched through the available dialler apps on play store to see if there was anything suitable but I could not find anything. I have searched the forums (which is how I found the ACTION.CALL intent) but not really found a solution yet.
The app is written with PHP and javascript.
Any suggestions would be very helpful.
Thanks in advance,
Ant.
Is this on their personal phone, or on a device you give them? If its a personal phone, no. If its a device you give them- what you really want is a kiosk app. You could install your own softphone that doesn't allow dialing (although you should probably add a 911 button for emergencies) and block the user from installing any other dialers via DeviceManager apis (you'd have to be the device owner, but as its a device you physically control that's no problem).
Of course doing kiosk mode is really diving through deep apis that almost nobody uses. I wouldn't recommend it without an android expert on your team.
Outisde of kiosk mode and a complete lockdown of your device- no there is no way. Because the dialer is just an app, there's no way to force it to have certain features.

Block Camera, shutdown option and keep GPS and mobile data enabled - android

I got a small project. Company will provide android phones to their employees and company do not want them to access camera and shut down their phone and also they should not be able to disable GPS or Mobile data.
I'm new to android development. Would you please tell me if this is possible. Few reference on how to do that (If possible) :).
Thank you so much for your help.
Nothing will stop them from shutting down their phones. If nothing else they can always remove the battery.
Some of the other stuff can be done via Device Owner permissions and android's device policy manager, which is made for enterprise control of devices.

Purpose of Telephony Provider

Some background information:
I have a certain yet to be released tablet and sadly the people who designed it seemed to have removed TelephonyProvider.apk
Here's how I've reached that conclusion :
When I go to More... in WIRELESS & NETWORKS there are no options to change APN, VPN or access Mobile networks. (Please note that the table has no facility to lodge a SIM card) However, on my Karbonn ST10 (Android 4.1.1) all these options are found. The certain tablet is currently on Android 4.2.2
When I used an app called APN shortcuts I was able to launch the APN configuration screen, however every time I changed the MCC or MNC number, the APN could not be saved and was deleted.
When I tried to read the contents of content://telephony/carriers I received a NullPointerException.
Questions:
What is the purpose of TelephonyProvider.apk?
Will it be possible to install it without root access? If so, how? (I'm pretty sure this can't be done, but if someone else knows a magical method please enlighten the world)
Can 3G data connections via dongles be established on this device which seems to be missing TelephonyProvider? Or will the ROM have to be edited and TelephonyProvider be installed.
I'm pretty sure this is a programming question, but if it belongs on Android Enthusiasts, please move it.
It's just an apk... you should be able to sideload it with adb without root with adb sideload <your apk>. It would just be removable since its not it /system/app, ie built in with the ROM. If the makers of your device disabled certain features on the device, which would explain possibly why those menus do not display in the Settings app, then TelephonyProvider may not be all that you need to get the connections you want to establish working.
Hope this helps.
Update:
These features are probably disabled on the device you are using. based on what you described.
From the PackageManager documentation.
FEATURE_TELEPHONY Feature for getSystemAvailableFeatures() and hasSystemFeature(String): The device has a telephony radio with data communication support.
FEATURE_WIFI Feature for getSystemAvailableFeatures() and hasSystemFeature(String): The device supports WiFi (802.11) networking.

Restart device after installation

Is there a way using which I can request Android OS to reboot after installing an application...?
I guess the answer is no you can't. Android hasn't given that facility keeping in mind the security and many other purposes. So, you can do some like that when your Application is installed you can request the user to Reboot the Device before using your Application when he tries to execute your Application`.
UPDATE
You can check this thread for having further information about it.
AFAIK , there is no such API in android for auto reboot. you need to display a message in diaglogbox for restart the device.

Categories

Resources