Finally I managed to discover a way to sign my application with the platform signature. You need to use keys located in /build/target/product/security/ and add android:sharedUserId='android.uid.system' in your AndroidManifest.xml file. Details from: On top of signing Android 1.6 for Dream with certificates generated by myself, I've also managed to sign my app with the platform certificate and run it with the system sharedUserId.
These are the steps I took:. Build and flash to your Dream your own Android using. Use the mkkey.sh script on to create new certificates, including x509 certificates before you do 'make'. In the AndroidManifest.xml of your application: under the element, add the attribute android:sharedUserId='android.uid.system'.
Google Chromecast Android App. I am working on a app where i am playing video on large screen using google chromecastNow my problem is when i play a video from list it plays only the selected video and to play next i have to add it to queue manually.
Export an unsigned version of your Android application using Eclipse: right-click on the project Android Tools Export Unsigned Application Package. Use /out/host//framework/signapk.jar to sign your app using platform.x509.pem and platform.pk8 in /build/target/product/security generated earlier: java -jar signapk.jar platform.x509.pem platform.pk8 YourApp-unsigned.apk YourApp-signed.apk. Install the app to your device: adb install YourApp-signed.apk. Run your app. Use adb shell ps to confirm that your app is running as system.