Add Android Support

This commit is contained in:
Lucien Cartier-Tilet 2021-12-18 18:40:26 +01:00
parent 76d87e4325
commit 0c9e6de3ee
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 4 additions and 0 deletions

View File

@ -661,6 +661,10 @@ If RELEASE-FILE is nil, use '/etc/os-release'."
(s-trim (with-temp-buffer
(process-file "uname" nil t nil "-s")
(buffer-string)))))
((and (file-exists-p (concat prefix "/system/app"))
(file-exists-p (concat prefix "/system/priv-app")))
(concat "Android "
(s-trim (eshell-info-banner--shell-command-to-string "getprop ro.build.version.release"))))
(t "Unknown"))
.
,(s-trim (eshell-info-banner--shell-command-to-string "uname -rs")))))