Creating fake status bar information

2019-09-06 19:19发布

问题:

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

  1. at some desired time, change the icon in the system (using superuser permission)
  2. 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?

回答1:

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.



回答2:

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.