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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.trifork.example" | |
android:installLocation="auto" | |
android:versionName="@string/client_info" > | |
<!-- ... --> | |
<application | |
android:hardwareAccelerated="true" |
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 overrideProviderAuthority(packageName, inFile, outFile) { | |
def xml = new XmlParser().parse(inFile) | |
xml.findAll{it.name() == 'string'}.each{item -> | |
if (!item.value().isEmpty() && item.value()[0] instanceof String && item.value()[0].startsWith(".res-auto")) { | |
item.value()[0] = item.value()[0].replace(".res-auto", packageName) | |
} | |
} | |
saveXML(outFile, xml) |
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
BufferedWriter bw = new BufferedWriter(new FileWriter(file)); | |
bw.write(sb.toString()); | |
bw.close(); | |
Intent sendIntent = new Intent(Intent.ACTION_SEND); | |
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "MyTrails state dump"); | |
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"}); | |
sendIntent.putExtra(Intent.EXTRA_TEXT, "See attachment"); | |
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getAbsolutePath())); | |
sendIntent.setType("text/plain"); |
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
root@m0:/ # which su | |
/system/bin/su | |
root@m0:/ # ls -la `which su` | |
lrwxrwxrwx root root 2014-02-12 10:02 su -> ../xbin/su | |
root@m0:/ # ls -la /system/app | |
-rw-r--r-- root root 1573262 2008-08-01 14:00 Apollo.apk | |
-rw-r--r-- root root 32941 2008-08-01 14:00 BasicDreams.apk | |
-rw-r--r-- root root 1951013 2008-08-01 14:00 Bluetooth.apk | |
-rw-r--r-- root root 154371 2008-08-01 14:00 BluetoothExt.apk | |
-rw-r--r-- root root 2645747 2008-08-01 14:00 Browser.apk |
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
#! /usr/bin/python | |
import argparse | |
import os.path | |
import glob | |
parser = argparse.ArgumentParser( | |
formatter_class=argparse.RawDescriptionHelpFormatter, | |
description='''\ | |
Replacing values in arrays.xml with @string/ links. Generates three new files for each locale: |
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
package com.frogsparks.mytrails.util; | |
import android.os.Environment; | |
import com.frogsparks.mytrails.MyTrails; | |
import java.io.File; | |
import java.util.*; | |
// http://stackoverflow.com/a/15612964/304876 |
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
11:51:03.534 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :processGoogleReleaseManifest (Thread[Daemon,5,main]) completed. Took 0.209 secs. | |
11:51:03.534 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon,5,main]] finished, busy: 2.098 secs, idle: 0.021 secs | |
11:51:03.541 [ERROR] [org.gradle.BuildExceptionReporter] | |
11:51:03.545 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. | |
11:51:03.546 [ERROR] [org.gradle.BuildExceptionReporter] | |
11:51:03.547 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: | |
11:51:03.547 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':processGoogleReleaseManifest'. | |
11:51:03.548 [ERROR] [org.gradle.BuildExceptionReporter] > No enum constant com.android.manifmerger.AttributeOperationType.IGNORE | |
11:51:03.553 [ERROR] [org.gradle.BuildExceptionReporter] | |
11:51:03.554 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: |
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
ACTION_ACCESSIBILITY_FOCUS] | |
06-14 09:07:46.465 13395-13395/com.lastpass.lpandroid E/AccessibilityNodeInfoCache﹕ Disconneced node: android.view.accessibility.AccessibilityNodeInfo@16d782; boundsInParent: Rect(541, 3 - 602, 35); boundsInScreen: Rect(389, -44 - 433, -21); packageName: mobi.mgeek.TunnyBrowser; className: android.view.View; text: null; contentDescription: SPORT Link; viewIdResName: null; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: true; longClickable: false; enabled: true; password: false; scrollable: false; [ACTION_FOCUS, ACTION_CLICK, ACTION_ACCESSIBILITY_FOCUS] | |
06-14 09:07:46.465 13395-13395/com.lastpass.lpandroid E/AccessibilityNodeInfoCache﹕ Disconneced node: android.view.accessibility.AccessibilityNodeInfo@16d7c0; boundsInParent: Rect(601, 3 - 679, 35); boundsInScreen: Rect(432, -44 - 488, -21); packageName: mobi.mgeek.TunnyBrowser; className: android.view.View; text: null; contentDescription: SCIENCES Link; viewIdResName: null; checkable: |
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
### Keybase proof | |
I hereby claim: | |
* I am paour on github. | |
* I am paour (https://keybase.io/paour) on keybase. | |
* I have a public key whose fingerprint is A400 021D 4B81 9184 B98D 3F08 9615 F14C 0898 1094 | |
To claim this, I am signing this object: |
OlderNewer