Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: [FAQ] Frequently Asked Questio…
16th May 2014, 07:25 AM |#3  
Lucas Eugene's Avatar
OP Senior Member
★ ★ ★ ★ ★ ★ ★ ★ ★ ★
Thanks Meter: 1,471
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
    #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 :
    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
cat /sys/kernel/mm/ksm/run
to know what modules are running :
install an app from terminal :
pm install /sdcard/app1.apk
from adb :
adb install /home/user/app1.apk
(if your .apk is located there )

your kernel crashed?
cat /proc/last_kmsg
ex : from adb, and stored in /home/user/last_kmsg1
adb cat /proc/last_kmsg > /home/user/last_kmsg1
an app crashed, you want to know why?
ex : from adb and stored in /home/user/myfirstlogever
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
adb connect
(the IP is the one displayed in the option you choose previously
and then, since it is connected, catch the log :
adb logcat > /home/user/myfirstlogever
All commands and syntax used for ADB can be found here
Last edited by Lucas Eugene; 16th May 2014 at 08:43 AM.
The Following 3 Users Say Thank You to Lucas Eugene For This Useful Post: [ View ] Gift Lucas Eugene Ad-Free