Skip to content

Instantly share code, notes, and snippets.

@yhpark
yhpark / encodeBaseString.js
Last active January 27, 2017 23:29
OAuth 1.0a signature base string with form data
function percentEncode(string) {
var char, charCode, i;
var encodedString = '';
for (i=0; i<string.length; i++) {
char = string.charAt(i);
if ((char >= '0' && char <= '9') ||
(char >= 'A' && char <= 'Z') ||
(char >= 'a' && char <= 'z') ||
(char == '-') || (char == '.') ||
@yhpark
yhpark / README.md
Last active February 13, 2017 01:23
RIL forwarding via tcp

Android RIL Forwarding via TCP

This is modified version of ril.cpp where one device (server) ignores its vendor RIL and use the other device's (client) RIL by sending the server's RIL data, originally transmitted to Android's Java layer, to client via TCP socket and vice versa. The result is that the client recognizes the server's RIL data (mobile network status, incoming call/SMS, ...) as if the server's USIM is inserted in the client device.

Demo Video

https://www.youtube.com/watch?v=EpkQaBxv_m4

Implementation

### Keybase proof
I hereby claim:
* I am yhpark on github.
* I am yhpark (https://keybase.io/yhpark) on keybase.
* I have a public key whose fingerprint is A44A 49BD F5D2 0AA1 5C85 6BE9 1C28 AC90 6474 1CC8
To claim this, I am signing this object: