I am usong Sony Xperia Z3 6603 with latest available android. When using the Terminal Emulator, by default, the shown username@device is some random jibberish@D6603. Copy below:
u0_a218@6603
I have fiddled around with the hostnames, since one was localhost and the other one was the wi-fi random generated one. Its the one in net.hostname and the /proc/sys/kernel/hostname, i havent touched the /etc/hosts since i think it will break something. I havent touched either build.prop for the same reason, i dont really know what depends on the ro.product.device. $PS1 gives different output than the shown username.
The question is, which values are safe for editing, and which one should be edited for the shown username?
build.prop
(changing it affects all apps that detect device identity according to it). – Andy Yan Sep 23 '17 at 12:08/system/etc/mkshrc
). To edit it, you need root privileges. – Grimoire Sep 23 '17 at 20:32PS1
string corresponds to that. – Andy Yan Sep 24 '17 at 01:24(( e )) && REPLY+="$e|"
return $e }$USER@$HOSTNAME:${PWD:-?} '"$PS1 "
` Thats the content i think i will have to edit. Question is, is it save (wont corrupt anything) and will it persist after reboot (in case of locked bootloader).
– ku4eto Sep 24 '17 at 09:22