Skip to content

Instantly share code, notes, and snippets.

@seinlin
seinlin / tarako_flash
Created December 24, 2016 09:40 — forked from dolftax/tarako_flash
Instructions to set-up tarako device
===== Install adb =====
Open a terminal window and type:
sudo apt-get install android-tools-adb android-tools-fastboot
===== Configure usb =====
Then type:
sudo nano /etc/udev/rules.d/51-android.rules
And enter these lines into the file (note: this adds rules for keon, ZTE Open, and tarako):
SUBSYSTEM==”usb”, ATTR{idVendor}==”05c6″, ATTR{idProduct}==”8013″, MODE=”0666″
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1782", MODE="0666"
@seinlin
seinlin / console
Created December 7, 2015 10:54 — forked from dmitriy-kiriyenko/console
Init.d to start/stop xvfb. Put it into /etc/init.d and chmod it to 755
apt-get install xvfb
apt-get install firefox
@seinlin
seinlin / gist:f8fa3e10f46aaeede6f3
Last active October 5, 2016 05:46
Upgrade flame and install Myanmar keyboard.
1.
Enable developer menu.
Settings -> Device information -> More Information -> Developer Menu (enabled)
Settings -> Developer -> Debugging via USB (select ADB and DevTools)
(Note: adb can't access the device while it is in locked state.)
2.
Download and update base image (Base image v188.zip) from
https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame
@seinlin
seinlin / gist:d18654d4fafd782fefca
Created June 28, 2015 06:07
Get adb work with Cherry Mobile Ace
1.
$ sudo vi /etc/udev/rules.d/51-android.rules
Add this line, then save and exit
--
SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0666", GROUP="plugdev"
--
2.
$ vi ~/.android/adb_usb.ini
Add '0x1782' in this file, then save and exit.
@seinlin
seinlin / WifiUtils.h
Created November 26, 2013 02:11
Diff between JB and KK for WiFi.
diff --git a/dom/wifi/WifiUtils.h b/dom/wifi/WifiUtils.h
index fd81f80..0d4e923 100644
--- a/dom/wifi/WifiUtils.h
+++ b/dom/wifi/WifiUtils.h
@@ -87,10 +87,10 @@ class WpaSupplicantImpl
{
public:
virtual int32_t
- do_wifi_wait_for_event(const char *iface, char *buf, size_t len) = 0; // ICS != JB
+ do_wifi_wait_for_event(const char *iface, char *buf, size_t len) = 0; // ICS != JB != KK