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
adb shell | |
run-as com.example.myapp | |
ls | |
#To pull a file - Needs root | |
adb pull data/data/com.example.myapp/path/to/file |
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
license: gpl-3.0 |
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 | |
function clean_up { | |
# Perform program exit housekeeping | |
echo -n "Cleanup? [y/n]: " | |
read | |
if [ "$REPLY" = "y" ]; then | |
echo "Cleaning...." | |
cd .. | |
rm -rf distribution |
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 UIKit | |
class SegueFromLeft: UIStoryboardSegue { | |
override func perform() { | |
let src = self.source | |
let dst = self.destination | |
src.view.superview?.insertSubview(dst.view, aboveSubview: src.view) | |
dst.view.transform = CGAffineTransform(translationX: -src.view.frame.size.width, y: 0) | |
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
UserDefaults.standard.set("1", forKey: "/google/measurement/debug_mode") |
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
/** | |
error: Android dependency 'com.android.support:support-v4' has different version for the compile (25.2.0) and runtime (25.3.1) | |
classpath. You should manually set the same version via DependencyResolution | |
solution: dependency rule to always resolve with a fixed version | |
description: this problem comes when using implementation 'com.android.support:suppport-v4:25.3.1' | |
because implementation forces all version of support libraries to match, | |
if this becomes necessary then we had to add a dependency resolution because | |
google play services base causes trouble even at version 11.8.0 by bringing version 25.2.0 as its dependency. | |
*/ |
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
-- Instructions: Run Q1 and Q2 independently, then run the join at the bottom to understand all parts in this query. | |
-- Q1 Gives us the latest version for each pod with its version_id and the corresponding pod_id | |
-- Reference: https://stackoverflow.com/a/19602031/1904232 | |
select | |
latest_version, | |
pod_versions.id as version_id, | |
latest_pods.pod_id |
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.es.thirdparty.taboola; | |
import com.eachscape.managers.LogMgr; | |
import com.taboola.android.api.TaboolaOnClickListener; | |
public class TaboolaOnClickListenerDispatcher implements TaboolaOnClickListener { | |
private static final String TAG = TaboolaOnClickListenerDispatcher.class.getSimpleName(); | |
private static TaboolaOnClickListenerDispatcher sharedInstance; |