Skip to content

Instantly share code, notes, and snippets.

@yhpark
yhpark / encodeBaseString.js
Last active Jan 27, 2017
OAuth 1.0a signature base string with form data
View encodeBaseString.js
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 Feb 13, 2017
RIL forwarding via tcp
View README.md

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

View gist:97c59f7d728c47483ae5
### 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:
You can’t perform that action at this time.