This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm build/target/product/security/*.p* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /development/tools/make_key build/target/product/security/media ‘/C=US/ST=Utah/L=Salt Lake City/O=Android/OU=Android/CN=Android/emailAddress=android@example.com’ | |
$ /development/tools/make_key build/target/product/security/platform ‘/C=US/ST=Utah/L=Salt Lake City/O=Android/OU=Android/CN=Android/emailAddress=android@example.com’ | |
$ /development/tools/make_key build/target/product/security/shared ‘/C=US/ST=Utah/L=Salt Lake City/O=Android/OU=Android/CN=Android/emailAddress=android@example.com’ | |
$ /development/tools/make_key build/target/product/security/testkey ‘/C=US/ST=Utah/L=Salt Lake City/O=Android/OU=Android/CN=Android/emailAddress=android@example.com’ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ build/target/product/security/openssl x509 -noout -subject -issuer -in media.x509.pem | |
$ build/target/product/security/openssl x509 -noout -subject -issuer -in shared.x509.pem | |
$ build/target/product/security/openssl x509 -noout -subject -issuer -in platform.x509.pem | |
$ build/target/product/security/openssl x509 -noout -subject -issuer -in testkey.x509.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /build/tools/releasetools/sign_target_files_apks -d build/target/product/security/ out/target/product/ product_name/someotafile.zip out/target/product/ product_name/signed-target_files.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -jar /build/tools/signapk/signapk.jar testkey.x509.pem testkey.pk8 [update.zip] [update-signed.zip] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make otapackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make target-files-package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" /> | |
<uses-permission android:name="android.permission.DELETE_CACHE_FILES" /> | |
<uses-permission android:name="android.permission.REBOOT" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name=".FOTAUpdaterActivity" | |
android:label="System Updates"> | |
<intent-filter> | |
<action android:name="android.settings.SYSTEM_UPDATE_SETTINGS" /> | |
<action android:name="android.intent.action.MAIN" /> | |
</intent-filter> | |
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private RomInfo doInBackground(Void... notused) { | |
//Check Network availability | |
ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>(); | |
params.add(new BasicNameValuePair("device",android.os.Build.DEVICE.toLowerCase())); | |
params.add(new BasicNameValuePair("rom", Utils.getRomID())); | |
HttpClient client = new DefaultHttpClient(); | |
HttpGet get = new HttpGet(SERVER_PULL_URL + "?" + URLEncodedUtils.format(params, "UTF-8")); | |
HttpResponse r = client.execute(get); | |
int status = r.getStatusLine().getStatusCode(); |
OlderNewer