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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.8.+' | |
} | |
} | |
apply plugin: 'android' |
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.alanjeon.okhttptest; | |
import com.squareup.okhttp.OkHttpClient; | |
import android.app.Activity; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; |
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
180 DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
180 DEBUG I Build fingerprint: 'lge/geehrc_open_eu/geehrc:4.1.2/JZO54K/E97510b.1360741472:user/release-keys' | |
180 DEBUG I Revision: '11' | |
180 DEBUG I pid: 14422, tid: 14477, name: GAThread >>> com.alanjeon.twitplus <<< | |
180 DEBUG I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 | |
180 DEBUG I r0 74e4bb1c r1 ffffffff r2 00000008 r3 731a8065 | |
180 DEBUG I r4 731a8065 r5 731a8066 r6 00000000 r7 731a8065 | |
180 DEBUG I r8 00000020 r9 731a8065 sl 00000000 fp 74e4bb1c | |
180 DEBUG I ip 6f218da0 sp 74e4ba98 lr 6f2012f3 pc 40a99430 cpsr 000d0030 | |
180 DEBUG I d0 0000000000000000 d1 0000000000000000 |
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
class WebViewClientEx extends WebViewClient { | |
private static final String URL_ADSENSE_SHOW_ADS_JS | |
= "pagead2.googlesyndication.com/pagead/show_ads.js"; | |
public android.webkit.WebResourceResponse shouldInterceptRequest(WebView view, String url) { | |
if (Build.VERSION.SDK_INT >= 15 | |
&& url.endsWith(URL_ADSENSE_SHOW_ADS_JS)) { | |
HttpURLConnection conn = null; | |
try { |
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 () { | |
var f = !0, | |
g = null, | |
h = !1, | |
aa = function (a, b, c) { | |
return a.call.apply(a.bind, arguments) | |
}, ba = function (a, b, c) { | |
if (!a) throw Error(); | |
if (2 < arguments.length) { | |
var d = Array.prototype.slice.call(arguments, 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
[INFO] ------------------------------------------------------------------------ | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Google Android Library (Implementation) 4.1.1.4 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ android-impl --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ android-impl --- |
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
Index: compare.sh | |
=================================================================== | |
--- compare.sh (revision 55) | |
+++ compare.sh (working copy) | |
@@ -37,9 +37,13 @@ | |
#export platform=android-14 | |
# android-16 | |
-export pomVersion=4.1.1.4 | |
-export platform=android-16 |
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
import android.content.Context; | |
import android.support.v4.content.AsyncTaskLoader; | |
public abstract class AsyncLoader<D> extends AsyncTaskLoader<D> { | |
private D data; | |
public AsyncLoader(Context context) { | |
super(context); | |
} |
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
555 WifiServiceExt V checkPollTimer Cnt= 0 rssi =-58 threshold=-100 | |
1046 TELProfiling D [getValue] ---> key lgu_global_roaming Vale null | |
1046 SignalStrength W [Helen] Not AT&T | |
1046 SignalStrength W SignalStrength after validate=SignalStrength: 99 0 -120 -160 -120 -1 -1 25 -94 -15 22 2147483647 2147483647 cdma 0 | |
1046 SignalStrength W [Helen] Enter RSSI - mGsmSignalStrength=99Dbm=-160 | |
555 SignalStrength W getLevelKR level =5 | |
555 CNE W mDefaultApnLinkProp is null | |
781 SignalStrength W getLevelKR level =5 | |
555 CNE_DEBUG I getSignalStrength networkType= 13 | |
555 CNE_DEBUG I CNE sendWwanStatus - type:13 strength:-1 ipV4Addr:null roaming:0 iface:null timeStamp:2013-01-13 14:19:08.275 |
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
static byte[] getSecureRawKey(String seed) { | |
/* | |
* check http://www.motorola.com/sites/motodev/library/using_aes_in_android.html | |
* for detail information | |
*/ | |
char[] humanPassphrase = seed.toCharArray(); | |
byte[] salt = { | |
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF | |
}; // must save this! | |
final int HASH_ITERATIONS = 10000; |