Building Images Containing Google Apps - G1 Q&A, Help & Troubleshooting

I'm having a bit of trouble with my image builds. If I build without the Google apps the image is fine (other than not having any useful apps). However, if I add the original Google apps (from the htc recovery image) during my image build the emulator just sits there at the animated boot screen.
I'm using the following to add the Google apps to my build
Code:
PRODUCT_PROPERTY_OVERRIDES := \
ro.com.google.locationfeatures=1
PRODUCT_PACKAGES := \
framework-res \
Browser \
Contacts \
Launcher \
HTMLViewer \
Phone \
DownloadProvider \
GoogleSearch \
MediaProvider \
GooglePartnerSetup \
GoogleSettingsProvider \
TelephonyProvider \
UserDictionaryProvider \
PackageInstaller \
Bugreport \
AlarmClock \
AlarmProvider \
Calendar \
Camera \
DrmProvider \
LatinIME \
Mms \
Music \
Settings \
Sync \
Updater \
CalendarProvider \
SyncProvider \
Calculator \
Email \
ImProvider
PRODUCT_COPY_FILES := \
/Volumes/android/mydroid/vendor/google/app/checkin.apk:system/app/checkin.apk \
/Volumes/android/mydroid/vendor/google/app/Gmail.apk:system/app/Gmail.apk \
/Volumes/android/mydroid/vendor/google/app/GmailProvider.apk:system/app/GmailProvider.apk \
/Volumes/android/mydroid/vendor/google/app/GoogleApps.apk:system/app/GoogleApps.apk \
/Volumes/android/mydroid/vendor/google/app/GoogleContactsProvider.apk:system/app/GoogleContactsProvider.apk \
/Volumes/android/mydroid/vendor/google/app/GooglePartnerSetup.apk:system/app/GooglePartnerSetup.apk \
/Volumes/android/mydroid/vendor/google/app/GoogleSettingsProvider.apk:system/app/GoogleSettingsProvider.apk \
/Volumes/android/mydroid/vendor/google/app/GoogleSubscribedFeedsProvider.apk:system/app/GoogleSubscribedFeedsProvider.apk \
/Volumes/android/mydroid/vendor/google/app/gtalkservice.apk:system/app/gtalkservice.apk \
/Volumes/android/mydroid/vendor/google/app/Maps.apk:system/app/Maps.apk \
/Volumes/android/mydroid/vendor/google/app/MediaUploader.apk:system/app/MediaUploader.apk \
/Volumes/android/mydroid/vendor/google/app/NetworkLocation.apk:system/app/NetworkLocation.apk \
/Volumes/android/mydroid/vendor/google/app/SetupWizard.apk:system/app/SetupWizard.apk \
/Volumes/android/mydroid/vendor/google/app/Street.apk:system/app/Street.apk \
/Volumes/android/mydroid/vendor/google/app/Talk.apk:system/app/Talk.apk \
/Volumes/android/mydroid/vendor/google/app/Vending.apk:system/app/Vending.apk \
/Volumes/android/mydroid/vendor/google/app/VoiceSearch.apk:system/app/VoiceSearch.apk \
/Volumes/android/mydroid/vendor/google/app/YouTube.apk:system/app/YouTube.apk \
/Volumes/android/mydroid/vendor/google/etc/permissions/com.google.android.gtalkservice.xml:system/etc/permissions/com.google.android.gtalkservice.xml \
/Volumes/android/mydroid/vendor/google/etc/permissions/com.google.android.maps.xml:system/etc/permissions/com.google.android.maps.xml \
/Volumes/android/mydroid/vendor/google/framework/com.google.android.gtalkservice.jar:system/framework/com.google.android.gtalkservice.jar \
/Volumes/android/mydroid/vendor/google/framework/com.google.android.maps.jar:system/framework/com.google.android.maps.jar
PRODUCT_NAME := htc_dream
PRODUCT_DEVICE := dream-open
PRODUCT_MANUFACTURER := htc
PRODUCT_BRAND := generic
PRODUCT_POLICY := android.policy_phone
in my .mk file. It there any way to discover what is causing this? Has anyone else suffered from this?
Ta
SC

No one? Really?
Nobody else is creating builds from source?
Is there a better place to ask this then?
SC

ScaredyCat said:
Nobody else is creating builds from source?
Is there a better place to ask this then?
SC
Click to expand...
Click to collapse
Have you checked the wiki? The developer wiki that is. You could try PMing a developer too

You might find this useful..
http://www.johandekoning.nl/index.php/2009/07/12/building-android-1-5-google-apps-and-audio-files/

alritewhadeva said:
Have you checked the wiki? The developer wiki that is. You could try PMing a developer too
Click to expand...
Click to collapse
Yes, I couldn't see anything there regarding adding Google apps to a build. It's a real shame since android isn't much fun/use without them
SC

goldenarmZ said:
You might find this useful..
http://www.johandekoning.nl/index.php/2009/07/12/building-android-1-5-google-apps-and-audio-files/
Click to expand...
Click to collapse
That's where I got my original info from to create the .mk file. Tried contacting that dev but no response as yet....

Related

IGO PRIMO?

anyone got primo working correctly?? and if so what sys.txt file are you uisng??
first put the primo folder into the sd card root. rename the folder as "Primo".
my sys.txt content is below. it is working great.
[interface]
show_exit=1
extra_settings=1
resolution_dir="320_240"
vga=1
shutdown_time="0"
recalc_voice=0
laneinfo_signpost_enabled=1
[folders]
sdcardpath="\storage card\Primo"
has_secondary_root=0
[map]
3d_dem=1
3d_dem_detail=2
popup_info=1
show_labels=1
follow_gps=1
2dheadup=1
3d_scale_carmodel=1
3dcarsizemin=10000
3dcarsizemax=15000
3dcarsizemul=20000
[route]
allow_offroad_waypoints=1
[other]
demo_enabled=0
[rawdisplay]
highres=1
screen_x=640
screen_y=480
stretch=0
[oasis]
exclude_directories="%root%/Application Data,%root%/Program Files,%root%/Windows,PICTURE::%app%/content/games"
include_directories="GAME::%app%/content/games,PICTURE::%sdcard%/my pictures,PICTURE::%sdcard%/dcim,PICTURE::%myflashdisk%/my pictures,PICTURE::%myflashdisk%/dcim,MUSIC::%sdcard%/my music,MUSIC::%sdcard%/dcim,MUSIC::%myflashdisk%/my music,MUSIC::%myflashdisk%/dcim"
[Registry]
oninit1 = "HKCU \ ControlPanel \ MotionSensor \ AutoOrientation: DWORD: 0"
onexitreset1 = "HKCU \ ControlPanel \ MotionSensor \ AutoOrientation: DWORD"
oninit2 = "HKEY_CURRENT_USER \ ControlPanel \ BackLight \ ALCMode: DWORD: 0"
onexitreset2 = "HKEY_CURRENT_USER \ ControlPanel \ BackLight \ ALCMode: DWORD '
[gps]
port=4
baud=38400
source="gns"
[warning]
speedcam_enabled=1
speedcam_max_angle=20
speedcam_max_lookahead=400
speedcam_maxdistance_from_road=10
speedcam_snap_distance=200
speedcam_soundtype=2 ;1=overspeed 2=approach
speedcam_visualtype=1
speedcam_warning=1
speedwarn_alt_limit=1
speedwarn_alt_tolerance=110
speedwarn_alt_toltype=1
speedwarn_tolerance=110
speedwarn_toltype=1 ;0-absolute or 1-percentage
warn_distances=120:500,100:400,80:400,50:300,30:20 0
speedcam_warning=all speedcam types
is_spoken=1
speedlimit_warning_voice="!radar"
[debug]
show_oneway=1 ;
show_oneway_3d=1
experimental_features=1
skip_eula=1
enable_roadshadow=1
enable_roadsign=1
show_pedestrian=1
show_roadid=1
show_segmentdir=1
show_lane_info=1
show_signpost=1
show_arrows_on_route=1
hnr=1
show_hnr=1
double_pixel_mode=2
ignore_pause=1
tunnel_mode=1
adaptive_2d=1
earth=1
show_junction_view=1
enable_buildings=1
show_poi_boundingrects=1
show_poi_areas=1
[strapon]
offroad_handling=1
[sound]
ding=0
wheelsound=1
use_method=1
sound_q_length=200
queue_length=200
mute_os_key=1
[shutdown_time]
interface=0
[feature]
tunnel_guidance=1
[route]
allow_offroad_waypoints=1
[mydata]
max_favorites=100
max_histories=50
[phone]
driver="TAPI"
exe_path="\Windows\cprog.exe"
win_name="Phone"
[dynamiccompressor]
compressor=1
ratio=9
gain=9
[3d_config]
disable_roadsign_navigation_mode=1
rotated_roadsigns=1
thanks
that was the info I was missing i was using a other data.zip and the screen was out of alignment.

COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is a guide to Compile From any CyanogenMod and CyanogenMod Source-Based source for Any Phone. This guide is for linux , Ubuntu etc.​
What you’ll need
A Phone Which runs Android
A relatively recent computer (Linux, OS X, or Windows) w/a reasonable amount of RAM and storage. The less RAM you have, the longer the build will take. Using SSDs results in faster builds than traditional hard drives.
A micro USB cable
A decent Internet connection & reliable electricity
Some familiarity with basic Android operation and terminology. It would help if you’ve installed custom roms on other devices and are familiar with what a recovery image such as ClockworkMod is, for example. It may also be useful to know some basic command line concepts such as cd for “change directory”, the concept of directory hierarchies, that in Linux they are separated by /, etc.
Note:
You want to use a 64-bit version of Linux. According to Google, 32-bit Linux environment will only work if you are building older versions prior to Gingerbread (2.3.x)/CyanogenMod 7.
Using a VM allows Linux to run as a guest inside your host computer-- a computer in a computer, if you will. If you hate Linux for whatever reason, you can always just uninstall and delete the whole thing. (There are plenty of places to find instructions for setting up Virtualbox with Ubuntu, so I’ll leave it to you to do that.)
Click to expand...
Click to collapse
So let’s begin!​
Build ROM and ClockworkMod Recovery
​
Prepare the Build Environment
Note:
You only need to do these steps the first time you build. If you previously prepared your build environment and have downloaded the CyanogenMod source code for another device, skip to Next Post.
Click to expand...
Click to collapse
Install the SDK
If you have not previously installed adb and fastboot, install the Android SDK. "SDK" stands for Software Developer Kit, and it includes useful tools that you will can use to flash software, look at the system logs in real time, grab screenshots, and more-- all from your computer.
Helpful Tip!
While the SDK contains lots of different things-- the two tools you are most interested in for building Android are adb and fastboot, located in the /platform-tools directory.
Click to expand...
Click to collapse
Install the Build Packages
Several "build packages" are needed to build From Source. You can install these using the package manager of your choice.
Helpful Tip!
A package manager in Linux is a system used to install or remove software (usually originating from the Internet) on your computer. With Ubuntu, you can use the Ubuntu Software Center. Even better, you may also use the apt-get install command directly in the Terminal. (Learn more about the apt packaging tool system from Wikipedia.)
Click to expand...
Click to collapse
For 32-bit & 64-bit systems, you'll need:
Code:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl
libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool
For 64-bit only systems, get these:
Code:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-4.7-multilib g++-4.5-multilib
For Linux Mint, you'll need:
Code:
libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils
Create the directories
Code:
mkdir -p ~/bin
Install the repo command
Enter the following to download the "repo" binary and make it executable (runnable):
Code:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Put the ~/bin directory in your path of execution
Make sure that the ~/bin directory you just created is in your path of execution so that you can easily run the repo command even when you're not in ~/bin. Assuming you are using the BASH shell, the default in recent versions of Ubuntu, you can set it like this:
Code:
export PATH=${PATH}:~/bin
Helpful Tip!
You can make this change to the path permanent for all future Terminal sessions:
Code:
gedit ~/.bashrc
This will launch a graphical text editor. Enter
Code:
export PATH=${PATH}:~/bin
on its own line, then save the file.
Click to expand...
Click to collapse
Initialize the source repository
Make a Folder to Download the Sources and cd to it. For That:
Code:
mkdir -p ~/Source
Code:
cd Source
Enter the following to initialize the repository:
REPOSITORY'S OF FAMOUS ROMS (Select One)
PAC-Man :
Code:
repo init -u git://github.com/PAC-man/android.git -b cm-10.2
CM 11.0 :
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
CM 10.1 :
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
CM10 :
Code:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
Click to expand...
Click to collapse
Download the source code
Code:
repo sync
Helpful Tip!
The repo sync command is used to update the latest source code from CyanogenMod and Google. Remember it, as you can do it every few days to keep your code base fresh and up-to-date.
Click to expand...
Click to collapse
Get prebuilt apps
Code:
cd ~/Source/vendor/cm
Code:
./get-prebuilts
How To Compile is there on next post ​
Prepare the device-specific code
After the source downloads, type:
Code:
. build/envsetup.sh
Then Do This
Code:
breakfast ******
Where ***** is the codename for your device
MAKE SURE YOUR PHONE IS ON OFFICIAL LATEST CYANOGENMOD ROM
Click to expand...
Click to collapse
Helpful Tip!
If you get a command not found error for lunch, be sure you’ve done the “. build/envsetup.sh” command from ~/Source. Notice there is a period and space (“. ”) in that command.
Click to expand...
Click to collapse
Extract proprietary blobs
Now ensure that your Phone is connected to your computer via the USB cable and that you are in the ~/Source/device/***/***** directory (you can cd ~/Source/device/***/****** if necessary). Run as Root if on Debian using sudo. Then run the this script:
Code:
./proprietary-files.sh
or
Code:
./extract-files.sh
Here ***** is Device codename and *** is the Phone Company like Samsung or HTC
For Example if my phone is note 2 then this will be the device path : ~/Source/device/Samsung/n7100
Click to expand...
Click to collapse
You should see the proprietary files (aka “blobs”) get pulled from the device and moved to the right place in the vendor directory. If you see errors about adb being unable to pull the files, adb may not be in the path of execution
Note:
It’s important that these proprietary files are properly extracted and moved to the vendor directory. Without them, CyanogenMod will build without error, but you’ll be missing important functionality, such as the ability to see anything!
Click to expand...
Click to collapse
Turn on caching to speed up build
Code:
export USE_CCACHE=1
Start the build
Code:
cd ~/Source
brunch *****
Here ***** is the Phone Codename
Helpful Tip!
If the build doesn't start, try lunch and choose your device from the menu. If that doesn't work, try breakfast and choose from the menu. The command make ***** should then work.
Click to expand...
Click to collapse
If the build breaks...
If you experience this not-enough-memory-related error...
Code:
ERROR: signapk.jar failed: return code 1make: *** [out/target/product/n7100/cm_n7100-ota-eng.root.zip] Error 1
...you may want to make the following change to This File : system/build/tools/releasetools/common.py
Change: java -Xmx2048m to java -Xmx1024m or java -Xmx512m
Then start the build again (with brunch).
If you see a message about things suddenly being “killed” for no reason, your (virtual) machine may have run out of memory or storage space. Assign it more resources and try again.
Install the build
Assuming the build completed without error (it will be obvious when it finishes), type:
Code:
# cd $OUT
in the same terminal window that you did the build. Here you’ll find all the files that were created. The stuff that will go in /system is in a folder called system. The stuff that will become your ramdisk is in a folder called root. And your kernel is called... kernel.
But that’s all just background info. The two files we are interested in are (1) recovery.img, which contains ClockworkMod recovery, and (2) cm-[something].zip, which contains ROM.
Install ROM
Back to the $OUT directory on your computer-- you should see a file that looks something like:
Code:
cm-10-20120718-UNOFFICIAL-***.zip
Here *** is the phone codename
Now you can flash the ...zip file above as usual via recovery mode. (Be sure you have backed up any previous installation before trying your new build.)
Feedbacks to this guide ​
tommyjt24 said:
I got my build working!
Great tutorial by the way!
Tom
Click to expand...
Click to collapse
sevenup30 said:
Well i finally sucessfully build.
thank you for your help
Click to expand...
Click to collapse
AndyFox2011 said:
Works like a charm, used it a while ago too set up on 12.10
Click to expand...
Click to collapse
sswb27 said:
Compiling cm10.1 worked great for my sgs3 d2tmo.Thank's for the tutorial it's been fun setting this up.
Click to expand...
Click to collapse
matt95 said:
really really good guide, very detailed and precise.
Click to expand...
Click to collapse
Koetermann said:
Hi there,
I was finally able to compile Cyanogenmod from source.
So, thanks for your guide an your support.Thanks a lot.
Regards Koetermann
Click to expand...
Click to collapse
AndyFox2011 said:
Used your guide again to setup my PC for building! Worked like a charm on 11.04
Click to expand...
Click to collapse
Melch1zedeK said:
thanks for post this, great and simple guide for n00bs (like me)
Click to expand...
Click to collapse
VipSaran said:
This tutorial ROCKS! :good: . Successfully built i9300 starting from fresh ubuntu 12.10 installation w/o even a hickup
Click to expand...
Click to collapse
Read the Below Command Before Asking question regarding Device tree : Credit @speed_bot
HTML:
#include
#include /ps my own header/
main()
{
int device tree,rom;
for((device==1) || (device tree =1))
printf("you can build a rom");
else
printf("you cant :P");
}
Great guide!
I want to build cm10.1 for x10 mini and I have to modify
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="teamhacksung/buildscripts" path="buildscripts" remote="github" revision="jellybean">
<copyfile dest="build.sh" src="build.sh" />
</project>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_samsung_n7000" path="device/samsung/n7000" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="jellybean" />
</manifest>
right? So, how can I do that? What should I change it into? Thanks
pongnamu said:
Great guide!
I want to build cm10.1 for x10 mini and I have to modify
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="teamhacksung/buildscripts" path="buildscripts" remote="github" revision="jellybean">
<copyfile dest="build.sh" src="build.sh" />
</project>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_samsung_n7000" path="device/samsung/n7000" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="jellybean" />
</manifest>
right? So, how can I do that? What should I change it into? Thanks
Click to expand...
Click to collapse
You can Pm Freexperia for that.
i dont know every android phone's code
i know about freeexperia because i own a xperia mini myself
mithun46 said:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.6-dev python
​
Click to expand...
Click to collapse
M getting error
[email protected]:~$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.6-dev python
[sudo] password for jolly:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lib32bz2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32ncurses5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32readline-gplv2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32readline5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lib32readline6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
E: Unable to locate package lib32z-dev
E: Package 'lib32readline-gplv2-dev' has no installation candidate
E: Package 'lib32readline5' has no installation candidate
E: Package 'lib32readline6' has no installation candidate
E: Package 'lib32bz2-dev' has no installation candidate
E: Unable to locate package libwxgtk2.6-dev
E: Couldn't find any package by regex 'libwxgtk2.6-dev
Click to expand...
Click to collapse
​
dewanshu93 said:
M getting error
Click to expand...
Click to collapse
sorry for my mistake
u should enter it in package manager and install them all
Your local_manifest.xml is incorrect for compiling CM10.1.
chasmodo said:
Your local_manifest.xml is incorrect for compiling CM10.1.
Click to expand...
Click to collapse
The Below Manifest is for Compiling CM10. Not CM10.1
Good effort though
Sent from my GT-N7000 using xda app-developers app
The issue with guides like these is they are specific to one version of Ubuntu. I successfully build Android on gentoo, which has about as little in common with Ubuntu as possible. Hence we prefer to go for guides which, where possible, teach the reasoning, rather than the method.
For building CM, this might be worthwhile merging into the "how to build android from source" one?
Unfortunately this guide isn't usable for most people, as it relies on the hacksung build scripts, so you can only build for certain devices...
What might be better is a guide on using roomservice via lunch, to build for any device?
pulser_g2 said:
The issue with guides like these is they are specific to one version of Ubuntu. I successfully build Android on gentoo, which has about as little in common with Ubuntu as possible. Hence we prefer to go for guides which, where possible, teach the reasoning, rather than the method.
For building CM, this might be worthwhile merging into the "how to build android from source" one?
Unfortunately this guide isn't usable for most people, as it relies on the hacksung build scripts, so you can only build for certain devices...
What might be better is a guide on using roomservice via lunch, to build for any device?
Click to expand...
Click to collapse
i said in starting This is based for Galaxy Note 1 But You can edit to make for your phone
I'd guess this is a step by step guide for people with this device as others have said and it is very specific. What would be useful is if you did it in steps and was more generic, say when you set up your environment you tell the reader to check for himself in device forums for a devs source code to be able to try. and if that is too difficult to explain then you may have to explain the principle for the people with little to no knowledge of building what they are doing instead of type this and paste that. great idea, but needs much improvement in actual teaching. also if someone had the knowledge to edit to make it for their own phones then they wouldn't need to use this guide in the first place.
Thanks for this nice guide! Thanks +1 for you! :good:
For some reason the CM repo isnt syncing in the folder I want it to.
Code:
mkdir ~/cm10
cd ~/cm10
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync -j16
It just spits everything in the home directory (~/) and the working folder I wanted everything in (~/cm10) is empty.
Any idea what the hell I'm doing wrong?
Edit: Well I got it to sync in the folder I wanted it to finally. I had to
Code:
rm -rf ~/.repo
first before it would initialize in my cm10 folder. Absolutely bizarre...
@OP
You might wanna change "CopyPasta" to "Copy-Paste".
i made it for fun
Oh okay then. But to me, it seems a bit...err...unprofessional. No offense intended.
mithun46 said:
sorry for my mistake
u should enter it in package manager and install them all
Click to expand...
Click to collapse
Using aptitude I've got this:
[email protected]:~$ sudo aptitude install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-ddev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.6-dev python
Keine Kandidatsversion für lib32ncurses5-dev gefunden
Keine Kandidatsversion für ia32-libs gefunden
Es konnte kein Paket gefunden werden, dessen Name oder Beschreibung auf »lib32z-dev« passt.
Keine Kandidatsversion für lib32readline-gplv2-dev gefunden
Keine Kandidatsversion für lib32readline5 gefunden
Keine Kandidatsversion für lib32readline6 gefunden
Keine Kandidatsversion für lib32bz2-dev gefunden
Keine Kandidatsversion für libwxgtk2.6-dev gefunden
Keine Kandidatsversion für lib32ncurses5-dev gefunden
Keine Kandidatsversion für ia32-libs gefunden
Es konnte kein Paket gefunden werden, dessen Name oder Beschreibung auf »lib32z-dev« passt.
Keine Kandidatsversion für lib32readline-gplv2-dev gefunden
Keine Kandidatsversion für lib32readline5 gefunden
Keine Kandidatsversion für lib32readline6 gefunden
Keine Kandidatsversion für lib32bz2-dev gefunden
Keine Kandidatsversion für libwxgtk2.6-dev gefunden
Die folgenden NEUEN Pakete werden zusätzlich installiert:
bison flex g++-4.7-multilib{a} g++-multilib gcc-4.7-multilib{a} gcc-multilib{a} ghc{a} git{a} git-core git-man{a} gperf lib64gcc1{a} lib64gomp1{a} lib64itm1{a} lib64quadmath0{a}
lib64stdc++6{a} libasound2-dev{a} libaudiofile-dev{a} libavahi-client-dev{a} libavahi-common-dev{a} libbison-dev{a} libbsd-dev{a} libbz2-dev libc6-amd64{a} libc6-dev-amd64{a}
libcaca-dev{a} libdbus-1-dev{a} libesd0-dev libffi-dev{a} libfl-dev{a} libghc-bzlib-dev libglib2.0-dev{a} libgmp-dev{a} libgmpxx4ldbl{a} liblzo2-2{a} libncurses5-dev libpcre3-dev{a}
libpcrecpp0{a} libpng12-dev{a} libpulse-dev{a} libreadline-dev libreadline6-dev libsdl1.2-dev libslang2-dev{a} libtinfo-dev{a} mingw32 mingw32-binutils{a} mingw32-runtime{a} pngcrush
python-markdown python-pygments{a} schedtool squashfs-tools tofrodos xsltproc
Die folgenden Pakete werden ENTFERNT:
ca-certificates-java{u} libatk-wrapper-java{u} libatk-wrapper-java-jni{u} tzdata-java{u}
0 Pakete aktualisiert, 55 zusätzlich installiert, 4 werden entfernt und 0 nicht aktualisiert.
103 MB an Archiven müssen heruntergeladen werden. Nach dem Entpacken werden 425 MB zusätzlich belegt sein.
Möchten Sie fortsetzen? [Y/n/?] y
Running Kubuntu 12.10, KDE 4.9.4
try to use stock package manager
mithun46 said:
try to use stock package manager
Click to expand...
Click to collapse
Isn't "apt" the "stock" package manager in (K)Ubuntu?
But I've another question @mithun46: Is it possible, that your guide only works on a 64bit edition of ubuntu? So that 32bit installations ain't supported?

(Tutorial) Selecting a frequency for WI-FI

Hi,
it's very simple.
1) decompile framework-res.apk
2) Open the \ res \ values ​​\ bools.xml there were:
<bool name="config_wifi_dual_band_support">false</bool>
and change to:
<bool name="config_wifi_dual_band_support">true</bool>
abdullahazad said:
Hi,
it's very simple.
1) decompile framework-res.apk
2) Open the \ res \ values ​​\ bools.xml there were:
<bool name="config_wifi_dual_band_support">false</bool>
and change to:
<bool name="config_wifi_dual_band_support">true</bool>
Click to expand...
Click to collapse
I'm looking through my decompiled framework-res.apk right now and don't see a bools.xml in the values folder on my D6503 on the .167 build (4.4.4). What version of the software did you do this on?
Good

[ROM][5.0.2][LRX22G] OmniRom UnOfficial

OmniRom 100% functional, compiled servers omni project.
Code:
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib
sudo apt-get update && sudo apt-get install openjdk-7-jdk && sudo update-alternatives --config java && sudo update-alternatives --config javac
sudo apt-get install bison g++-multilib git gperf libxml2-utils
mkdir -p ~/bin
mkdir -p ~/android/omni
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo "export PATH=~/bin:$PATH" >> ~/.bashrc
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
cd ~/android/omni
repo init -u https://github.com/omnirom/android.git -b android-5.0
repo sync -j16 -C --no-clone-bundle
echo "export USE_CCACHE=1" >> ~/.bashrc
~/android/omni/prebuilts/misc/linux-x86/ccache/ccache -M 25G
. build/envsetup.sh
breakfast mako
brunch mako
make
out/target/product/mako/omni-5.0-<date>-mako-HOMEMADE.zip
OmniROM-5.0.2-20150218-mako-HOMEMADE.zip ==> Uploading 0%
... More details please?
icu64 said:
... More details please?
Click to expand...
Click to collapse
The omniROM 5.0 has been completed and is fully functional for Nexus 4, but the desenvolderores not yet compiled nor provide for installation.
I downloaded the source code, compiled and am completing the compilation that will soon be posted here.
More http://docs.omnirom.org/Lollipop_Device_Status#mako_-_Nexus_4
Are you part of the team or just compiling? Because if that's the case, this shouldn't be labeled as official in anyway...
jacoghi said:
Are you part of the team or just compiling? Because if that's the case, this shouldn't be labeled as official in anyway...
Click to expand...
Click to collapse
Only compiled without any modifications to the original, thus considered official.
Assis Brandão said:
Only compiled without any modifications to the original, thus considered official.
Click to expand...
Click to collapse
Many build from source and its still unofficial. Does not matter if there aren't any modifications made. You are not part of the team nor a maintainer for the device making it unofficial.
xWolf13 said:
Many build from source and its still unofficial. Does not matter if there aren't any modifications made. You are not part of the team nor a maintainer for the device making it unofficial.
Click to expand...
Click to collapse
^ strongly agree
We do not allow placeholder threads on XDA. Only create a thread when you have the ROM uploaded and you are ready to make it available to the community. When the ROM is uploaded you can report your thread to be reopened.
As for the whole official/unofficial business unless you are an OFFICIAL maintainer for Omni ROM then your thread should be labelled UNOFFICIAL.
Thread temp closed

[RELEASED-CHECK DEVELOPEMENT SECTION] AOKP For ALE-L21

================================================== ==========================
______ _____ __ __ _____
/\ _ \/\ __`\/\ \/\ \ /\ _ `\
\ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \
\ \ __ \ \ \ \ \ \ , < \ \ ,__/
\ \ \/\ \ \ \_\ \ \ \`\ \ \ \/ ---Here it should say AOKP, but xda streched it or something
\ \_\ \_\ \_____\ \_\ \_\ \_\
\/_/\/_/\/_____/\/_/\/_/ \/_/
=============================-Package complete-=============================
Folder : /home/andrei/android/system/out/target/product/alice
ZipName: aokp_alice_mm_unofficial_2017-05-26_2143.zip
MD5 : 4b0971e25baed04e70b758c5db63e135
Size : 460M
================================================== ==========================
make: Leaving directory '/home/andrei/android/system'
#### make completed successfully (03:48:48 (hh:mm:ss)) ####
Tommorow I will test it, and if it works, I will release it as fast as I can!
Bugs: (After I will test it)
-Unknown ?
XTutorials said:
================================================== ==========================
______ _____ __ __ _____
/\ _ \/\ __`\/\ \/\ \ /\ _ `\
\ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \
\ \ __ \ \ \ \ \ \ , < \ \ ,__/
\ \ \/\ \ \ \_\ \ \ \`\ \ \ \/ ---Here it should say AOKP, but xda streched it or something
\ \_\ \_\ \_____\ \_\ \_\ \_\
\/_/\/_/\/_____/\/_/\/_/ \/_/
=============================-Package complete-=============================
Folder : /home/andrei/android/system/out/target/product/alice
ZipName: aokp_alice_mm_unofficial_2017-05-26_2143.zip
MD5 : 4b0971e25baed04e70b758c5db63e135
Size : 460M
================================================== ==========================
make: Leaving directory '/home/andrei/android/system'
#### make completed successfully (03:48:48 (hh:mm:ss)) ####
Tommorow I will test it, and if it works, I will release it as fast as I can!
Bugs: (After I will test it)
-Unknown ?
Click to expand...
Click to collapse
Brilliant good work I didn't get as far as that
What is the difference?
D1stRU3T0R said:
What is the difference?
Click to expand...
Click to collapse
Difference compared to what rom?
XTutorials said:
Difference compared to what rom?
Click to expand...
Click to collapse
Stock, latest for example
Rom has been released! Check Developing section!

Categories

Resources