Jump to content

[HELP/ADVICE] REMOVING A WIDGET FROM APP (SETTINGS.APK)


Recommended Posts

Guest tillaz
Posted (edited)

ok, so i need to remove the power control widget thats provided from the settings.apk

i have tried removing this from the AndroidManifest.xml

<receiver android:label="@string/gadget_title" android:name=".widget.SettingsAppWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
<action android:name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED" />
<action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
<action android:name="android.location.PROVIDERS_CHANGED" />
<action android:name="com.android.sync.SYNC_CONN_STATUS_CHANGED" />
<action android:name="android.intent.action.ANY_DATA_STATE" />
<action android:name="updateSettingsWidget" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
</receiver>[/xml]

[b]and it looked like it had worked when i flashed it via .zip, but when i add the settings.apk to the rom and do a clean install settings is gone and fails to launch/open[/b]

Edited by tillaz
Guest raverrr
Posted

ok, so i need to remove the power control widget thats provided from the settings.apk

i have tried removing this from the AndroidManifest.xml

<receiver android:label="@string/gadget_title" android:name=".widget.SettingsAppWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
<action android:name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED" />
<action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
<action android:name="android.location.PROVIDERS_CHANGED" />
<action android:name="com.android.sync.SYNC_CONN_STATUS_CHANGED" />
<action android:name="android.intent.action.ANY_DATA_STATE" />
<action android:name="updateSettingsWidget" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
</receiver>[/xml]

[b]and it looked like it had worked when i flashed it via .zip, but when i add the settings.apk to the rom and do a clean install settings is gone and fails to launch/open[/b]

Silly question maybe. But did you also remove the resources( e.g drawables)?

In eclipse, if you remove the obvious parts of it, the code associated to them will be flagged as having a problem. Telling you exactly where it is lol. Sorry for my poor attempt at helping.

Guest Frankish
Posted

What rom is this on and what key are you signing it with?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.