I need to view my device kernel info, in particular the architectures. The device is not rooted, therefore uname
command isn't available in local terminal, but cat /proc/version
doesn't have an option to increase verbosity (that I'm aware of) like -a
for uname
. Is there any other method I can use to see this information?
1 Answer
If it's the architecture that you are looking in particular, then from the terminal you can type arch
command.
You can also try CPU-Z to check the kernel architecture on its System tab.
Note : The assumption that uname is only found on rooted devices is unfounded. I have a device not rooted on Android 8.1 that has uname thanks to toybox.
-
arch
is not available via adb on my phone (Sony XA2, Android 9).– RobertCommented Aug 16, 2019 at 18:09 -
@Robert toybox is not installed on your phone? Or is toybox installed but arch has not been packaged with it? Commented Aug 16, 2019 at 18:27
-
Arctiic's question is about an unrooted device. Mine is unrooted, too. Therefore of course "toybox" is not installed. Installing such executables system wide plus PATH require a rooted device.– RobertCommented Aug 16, 2019 at 19:22
-
@Robert I think
toolbox
andtoybox
are part of stock Android, how would you getgetprop
andsetprop
without them. Nothing restricts apps executing/system/bin/uname -m
or theuname
syscall (including SELinux and seccomp). Alsouname
is part of everybusybox
release. Get one with Termux or place in/data/local/tmp
and execute fromadb shell
. Multiple options. Commented Aug 16, 2019 at 19:46 -
@Irfan OK, you are right, there is a toybox and toolbox, however neither of them supports
arch
on my device (Sony XA2, Android 9 security update 2019-08-01).– RobertCommented Aug 16, 2019 at 19:53
getprop
command has a number of values that are related to the architecture. Check outgetprop | grep abi
.