この記事は2年以上前に書いたものです。
そのため情報が古い可能性があります。ご了承ください。m(_ _)m
そのため情報が古い可能性があります。ご了承ください。m(_ _)m
kindle Fire HDは、androidだから、kindle fire HD側でADB有効にするだけで、adb shell使えるかと思いきや、少々設定がいる模様。
How-To Enable ADB for Kindle Fire (Ubuntu-Linux) – Android Forums at AndroidCentral.com
を参考に設定。
1.ベンダID追加
% echo 0x1949 >> ~/.android/adb_usb.ini
2.非rootでもadbを実行できるようにする(らしい)
% echo '# adb protocol for blaze / ottter (Amazon Kindle Fire)
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTRS{idProduct}=="0006", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"' | sudo tee /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTRS{idProduct}=="0006", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"' | sudo tee /etc/udev/rules.d/51-android.rules
3.↑の設定用のグループ追加と、usernameさんにandroiddevグループを割り当て
% sudo addgroup --system androiddev
% sudo adduser username androiddev
% sudo adduser username androiddev
これで設定は完了。
後は、adb start-serverで起動させて、shell
% ~/android-sdk/platform-tools/adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
% ~/android-sdk/platform-tools/adb wait-for-device shell
shell@android:/ $
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
% ~/android-sdk/platform-tools/adb wait-for-device shell
shell@android:/ $
version, cpuinfo, meminfoとか。
% cat version
Linux version 2.6.32-5-amd64 (Debian 2.6.32-46) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun Sep 23 10:07:46 UTC 2012
% cat cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 47
model name : AMD Athlon(tm) 64 Processor 3200+
stepping : 0
cpu MHz : 1000.000
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good pni lahf_lm
bogomips : 1999.85
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
% cat meminfo
MemTotal: 1994472 kB
MemFree: 387528 kB
Buffers: 268992 kB
Cached: 1085264 kB
SwapCached: 0 kB
Active: 898300 kB
Inactive: 567664 kB
Active(anon): 111776 kB
Inactive(anon): 616 kB
Active(file): 786524 kB
Inactive(file): 567048 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 5847544 kB
SwapFree: 5847544 kB
Dirty: 108 kB
Writeback: 0 kB
AnonPages: 111708 kB
Mapped: 36084 kB
Shmem: 684 kB
Slab: 96848 kB
SReclaimable: 86628 kB
SUnreclaim: 10220 kB
KernelStack: 1584 kB
PageTables: 5172 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6844780 kB
Committed_AS: 310140 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 300424 kB
VmallocChunk: 34359431072 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 9152 kB
DirectMap2M: 2021376 kB
Linux version 2.6.32-5-amd64 (Debian 2.6.32-46) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun Sep 23 10:07:46 UTC 2012
% cat cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 47
model name : AMD Athlon(tm) 64 Processor 3200+
stepping : 0
cpu MHz : 1000.000
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good pni lahf_lm
bogomips : 1999.85
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
% cat meminfo
MemTotal: 1994472 kB
MemFree: 387528 kB
Buffers: 268992 kB
Cached: 1085264 kB
SwapCached: 0 kB
Active: 898300 kB
Inactive: 567664 kB
Active(anon): 111776 kB
Inactive(anon): 616 kB
Active(file): 786524 kB
Inactive(file): 567048 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 5847544 kB
SwapFree: 5847544 kB
Dirty: 108 kB
Writeback: 0 kB
AnonPages: 111708 kB
Mapped: 36084 kB
Shmem: 684 kB
Slab: 96848 kB
SReclaimable: 86628 kB
SUnreclaim: 10220 kB
KernelStack: 1584 kB
PageTables: 5172 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6844780 kB
Committed_AS: 310140 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 300424 kB
VmallocChunk: 34359431072 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 9152 kB
DirectMap2M: 2021376 kB