[G1 Android Development] nono2lozere:
I have a little problem with all rogers rom: I can't replace HTCLauncher.apk by other Launcher.apk from TheDude 1.3RC1 or from hero theme. I have done this on haykuro 6.0H and it has worked. I tried to remove HTCLauncher.apk from /system/app and push the new Launcher.apk in it but I have this errors on logcat:

before resigning:

D/PackageParser( 79): Scanning package: /system/app/Launcher.apk
I/PackageManager( 79): /system/app/Launcher.apk changed; collecting certs
W/PackageParser( 79): Exception reading /system/app/Launcher.apk
W/PackageParser( 79): java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for AndroidManifest.xml in /system/app/Launcher.apk
W/PackageParser( 79): at java.util.jar.JarVerifier.verifySignatures(JarVerifier.java:398)
W/PackageParser( 79): at java.util.jar.JarFile$JarFileInputStream.read(JarFile.java:124)
W/PackageParser( 79): at android.content.pm.PackageParser.loadCertificates(PackageParser.java:213)
W/PackageParser( 79): at android.content.pm.PackageParser.collectCertificates(PackageParser.java:346)
W/PackageParser( 79): at com.android.server.PackageManagerService.collectCertificatesLI(PackageManagerService.java:1734)
W/PackageParser( 79): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:1783)
W/PackageParser( 79): at com.android.server.PackageManagerService.access$1200(PackageManagerService.java:104)
W/PackageParser( 79): at com.android.server.PackageManagerService$AppDirObserver.onEvent(PackageManagerService.java:3187)
W/PackageParser( 79): at android.os.FileObserver$ObserverThread.onEvent(FileObserver.java:91)
W/PackageParser( 79): at android.os.FileObserver$ObserverThread.observe(Native Method)
W/PackageParser( 79): at android.os.FileObserver$ObserverThread.run(FileObserver.java:56)
I/PackageManager( 79): Failed verifying certificates for package:com.android.launcher

after resigning:

D/PackageParser( 79): Scanning package: /system/app/Launcher.apk
I/PackageManager( 79): /system/app/Launcher.apk changed; collecting certs
D/dalvikvm( 79): GC freed 8212 objects / 532656 bytes in 203ms
D/PackageManager( 79): Scanning package com.android.launcher
D/PackageManager( 79): Shared UserID android.uid.shared (uid=10026): packages=[PackageSetting{437583a0 com.htc.CustomizationSetup/10026}, PackageSetting{4379da08 com.android.providers.im/10026}, PackageSetting{437466b8 com.android.contacts/10026}, PackageSetting{4372c9f8 com.htc.provider.CustomizationSettings/10026}, PackageSetting{437571a8 com.android.googlesearch/10026}, PackageSetting{437568c8 com.android.launcher/10026}, PackageSetting{43755d98 com.android.providers.contacts/10026}]
W/PackageManager( 79): Package com.android.launcher codePath changed from /system/app/HTCLauncher.apk to /system/app/Launcher.apk; replacing with new
E/PackageManager( 79): Package com.android.launcher has no signatures that match those in shared user android.uid.shared; ignoring!

after resigning apks in framework I can install the resigned one!

I think it's because when system boots the package installer scan framework directory before app directory and register the framework signature for android.uid.shared before scaning app. If framework has been signed with other key (release key I think) that one was used for Launcher.apk the system won't install it!

sorry for my bad english!