yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] muk12:
I have done the AOKP repo sync again and do not see a local_manifest.xml in the .repo dir .I'm confused now, how to go about building for i9300.
[Android Q&A, Help & Troubleshooting] speed_bot:
just add your device tree in device/samsung/your device name
[Android Q&A, Help & Troubleshooting] muk12:
I'm not sure about adding the device tree manually. Can You help me please.

---------- Post added at 06:15 PM ---------- Previous post was at 06:13 PM ----------

I do see these files in the

$>pwd
/Volumes/Android/AOKP/device/samsung/i9300
root@Mukeshs-MacBook-Pro:i9300 $>ls
.DS_Store	bluetooth	i9300.mk
.git	cm.dependencies	init.smdk4x12.rc
Android.mk	cm.mk	overlay
AndroidProducts.mk	configs	recovery.fstab
BoardConfig.mk	extract-files.sh	system.prop
DeviceSettings	fstab.smdk4x12
audio	full_i9300.mk.bk
root@Mukeshs-MacBook-Pro:i9300 $>cd DeviceSettings/
root@Mukeshs-MacBook-Pro:DeviceSettings $>ls
Android.mk	res
AndroidManifest.xml	src
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
I keep getting Kernel_obj error 2

Device epicmtd kernel in local manifest Samsung victory it downloaded it but I keep getting local manifest deprecated and that error
[Android Q&A, Help & Troubleshooting] cbucz24:
Hey honestly, the easiest way to figure out what items that need to be added is to copy it from someone else. Not stealing their work, btw.

What I mean by that is...

It looks like your building for Samsung i9300...so open Google and put in i9300 github. It will bring up a list of repos.

Now you can simply create a list off their respective files. It's going to take time to learn and your going to have lots of errors at first.

But with trial an error you will get it. We are here to help, but no one is going to hold your hand. Its a long process.

---------- Post added at 02:17 PM ---------- Previous post was at 02:16 PM ----------

Local manifest error is fine...for the other we need a log please
[Android Q&A, Help & Troubleshooting] ktempleton:
adding java

ok so im adding the ability for the camera to store on the sd card and this requires additions to the java source ive added the needed lines and now im missing symbols, the problem is i have no idea how to add these ive read some on grep but the posts i have found are not specific enough for me to attempt it heres the symbols i need

packages/apps/Gallery2/../Camera/src/com/android/camera/ActivityBase.java:241: cannot find symbol

symbol : variable pref_camera_storage_title_default

location: class com.android.camera.R.string

getResources().getString(R.string.pref_camera_storage_title_default));

^

packages/apps/Gallery2/../Camera/src/com/android/camera/Util.java:172: cannot find symbol

symbol : variable noFaceDetectOnBackCamera

location: class com.android.camera.R.bool

R.bool.noFaceDetectOnBackCamera);

^

packages/apps/Gallery2/../Camera/src/com/android/camera/CameraActivity.java:69: cannot find symbol

symbol : variable ic_switch_gallery

location: class com.android.camera.R.drawable

R.drawable.ic_switch_gallery

^

packages/apps/Gallery2/../Camera/src/com/android/camera/ui/CameraSwitcher.java:160: cannot find symbol

symbol : variable ic_switch_gallery

location: class com.android.camera.R.drawable

case R.drawable.ic_switch_gallery:

^

packages/apps/Gallery2/../Camera/src/com/android/camera/ui/CameraSwitcher.java:162: cannot find symbol

symbol : variable accessibility_switch_to_gallery

location: class com.android.camera.R.string

R.string.accessibility_switch_to_gallery));

^

packages/apps/Gallery2/../Camera/src/com/android/camera/PhotoModule.java:2419: cannot find symbol

symbol : variable pref_camera_focustime_default

location: class com.android.camera.R.string

mActivity.getString(R.string.pref_camera_focustime_default))));

^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

6 errors

make: *** [/home/ken/android/4.2/aokp/out/target/common/obj/APPS/Gallery2_intermediates/classes-full-debug.jar] Error 41

ken@ken:~/android/4.2/aokp$

any one know how to finish this is the last step before my camera is fixed in my build thanks
[Android Q&A, Help & Troubleshooting] mikshepard:
Hey all, I've been trying to compile a SlimRom 4.2 for my Jewel device. I'm failing on this error though and I can't figure out where to go from here:

target Executable: hostapd (/root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/LINKED/hostapd)
/root/android/slimrom-4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/src/drivers/driver_nl80211.o: in function nl80211_set_p2p_powersave:external/wpa_supplicant_8/hostapd/src/drivers/driver_nl80211.c:9059: error: undefined reference to 'wpa_driver_set_p2p_ps'
/root/android/slimrom-4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x104): error: undefined reference to 'wpa_driver_set_ap_wps_p2p_ie'
/root/android/slimrom-4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x140): error: undefined reference to 'wpa_driver_get_p2p_noa'
/root/android/slimrom-4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x144): error: undefined reference to 'wpa_driver_set_p2p_noa'
/root/android/slimrom-4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x1a0): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
collect2: ld returned 1 exit status
make: *** [/root/android/slimrom-4.2/out/target/product/jewel/obj/EXECUTABLES/hostapd_intermediates/LINKED/hostapd] Error 1

Any ideas to point me in the right direction? I'm completely stuck on this one..

Many thanks in advance,

-Mike
[Android Q&A, Help & Troubleshooting] speed_bot:
make clean make clobber then build again
[Android Q&A, Help & Troubleshooting] mikshepard:
Thanks, I already tried that but still got the same result. Any other ideas?

Appreciate the help,

Mike
[Android Q&A, Help & Troubleshooting] ktempleton:
Looking at it it seems to me that you have to define those drivers i can't really tell where they are because I'm at work and reading on the fly but follow the path to the file its talking about and look at it to see if other things are defined usually near the top of the file and then try to define the ones it's referring to
[Android Q&A, Help & Troubleshooting] mikshepard:
Yeah, I keep scanning through all this but I'm bashing my head against a wall trying to figure out what's going on. I'll keep digging around in here and see what I come up with, please let me know if you think of anything.

Thanks,

Mike

EDIT: I have an idea, let me do some switching to my local_manifests.xml and see if that fixes it.. I'll get post back when I have results. Thanks!
[Android Q&A, Help & Troubleshooting] ktempleton:
You need the decon fig file for your phone

I don't know if your phone has one or not but of others have built for it then it should

You should use this kernel source it has the file you need under arch/arm/configs

https://github.com/CyanogenMod/android_kernel_samsung_epicmtd
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Thanks because I did have that one the first time but I deleted my source and restarted and since i been getting errors much appreciated so delete my kernel folder correct cd to my working directory make clean and make clobber then run the build script ./build-pac.sh epicmtd true to fetch my sources
[Android Q&A, Help & Troubleshooting] ktempleton:
I always sync before i build but if I remember correctly that should do it
[Android Q&A, Help & Troubleshooting] ktempleton:
Download that kernel and put it under kernel/Samsung/epicmtd and then try
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Lol I'm doing it now saved it a zip thanks I'm waiting on the next error

---------- Post added 6th February 2013 at 12:12 AM ---------- Previous post was 5th February 2013 at 11:55 PM ----------

I'm bound to get that config XML error again I don't understand the part about add resource command you provided
[Android Q&A, Help & Troubleshooting] elia222:
I'm trying to build SlimICS for xperia u (kumquat).

Github links: https://github.com/CyanogenMod/android_device_sony_kumquat and https://github.com/CyanogenMod/android_device_sony_montblanc-common

I'm getting this error:

Any ideas to solve this? I've already tried make clean and make clobber, but I'm still getting that error.

Thanks in advance ;)

Edit: If I prompt brunch kumquat without make clean it goes ahead but now I'm stuck here:
[Android Q&A, Help & Troubleshooting] ktempleton:
Search for project rookie in the skyrocket forum then search that thread for guava patch not sure if that's what's going on but its a pretty good chance that's what it is
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Thanks I am positive just do not know how to use the patch
[Android Q&A, Help & Troubleshooting] elia222:
Fixed the 2nd error, some patches for st-ericsson chipset were missing :)

Now I'm just getting this one:
[Android Q&A, Help & Troubleshooting] Nihar.G:
https://gist.github.com/NiharG15/4722938

Can anyone help me with this ?

I'm building PAC-man ROM for HTC Pico.
[Android Q&A, Help & Troubleshooting] ktempleton:
There should be directions in that thread also i subscribe to that thread to because its so helpful with many errors you might run into with building
[Android Q&A, Help & Troubleshooting] speed_bot:
go to packages/mms

rename android.mk to android.mk.disabled dirty hack but works
[Android Q&A, Help & Troubleshooting] speed_bot:
well you are missing some prebuilt stuff so manually download them and place it in the corresponding directory
[Android Q&A, Help & Troubleshooting] Nihar.G:
Okay.. will try that. What I did is disabled the mms package in telephony.mk. So I can use a prebuilt one.

What does renaming to android.mk.disabled do ? Same thing or anything else ?
[Android Q&A, Help & Troubleshooting] krille_java:
Hi!

Tried to sync today but i can't, some error saying something is not commented in .repo/repo... so i $git reset --hard and repo sync :cyclops:

So now everything is f!@ked up... I attached a pic.

Please what should i do?

I'am on repo 1.19 i think,, i have patched the manifest.xml.py so my manifest.xml is in the directory local_manifests in .repo.

Everything was working so fine for several Weeks up until now... :(
[Android Q&A, Help & Troubleshooting] cbucz24:
If templeton's command doesn't work then use my method. It manually adds the resource to the file.

---------- Post added at 01:30 PM ---------- Previous post was at 01:24 PM ----------

Sometimes when you mess with the repo files things get messed up.

Easy fix...I assume you have the repo init command string you started with...

Delete everything in the ./repo folder but your local.manifest.xml.

Then reinitialize the repo like your starting from scratch. Its going to ask you the same questions.

Then run repo sync and it should be fixed.
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Thanks so far I did find a guide that helped me out on the java error 41 so far its building no errors yet
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Error build pacman rom epicmtd

Dont know what happened but it just says killed at the end my pc is slow single core amd x64 1gb ram so it takes longer to start over
[Android Q&A, Help & Troubleshooting] speed_bot:
Listen up guys im gonna put this bold

For those who want to add projects or remove projects from the manifest stop.........

Get a github account... if you wana change the manifest of aokp go to githu.com/aokp and search for a repo named android ..fork it edit and add or remove whatever you want then repo init from your repo ie .... if the repo init command is repo init -u git www.github.com/aokp/android.git then you need to replace aokp with your username..and please dont use local manifests...

ps
[Android Q&A, Help & Troubleshooting] speed_bot:
you need more processing power add a bit of swap maybe...ps you can use zram if you are on a higher distro..btw if you using make -j4 or -j4 reduce it to 2 or 1 maybe
[Android Q&A, Help & Troubleshooting] speed_bot:
Solution

build/core/base_rules.mk:133: *** vendor/samsung/smdk4412-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libTVOut already defined by vendor/samsung/i9300/proprietary. Stop.

read this line its like same driver been defined in two places and the build doesnt know which to make use of hence result the build breaks..
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
im running ubuntu 10.04 just disabled swap dont know how to add it if i already have Ubuntu on 1 of my partitions do i need to make another one especially for swap because i barely use windows i dont know what -j4 is i use the pacman rom script

. build/envsetup.sh

then ./build-pac.sh epicmtd true
[Android Q&A, Help & Troubleshooting] speed_bot:
copy paste the build.pac.sh script here in html tag please
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Error build pacman rom

Sorry but how do i use the html code i asked someone earlier how to do that
[Android Q&A, Help & Troubleshooting] muk12:
See the screenshot , u basically put the script/code in the HTML tags
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
thanks

---------- Post added at 09:13 PM ---------- Previous post was at 09:04 PM ----------

dont know what you really need the script itself but putting the script in code made more sense

#!/bin/bash

# get current path
reldir=`dirname $0`
cd $reldir
DIR=`pwd`

# Colorize and add text parameters
red=$(tput setaf 1) # red
grn=$(tput setaf 2) # green
cya=$(tput setaf 6) # cyan
txtbld=$(tput bold) # Bold
bldred=${txtbld}$(tput setaf 1) # red
bldgrn=${txtbld}$(tput setaf 2) # green
bldylw=${txtbld}$(tput setaf 3) # yellow
bldblu=${txtbld}$(tput setaf 4) # blue
bldppl=${txtbld}$(tput setaf 5) # purple
bldcya=${txtbld}$(tput setaf 6) # cyan
txtrst=$(tput sgr0) # Reset

THREADS="16"
DEVICE="$1"
EXTRAS="$2"

# get current version
MAJOR=$(cat $DIR/vendor/pac/config/pac_common.mk | grep 'PAC_VERSION_MAJOR = *' | sed 's/PAC_VERSION_MAJOR = //g')
MINOR=$(cat $DIR/vendor/pac/config/pac_common.mk | grep 'PAC_VERSION_MINOR = *' | sed 's/PAC_VERSION_MINOR = //g')
MAINTENANCE=$(cat $DIR/vendor/pac/config/pac_common.mk | grep 'PAC_VERSION_MAINTENANCE = *' | sed 's/PAC_VERSION_MAINTENANCE = //g')
VERSION=$MAJOR.$MINOR.$MAINTENANCE

# if we have not extras, reduce parameter index by 1
if [ "$EXTRAS" == "true" ] || [ "$EXTRAS" == "false" ]
then
SYNC="$2"
UPLOAD="$3"
else
SYNC="$3"
UPLOAD="$4"
fi

# get time of startup
res1=$(date +%s.%N)

# we don't allow scrollback buffer
echo -e '\0033\0143'
clear

echo -e "${cya}Building ${bldgrn}P ${bldppl}A ${bldblu}C ${bldylw}v$VERSION ${txtrst}";

# PAC device dependencies
echo -e ""
echo -e "${bldblu}Looking for PAC product dependencies ${txtrst}${cya}"
./vendor/pac/tools/getdependencies.py $DEVICE
echo -e "${txtrst}"

# decide what command to execute
case "$EXTRAS" in
threads)
echo -e "${bldblu}Please write desired threads followed by [ENTER] ${txtrst}"
read threads
THREADS=$threads;;
clean)
echo -e ""
echo -e "${bldblu}Cleaning intermediates and output files ${txtrst}"
make clean > /dev/null;;
esac

# download prebuilt files
echo -e ""
echo -e "${bldblu}Downloading prebuilts ${txtrst}"
cd vendor/cm
./get-prebuilts
cd ./../..
echo -e ""

# sync with latest sources
echo -e ""
if [ "$SYNC" == "true" ]
then
echo -e "${bldblu}Fetching latest sources ${txtrst}"
repo sync -j"$THREADS"
echo -e ""
fi

rm -f out/target/product/*/obj/KERNEL_OBJ/.version

# setup environment
echo -e "${bldblu}Setting up environment ${txtrst}"
. build/envsetup.sh

# lunch device
echo -e ""
echo -e "${bldblu}Lunching device ${txtrst}"
lunch "pac_$DEVICE-userdebug";

echo -e ""
echo -e "${bldblu}Starting compilation ${txtrst}"

# start compilation
brunch "pac_$DEVICE-userdebug";
echo -e ""

rm -f out/target/product/*/pac_*-ota-eng.*.zip

# finished? get elapsed time
res2=$(date +%s.%N)
echo "${bldgrn}Total time elapsed: ${txtrst}${grn}$(echo "($res2 - $res1) / 60"|bc ) minutes ($(echo "$res2 - $res1"|bc ) seconds) ${txtrst}"
[Android Q&A, Help & Troubleshooting] speed_bot:
THREADS="16"

you are compiling 16 stuff simultaneously so its bound to crash reduce the number
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Most likely why PC keep freezing I did get the swap memory added 2gb like a site said and I'm reducing threads to 2
[Android Q&A, Help & Troubleshooting] elia222:
I'm building SlimICS for xperia u, I got this error after 3 hours that was building :(

Any ideas?

Thanks in advance ;)
[Android Q&A, Help & Troubleshooting] speed_bot:
hmm camera is buggy as one would expact uncomment it from the build
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Error build pacman rom

rmediates/classes-jarjar.jar
Copying: /home/dev/android/system/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/dev/android/system/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar
Copying: /home/dev/android/system/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.jar
host Java: dx (/home/dev/android/system/out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: /home/dev/android/system/out/host/linux-x86/framework/dx.jar
Copy: dx (/home/dev/android/system/out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx)
Notice file: dalvik/dx/NOTICE -- /home/dev/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//bin/dx.txt
Install: /home/dev/android/system/out/host/linux-x86/bin/dx
target Dex: core
make: *** [/home/dev/android/system/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes-with-local.dex] Killed
[Android Q&A, Help & Troubleshooting] speed_bot:
i dont see any errors can you do make clean and then re compile??
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Tried that I reduced my threads to 2 and still killed at the end and pc froze so I reduced it to 1 and still got the error at first it was a java lib error I fixed that by editing the java file in guava folder I hope I don't have to repo sync again I was told my pc was too slow so I added a 2gb swap file just don't know what's going on
[Android Q&A, Help & Troubleshooting] speed_bot:
i strongly recommend you to consider updating your rig
[Android Q&A, Help & Troubleshooting] mikshepard:
Sorry to bump this, but I'm still at a loss with this error. If it's complaining about undefined bluetooth refereences, how and where would I go about defining them? Or is there some easier solution I'm missing? I'm been searching google and looking at the code files but I'm very confused on this. Thanks for any help

-Mike
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
I am getting a quad core pc 8gb of ram guess ill wait till the summer and learn to build from source
[Android Q&A, Help & Troubleshooting] cbucz24:
That's cool, we will all still be here. I got a new rig last Nov. I got a i5 with 8gb ram.

Could always be faster. Lol

Good luck:thumbup:

---------- Post added at 06:27 AM ---------- Previous post was at 06:08 AM ----------

Hey mike, i built a slimrom that compiled successfully just a few days ago.

Im not 100% on this, but looking at the way its asking for things you may want to try a different kernel. I had an issue originally from a kernel that was using a newer linario toolchain (same one your using 4.6) an after I went to a different one it went thru.

Ur building for jewel right? What about the source from evervolv? Hes done wonders with htc
[Android Q&A, Help & Troubleshooting] mikshepard:
Thanks for the suggestion, I just switched my local_manifest.xml over to evervolv's repos and I'm compiling now. I was thinking it was a kernel issue, I just had no idea what to do about it, those bluetooth errors were driving me nuts trying to figure out. I got my fingers crossed that this fixes it, I'll report back in a few hours when it's finished

Many thanks,

Mike
[Android Q&A, Help & Troubleshooting] Anthrax:
I am trying to build a kernel..... and was wondering

where to add governors and other stuffs like overclocking, memory tweaks etc........ and from where will i be able to get it.......

SORRY BUT I M A N00B......
[Android Q&A, Help & Troubleshooting] cbucz24:
Not a problem. ..evervolv (preludedrew) has done amazing things for the jewel and the evo. Almost everything done on the evo is based on his work.
[Android Q&A, Help & Troubleshooting] mikshepard:
Yep, that did the trick, I was using Cyanogenmod sources for my kernel which I thought would work fine (for some reason I was thinking SlimRom was based off of CM10.1 not straight AOSP - which is Evervolv's sources). Makes sense now why it wasn't working before. I'll be flashing it shortly, thanks for the help!

-Mike
[Android Q&A, Help & Troubleshooting] shimp208:
I would recommend taking a look at this guide on building your first kernel, which includes information on adding governors, and other tweaks. Also I would check out droidphile's extremely useful guide on kernel tweaks and modifications, it explains CPU governors, modules, I/O schedulers, and a whole lot more in great depth.
[Android Q&A, Help & Troubleshooting] speed_bot:
There are many guides in specific to device and in general so if you could tell me your device i could give you relevant guides..
[Android Q&A, Help & Troubleshooting] Anthrax:
Device is Xperia Sola... MT27i......

---------- Post added at 12:10 PM ---------- Previous post was at 12:02 PM ----------

I have used the guide for building first kernel and successfully build a stock kernel.... And also in that thread only one governor is given as example so I need more codes which I could use.....

Thanks in advance:):D
[Android Q&A, Help & Troubleshooting] speed_bot:
if you already know the basics go through github's of diffent kernels see the commits what changed and learn there is no ready made guide for this ..and play around read documentation follow good dev threads on xda thats the way i picked stuff up