I'm trying to fake some information that are shown on the status bar (I'm doing this for a good reason, for example when a thief steels the phone, he doesn't deserve to know the status of anything: battery, WiFi, 3G, GPS, etc...)
I know that this is possible somehow without creating a ROM, see this app in the Android market: CSB Fake
at 2:26 in the video, he fakes the battery level IN THE STATUS BAR!
I really need to know how is this done.
There are only two ways I can think of
at some desired time, change the icon in the system (using superuser permission)
just send wrong information to the status bar, and it does the rest, for example, send to the status bar that the GPS is not working while in fact it is
Is it possible to do it without rooting? (that app seems to do it on no-rooted devices)
How to do such a thing? is there any references or some sites that most likely has the answer?
That screen shown in app for battery you can make that...by making the app full screen mode and show your custom title bar like with wifi level battery level time icons and also pop up one custom dialog for battery low as same as android pops up.
This must be done at build time. The reason for this is because the base level of android has the statusbar code. YOU MUST recompile the ROM there is NO way around this. These are system level broadcasts that are broadcasted within the phone. You cannot control this, even with root its still impossible.
Once again, to do this properly you MUST have code that will allow you to recompile your source code of your phone. A custom rom would suit this.
Related
A little background first. I'm developing an application for corporate devices running on the Android platform. It won't be distributed on the Play store and thus, is unavailable to the general public. The devices are owned by the company and its only purpose is to run this application. So accessing the home screen/notifications/application history/ app drawer are unnecessary and in fact we want to focus the user experience directly on this application.
The current problem I'm facing is preventing access to the notification tray. Simply making the application full screen is not a solution. We do actually need to see the status bar. It's the easiest way to provide network,gps and battery status information to the user.
So far my research has only turned up one solution, which is to go full screen (again, not a solution for this problem, I need the status bar to be visible).
Can anyone help me out !!
Before you flag this as duplicate, I researched this question a long time ago and found this and this, which both suggest that the right side of the notification bar is a system apps ONLY zone.
However, I recently used Betternet and after connecting to the VPN, these two icons appear:
Betternet is not a system app, and my HTC On3 M8 is not rooted. How did they do it?
The left icon is a Notification. These can be displayed by any app.
The right icon is a standard icon, added there by Android, indicating an active VPN connection. These are not put there by apps directly, though certain things that apps implement (e.g., VpnService) might result in an icon being shown there.
I am trying to build an android app in kiosk-mode in Android 4.2.2 (Jelly Bean). What I have achieved till now is to make the application as full screen and also handled the home and back buttons. However, my problem is, I want to remove the status/notification bar. I don't want the user to access any other settings through it. I have tried out many ways including the usage of different flags available in android WindowManager for having a screen devoid of the notification bar. However, none were helpful for that.
I have read about apps like Surelock which serve this purpose. Therefore, at least I know that there is something which can be done, except rooting, to remove the notification bar.
Can anyone please help me on this?
I need to get rid of the system bar on Android 4.1 tablets since the tablets will be in a commercial/retail environment and be used for business. My app will be the only app used on the tablet and it needs as much screen real estate as possible for what we're trying to do. I have searched already and I see that there are ways to do it on a rooted tablet, however since this will be in a business and deployed to several hundred or thousand businesses, I cannot have all the tablets rooted for legal and security issues. (Would I really have issues legally though if I were to root them?)
I know that you can dim the status bar and make the buttons dots but that really isn't optimal.
If there is no way to get rid of it, is it possible to change the status bar icons and functionality? I ask this because our app has a status bar on top and we could possibly move it to the bottom and change the icons and functionality of the status bar to match the app's status bar so no screen real estate is lost.
I have read that 4.2 adds some fullscreen functionality for apps. Is this true? Can the status bar be hidden in 4.2 as opposed to 4.1?
I need to get rid of the system bar on Android 4.1 tablets
That is not possible, except via rooted devices and/or ROM mods. Moreover, the user needs this bar to be there, otherwise they have no access to the HOME and BACK buttons.
Would I really have issues legally though if I were to root them?
StackOverflow is not a law office. Please consult with qualified legal counsel regarding such concerns.
is it possible to change the status bar icons and functionality?
That is not possible, except via rooted devices and/or ROM mods.
I have read that 4.2 adds some fullscreen functionality for apps. Is this true?
Not exactly. The bottom navigation bar (HOME, BACK, RECENTS) can be hidden, but they will return as soon as the user touches the screen. The top status bar (signal strength, battery level, etc.) can be removed via a Fullscreen theme.
A little background first. I'm developing an application for corporate devices running on the Android platform. It won't be distributed on the Play store and thus, is unavailable to the general public. The devices are owned by the company and its only purpose is to run this application. So accessing the home screen/notifications/application history/ app drawer are unnecessary and in fact we want to focus the user experience directly on this application.
The current problem I'm facing is preventing access to the notification tray. Simply making the application full screen is not a solution. We do actually need to see the status bar. It's the easiest way to provide network,gps and battery status information to the user.
So far my research has only turned up one solution, which is to go full screen (again, not a solution for this problem,I need the status bar to be visible). I know there's a number of lock screen apps that are able to do this so there must be a way. I just haven't found it yet.
I am not sure, but probably that you can't just lock notification bar from the application level. Android app is isolated from the Operating System and another apps, so it is not able to lock OS features.
Solution that came into my head is to make app fullscreen and create Your own status bar with battery level, current time and network status. It is not hard.
Another solution would be to prepare Your own Android distribution :)
Moreover probably You would like to override all buttons (home, back, search) so user is not able to leave your app.
Very likely is not going to be possible on a Stock device, you'd have to root and potentially install your own version of the OS to allow for this behavior. The system was purposefully made to disallow applications from having this type of behavior. The creators of the OS had the general public in mind as users, and they wanted to prevent applications from being able to "lock" the user out of portions of the device.
Much easier solution like #Jacek states is go full screen and make your own View to display whatever info that you do want from the Notifications bar, AFAIK there are public APIs to access all of that information.