I am trying to change the default launcher in CM7 to something such as Launcher7.
I tried to remove both the Launcher2 folder as well as ADWLauncher folder and add the Launcher7 source in /packages/apps but CM7 during build seems to add ADW back into the build so that when I flash it to my device, ADW is still default and installed.
Any advice? Is there some xml file or makefile which seems to set or be referencing ADW?
This is all for my Nexus One btw.
If you delete the launchers that are located in system/app om the ROM ZIP and put the apk of the launcher you want in system/app then it should work fine. I always do that for myself, replacing ADW for Launcher Pro,
Yeah I got it now after a fresh build. Apparently, I was messing with the package names and performing custom modifications and I didnt roll back the changes so when I tried building, it caused all kinds of problems. *facepalm*
Additionally, The changes I am making are all in source, not after ROM compilation so for me the changes were in /packages/apps not /system/app. I am trying not to edit the ROM after building as a good learning experience and its a cleaner solution too.
Smh, Thanks for the reply though. Appreciate it.
If you add in another launcher(also add it to PRODUCT_PACKAGES in device), you'll get a prompt on boot, and you may be able to edit default settings via overlay to use some other launcher as default
and what must be done inorder to add the launcher pro(any launcher) preferences to the settings, like we have the adw settings in the default android settings!!!! Please help...
To change it from source just change PRODUCT_PACKAGES (in common.mk) for AdwLauncher to your launcher name.
https://github.com/CyanogenMod/android_vendor_cyanogen/blob/gingerbread/products/common.mk
To find your product name from your own launcher from source just look for your local package name in Android.mk.
example for Adw:
https://github.com/CyanogenMod/android_packages_apps_ADWLauncher/blob/gingerbread/Android.mk
To add a custom launcher in Settings.apk
https://github.com/CyanogenMod/andr...rbread/src/com/android/settings/Settings.java
line 76 in that file change "com.android.launcher.Launcher" to whatever main activity is there for your new launcher.
also in settings.xml
Code:
<!-- Launcher -->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_launcher"
android:title="@string/launcher_settings_title"
android:key="launcher_settings">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.android.launcher"
android:targetClass="com.android.launcher.MyLauncherSettings" />
</com.android.settings.IconPreferenceScreen>
Change the "android:targetClass="com.android.launcher.MyLauncherSettings" to your settings class on the launcher. After you compile you should now have a customer launcher available in settings.
lithid-cm said:
To change it from source just change PRODUCT_PACKAGES (in common.mk) for AdwLauncher to your launcher name.
https://github.com/CyanogenMod/android_vendor_cyanogen/blob/gingerbread/products/common.mk
To find your product name from your own launcher from source just look for your local package name in Android.mk.
example for Adw:
https://github.com/CyanogenMod/android_packages_apps_ADWLauncher/blob/gingerbread/Android.mk
To add a custom launcher in Settings.apk
https://github.com/CyanogenMod/andr...rbread/src/com/android/settings/Settings.java
line 76 in that file change "com.android.launcher.Launcher" to whatever main activity is there for your new launcher.
also in settings.xml
Code:
<!-- Launcher -->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_launcher"
android:title="@string/launcher_settings_title"
android:key="launcher_settings">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.android.launcher"
android:targetClass="com.android.launcher.MyLauncherSettings" />
</com.android.settings.IconPreferenceScreen>
Change the "android:targetClass="com.android.launcher.MyLauncherSettings" to your settings class on the launcher. After you compile you should now have a customer launcher available in settings.
Click to expand...
Click to collapse
Can you tell me where is the PRODUCT_PACKAGE
thank you ~
hi
how can I set the updatePeriodMillis for a widget in java code not in XML
cause I want to let the user choose the suitable update period
up up up up
up up up up
up up up up
up up up up
up up up up
hello, i've been trying to hide the launcher icon from torch.apk (from rootbox 4.2.2).
i removed
Code:
<category android:name="android.intent.category.LAUNCHER" />
from the manifest.xml
the icon disappears but the problem is it breaks the app. the torch doesn't start when clicking the quick settings tile or the lockscreen glowpad.
can anyone guide me to make the apk work? i'm not a dev, but i know basic xml editing
I believe MIUI's default theme icons are stored somewhere. I don't want to set other themes because according to MIUI's new rule, themes downloaded offline (.mtz files) can't be set offline anymore. I just want to add my icons to default theme and use it. Where can I find default theme icons directory (or some packed file where I add my icons and repack)? Or is that the only way to modify some framework apks like framework-miui-res.apk?
I have a custom Android ROM which I am compiling from source. I would like to modify which widgets and app icons are present on the device by default.
How would I go about doing this? A hint to where the configuration file is in the source code would be sufficient.