我试图伪造状态栏上显示的一些信息(我这样做是有充分理由的,例如,当小偷偷窃手机时,他不应该知道任何东西的状态:电池、WiFi 、3G、GPS 等...)
我知道这在某种程度上是可能的,无需创建 ROM,请在 Android 市场中查看此应用程序: CSB 假的
在视频的 2:26 处,他在状态栏中伪造了电池电量!
我真的需要知道这是如何完成的。
在某些需要的时候我只能想到两种方法
- ,更改系统中的图标(使用超级用户权限)
- 只是将错误的信息发送到状态栏,它会完成其余的工作,例如,发送到状态栏GPS 不工作,但实际上
可以 是否可以在不生根的情况下做到这一点? (该应用程序似乎可以在无根设备上执行此操作)
这样的事怎么办呢?有没有任何参考资料或一些网站最有可能有答案?
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?
发布评论
评论(2)
应用程序中显示的电池屏幕您可以通过 使应用程序全屏模式并显示您的自定义标题栏,如wifi级别电池级别时间图标,并弹出一个自定义电池电量低对话框,与android弹出的相同。
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.
这必须在构建时完成。这样做的原因是因为android的基础层有状态栏代码。 您必须重新编译 ROM,这是没有办法解决的。这些是在电话内广播的系统级广播。你无法控制这一点,即使有root它仍然是不可能的。
再次强调,要正确执行此操作,您必须拥有允许您重新编译手机源代码的代码。定制 ROM 就适合这个。
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.