FORUMS

[Q] Knowing Android type

35 posts
Thanks Meter: 1
 
By stiphen, Member on 6th May 2014, 10:44 AM
Post Reply Subscribe to Thread Email Thread
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: 636
 
Donate to Me
More
adb shell getprop ro.build.version.release
6th May 2014, 01:49 PM |#3  
OP Member
Thanks Meter: 1
 
More
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: 111
 
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