Skip to content

Instantly share code, notes, and snippets.

View ganadist's full-sized avatar

YOUNG HO CHA (aka ganachoco) ganadist

  • Seoul, Republic of Korea
View GitHub Profile
@ganadist
ganadist / fstab.ramplus
Last active February 2, 2022 15:56
Ram-Plus implementation from Galaxy Fold 3 (SM-F926N)
### /vendor/etc/fstab.ramplus
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
# SWAP
/dev/block/zram0 none swap defaults zramsize=2147483648,auto_configure
@ganadist
ganadist / dmitriRender_registerFilter.bat
Created May 28, 2020 16:30
Modified batch file to check Administrative permissions
@echo off
:check_Permissions
echo Administrative permissions required. Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed.
) else (
echo Failure: Administrative permissions needs.
echo Please see %APPDATA%\DmitriRender\Help\players.html
--- opencv-2.4.13.6/cmake/OpenCVFindLibsGrfmt.cmake.bak 2020-04-24 13:33:01.754834282 +0900
+++ opencv-2.4.13.6/cmake/OpenCVFindLibsGrfmt.cmake 2020-04-24 13:33:33.498503698 +0900
@@ -7,12 +7,9 @@
ocv_clear_vars(ZLIB_FOUND)
else()
include(FindZLIB)
- if(ZLIB_FOUND AND ANDROID)
- if(ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so" OR
- ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib64/libz.so")
+ if(ANDROID)
plugins {
`kotlin-dsl`
}
repositories {
val r8Version = findProperty("r8Version")?.toString()
if (!r8Version.isNullOrEmpty()) {
if (r8Version.contains(".")) {
// R8 release maven repository, and r8Version format is x.y.z
maven("http://storage.googleapis.com/r8-releases/raw")
plugins {
`kotlin-dsl`
}
repositories {
val r8Version = findProperty("r8Version")?.toString()
if (!r8Version.isNullOrEmpty()) {
if (r8Version.contains(".")) {
// R8 release maven repository, and r8Version format is x.y.z
maven("http://storage.googleapis.com/r8-releases/raw")
E AndroidRuntime: Caused by: java.lang.ClassCastException:
$Proxy0 cannot be cast to com.example.myapplication.ServiceClientFactory$ServiceClientImpl1
E AndroidRuntime: at com.example.myapplication.MainActivity.onCreate(MainActivity.java:15)
E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7136)
E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7127)
E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2905)
E AndroidRuntime: ... 11 more
W ActivityManager: Force finishing activity com.example.myapplication/.MainActivity
D ActivityTrigger: ActivityTrigger activityPauseTrigger
@ganadist
ganadist / MissingSplitsManagerFactory.java
Last active January 7, 2020 13:03
MissingSplitsManagerFactory source codes
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.google.android.play.core.missingsplits;
import android.content.Context;
import java.util.concurrent.atomic.AtomicReference;
$ bazel build oauth
DEBUG: Rule 'com_googlesource_gerrit_bazlets' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1562699450 -0400"
DEBUG: Call stack for the definition of repository 'com_googlesource_gerrit_bazlets' which is a git_repository (rule definition at /home/ganadist/.cache/bazel/_bazel_ganadist/9b342cb1427f200d4458a90f8be4bf82/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):
- /home/ganadist/src/build/gerrit/plugins-oauth/bazlets.bzl:9:9
- /home/ganadist/src/build/gerrit/plugins-oauth/WORKSPACE:5:1
INFO: Call stack for the definition of repository 'gerrit_plugin_api' which is a maven_jar (rule definition at /home/ganadist/.cache/bazel/_bazel_ganadist/9b342cb1427f200d4458a90f8be4bf82/external/com_googlesource_gerrit_bazlets/tools/maven_jar.bzl:163:13):
- /home/ganadist/.cache/bazel/_bazel_ganadist/9b342cb1427f200d4458a90f8be4bf82/external/com_googlesource_gerrit_bazlets/gerrit_api_maven_local.bzl:13:5
- /home/ganadist/src/build/gerr
$ git show
commit 6e54850e3799782070b1a3e2e3659150bbb74a60 (HEAD -> dev, origin/master, origin/HEAD, master)
Merge: 7d1d409 be359a0
Author: Marco Miller <[email protected]>
Date: Tue Jul 9 12:01:08 2019 -0400
Merge branch 'stable-3.0'
* stable-3.0:
Upgrade bazlets to latest stable-3.0 to build with 3.0.1 API
06-19 07:44:10.981 4941 4941 D SoLoader: init start
06-19 07:44:10.981 4941 4941 D SoLoader: adding system library source: /vendor/lib
06-19 07:44:10.981 4941 4941 D SoLoader: adding system library source: /system/lib
06-19 07:44:10.982 4941 4941 D SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/test.kotlin.yoga.soloader.crash-xltKwT6yTdbT8PczqB_4QQ==/lib/arm64 flags = 0]
06-19 07:44:10.983 4941 4941 D SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/test.kotlin.yoga.soloader.crash/lib-main flags = 1]
06-19 07:44:10.983 4941 4941 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
06-19 07:44:10.983 4941 4941 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
06-19 07:44:10.983 4941 4941 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/test.kotlin.yoga.soloader.crash