Skip to content

Instantly share code, notes, and snippets.

@KreAch3R
KreAch3R / ssh-101.md
Created December 16, 2018 23:06
Everyone should know how to use ssh in linux.
@KreAch3R
KreAch3R / wsl-mount-network-drives.md
Last active August 23, 2018 16:27
WSL: Mount network drives through /etc/fstab
@KreAch3R
KreAch3R / tb8504x-fix-facelock.md
Last active January 3, 2020 02:17
Lenovo Tab 4 8 (tb-8504x) fix facelock crash

Lenovo Tab 4 8 - Fix facelock crash

I noticed that a Lenovo tab 4 8 (tb-8504x) on the latest stock image as of today didn't have a working face unlock ("facelock"). When it was time to add a new face, it crashed with the following log:

08-16 17:39:34.379  6600  6600 D AndroidRuntime: Shutting down VM
08-16 17:39:34.380  6600  6600 E AndroidRuntime: FATAL EXCEPTION: main
08-16 17:39:34.380  6600  6600 E AndroidRuntime: Process: com.android.facelock, PID: 6600
08-16 17:39:34.380  6600  6600 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN6google8protobuf5Arena15AllocateAlignedEPKSt9type_infom" referenced by "/system/lib64/libfacenet.so"...
08-16 17:39:34.380  6600  6600 E AndroidRuntime:        at java.lang.Runtime.loadLibrary0(Runtime.java:989)
08-16 17:39:34.380  6600  6600 E AndroidRuntime:        at java.lang.System.loadLibrary(System.java:1530)
@KreAch3R
KreAch3R / adb-ssh.md
Last active October 30, 2024 23:16
SSH: connect to a remote ADB server

Case:

A laptop running Android Studio and a linux server somewhere (office, basement, other side of the world) with connected Android devices. (No Android device connected on local laptop). Normally, you would have to unplug the device from the server, plug it into the laptop, continue development.

Now you can skip this.

(From now on, local is the laptop. The machine which doesn't have anything connected. remote is the machine which has the adb devices but doesn't have anything useful to do with them)

It can work both for Windows WSL and Linux local.