Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Wednesday, September 6, 2017
Android Build Environment For Your Ubuntu Linux
Android Build Environment For Your Ubuntu Linux
Android Build Environment ubuntu set up
This Tutorial will discus how to set up Android Build Environment, we try to show you how to build Aosp or Cyanogen mod
for you Asus Zenfone 4,5 and 6,
In this tutorial i will use Ubuntu 15.04 because in past few days i update my Ubuntu Linux to latest release so lets go..
Requirement
Ubuntu Linux 64 bit At least minimum of 4gb of ramJava JDK
Android build tools
repo
First we try to fix java version we will use note it always depend on android version we prepare to Build for android Kitkat version it required Java JDK 6 update 45 and for android Lollipop version need Java JDK 7 to latest update
Open CLI Terminal in you Ubuntu box and follow this command
sudo apt-get purge openjdk-* icedtea-* icedtea6-*The above command will clean openjdk if you have before this will make sure will will be using the proper and needed java version for our android development build
For android kitkat build this is the Java version you need follow the command in you Terminal
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java6-installerfollow the screen in you Terminal instructions, You must accept the License Agreement to complete the installation
For Android Lollipop Build This is The java version you need
follow the command in your Terminal
sudo apt-get update
sudo apt-get install openjdk-7-jdkThis below command bellow is Optional this command will help you to switch for your default Java version from java 6 to 7 or viversa
sudo update-alternatives --config java
sudo update-alternatives --config javacf you encounter version errors for Java, set its path as described in the Wrong Java Version section.
java 7 for Lollipop
Java 6 for Gingerbread through KitKat
If you install Successfully the java jdk lets check the version if the target version build is properly install follow the command in your Terminal
java -version
Result:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)Now lets install the the Builds Tools this is Require in order to build Android from source
in terminal follow this command below
sudo apt-get install git gnupg ccache lzop libglapi-mesa-lts-utopic:i386 libgl1-mesa-dri-lts-utopic:i386 flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx-lts-utopic:i386 libgl1-mesa-dev-lts-utopic g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-devAfter installation is done follow again this command in you terminal
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.soNow your done installing the required java version.
Okay this time we need a program called REPO let you communicate with git server and download source code from git server
now open new fresh terminal for the command below just follow the code
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repothe above command will create a /bin folder on home directory of your Ubuntu Linux example /home/yourusername/bin
Now we need to edit the .bashrc to add the bin path in our Ubuntu system to make life of android build easy yeah
follow the command below
sudo gedit ~/.bashrca new windows text editor will open and add the code below at the top of text editor at line 1
export PATH=~/bin:$PATHand then save and close
Now where almost done will just need to download the android source code and build yeah now we need to find where we place the Android source code you can create new folder then open new terminal in that folder so lets go follow my command below
mkdir ~/zenfoneAOSP
cd ~/zenfoneAOSP
now we create a folder name zenfoneAOSP and the location is /Home/yourusername/zenfoneAOSP
Here the link for manifest if you want to check in Android Google source
https://android.googlesource.com/platform/manifest/+refs
now lets continue in our terminal that which locate on zenfoneAOSP folder follow the command below
For AOSP kitkat if you need to build in higher version check the link bellow for Aosp source branch
Here the link for manifest if you want to check in Android Google source
https://android.googlesource.com/platform/manifest/+refs
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r2For Cyanogen mod 11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0 -j4for Cyanogen mod 12
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0 -j4Lets explain above code
repo init -u url option
Installs Repo in the current directory. This creates a .repo/ directory that contains Git repositories for the Repo source code and the standard Android manifest files. The .repo/ directory also contains manifest.xml, which is a system link to the selected manifest in the .repo/manifests/ director
-b android-4.4.4_r2
And follow this final command to sync repo
repo sync -j4is number of connection to download it continuously if you use -j4 it will download 4 parts at a time so sound good this is better if you have Good Internet connection you can adjust to -8 or -j16 , i advise if you have slow Internet you can use -j1 or -j2 the android Sources size is 20 plus GB so it take time if your Internet is not that good as other actually in my case i download the source almost 1 week before i complete download the source because of my poor Internet connection, so if you realy interested to learn to build from source you may need patient Thank i hope you learn How to Set up Android Build Environment for you Ubuntu Linux so in Other day we can now forward in new topic for building aosp for Asus Zenfone or Cyanogen mod
download file now
Saturday, March 4, 2017
How To Bring Ubuntu Left App Slider Feature On Android
How To Bring Ubuntu Left App Slider Feature On Android

Get left app slider feature or Ubuntu gestures on your android device with Meteor which lets you have access to your apps by swiping on the left edge of the screen.
Android ecosystem can actually be more intense once you start to journey deeper into it. Day after day, developers are striving there best to debut the essential apps that can help bring more advance features on our android device. While exploring the Google playstore, I stumbled upon an app termed meteor (formely known as Grovebox), which can bring the Ubuntu for phones features on your android device. One of the highlights of Ubuntu for phones is the app launcher that comes up with a simple swipe from the left edge of the screen, allowing you to quickly launch an app from anywhere in the OS.

Meteor main function is to aid in multitasking by creating a slider where you can access your favorite apps from the left of the screen. The app brings lots of essential features and has been optimized to work on all android device without rooting. Thus in this article were going to reveal the best way to bring the Ubuntu left app slider feature on your android device.
Bring Ubuntu Left App Slider Features On Android Using Meteor
First and foremost youve to navigate to the Google playstore and download Meteor. Once after the app download process is complete, it will auto install itself. Now locate the app from your device app drawer and fire it up.
On the first launch, you will be presented with some intros about the app. Simply skip them to open the app main interface. Meteor doesnt offer much except the three options (Panel, Theme and Preference) that can be seen at the homepage.

By default theres only one Panel to select from, however once you upgrade to the Pro version of this app, you will get to enjoy more feature. Tap the "Pen" icon below the white box and select the apps you wish to access from the left side of the screen.

Next under "Theme", notice the "Pen" icon below the first theme, hit on it and a pop up box will appear. Now select your desired color and also change its transparency to your preference. Once youre through, hit the "Save" Button.

Now the Preference offers some tiny customization which youd like to activate. Simply hover in there and activate some of the options you found worthy. You can also "Blacklist" app in other to pause meteor while using the blacklisted app.

Now once youve tinkered with all the options to your preference, simply toggle the "OFF" button. A pop-up will emerge asking you to grant meteor accessibility service in other not to conflict with other apps and also to enable the Blacklist feature to work perfectly.

Next tick the box and you will be redirected to another screen. Your job here is to find Meteor from the list and enable it. Once done hit "OK" on the pop up box that will appear. Then notice the "Settings" option below the screen, simply click on it to navigate back to the Meteor app.
Notice
From the Preference options on Meteor app, jump into the "Trigger Settings" and tinker with some options. However make sure that you enable either of the first two options (Left Side or Right Side). In other to determine where exactly the slider will emerge. Apart from that, you can also set it to the "Hot Corners" if you prefer.
Final Words
One of the best feature Meteor brings is that you can also change your favorite app icon. Thus if youve some cool icon packs, then youre probably good to ride. The paid version of the app ($3.99) gives you access to many new features such as the ability to assign more than 8 shortcuts to the launcher and quick access to widgets. Overall the app is simply the best and you can tinker with various options in the app Preference to get a better and classic customization.Available link for download
Subscribe to:
Posts (Atom)