Remove non-related icons from status bar and camera references in ICS

558 views
Skip to first unread message

Hans-Christian Egtvedt

unread,
Jan 27, 2012, 8:50:59 AM1/27/12
to android...@googlegroups.com
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

Hans-Christian Egtvedt

unread,
Jan 29, 2012, 7:26:49 AM1/29/12
to Jeremy Morales, android...@googlegroups.com
Around Fri 27 Jan 2012 13:21:42 -0700 or thereabout, Jeremy Morales wrote:
> TARGET_NO_RADIOIMAGE := true
> put this in your BoardConfig.mk

Thanks for the hint, but I already have this defined in my BoardConfig.mk
file.

Any other hints? The TARGET_NO_RADIOIMAGE doesn't really seem to have any
users in Icecream build system though, and those who define it both do and do
not have a radio. For example tuna (Google Nexus) device.

The TI Android port I'm using is based upon Android release 4.0.3.

PS! Added the mailing list back on CC, in case others have had similar
issues.

> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
>

--
mvh
Hans-Christian Egtvedt

Hans-Christian Egtvedt

unread,
Feb 1, 2012, 5:19:57 AM2/1/12
to Renan Strauss, android...@googlegroups.com
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 <egt...@samfundet.no>

Fabio Piccolo

unread,
Feb 9, 2012, 3:34:28 AM2/9/12
to android-porting
I tried to do the opposite with BeagleBoard.
This board is configured as a tablet, so there isn't phone
application.
I tried to use

<bool name="config_voice_capable">true</bool>
<bool name="config_sms_capable">true</bool>

in opposite way, but it is not possible to have phone application.

3. Hans-Christian Egtvedt
View profile
More options Feb 1, 11:19 am
Around Tue 31 Jan 2012 18:15:18 +0100 or thereabout, Renan Strauss
wrote:

- Show quoted text -

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>

On Feb 1, 11:19 am, Hans-Christian Egtvedt <egtv...@samfundet.no>
wrote:
> > 2012/1/27 Hans-Christian Egtvedt <egtv...@samfundet.no>
>
> >     Hi all,
>
> >     I am porting AndroidICSto a new hardware device which does not have
> >     neither
> >     battery or GSM/3G chip. Is there any straightforward method for removing
> >     the
> >    phonesignal 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 ofICS, since I need their graphic and
Reply all
Reply to author
Forward
0 new messages