yashsingh1/xdaforums huggingface dataset:
[Android] Hikari:
Hello! Any help?

target SharedLib: hwcomposer.default (out/target/product/swift/obj/SHARED_LIBRARIES/hwcomposer.default_intermediates/LINKED/hwcomposer.default.so)
target thumb C++: hwcomposer.msm7x27 <= hardware/qcom/display/libhwcomposer/hwc.cpp
In file included from hardware/qcom/display/liboverlay/overlayImpl.h:34:0,
from hardware/qcom/display/liboverlay/overlayState.h:34,
from hardware/qcom/display/liboverlay/overlay.h:34,
from hardware/qcom/display/libhwcomposer/hwc.cpp:25:
hardware/qcom/display/liboverlay/overlayRotator.h: In member function 'virtual void overlay::MdpRot::setDownscale(int)':
hardware/qcom/display/liboverlay/overlayRotator.h:378:17: error: 'struct msm_rotator_img_info' has no member named 'downscale_ratio'
make: *** [out/target/product/swift/obj/SHARED_LIBRARIES/hwcomposer.msm7x27_intermediates/hwc.o] Error 1
make: *** Waiting for unfinished jobs....

EDIT: Figured it out, had to add "unsigned int downscale_ratio;" to 'device/lge/swift/include/linux/msm_rotator.h under' "struct msm_rotator_img_info"...

EDIT2: adding to device includes didn't help. I commented out the line 378: "mRotImgInfo.downscale_ratio = ds;". everything went fine..
[Android] lithid-cm:
I can't really help with your device specific issue. You do though need to find the struct "msm_rotator_img_info", find out what does belong, figure out if you even the downscale_ratio to exist for you specific device, if you need it, you need to make sure you assign it, if you don't need it, write the code to ignore it.
[Android] Hikari:
I think my device doesn't need it as it wasnt declared in device folder.. Ill just comment it out...
[Android] antonio8297:
thanks worked with 2nd,with 1st permission denied
[Android] lithid-cm:
That happened most likely because you need to setup your ssh-keys.

ssh-keygen -t rsa -C "$HOSTNAME"
cat ~/.ssh/id_rsa.pub

Then paste the key into your account settings @ github.com
[Android] antonio8297:
this:

Key is invalid. It must begin with 'ssh-rsa' or 'ssh-dss'. Check that you're copying the public half of the key

when prepare to compile give me

administrator@ubuntu:~/WORKING_DIRECTORY$ source build/envsetup.sh
bash: build/envsetup.sh: No such file or directory
[Android] Dallby:
When the tutorial says "Find the github for your device you wish to add." what exactly am I supposed to find?

Could someone please explain this process...

I may not be able to find what I'm supposed to, as my phone is a rare handset and doesn't have much support.
[Android] elgendy:
please help

Hi guys,

Please help, my log file list these errors for me

I:Can't partition non-v fat: datamedia

I:Can't partition unsafe device

I:Can't format unknown volume

and my device won't boot well and keep restarting it self or freeze.

PLEASE HELP
[Android] kevin130:
kevin@kevin-laptop:~/Cyan10$ repo init -u git://github.com/TeamJB/android.git -b jellybean

fatal: Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle

fatal: error unknown url type: https

Not sure whats going on. Anyone can help? Thanks
[Android] lithid-cm:
Is that the only error?
[Android] antonio8297:
nothing?! :(
[Android] kevin130:
Yup. Thats it. Ive googled and searched so much but all i found it to change 'https://gerrit.googlesource.com/git-repo' to 'http://gerrit.googlesource.com/git-repo' in the repo. I tried that already and it doesnt work. My git version is 1.8. Any ideas?
[Android] Dallby:
Hey folks, so I managed to successfully compile android. I have a system.img file.

Can someone point me towards the next step to completing a full, working ROM?
[Android] kevin130:
compile again but with make -j# otapackage there will be a zip file when your are done. It wont take as long as the first time.
[Android] Dallby:
Excellent.

Thanks mate. :good:
[Android] dastin1015:
Replace the # with the amount of cores in your processor + 1

私のEVO 3Dから送信される。
[Android] kevin130:
lol do you have a solution to my problem? Looked everywhere and cant find a solution

kevin@kevin-laptop:~/Cyan10$ repo init -u git://github.com/TeamJB/android.git -b jellybean

fatal: Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle

fatal: error unknown url type: https
[Android] XDA_Bruno:
Working directory

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 HTC Evo 3D CDMA)

2) Now navigate to the location you are going clone the device tree to:

Code:

$ cd WORKING_DIRECTORY/device

$ mkdir htc

The WORKING DIRECTORY,is it a folder made on my pc or is it a link on github?

PLease tell me thanks :)
[Android] Dallby:
Well im on a dual core asus laptop i think, so that would be #3 then?

Thanks for the response...
[Android] kevin130:
Its the directory your created. You can call it AOSP, CM, AOKP. Whatever you want. That is where all the source code goes.

---------- Post added at 12:17 AM ---------- Previous post was at 12:16 AM ----------

Do. make -j3 otapackage

The # is replaced by the number 3
[Android] Dallby:
Hey folks,

Tried to make a flashable ZIP and got this error:

"make: *** No rule to make target `otapackage'. Stop."

Anyone encountered this before?
[Android] kevin130:
Make sure your spelling it right. Exactly like this

make -j(processor+1) otapackage
[Android] Dallby:
tried it again, got the same error. :(

Certain that i'm spelling it right too.
[Android] XDA_Bruno:
How can I tell if my repo sync has completed?
[Android] Jwtiyar:
it will show folders in woking-directory as its hidden while syncing.

---------- Post added at 06:39 PM ---------- Previous post was at 06:39 PM ----------

any hope to fix this error?

http://paste.ubuntu.com/1350674/
[Android] XDA_Bruno:
http://pastebin.com/dKBftfwt

PLease anyone help me solve this. :(
[Android] DROIDRAZ:
How do you fix bugs in a ROM compiled like this

Sent from my XT912
[Android] triptosyll:
U run logcats, and use them to find what and maybe where the problem is, and u find it in the source and fix what's wrong.
[Android] kevin130:
Edit. Found out why.

Post by Dastin - http://xdaforums.com/showpost.php?p=30284371&postcount=910

When you did lunch, you chose full-eng. Thats not device specific. When i did it for my phone i had to choose Shooter-eng or shooter-debug. I have the Evo 3D

---------- Post added at 04:47 PM ---------- Previous post was at 04:40 PM ----------

Same thing with you. Look at my post to DAllby
[Android] Jwtiyar:
thank you , but give this error

http://paste.ubuntu.com/1353145/

dastin gave the solution to edoting full_shooter.mk but i dont have full_pyarmid file , how i can which file i have to edit and how?

Best regards.
[Android] mg2195:
Edit...I was rude in my original post...probably cause I have the flu and am easily irritated cause of it:

https://github.com/jassycliq/android-device-htc-pyramid/blob/master/vendorsetup.sh

Add that to your device tree...copy the text, then navigate to your device tree on your computer, then create a new document there named vendorsetup.sh and paste the text you copied

. Build/envsetup.sh

Lunch

pick your device

Make otapackage :)
[Android] Jwtiyar:
thank you very much for answer, but i did as u said , still i have the same error.
[Android] mg2195:
It should give you two options to choose from try them both. Do not type out the option. Just type the number of the option then hit enter
[Android] Jwtiyar:
Thats all i DId and give error:

http://paste.ubuntu.com/1353857/
[Android] lithid-cm:
You have to have a full_*.mk file in your device tree. Which you have already been told as well.
[Android] Jwtiyar:
no i dont have full_pyramid file in my tree

mention:

i have bruno2728 tree which is i think Cm10 .

---------- Post added at 10:43 PM ---------- Previous post was at 10:19 PM ----------

when i pick full_eng instead of full_pyramid-eng which is number 8 in list does not show previous error but while make -j3 otapackage give this error:

http://paste.ubuntu.com/1353921/
[Android] lithid-cm:
Listen, if you don't know what you are doing just quit. You apparently don't care what everyone tells you. CM is not aosp. They use a different structure for setting up the make files. Look at another AOSP device and form the full make file that is needed, or merge the CM commits into the AOSP tree to use their structure. Either way, there isn't anything we can do to help you at this point. You have been told what to do.

For the last time. You can't build "otapackage" with full_eng, you need a device to make an OTA.
[Android] mg2195:
Nevermind
[Android] podanimesh:
see above in ur terminal.. it will have the error line number with the file ...please post full terminal code..
[Android] djsubtronic:
I got a similar error:

make: *** No rule to make target `out/target/product/ville/obj/STATIC_LIBRARIES/librecovery_ui_ville_intermediates/export_includes', needed by `out/target/product/ville/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.

So I created a librecovery_ui_ville_intermediates folder manually and copied the empty export_includes and import_includes files into it, now what? Do I recompile again?
[Android] podanimesh:
@djsubtronic compile again...

@messi

SEE THIS:

external/guava/guava/src/com/google/common/collect/RegularImmutableMultiset.java:46: cannot find symbol

external/guava/guava/src/com/google/common/collect/RegularImmutableMultiset.java is ur file path..

:46 this is ur line number of error.. comment the lines of error.. make sure u comment all the lines.
[Android] j0a0:
Cool. Thanks
[Android] JamesC_:
Erm, commenting out a line just because it gives you an error isn't the best of ideas...
[Android] NineInchNails:
Could we also please use pastebin or equivalent for long logs of output...
[Android] djsubtronic:
Any idea about this:

device/htc/ville/libsensors/nusensors.cpp: In member function 'int sensors_poll_context_t::pollEvents(sensors_event_t*, int)':

device/htc/ville/libsensors/nusensors.cpp:162:59: error: 'LOGE' was not declared in this scope

device/htc/ville/libsensors/nusensors.cpp:168:87: error: 'LOGE_IF' was not declared in this scope

make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/sensors.ville_intermediates/nusensors.o] Error 1
[Android] podanimesh:
i was also having this problem..

SOL: comment the lines...

---------- Post added at 02:25 AM ---------- Previous post was at 02:24 AM ----------

yes 1st motive is to make it fully compile so comment it
[Android] thewadegeek:
Ummm...compiling != working...just saying. Maybe you should find out why there is a error there and what that error means.
[Android] djsubtronic:
Copied the system/core/include/cutils folder into the device/htc/ville/libsensors/ folder without commenting out the lines and it seems to work now.

---------- Post added at 11:00 PM ---------- Previous post was at 10:39 PM ----------

These damn no rule errors keep coming. This one doesn't seem as straightforward as creating a 0 byte file:

make: *** No rule to make target `out/target/product/ville/obj/STATIC_LIBRARIES/librecovery_ui_ville_intermediates/librecovery_ui_ville.a', needed by `out/target/product/ville/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery'. Stop.

make: Import includes file: out/target/product/ville/obj/STATIC_LIBRARIES/libext4_utils_intermediates/import_includes

Google search for librecovery_ui_ville.a yields nothing.

:(
[Android] strictly86:
anyone else getting :

error: Exited sync due to fetch errors

?
[Android] jmromanos:
How can I fix it?

Enviado desde mi P4D Sirius usando Tapatalk 2
[Android] dastin1015:
Apply this patch: https://github.com/CyanogenMod/andr...mmit/c8b97210aa31c9b80b5fd136d8617ebe4e731e09

Just 'repo sync' again. Continue to do so until done syncing.

Your BoardConfig.mk file in your device repo does not contain target CPU entered. For example the Evo 3D is an HTC 8660 device so it actually uses a msm8660-common device repo along with the shooter repo. In the BoardConfigCommon.mk there are lines that sets the target CPU:

TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
[Android] thewadegeek:
Pastebin would help people.
[Android] dastin1015:
I'm going to add a note to the OP for people to use pastebin for errors.
[Android] djsubtronic:
After being stuck on this for a whole hour...

target Dex: android.core.tests.libcore.package.org.no-core-tests-res

...I get this lovely message

make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.dalvik.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Killed
[Android] CallMeVentus:
I'd recommend that you get a swap partition .

The task is killed because of low RAM .

"I have to go. It's just....they really need me." - Sora
[Android] djsubtronic:
Ahh thanks

I'm using a VM, maybe I should dedicate an extra GB and close the 50+ browser tabs :)
[Android] CallMeVentus:
A swap partition too ;) maybe a gig or so

"I have to go. It's just....they really need me." - Sora
[Android] Jwtiyar:
:) For last time lithid solved

thankkkk uuu previous error has been solved just by removing cm tree and got back to AOSP tree, now when i make -j3 otapackagegive this error :

jwtiyar@jwtiyar-HP:~/work$ make -j3 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=full_pyramid
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
build/core/base_rules.mk:79: *** Module name: gps.pyramid
build/core/base_rules.mk:80: *** Makefile location: hardware/qcom/gps/loc_api/libloc_api
build/core/base_rules.mk:81: *
build/core/base_rules.mk:82: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:83: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * optional, debug, eng, tests, samples
build/core/base_rules.mk:86: *
build/core/base_rules.mk:87: * If the module is expected to be in all builds
build/core/base_rules.mk:88: * of a product, then it should use the
build/core/base_rules.mk:89: * "optional" tag:
build/core/base_rules.mk:90: *
build/core/base_rules.mk:91: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:92: * Android.mk for the affected module, and add
build/core/base_rules.mk:93: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:94: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:95: * makefile(s) where it's necessary, if
build/core/base_rules.mk:96: * appropriate.
build/core/base_rules.mk:97: *
build/core/base_rules.mk:98: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:99: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:100: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:101: * build/target/product/core.mk
build/core/base_rules.mk:102: *
build/core/base_rules.mk:103: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
jwtiyar@jwtiyar-HP:~/work$
[Android] lithid-cm:
If you read the error, its tells you what to do. You will get a few. Should make edits similar to this.

https://github.com/CyanogenMod/andr...mmit/be943685e81260db1608a06f9228f41ce566b6e7
[Android] Jwtiyar:
yes i understod this when i read it second time i added this two line u pit in this link in these folder that include this android.mk now i got different error:

http://paste.ubuntu.com/1354161/
[Android] mg2195:
These errors are pretty self explanatory...read the last two lines...it says what it is missing/can't make

Find that file (maybe from cm) then put it where it says the file is missing...
[Android] Jwtiyar:
thank you very much,i just grabed loc_api folder from here and replaced with my loc_api , these error gone but now :

http://paste.ubuntu.com/1354292/

---------- Post added at 01:08 AM ---------- Previous post was at 12:55 AM ----------

The problem was i didnt apply the guava, now compiling :)

---------- Post added at 01:23 AM ---------- Previous post was at 01:08 AM ----------

after been a while compiling its give me this error but i dont which i have to grub and to where? because two lines are in out folder not in my working-directory.

Import includes file: out/target/product/pyramid/obj/SHARED_LIBRARIES/gps.goldfish_intermediates/import_includes
Export includes file: development/tools/emulator/system/gps/Android.mk -- out/target/product/pyramid/obj/SHARED_LIBRARIES/gps.goldfish_intermediates/export_includes
make: *** No rule to make target `out/target/product/pyramid/obj/SHARED_LIBRARIES/librpc_intermediates/export_includes', needed by `out/target/product/pyramid/obj/SHARED_LIBRARIES/gps.pyramid_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
jwtiyar@jwtiyar-HP:~/work$

thank you.
[Android] dastin1015:
android-4.2_r1 added to OP.
[Android] lithid-cm:
4.2 has not been pushed upstream yet. While its being pushed, this is going to cause confusion and clutter to anyone that tries until 4.2 is actually available.

lithid@LinuxMint ~/Documents/AOSP $ git clone https://android.googlesource.com/platform/manifest 2>/dev/null; cd manifest; git branch -a |grep "4.2"
Cloning into 'manifest'...
lithid@LinuxMint ~/Documents/AOSP/manifest $
[Android] dastin1015:
It has now

私のEVO 3Dから送信される。
[Android] lithid-cm:
Well, then... Nevermind. Sorry about that. Ha
[Android] dastin1015:
All good. I didn't add the tag until the push was nearing completion anyways.
[Android] x10forevers:
For samsung galaxy s3 (d2att) US/Canadian i found cm dependencies as follow

[

{

"repository": "android_device_samsung_qcom-common",

"target_path": "device/samsung/qcom-common"

},

{

"repository": "android_device_samsung_msm8960-common",

"target_path": "device/samsung/msm8960-common"

},

{

"repository": "android_device_samsung_d2-common",

"target_path": "device/samsung/d2-common"

},

{

"repository": "android_kernel_samsung_d2",

"target_path": "kernel/samsung/d2"

}

]

So for device d2att i need to copy all that dependencies ???

or if u can tell me which dependencies i need to copy it will be grateful
[Android] Dallby:
I don't understand what "cloning the device tree" means. Can someone please explain that process or what it is exactly I'm doing/why i'm doing it etc?

My device is a Samsung Galaxy S2 LTE (i9210t) it's quite a rare handset so I'm wondering if I'll be able to find it.

Anyone know where I can read up on this subject? I've tried searching on google but it just brings up unrelated stuff.

Thanks
[Android] Dallby:
How do I know which to choose for my device?

I've got a Galaxy S2 LTE i9210t

---------- Post added at 05:25 PM ---------- Previous post was at 04:49 PM ----------

Got this error.... *sigh*

make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 127
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar] Error 127
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.
/bin/bash: jar: command not found
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 127
[Android] x10forevers:
Can anybody help

I tried to sync repo with 4.2_r1 and repo sync is stuck at

fetching project 100% done

its not going to next step almost 1 hour gone....
[Android] Dallby:
I'm convinced I've encountered ever error possible on the way to creating a working ROM from source...

I'm now getting this error:

oduct.device") == "maguro" ||
getprop("ro.build.product") == "maguro"
assert failed: getprop("ro.product.device") == "maguro" || getprop("ro.build.product") == "maguro"
E:Error in /sdcard/full_maguro-ota-eng.david.zip
(Status 7)

Anyone got any ideas?:confused:
[Android] lithid-cm:
Kill it and resync, it will pick up where it left off.

You shouldn't have that many problems using maguro as a device. I am guessing this error is while trying to flash via recovery?
[Android] Jwtiyar:
every phone has different tree , as you see dastin cloned the htc shooter tree from Github , you grab it from github or any where , just search in google for Samsung galaxy S2 Tree for Jelly bean. you will get something.

or see entire post here may u get some.
[Android] Hikari:
just a quick queston, if anybody knows..

When trying to transfer .apk files to an aosp device you get the "Content not supported error". But in CM you don't.. There obviusly is a hack made by cm to remove this filetype restriction.. What Im asking is, if anyone knows how to remove this restriction Id be glad to know.. Ive been trying/searching/scanning in every bluetooth related file I found but couldnt get anywhere.. Thanks Again!

---------- Post added at 08:27 PM ---------- Previous post was at 08:24 PM ----------

https://github.com/Talustus/android_device_samsung_i9210t

these are for cyanogenmod, just so you know...

and just a tip: while searching for a device tree you are more likely to find valuable quick results if you search like: "android_device_samsung_devicename-or-codename", for example, "android_device_samsung_maguro"(Galaxy Nexus)
[Android] x10forevers:
I already killed it like 5 times and still stuck to fetching project 100% done for about two hours.....
[Android] Hikari:
Oh, wait, now I get it.. You used maguro tree and built and now you are trying to flash it on SII LTE??
[Android] Dallby:
Yeah, is that wrong? lol

If it wasn't obvious, I'm quite the noob at this. Where do I go from here?
[Android] Hikari:
see some devices have codenames like the codename 'maguro' which means Galaxy Nexus. Your device (SII LTE) has a different hardware than Galaxy Nexus, so building for maguro and flashing to SII would do nothing more than just bricking your device.. And the error you got in recovery was because of the device check in update.zip you flashed. It checked whether you were flashing to a galaxy nexus or not. if not it would simply cancel the flash so you don't get your device bricked...

But you don't have your device listed there in lunch menu. do you? well, devices that aren't officially supported by AOSP won't be listed there unless you add them.. What you need to do is to add the "device tree" for your phone to "/device/samsung/" in the source folder..

Device repositories would generally be name like "android_device_manufacturer_devicename". "android_device_samsung_maguro" for instance..

when googling you can google that way. What you would do to find the best result would be first to check if your phone has any codename if it has then its most likely that the device repo is like "android_device_manufacturer_devicecodename" or else if it just is the model number you would have "android_device_manufacturer_devicename". as you device is SII LTE, you device tree is name "android_device_samsung_i9210t" you can get a suitable device tree for your SII from here.. Don't forget for jellybean you would need the "jellybean" branch of the repository.. (Im new to these too, especially to git stuff but from what I know) you can do that by typing "git clone https://github.com/Talustus/android_device_samsung_i9210t.git -b jellybean"..

Good Luck! In case you run into some other errors feel free to come here to ask.. After some time you will learn how to solve them by yourself.. Thats how I did.. :)
[Android] Dallby:
This post is excellent. Thanks for this.

Yeah, experience comes at a cost and these mistakes and errors is how I learn.

I'll give this a blast after college today.
[Android] Hikari:
You're welcome, I remember when I needed some details to understand something simple.. And because of these details I started many things at a much later time then I actually could..