The differences between android build variants

less than 1 minute read

item/flavor eng user userdebug
ro.secure 0 1 1
security.perf_harden 0 1 1
ro.adb.secure 0 1 0
ro.debuggable 1 0 1
ro.allow.mock.location 1 0 0
ro.kernel.android.checkjni 1 N/A N/A
adb enabled Y N Y
install modules tagged with eng Y N ?
install modules tagged with user Y Y Y
install modules tagged with debug Y N Y
adb root Y N Y
DEXPREOPT ? Y Y
proguard ? Y Y

Modules tagged with debug including:

pacakge path
anrd /system/extras/ANRdaemon
bootstat /system/extras/bootstat
cpustat /system/extras/cpustat
ioshark /system/extras/ioshark
iotop /system/extras/iotop
latencytop /system/extras/latencytop
micro_bench /system/extras/micro_bench
pagecache /system/extras/pagecache
procrank /system/extras/procrank
simpleperf /system/extras/simpleperf
showmap /system/extras/showmap
showslab /system/extras/showslab
taskstat /system/extras/taskstat

References