Free Android Tricks

Sunday

NOTICE: I'm beginning to see this tutorial on numerous other sites. I'm fine with it being posted on other sites, as long as I am given credit and have your thread point back to here for the pieces that I have specifically written. I do not condone near verbatim or verbatim copy and pasting of my work or others work without credit. Please give credit where credit is due. Thank you.

07-17-12: I have not, nor shall I ever claim copyright.


To compile Jellybean on Ubuntu I'm going to first give you steps to set up your computer to get this thing rolling.

You MUST be running a 64 bit version of Ubuntu, 32 bit is not supported.

This will NOT make a fully functional ROM, but will give you a place to start. Also I CANNOT fix every error you run into.

READ the entire OP and make sure to properly follow instructions. Don't forget to search the thread as your question may have already been answered.

Please use Pastebin for all errors you run into. Posting a link is much easier than a long list of errors in the thread. Thank you.

You will need 25GB (or more) free to complete a single build, and up to 80GB (or more) for a full set of builds.

1) You need the following:
-JDK 6 if you wish to build Jellybean.
Code:
$ sudo apt-get install openjdk-6-jdk
-Python, which you can download from python.org. Or:
Code:
$ sudo apt-get install python
-Git, which you can find it at git-scm.com. Or:
Code:
$ sudo apt-get install git-core
-Android SDK:
  • Download the SDK here: http://developer.android.com/sdk/index.html
  • Extract the SDK and place it in your home directory.
  • I renamed my SDK to android-sdk to make it easier to navigate to.
  • Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
  • Add these lines at the bottom of the file:
    Code:
    # Android tools
    export PATH=${PATH}:~/android-sdk/tools
    export PATH=${PATH}:~/android-sdk/platform-tools
    export PATH=${PATH}:~/bin
  • Find your .profile file and add this at the bottom of the file:
    Code:
    PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
  • You have now successfully installed the Android SDK.
  • To check for updates issue this into your terminal:
    Code:
    $ android

2) Install required packages.
Code:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils xsltproc
On Ubuntu 10.10:
Code:
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
On Ubuntu 11.10:
Code:
$ sudo apt-get install libx11-dev:i386
Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.
Code:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev x11proto-core-dev \
  libx11-dev libreadline6-dev libgl1-mesa-glx \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
3) Configure your USB.
Code:
$ gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of this blank text file insert:
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"

#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"

#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"

#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
4) Save the file and close it and then issue this command:
Code:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
5) Install the repo:
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
6) Initialize the repo:
Code:
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
6a) For AOSP:
Code:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1.2
For CM:
Code:
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
6.1) For people who have already done a repo init:
Code:
$ cd WORKING_DIRECTORY
AOSP:
Code:
$ repo init -b android-4.3_r2
$ repo sync
CM:
Code:
$ repo init -b cm-10.1
$ repo sync

7) When prompted, enter your real name and email address.

8) Gather the files:
Code:
$ repo sync
9) Continue onto adding a device

~How To Add A Device To The List~

1) Find the github for your device you wish to add. (For me it is the Samsung Epic 4G Touch [codename d710])

2) Now navigate to the location you are going clone the device tree to:
Code:
$ cd WORKING_DIRECTORY/device
$ mkdir samsung
3) Clone the github device tree from remote to local: (The name after the branch would be whatever you want that folder to be named so make sure it is whatever standard name would be for your device, example: Nexus One [passion], Nexus S [crespo], Motorola Droid [sholes], HTC Incredible [inc], etc.)
Code:
$ git clone git://github.com/CyanogenMod/android_device_samsung_d710.git -b cm-10.1 d710
4) Now navigate into the folder:
Code:
$ cd d710
5) Connect phone to computer and make sure USB debugging is enabled and you have adb set up.

6) Extract Device Proprietary Files:
Code:
$ ./extract-files.sh
Or:
Code:
./proprietary-files.sh
Or: See if other repos have your device's proprietary blobs already (like d710):
Code:
$ ~/WORKING_DIRECTORY
$ mkdir vendor
$ git clone https://github.com/TheMuppets/proprietary_vendor_samsung -b cm-10.2 samsung
6.1) Some devices have other dependencies like a common device repo. The d710 utilizes a galaxys2-common repo for the galaxys2 family of devices. Clone that repo. From inside the d710 folder:
Code:
$ cd ..
$ git clone git://github.com/CyanogenMod/android_device_samsung_galaxys2-common.git -b cm-10.1 galaxys2-common
7) Navigate back to your home directory for building:
Code:
$ cd ~/WORKING_DIRECTORY
8) Prepare To Compile:
Code:
$ source build/envsetup.sh
Or:
Code:
$ . build/envsetup.sh
9) Get your list of devices:
Code:
$ lunch
10) Pick your poison.

11) Now compile ('#' being the number of cores in your processor +1):
Code:
$ make -j#
12) Speed up builds using ccache (optional, but highly recommended): 
Edit your .bashrc and add this line at the bottom:
Code:
export USE_CCACHE=1
Then issue these commands:
Code:
$ export USE_CCACHE=1
$ export CCACHE_DIR=~/.ccache
$ prebuilts/misc/linux-x86/ccache/ccache -M 50G
The suggested cache size is 50-100G. (This is size in GB)

Or for a flashable zip:
Code:
$ make -j# otapackage
~FIXES~
If you are running into issues such as:

Code:
Which would you like? [full-eng] 5
build/core/product_config.mk:209: *** No matches for product "full_d710".  Stop.
Device d710 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for d710 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:209: *** No matches for product "full_d710".  Stop.

** Don't have a product spec for: 'full_d710'
** Do you have the right repo manifest?
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_d710.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you run into issues with Java being the incorrect version here is the fix: 
Make sure Java 6 JDK is installed by typing in:
Code:
$ java -version
Open the file main.mk in build/core and delete this line from the java error code section:
Code:
$(error stop)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Change all references in your device repo from frameworks/base to frameworks/native

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Apply this patch for guava: https://github.com/CyanogenMod/andro...617ebe4e731e09

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Android 4.1+ needs an insecure kernel to use adb: http://forum.xda-developers.com/show....php?t=1687590

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This tutorial is based off this one: http://source.android.com/index.html
Read More

0 comments:

Friday

Jar of Beans - Android Jelly Beans (4.1.1) Emulator - PORTABLE for Windows + PLAYSTORE + PLAY MUSIC + ARM COMPATIBILITY APP (with LIBHOUDINI XOLO)+ ROOT + Busybox + FLASH PLAYER + DEODEX + BACKUP MY APP + CHECK HAXM + DRIVER + Physical Drive FAT32/NTFS +CUSTOM KERNEL and more...
--------------------------------------------------------------------------
DOWNLOAD JAR OF BEANS (latest version) (WARNINGOPTIONAL ADS INSIDE)
[COLOR="Lime"][B][SIZE="2"]

thanks to the continuous assaults related to advertising, which with a little care you can not install because the installation optional, I stopped the project.
I was at the end of the version with Android 4.2.2 (not online)

if one day take up the project will be informed.


Thanks to people who are not Enlarged to tick boxes and press buttons to not install the publicity, the only source of revenue for the project ... it was reported the page on google code and closed.

a thanks is appreciated




--------------------------------------------------------------------------
Over 23.000 points on antutu (version beta 4.6.3)
Over 70.000 download (from old repository on rapidshare,
download the latest from google code not have been dropped for reasons of space, I added in the Annexes to the old download from rapidshare ... the total amounts to more than 70,000
)(version beta 1/2/3)
--------------------------------------------------------------------------


you what you would like?

--------------------------------------------------------------------------
FOUND IN THE JAR
--------------------------------------------------------------------------
NEW default Kernel Intel android-goldfish-2.6.29 with SFS/NTFS/FUSE/CIFS
Support Physical disk/usb storage FAT32
Support Physical disk/usb storage NTFS (max 128gb for partitions with "Paragon Mounter" - not included app)
Removed google search (QuickSearch.apk)
systam\app removed file odex (deodex)
framework removed file odex (deodex)
Flash player 11
Backup my App on PC
Libhoudini (for ARM application compatibility - EXPERIMENTAL (not correct working))
DALVIK PATCH ported from ANDROVM (For libhoudini start, dev on work  , not stable for now)
Increased stability on the emulator libhoudini
Optimized basic configuration of the emulator
Check driver HAXM
RAM control before Start Emulator (Reviewed)
System Partition max size = 2gb
Userdata Partition max size = 2gb
custom sd card size

Jelly Bean 4.1.1
Play Store 3.10.10
Google Play Music
Es File Manager (for shared folder and more)
Nova Launcher
Superuser + SU (x86)(integrated) FULL WORKING ROOT
Busybox Free (working) (integrated)
Gallery 4.2 (integrated)
Gmail 4.2 (integrated)
MX player (preinstalled)
MX player codec x86 (preinstalled)
Adnroid Terminal Emulator (integrated)

(webcam support default enabled
hw.camera.back = webcam0
hw.camera.front = webcam0)

Removed Api Demos & Gesture Builder
Custom Boot Animation (NEXUS)

Multi USER custom setting,data & sdcard

Assisted LAUNCH of Emulation (added skip button)
NEW Assisted set temp Permission and Install APK

REQUIRED: Supported HAXM acceleration
driver included in folder:
extras\intel

Support GPU accelleration


CUSTOM DNS (or PRESET, PUBLIC DNS)
System, data, sdcard (temp) write and read permission
Improved Stability of ADB and CMD auto control
Push File
Your Local IP Viewer

Custom size of RAM memory (min 128 mb/ 846mb MAX)

auto task killer for cmd e adb

Resolution:
->WVGA800
->WVGA854
->WXGA720
->HVGA
->QVGA
->WQVGA400
->WQVGA432
->WSVGA
->WXGA800
->WXGA800-7in
-Nexus7

HBehrens for Nexus-One & Nexus S skin

Customized for Jar of Beans:
800x480 (portait compatibile)
1024x600 (portait compatibile)
1280x768 (portait compatibile)
1400x900 (portait compatibile)
1920x1080  (portait compatibile)

CUSTOM DPI

FULL SCREEN Supported
ADB page, Custom Setting, changelog page and more more more...

--------------------------------------------------------------------------
BUGS - [problem with windows XP,VISTA or 8? (not tested), only win 7 tested for now]
--------------------------------------------------------------------------
AMD PROCESSOR = NO HAXM ACCELERATION
problems with some ati cards, not all, only some
random collapse of the Internet
No usb support
No battery support
By default only emulated camera
Test compatibility with arm
other ???

--------------------------------------------------------------------------
OTHER
--------------------------------------------------------------------------
To share folders used "ES File Manager", enter in the network folders on your IP address and you can access your shared folders in LAN
or use SMB/CIFS module
or load youd NTFS hdd on emulator

FOR VIDEO: USE "MX PLAYER" (with MX player codec x86) and play with ES File Manager (from shared folder for example), DIVX, MKV,Mp3 and other not tested
--------------------------------------------------------------------------

Jar of Beans If you liked and want to offer me a breakfast use the "donate"
ATTACHED THUMBNAILS
Click image for larger version

Name: Immagine.jpg
Views: 5367
Size: 128.3 KB
ID: 1475785   Click image for larger version

Name: root.jpg
Views: 2920
Size: 127.4 KB
ID: 1532850   Click image for larger version

Name: jar_of_beans_antutu.jpg
Views: 1791
Size: 94.3 KB
ID: 1574449   Click image for larger version

Name: jar_of_beans_antutu_2.jpg
Views: 1971
Size: 90.8 KB
ID: 1574450   Click image for larger version

Name: jar_of_beans_antutu_3.jpg
Views: 1526
Size: 76.3 KB
ID: 1574451

Click image for larger version

Name: jar_of_beans_antutu_4.jpg
Views: 1624
Size: 211.1 KB
ID: 1574452   Click image for larger version

Name: jar_of_beans_download.jpg
Views: 1131
Size: 38.2 KB
ID: 1628690  
Read More

1 comments:

Saturday

Click image for larger version

Name: Watch-the-Video-Showing-CyanogenMod-10-New-Boot-Animation.png
Views: 237
Size: 164.1 KB
ID: 2052113
cm10 transparent status bar + transparent notification drawer + dim behind notification all in one mod

IMPORTANT
Only for CM10 rom, if flashed with any other ROM it may cause Bootloop

SCREENSHOTS
TRANSPARENT STATUS BAR
Click image for larger version

Name: Screenshot_2013-06-18-19-26-50[1].jpg
Views: 658
Size: 21.2 KB
ID: 2052126



TRANSPARENT NOTIFICATION DRAWER
Click image for larger version

Name: Screenshot_2013-06-18-19-28-04[1].jpg
Views: 562
Size: 13.2 KB
ID: 2052128



DIM BEHIND NOTIFICATION PULL

In the beginning
Click image for larger version

Name: Screenshot_2013-06-18-19-27-54[1].jpg
Views: 505
Size: 21.2 KB
ID: 2052127

At the end
Click image for larger version

Name: Screenshot_2013-06-18-19-27-46[1].jpg
Views: 460
Size: 14.9 KB
ID: 2052129


STEPS

1: Download the .apk
2: Rename it to SystemUI.apk
3: Use Root explorer or anr Root browser ( ES explorer )
4: Copy the apk to /system/apps
5: Change permission to rw-r-r
6: Reboot

* If it pops up that "system ui has stopped !", just reboot. After the reboot everything will be fine 
Tested on p970



ATTACHED FILES
File Type: apkSystemUImodded.apk - [Click for QR Code] (1.26 MB, 272 views)
Read More

2 comments:

Recent Comments

click here