[Sony Ericsson XPERIA X10 Mini] Emperor.dk:
[GUIDE]How to hide app from app-drawer the dev-way

First go here and download my X10MP essentials pack (for both Mimmi and Robyn), and install framework-files as described in the thread.

http://xdaforums.com/showthread.php?t=2033415

In this guide we will mod Torch.apk so it will not appear in the app-drawer. Widgets will still work and Power-widget-button will still work :)

Extract Torch.apk from your ROM and place it in the APKTool folder.

NOTICE:

- If you plan to use the modded Torch.apk in a non-odex'ed ROM, then mod an APK from such ROM.

- If you plan to use the modded Torch.apk in an odex'ed ROM, then mod an APK from such ROM.

Click Command Prompt.bat (or open CMD from Start-menu on the PC and navigate to the APKTools folder)

Type in the command for decompile the apk:

This will decompile the apk into a folder named "Torch".

Use Notepad++ to open AndroidManifest.xml. Download Notepad++ here: http://notepad-plus-plus.org/

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="10" android:versionName="2.3.7" package="net.cactii.flash2"
xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:label="@string/app_name" android:name=".MainActivity" android:launchMode="singleTask" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
[COLOR="red"]<category android:name="android.intent.category.LAUNCHER" />[/COLOR]
</intent-filter>
</activity>
<activity android:name=".WidgetOptionsActivity">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<receiver android:label="Torch" android:name="TorchWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="net.cactii.flash2.TORCH_STATE_CHANGED" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
</receiver>
<service android:name=".TorchService" android:enabled="true" />
<receiver android:label="@string/app_name" android:name="TorchSwitch" android:enabled="true">
<intent-filter>
<action android:name="net.cactii.flash2.TOGGLE_FLASHLIGHT" />
</intent-filter>
</receiver>
</application>
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</manifest>

The red argument tells the UI to put the icon in the launcher, so we can just delete that line and save the XML.

Back in the Command prompt recompile the apk:

This will compile the APK again. The new APK will be placed in "Torch/dist"

Next we have to sign the new APK.

Move the new Torch.apk to the SignApk-folder.

Open Command Prompt in SignApk-folder and run the command to sign the APK:

This will sign the APK and save it to Torch_s.apk (you can rename it later).

Move the app to your handset and move to /system/app.

Set file-permissions to rw- r-- r--

Reboot.

Enjoy!

Here is the result (for non odex'ed ROM): http://www.mediafire.com/download.php?q5pp7coofa5x1g2

You can use this mod in odex'ed ROM too, but you then have to delete Torch.odex