まだ追跡番号は反映されていないけど送られたのは確かなようだ。

HDD自体も"WD20EARS-00MVWB0"から"WD20EARX-00PASB0"に変更されている模様。
WD20EARXだと転送速度がSATA 3 Gb/sからSATA 6 Gb/sになっているのでいいかも。
まぁそれ以前に壊れないでもらいたいわけだが・・・
未だにいろいろ入れたいものとかたくさんあるので早くきてもらいたいなぁ
android
adb shell
chmod 777 /system/app
exit
adb push Vending.apk /system/app/
adb push GoogleServicesFramework.apk /system/app/
adb push MarketUpdater.apk /system/app/
adb push Development.apk /system/app/
adb shell rm /system/app/SdkSetup.apk
adb push mkfs.yaffs2.arm /system/bin/mkfs.yaffs2
adb shell
chmod 777 /system/bin/mkfs.yaffs2
exit
adb shell mkfs.yaffs2 /system /sdcard/system.img
adb pull /sdcard/system.img system.img
# -*- coding: utf-8 -*-
import os
import glob
import codecs
import unicodedata
import mimetypes
from email import encoders
from email.mime.audio import MIMEAudio
from email.mime.base import MIMEBase
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.Header import Header
def attach_files(msg, attachements):
for attachment in attachments:
attachment = attachment.strip()
for path in glob.glob(attachment):
filename = os.path.basename(path)
if not os.path.isfile(path):
continue
# Guess the content type based on the file's extension. Encoding
# will be ignored, although we should check for simple things like
# gzip'd or compressed files.
ctype, encoding = mimetypes.guess_type(path)
if ctype is None or encoding is not None:
# No guess could be made, or the file is encoded (compressed), so
# use a generic bag-of-bits type.
ctype = 'application/octet-stream'
maintype, subtype = ctype.split('/', 1)
if maintype == 'text':
fp = open(path)
# Note: we should handle calculating the charset
part = MIMEText(fp.read(), _subtype=subtype)
fp.close()
elif maintype == 'image':
fp = open(path, 'rb')
part = MIMEImage(fp.read(), _subtype=subtype)
fp.close()
elif maintype == 'audio':
fp = open(path, 'rb')
part = MIMEAudio(fp.read(), _subtype=subtype)
fp.close()
else:
fp = open(path, 'rb')
part = MIMEBase(maintype, subtype)
part.set_payload(fp.read())
fp.close()
# Encode the payload using Base64
encoders.encode_base64(part)
# Set the filename parameter
part.add_header('Content-Disposition', 'attachment', filename=filename)
msg.attach(part)
def sendemail(email_name, email_user, email_pswd, mailto, subject, body, attachments, encoding):
import smtplib
# DON'T CHANGE THIS!
# ...unless you're rewriting this script for your own SMTP server!
smtp_server = 'smtp.gmail.com'
smtp_port = 587
# Build an SMTP compatible message
msg = MIMEMultipart()
msg['Subject'] = Header(subject, encoding)
msg['To'] = mailto
msg['From'] = email_name + " <" + email_user + ">"
msg.attach(MIMEText(body.encode(encoding), 'plain', encoding))
attach_files(msg, attachments)
# Attempt to connect and send the email
try:
smtpObj = '' # Declare within this block.
# Check for SMTP over SSL by port number and connect accordingly
if( smtp_port == 465):
smtpObj = smtplib.SMTP_SSL(smtp_server,smtp_port)
else:
smtpObj = smtplib.SMTP(smtp_server,smtp_port)
smtpObj.ehlo()
# StartTLS if using the default TLS port number
if(smtp_port == 587):
smtpObj.starttls()
smtpObj.ehlo
# Login, send and close the connection.
smtpObj.login(email_user, email_pswd)
smtpObj.sendmail(email_user, mailto, msg.as_string())
smtpObj.close()
return 1 # Return 1 to denote success!
except Exception, err:
# Print error and return 0 on failure.
print err
return 0
import sys
import android
if 'ascii'==sys.getdefaultencoding():
stdin = sys.stdin
stdout = sys.stdout
reload(sys)
sys.setdefaultencoding('utf-8')
sys.stdin = stdin
sys.stdout = stdout
droid = android.Android()
try:
email_name = droid.getIntent().result[u'extras'][u'%EMAIL_NAME']
except:
email_name = ''
try:
email_user = droid.getIntent().result[u'extras'][u'%EMAIL_USER']
except:
droid.makeToast('EMAIL_USER missing')
sys.exit(1)
try:
email_pswd = droid.getIntent().result[u'extras'][u'%EMAIL_PSWD']
except:
droid.makeToast('EMAIL_PSWD missing')
sys.exit(1)
try:
mailto = droid.getIntent().result[u'extras'][u'%EMAIL_TO']
except:
droid.makeToast('EMAIL_TO missing')
sys.exit(1)
try:
subject = droid.getIntent().result[u'extras'][u'%EMAIL_SUBJECT']
except:
subject = ''
try:
body = droid.getIntent().result[u'extras'][u'%EMAIL_BODY']
except:
body = ''
try:
attachments = droid.getIntent().result[u'extras'][u'%EMAIL_ATTACH']
attachments = attachments.split(',')
except:
attachments = ''
try:
body = droid.getIntent().result[u'extras'][u'%EMAIL_ENCODING']
except:
encoding = 'utf-8'
# Send email
if (sendemail(email_name, email_user, email_pswd, mailto, subject, body, attachments, encoding)):
sys.exit(0)
else:
# Exit with error if email is not sent successfully
droid.makeToast('email failed')
sys.exit(1)