Post Reply

[Q] Knowing Android type

OP stiphen

6th May 2014, 10:44 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
27 posts
Join Date:Joined: Mar 2014
Sorry I do not know whether I am posting it in right section or not

how can i know Android version with type with shell command my device connected with usb

like

Code:
 4.4 - KitKat


 4.0 - Ice Cream Sandwich
6th May 2014, 11:09 AM   |  #2  
Senior Member
Thanks Meter: 562
 
2,946 posts
Join Date:Joined: May 2010
Donate to Me
More
adb shell getprop ro.build.version.release
6th May 2014, 01:49 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
27 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by es0tericcha0s

adb shell getprop ro.build.version.release

Thanks .. But I already know about this command ... this shows the version only I want complete output as like this


PHP Code:
4.4 KitKat 
6th May 2014, 02:08 PM   |  #4  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by stiphen

Thanks .. But I already know about this command ... this shows the version only I want complete output as like this


PHP Code:
4.4 KitKat 

If your making a script, you could take the output of the getprop command. And if it is what you thought, you could display the android version in that format.
Just match the sdk version up with whatever android version string. (Using an if statement)
Code:
sdknum=$(adb shell grep ro.build.version.sdk= system/build.prop)
if (sdknum=ro.build.version.sdk=19) then
echo 4.4 - KitKat
fi
Or something like that.
Last edited by Lgrootnoob; 6th May 2014 at 02:13 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank