Since getting my first android phone in May 2011, I have been extremely into rooting and flashing ROMs onto my phone. My first phone, the HTC Droid Incredible 2, was easy, due to it's unencrypted bootloader. This makes root (superuser) exploits easy, as well as the installation of custom recoveries and ROMs. The bootloader on my current phone (the Motorola Droid Razr) is encrypted. This makes gaining root, installing custom recoveries and ROMs significantly harder.
A bootloader, at it's most basic does nothing but load an OS. However, a bootloader can be used to verify software and things like that.
In terms of android, the bootloader checks the signatures of the files being loaded. If a signature fails the check, the phone doesn't boot. Often, people confuse the difference between "locked" and "encrypted" bootloaders. A locked bootloader is something every phone has out of the factory. An encrypted bootloader a locked bootloader with a layer of encryption that prevents you unlocking the bootloader.
***NOTE*** from here on out, a "locked" bootloader will refer to an encryped bootloader, unless explicitly stated.
Many phones have unencrypted or lightly encrypted bootloaders that are easy to crack. Yet other phones have factory-sanctioned unlocks, allowing the end-user to decrypt and unlock the bootloader.
As of late, there has been some major discussion in the developer community about the future of bootloaders. Most people argue that having a locked bootloader restricts what can be done with a phone. This is where my phone (and previous Motorola phones) comes in. Every android Motorola phone has had a locked bootloader. This has not stopped a select few brilliant devs working on porting ROMs and creating custom recoveries. Some of the things they have come up with just blow me away.
For example, the recovery solution that the developers have come up with is phenomenal. It is called safestrap, and in safestrap 2, one was able to dual-boot one custom ROM alongside the Stock ROM. Well, in safestrap 3 (which is all touch), you can now have 4 custom ROMs alongside the stock ROM.
Another exciting development is the use of a KEXEC (Kay- eksek) kernel. KEXEC is not particularly new to Linux, but to the android community, it is fairly new. This allows developers to make kernels for each ROM, without having to flash a new kernel (which has the potential to brick your phone).
The point is: is having a locked bootloader really all that bad? Yes, it does adversely impact the initial ability to develop for the phone, including rooting. However, having a locked bootloader requires innovation on the part of the non-OEM developers. In any industry, innovation is a driving force. The changes that get made to any android device do get noted by Google, and do eventually get integrated into the Android OS (See the settings toggles added to the notification menu as of Jellybean [4.1]). What's to say that the innovations made today won't be integrated into tomorrow's OS?
What do you think about locked/unlocked bootloaders on mobile devices? Please discuss in the comments section!
Showing posts with label Development. Show all posts
Showing posts with label Development. Show all posts
March 19, 2013
March 13, 2013
Set up a High-Quality Development Box for Under $1000 (Part 2)
Being a college student, money is always short. I'm going to walk you through setting up a high-quality development box with Fedora 18. If you don't mind getting super-involved, you could use Arch Linux, however Fedora is really easy to set up and will get you up and running quickly! This is part 2, which covers the installation of Fedora. Part 1, which is about choosing hardware can be found here.
***NOTE*** For this installation, I'm assuming that you have a wired connection.
First: Acquire the installation media
The link to Fedora's installation .iso can be found here. Choose the .iso that looks nicest to you. I'm choosing GNOME for this tutorial.
***NOTE*** For Reference:
GNOME looks a little bit like OSX in terms of layout, while KDE is laid out more like Windows.
Don't let this influence your decision too much though!
Although I am more experienced with Windows than OSX, I tend to prefer GNOME to KDE.
Second: Burn .iso to USB or CD
I'm using the LinuxLive USB Creator to burn the .iso to USB, however this is for Windows only.
Instructions for Linux and Mac can be found here.
Third: Boot the installation media
While your computer is off, insert your USB drive into a USB port. Press the power button, and look for a prompt at the bottom of your screen saying Hit [Some Key] for boot options, or something similar. Common keys are F2, F9, F11, F12, Delete, or Escape. If you're having trouble finding which key it is, google "[your computer model] boot option key" or something to that affect (Or it is effect...? I can never remember...). And select your USB drive.
Fourth: Base install
Once the media has booted, you are presented with a login screen. Just select Live System User (it should be the only option). Once logged in, if you want to play around with Fedora for a little before committing, click on "Try Fedora". Otherwise, choose "Install to Hard Drive".
First you are asked for the language you would like to use during the install, choose whichever language suits you (the default is English (US)). Click continue.
Under storage, click on "Installation Destination" and configure your hard disk. I suggest sticking with automatic partitioning, but you may have to make some changes if dual-booting or choosing to have a separate data partition. When returned to the screen that reads "Localization" and "Storage," click on Begin Installation.
On this screen, all you need to do is set a root password by clicking on the key icon and entering a password twice and clicking done.
***NOTE*** This should be a secure password! It allows root access to your system and can be used to do naughty things by naughty people (get your mind out of the gutter)!
...now we wait for Fedora to finish installing.
Once done, reboot and remove the installation media. When the system comes back up, you are greeted with a welcome screen. Just follow the prompts and choose the default options and you'll be fine!
Fifth: Do a system upgrade.
To perform a system upgrade, we will use yum, Fedora's package manager. Run
to upgrade all of your packages. It will take a long time, but is highly suggested (This isn't strictly necessary, but it keeps you up-to-date.).
***NOTE*** This step is not necessary for everyone!
Next, we will get wireless working with a Broadcom wireless card. To find out if you have a wireless card, do
If nothing comes up, you can skip to installing development tools! Otherwise, add the rpmfusion repository following the instructions here. Add both free and nonfree.
Then, install broadcom-wl like so
...and reboot when done. On reboot, wireless should come up.
Install any development tools you need (Java, Python 2.x or 3.x). You know your needs best, but common tools are an IDE (I suggest Eclipse if you don't have an IDE in mind), and a good text editor like Sublime.
To install Eclipse, do
By default, Python 2 is already installed on your system (Version 2.7.3), however you can install Python 3.3.0 simply by running
to run a Python 2 module, run
... likewise, to run a Python 3 module, do
Congratulations on your new development environment! If there's anything I missed or you want me to cover, please put it in the comments and I'll add it in!
***NOTE*** For this installation, I'm assuming that you have a wired connection.
First: Acquire the installation media
The link to Fedora's installation .iso can be found here. Choose the .iso that looks nicest to you. I'm choosing GNOME for this tutorial.
***NOTE*** For Reference:
GNOME looks a little bit like OSX in terms of layout, while KDE is laid out more like Windows.
Don't let this influence your decision too much though!
Although I am more experienced with Windows than OSX, I tend to prefer GNOME to KDE.
Second: Burn .iso to USB or CD
I'm using the LinuxLive USB Creator to burn the .iso to USB, however this is for Windows only.
Instructions for Linux and Mac can be found here.
Third: Boot the installation media
While your computer is off, insert your USB drive into a USB port. Press the power button, and look for a prompt at the bottom of your screen saying Hit [Some Key] for boot options, or something similar. Common keys are F2, F9, F11, F12, Delete, or Escape. If you're having trouble finding which key it is, google "[your computer model] boot option key" or something to that affect (Or it is effect...? I can never remember...). And select your USB drive.
Fourth: Base install
Once the media has booted, you are presented with a login screen. Just select Live System User (it should be the only option). Once logged in, if you want to play around with Fedora for a little before committing, click on "Try Fedora". Otherwise, choose "Install to Hard Drive".
First you are asked for the language you would like to use during the install, choose whichever language suits you (the default is English (US)). Click continue.
Under storage, click on "Installation Destination" and configure your hard disk. I suggest sticking with automatic partitioning, but you may have to make some changes if dual-booting or choosing to have a separate data partition. When returned to the screen that reads "Localization" and "Storage," click on Begin Installation.
On this screen, all you need to do is set a root password by clicking on the key icon and entering a password twice and clicking done.
***NOTE*** This should be a secure password! It allows root access to your system and can be used to do naughty things by naughty people (get your mind out of the gutter)!
...now we wait for Fedora to finish installing.
Once done, reboot and remove the installation media. When the system comes back up, you are greeted with a welcome screen. Just follow the prompts and choose the default options and you'll be fine!
Fifth: Do a system upgrade.
To perform a system upgrade, we will use yum, Fedora's package manager. Run
sudo yum upgradeto upgrade all of your packages. It will take a long time, but is highly suggested (This isn't strictly necessary, but it keeps you up-to-date.).
***NOTE*** This step is not necessary for everyone!
Next, we will get wireless working with a Broadcom wireless card. To find out if you have a wireless card, do
lspci -nn | grep 14e4 (14e4 is Broadcom's vendor ID)If nothing comes up, you can skip to installing development tools! Otherwise, add the rpmfusion repository following the instructions here. Add both free and nonfree.
Then, install broadcom-wl like so
sudo yum install broadcom-wl...and reboot when done. On reboot, wireless should come up.
Install any development tools you need (Java, Python 2.x or 3.x). You know your needs best, but common tools are an IDE (I suggest Eclipse if you don't have an IDE in mind), and a good text editor like Sublime.
To install Eclipse, do
sudo yum install eclipseBy default, Python 2 is already installed on your system (Version 2.7.3), however you can install Python 3.3.0 simply by running
sudo yum install python3to run a Python 2 module, run
python [path to module].py... likewise, to run a Python 3 module, do
python3 [path to module.py]Congratulations on your new development environment! If there's anything I missed or you want me to cover, please put it in the comments and I'll add it in!
Labels:
Broadcom,
Broadcom Wireless,
configuration,
Development,
Fedora,
Fedora 18,
GNOME,
KDE,
Laptop,
Linux,
network,
Python,
Wireless,
WPA,
WPA_Supplicant
Subscribe to:
Posts (Atom)