This file contains hidden or 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
public static Process runSuCommandAsync(Context context, String command) throws IOException | |
{ | |
DataOutputStream fout = new DataOutputStream(context.openFileOutput(SCRIPT_NAME, 0)); | |
fout.writeBytes(command); | |
fout.close(); | |
String[] args = new String[] { "su", "-c", ". " + context.getFilesDir().getAbsolutePath() + "/" + SCRIPT_NAME }; | |
Process proc = Runtime.getRuntime().exec(args); | |
return proc; | |
} |
This file contains hidden or 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
diff --git a/Android.mk b/Android.mk | |
index d8fea85..2b8ee98 100644 | |
--- a/Android.mk | |
+++ b/Android.mk | |
@@ -30,8 +30,8 @@ include $(CLEAR_VARS) | |
# Build libv8 and v8shell | |
# TODO: remove the check when the v8 build is fixed for x86 | |
ifeq ($(TARGET_ARCH),arm) | |
- ENABLE_V8_SNAPSHOT = true | |
- include $(BASE_PATH)/Android.mksnapshot.mk |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
namespace FacebookChallenge | |
{ | |
class Program | |
{ | |
static readonly string accessToken = "GET YOUR OWN FOO"; | |
static readonly string baseUrl = "https://graph.facebook.com/{0}/{1}?access_token={2}"; |
This file contains hidden or 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
using System; | |
using Android.App; | |
using Android.Content; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
using Android.OS; | |
using System.Threading; |
This file contains hidden or 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
{ | |
version: 1, | |
homepage: "http://www.cyanogenmod.com/", | |
donate: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3283920", | |
roms: [{ | |
name: "CyanogenMOD 6.0.0-RC2 EBI1", | |
summary: "CyanogenMOD 6.0.0-RC2 for EBI1 devices", | |
device: "magic", | |
product: "CyanogenMod", | |
incremental: "6002", |
This file contains hidden or 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
int GC_suspend_all() | |
{ | |
int n_live_threads = 0; | |
int i; | |
GC_thread p; | |
int result; | |
pthread_t my_thread = pthread_self(); | |
GC_stopping_thread = my_thread; /* debugging only. */ | |
GC_stopping_pid = getpid(); /* debugging only. */ |
This file contains hidden or 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
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
typedef struct pthread_internal_t | |
{ | |
struct pthread_internal_t* next; | |
struct pthread_internal_t** pref; | |
pthread_attr_t attr; |
This file contains hidden or 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
function generatelink() { | |
var romname = $("#romname"); | |
var romurl = $("#romurl"); | |
$.ajax({ | |
url: "http://api.bit.ly/v3/shorten?login=koush&apiKey=R_b12315a324b430e592df51c655fa2691&longUrl=https:\/\/tickleservice.appspot.com/authorizedtickle?applicationId=ROM%20Manager&data.url=" + romurl.innerHTML + "&data.name=" + romname.innerHTML, | |
type: "GET", | |
dataType: "jsonp", | |
success: function(msg) { | |
var shortlink = $("#shortlink"); | |
shortlink.innerHTML = msg.data.url; |
This file contains hidden or 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
--> --> --> | |
Traceback (most recent call last): | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3206, in _HandleRequest | |
self._Dispatch(dispatcher, self.rfile, outfile, env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3149, in _Dispatch | |
base_env_dict=env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 525, in Dispatch | |
base_env_dict=base_env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2402, in Dispatch | |
self._module_dict) |
This file contains hidden or 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
package com.koushikdutta.rommanager; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
public class Settings | |
{ |
OlderNewer