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
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
#! /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
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
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
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
<?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" |
NewerOlder