FalconIA's BLOG

FalconIA's Lazy Blog

  • 留言本

Turn airplane mode on/off via ADB

Posted by FalconIA on 2014-12-01
Posted in: 技术杂烩. Tagged: adb, android. Leave a Comment

Method 1 (4.2 or higher):
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

Method 2:
adb shell am start -a android.settings.AIRPLANE_MODE_SETTINGS
adb shell input keyevent 19
adb shell input keyevent 23
adb shell input keyevent 4

Method 3:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update system set value='1' where name='airplane_mode_on';"

Optimize iptables reject rules

Posted by FalconIA on 2014-12-01
Posted in: 技术杂烩. Tagged: iptables, linux. Leave a Comment

We always use this rule to notice a interloper that the service was prohibited.
-A INPUT -j REJECT --reject-with icmp-host-prohibited
But, I think it's better to disguise the rejection as no service, rather than notice a interloper there was a service you cannot reache.
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -j REJECT --reject-with icmp-host-prohibited

How to modify SystemUI.apk to remove volume soft keys in system bar

Posted by FalconIA on 2014-01-27
Posted in: 程序相关. Tagged: android. Leave a Comment

Environment:
Android with root access.
Windows with drivers for Android device.
Java(JRE) installed.

Prepare:
apktool.jar (http://code.google.com/p/android-apktool/downloads/list)
adb.exe (android-sdk\platform-tools)
notepad++ or similar text editor which supported UTF-8 without BOM, not notepad or wordpad.

Continue Reading

[Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc

Posted by FalconIA on 2013-03-02
Posted in: 系统相关. Tagged: ubuntu, vnc. 4 comments

Quoted: http://seb.so/vnc-from-boot-without-logging-in-ubuntu-lubuntu-xubuntu-and-mint-lmde/

Instructions

LightDM apparently supports a VNC server out of the box; however, it’s designed to work with tightvncserver (or similar) which create separate X sessions (the 2nd lot of VNC servers I mentioned above) so not quite what we’re after1.
Ubuntu derivatives use Upstart (upstart.ubuntu.com) to manage startup processes - LightDM (and GDM!) creates a login-session-start event when the display manager is up (i.e. when X is all loaded, but before you’ve logged in) so we’ll create an upstart job that listens for that, and starts a VNC server on the existing X session, allowing connections before login.
Continue Reading

How to fix android exception of Sherlock: unable to pause activity

Posted by FalconIA on 2012-11-25
Posted in: 程序相关. Tagged: android, sherlock. 1 comment

How to fix android exception of Sherlock: unable to pause activity

Replace the android-support-v4.jar in the libs folder with the latest one from the SDK Manager.

Enable numlock on in LightDM

Posted by FalconIA on 2012-02-08
Posted in: 系统相关. Tagged: lightdm, linux, ubuntu. Leave a Comment

$ sudo apt-get install numlockx
$ sudo gedit /etc/lightdm/lightdm.conf

add this line at he end
greeter-setup-script=/usr/bin/numlockx on

Ubuntu 10.04 get exFat support.

Posted by FalconIA on 2012-01-16
Posted in: 系统相关. Tagged: exfat, ubuntu. Leave a Comment

Get exFat support for Ubuntu 10.04 LTS.

Get fuse-exfat
$ sudo add-apt-reprository ppa:relan/exfat
$ sudo apt-get update
$ sudo apt-get install fuse-exfat

Create mount point.
$ sudo mkdir /media/Data

Manually mount:
$ sudo mount -t exfat-fuse /dev/sda6 /media/Data
umount:
$ sudo umount /media/Data

Automatically mount (by edit fstab):
$ sudo gedit /etc/fstab
add new line
/dev/sda6 /media/Data exfat-fuse defaults 0 0
save and restart.

*1 '/dev/sda6' is Device ID, could be '/dev/sdXX', such as '/dev/sdb1', please check in Disk Utility.
*2 Someone says, update util-linux-ng 2.17 to 2.18, ubuntu will identify exfat automatically, but still need fuse-exfat. (actually not test)

使用Firefox解除国内(大陆)视频网站IP限制

Posted by FalconIA on 2012-01-09
Posted in: 技术杂烩. Tagged: IP限制, 优酷, 土豆, 看看, 迅雷. 7 comments

大陆视频网站土豆(tudou.com)、优酷(youku.com)、迅雷看看(kankan.xunlei.com)对部分视频做了IP限制。

下面使用Firefox的FoxyProxy插件欺骗IP检测。
优点是:只用代理欺骗IP检测页,不会因为免费代理速度过慢影响网页浏览及视频播放。

Continue Reading

PSPISO Info Tool 1.1

Posted by FalconIA on 2011-11-17
Posted in: 动漫游戏, 原创作品. Tagged: game, psp, 发布, 编程. Leave a Comment

PSPISO Info Tool 1.1

Read PSP ISO info.
// 读取PSPISO信息

Download: [download id="12"]
// 下载

/* What's new */
1.1 (2011-11-17)
    - Fix ISO cannot read in some .Net environment.

PSPISOInfo

PSPISO Info Tool 1.0

Posted by FalconIA on 2011-08-08
Posted in: 动漫游戏, 原创作品. Tagged: game, psp, 发布, 编程. 1 comment

PSPISO Info Tool 1.0

Read PSP ISO info.
// 读取PSPISO信息

Download: [download id="11"]
// 下载

PSPISOInfo

Posts navigation

← Older Entries
  • March 2023
    M T W T F S S
    « Dec    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Pages

    • 留言本
  • Tags

    adb android avs dos drama eva-fan exfat extractor game iptables IP限制 java lightdm linux oc ps2 psp sherlock ubuntu vb.net vnc windows 优酷 前期处理 动漫 压制 发布 土豆 看看 编码 编程 解包 迅雷
  • Categories

    • 便利下载 (2)
    • 动漫游戏 (6)
    • 原创作品 (7)
    • 字幕相关 (5)
    • 技术杂烩 (27)
      • 压制相关 (8)
      • 游戏相关 (4)
      • 程序相关 (4)
      • 系统相关 (3)
    • 日新月异 (1)
    • 闲言闲语 (15)
  • Recent Posts

    • Turn airplane mode on/off via ADB
    • Optimize iptables reject rules
    • How to modify SystemUI.apk to remove volume soft keys in system bar
    • [Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc
    • How to fix android exception of Sherlock: unable to pause activity
  • Recent Comments

    • FalconIA on [Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc
    • C64 on [Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc
    • FalconIA on [Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc
    • 王福利 on [转载]JAVA实现汉字转拼音缩写–类的静态方法
    • Seb Maynard on [Quoted] VNC from boot on Ubuntu 12.04 without logging in, using LightDM and x11vnc
  • Archives

  • Hot Links

    • Seventh Heaven
    • 临时de疯狂西瓜农场
    • 迪奥的世界
  • Projects

    • Manga Proxy
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Proudly powered by WordPress Theme: Parament by Automattic.