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
#!/bin/bash | |
prog=$(basename $0) | |
if [ ! -f build/envsetup.sh ]; then | |
echo ${prog}: Please cd to the directory you ran \'repo init\' in. | |
exit 1 | |
fi | |
source build/envsetup.sh |
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
============================= | |
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html | |
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html | |
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html | |
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html | |
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html | |
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html | |
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html |
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
#!/bin/sh -e | |
# | |
# Save this file as ~/bin/git-submit | |
# | |
# Usage: git submit [--draft] [remote] | |
# Example: | |
# 'git submit' executed on a Git branch tracking origin/master will push to refs/for/master. | |
# | |
REMOTE=origin |
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
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.animation.AccelerateDecelerateInterpolator; | |
import android.view.animation.Interpolator; |
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
/* | |
* --send_intent=anystring - write the text out to recovery.intent | |
* --update_package=path - verify install an OTA package file | |
* --wipe_data - erase user data (and cache), then reboot | |
* --wipe_cache - wipe cache (but not user data), then reboot | |
* --set_encrypted_filesystem=on|off - enables / diasables encrypted fs | |
* --just_exit - do nothing; exit | |
*/ |
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
def WriteFullOTAPackage(input_zip, output_zip): | |
… | |
# comment the following line: | |
script.AssertOlderBuild(ts); |
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
try { | |
File otafileloc = new File("/cache/update.zip"); | |
// Verify the cryptographic signature before installing it. | |
RecoverySystem.verifyPackage(otafileloc, null, null); | |
// Reboots the device into recovery mode to install the update package. | |
RecoverySystem.installPackage(getApplicationContext(), otafileloc); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} catch (GeneralSecurityException e) { | |
e.printStackTrace(); |
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 int doInBackground(Void... notused) { | |
final File dest = new File("/cache/update.zip"); | |
InputStream is = null; | |
OutputStream os = null; | |
try { | |
URL getUrl = new URL(romInfo.url); | |
destFile.getAbsolutePath()); | |
URLConnection conn = getUrl.openConnection(); | |
conn.connect(); | |
is = new BufferedInputStream(conn.getInputStream()); |
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
<receiver android:name="com.example.UpdateCheckReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED"></action> | |
</intent-filter> | |
</receiver> |
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(); |
NewerOlder