Thursday, 18 December 2014

Android Terminologies: Rooting, Linux Kernel, Recovery mode

Rooting (Android OS)


Rooting is the process of allowing users of smartphones, tablets and other devices running the Android mobile operating system to attain privileged control (known as "root access") within Android's sub-system.

Rooting is often performed with the goal of overcoming limitations that carriers and hardware manufacturers put on some devices. Thus, rooting gives the ability (or permission) to alter or replace system applications and settings, run specialized apps that require administrator-level permissions, or perform other operations that are otherwise inaccessible to a normal Android user. On Android, rooting can also facilitate the complete removal and replacement of the device's operating system, usually with a more recent release of its current operating system.

As Android derives from the Linux kernel, rooting an Android device gives similar access administrative permissions as on Linux or any other Unix-like operating system such as FreeBSD or OS X.

Advantages of rooting include the possibility for complete control over the look and feel of the device. As a superuser has access to the device's system files, all aspects of the operating system can be customized with the only real limitation being the level of coding expertise. Immediately expectable advantages of rooted devices include the following:
  • Full theming capabilities, meaning that everything can be changed and themed from the color of the battery indicator, to the look of the dialer or contact list, to the video that plays while the device boots up.
  • Full control of the CPU and kernel, which should only be adjusted by knowledgeable users.
  • Full application control including the ability to backup, restore, or batch edit applications, or to remove bloatware that comes pre-loaded on many phones. These features become available with the use of root applications such as Rom Toolbox or Titanium Backup which are among the most popular root applications.

Android Rooting: Pros

If you root your android smartphone, you will get the following features.
  • It allows you to set up wireless tethering even though it has been disabled by default.
  • You can easily access the whole file system.
  • You can easily install the apps that requires root privileges.
  • It helps you to flash the custom ROM in your device.
  • It increase the tablet or phone’s performance.
  • It will allow you to add the extra features to your device.
  • It will provide an easy way for you to accept or deny the application permissions.
Apart from the above mentioned features, many apps allows you to automatically backup all your data’s when you root your device. For example: Some applications will let you to automatically backup all your data, block the advertisements completely, create secure connections to the internet and make your device a wireless hotspot.

Android Rooting: Cons

1. Voids the device warranty:
Once you root your device the first thing it will do is, void your device warranty. But don’t worry as you can unroot your device back by flashing the original backup ROM and reclaim the warranty.
2. Brick your device:
Whenever you root the device, you are taking the risk of bricking your phone. This is why everyone hesitates to root their phone. You can avoid this by following the right instructions and guidelines. You are not supposed to attempt the instructions unless you know what it does mean. Before trying to root the device ensure that the instructions are specifically for your phone model and manufacturer. Because it obviously vary for every devices.
3. Security risks:
The Android Rooting process may create security risks. It depends on what apps or services you are using on your device.

Prerequisites For Rooting:


  1. Before starting to root your android phone, make sure that the source you are having is really worthy and specifically created for your device model. Better ask suggestion to the other via online. If others state that the tutorial works without errors, then you too try it in your device.
  2. Before starting the rooting process, take backup all your data’s completely because after rooting you may lose your data’s. So, it is advisable to be on a safer side.
  3. Once you backup your data’s, charge your device fully so that it never turned off in between the process.
  4. Next ensure that the USB Debugging is ON in your device.
  5. Most of the rooting methods require you to install some software on the computer. For that you need to install android SDK or some other software. So, follow the given instructions properly and install it correctly.

Linux kernel

The Linux kernel is a Unix-like computer operating system kernel. The Linux kernel is the most widely used operating system kernel in the world; the Linux operating system is based on it and deployed on both traditional computer systems, usually in the form of Linux distributions,[8] and on embedded devices such as routers. The Android operating system for tablet computers and smartphones is also based atop the Linux kernel.

Kernel (operating system)

Image result for operating system kernel In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system.
   

 

 

How to use recovery mode to fix your Android phone or tablet

How to boot into recovery mode on a Google Nexus device

If you have a device like the Nexus 5 or Nexus 7 running stock Android then these are the steps required to boot into Recovery mode:
  1. Hold down the Power key and select Power off. If the touchscreen is unresponsive then you can simply keep holding down the Power key for several seconds until the device turns off.
  2. Press and hold the Power key and the Volume down key. You should see the Android mascot on his back, a bunch of information about your device, and Start at the top right of the screen.
  3. To navigate through the menu options you use the Volume up and Volume down keys. The Power key is used to make a selection. Press Volume down twice and you should see Recovery mode in red up at the top right, press the Power key to select it.
  4. The white Google logo will pop up followed by the Android mascot on his back again with the words No command underneath.
  5. Press and hold the Power key and the Volume up key for around three seconds and then let go of the Volume up key, but keep pressing Power.
  6. You should see the Android system recovery options pop up at the top of the screen. Use the Volume keys to highlight the options and the Power key to select the one you want.
 http://www.digitaltrends.com/mobile/use-recovery-mode-android/

 





















Tuesday, 9 September 2014

Performance Testing Basics




Throughput is calculated as requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server.
The formula is: Throughput = (number of requests) / (total time).

Elapsed time . JMeter measures the elapsed time from just before sending the request to just after the last response has been received. JMeter does not include the time needed to render the response, nor does JMeter process any client code, for example Javascript.

Latency . JMeter measures the latency from just before sending the request to just after the first response has been received. Thus the time includes all the processing needed to assemble the request as well as assembling the first part of the response, which in general will be longer than one byte. Protocol analysers (such as Wireshark) measure the time when bytes are actually sent/received over the interface. The JMeter time should be closer to that which is experienced by a browser or other application client.

Median is a number which divides the samples into two equal halves. Half of the samples are smaller than the median, and half are larger. [Some samples may equal the median.] This is a standard statistical measure. See, for example: Median entry at Wikipedia. The Median is the same as the 50 th Percentile

90% Line (90 th Percentile) is the value below which 90% of the samples fall. The remaining samples too at least as long as the value. This is a standard statistical measure. See, for example: Percentile entry at Wikipedia.

Standard Deviation is a measure of the variability of a data set. This is a standard statistical measure. See, for example: Standard Deviation entry at Wikipedia. JMeter calculates the population standard deviation (e.g. STDEVP function in spreadheets), not the sample standard deviation (e.g. STDEV).

Reference:
http://jmeter.apache.org/usermanual/glossary.html

Wednesday, 13 August 2014

Android Build installation

There are following methods using which you can install your android testing build on your testing devices.
------------------------------------------------------------------------------------------------------------

  1. OTA 
  2. USB
  3. ADB

1.OTP
   One of the easiest way  installation android build i found in my experience is Over The Air with the                  help of

  •                IIS,
  •                WAMP
  •                XAMPP
2. USB [MTP]

    Copy APK file in sdcard & Install Manually.

3. ADB [Android Device Bridge]
    Using adb command

    adb install path of file filename.apk

Android QA Essential ADB Commands

Finally after long time i am glad to post QA Essential ADB commands
------------------------------------------------------------------------------------------------------------
ADB -  Android Device Bridge
------------------------------------------------------------------------------------------------------------

Start ADB 

adb start or adb start-server
adb stop  or adb kell-server
________________________________________________

List of devices [Emulator/ Hardware] attached system

adb devices
________________________________________________

Install APK

adb install "Path of apk"
________________________________________________

List on Packages 

adb pm shell list packages

________________________________________________

Uninstall APK

adb unistall "packege name"

_______________________________________________

Remotely Input

adb shell input text "Text"
________________________________________________

Monkey Runner

adb shell monkey -p your.package.name -v 500
________________________________________________

Log Write

adb -d shell logcat > xyz.txt

adb -d shell logcat > logss.txt

________________________________________________

Replace Package

adb install -r myapp-release.apk

__________________________________________________

Copying Files

adb push foo.txt /sdcard/foo.txt

adb pull  /sdcard/foo.txt  newfoo.txt

__________________________________________________

ScreenRecord Video file

adb shell screenrecord /sdcard/demo.mp4
adb pull  /sdcard/demo.mp4
__________________________________________________

To clear application data

adb shell clear com.packagename

Thursday, 3 July 2014

Important links for getting started

This post will help to beginners to getting started with new concepts with these important links...
with the help of Software Testing Help


* Beginner’s Guide to Mobile Application Testing


* Getting Started with Agile Scrum Methodology: The     Complete Guide for Software Developers and Testers

http://www.softwaretestinghelp.com/beginners-guide-to-mobile-application-testing/

    

* 5 Must Have Non-testing Tools for Testers to Make Life Easier

      http://www.softwaretestinghelp.com/5-must-have-non-testing-tools-for-testers/

 * Tips & Tricks for Testing and Managing Web Applications Run by Linux OS

http://www.softwaretestinghelp.com/testing-and-managing-web-applications-run-by-linux-os/

Important links for getting started

This post will help to beginners to getting started with new concepts with these important links...
with the help of Software Testing Help


* Beginner’s Guide to Mobile Application Testing


* Getting Started with Agile Scrum Methodology: The     Complete Guide for Software Developers and Testers

http://www.softwaretestinghelp.com/beginners-guide-to-mobile-application-testing/

    

* 5 Must Have Non-testing Tools for Testers to Make Life Easier

      http://www.softwaretestinghelp.com/5-must-have-non-testing-tools-for-testers/

 * Tips & Tricks for Testing and Managing Web Applications Run by Linux OS

http://www.softwaretestinghelp.com/testing-and-managing-web-applications-run-by-linux-os/

MobileAutomation - Handle Pop-ups, Alerts and Prompts in Automate and App Automate Tests

This article shows you how to handle user permission pop-ups, alerts, and prompts in your automated tests on BrowserStack. Introductio...