Skip to content

Instantly share code, notes, and snippets.

View Ch3D's full-sized avatar
🏠
Working from home

Dmitry Ch3D

🏠
Working from home
View GitHub Profile
@Ch3D
Ch3D / code.kt
Created November 23, 2017 15:02 — forked from chrisbanes/code.kt
Night Mode inflater
/*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Ch3D
Ch3D / Progress.java
Created July 18, 2018 12:56
Retrofit uploading progress
/*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Ch3D
Ch3D / release-android-debuggable.md
Created July 15, 2020 11:53 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
<!DOCTYPE html>
<html>
<head>
<title>AMBOSS DeepLinks test</title>
</head>
<body>
<h1>Article links</h1>
<ul>
<li>
<a href="https://next.amboss.com/us/article/GT0BH2#4OW3sl0">Sickle cell disease</a>