Around Tue 31 Jan 2012 18:15:18 +0100 or thereabout, Renan Strauss wrote: > <string-array name="config_statusBarIcons"> > <item><xliff:g id="id">ime</xliff:g></item> > <item><xliff:g id="id">sync_failing</xliff:g></item> > <item><xliff:g id="id">sync_active</xliff:g></item> > <item><xliff:g id="id">gps</xliff:g></item> > <item><xliff:g id="id">bluetooth</xliff:g></item> > <item><xliff:g id="id">nfc</xliff:g></item> > <item><xliff:g id="id">tty</xliff:g></item> > <item><xliff:g id="id">speakerphone</xliff:g></item> > <item><xliff:g id="id">mute</xliff:g></item> > <item><xliff:g id="id">volume</xliff:g></item> > <item><xliff:g id="id">wifi</xliff:g></item> > <item><xliff:g id="id">cdma_eri</xliff:g></item> > <item><xliff:g id="id">data_connection</xliff:g></item> > <item><xliff:g id="id">phone_evdo_signal</xliff:g></item> > <item><xliff:g id="id">phone_signal</xliff:g></item> > <item><xliff:g id="id">battery</xliff:g></item> > <item><xliff:g id="id">alarm_clock</xliff:g></item> > <item><xliff:g id="id">secure</xliff:g></item> > <item><xliff:g id="id">clock</xliff:g></item> > </string-array> > > Simply emove the icons (phone_signal, battery, gps,...) you don't need and > override config_statusBarIcons by adding these lines to > device/ti/panda/overlay > /frameworks/base/core/res/res/config.xml
Ah, thanks. I also added some other entries to explicit avoid the phone features; <bool name="config_voice_capable">false</bool> <bool name="config_sms_capable">false</bool> I still get the battery icon though, but at least it is better. Tried adding a power_profile.xml file, and configured the battery.capacity to 0, but that didn't help. > 2012/1/27 Hans-Christian Egtvedt <[email protected]> > > Hi all, > > I am porting Android ICS to a new hardware device which does not have > neither > battery or GSM/3G chip. Is there any straightforward method for removing > the > phone signal strength icon and battery icon from the status bar? > > I have successfully altered the battery icon by applying the change from > http://gitorious.org/rowboat/frameworks-base/commit/ > b16914898dd782ba653d315a61bfdf54c92e935b > but it doesn't look like an ideal solution (?). > > Another feature I am trying to dig out is how to tell the Android build > system that I do not have a camera, but there seems to still be camera > features in the build. For example in the screen unlock sequence I can > choose > to go to the camera. > > I've defined the USE_CAMERA_STUB := true in my BoardConfig.mk > > FWIW I'm using TI's OMAP release of ICS, since I need their graphic and > wireless connectivity additions. -- mvh Hans-Christian Egtvedt -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
