Or Continue to Thread: [FAQ] Frequently Asked Questio…
Find Your Device:
16th May 2014, 08:25 AM   |  #3  
OP Account currently disabled
Thanks Meter: 520
 
488 posts
Join Date:Joined: May 2014
some usefull lines of commands for any user wanting to know what's going on:

requirements :
  • On Windows : install Moto E drivers and
  • On Linux : set your rules following that guide (3. Set up your system to detect your device.) : add to /etc/udev/rules.d/51-android.rules the following code
    Code:
    #motoe normal mode
    SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e82″, MODE="0666"
    #motoe debug mode
    SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e76″, MODE="0666"
    #motoe fastboot mode
    SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e80″, MODE="0666"
    For specific access by one group of users, add GROUP="[groupname]"

______________________________
______________________________
______________________________

Let's start ! :
  • in terminal, just type the lines,
  • in ADB, add "adb" before the commands
  • if you want not to display the output in terminal, specify the path :
    Code:
    command > /where_you_want_your_output_to_be_stored/name_you_want_for_the_log


to know if KSM is really turned on : KSM means Kernel Samepage Merging, may not exist on Moto E stock or custom roms
Code:
cat /sys/kernel/mm/ksm/run
to know what modules are running :
Code:
lsmod
install an app from terminal :
Code:
pm install /sdcard/app1.apk
from adb :
Code:
adb install /home/user/app1.apk
(if your .apk is located there )

your kernel crashed?
Code:
cat /proc/last_kmsg
ex : from adb, and stored in /home/user/last_kmsg1
Code:
adb cat /proc/last_kmsg > /home/user/last_kmsg1
an app crashed, you want to know why?
Code:
logcat
ex : from adb and stored in /home/user/myfirstlogever
Code:
adb logcat > /home/user/myfirstlogever
don't have an USB cable ?or adb "other the air" :
connect to your home wifi network (both device and pc)
in settings/dev options/ enable adb on TCP/IP
Code:
adb connect xxx.xxx.xxx.xxx:5555
(the IP is the one displayed in the option you choose previously
and then, since it is connected, catch the log :
Code:
adb logcat > /home/user/myfirstlogever
All commands and syntax used for ADB can be found here
Last edited by Falcon G; 16th May 2014 at 09:43 AM.
The Following User Says Thank You to Falcon G For This Useful Post: [ View ]