Help compiling AOSPA - HTC 10 Questions & Answers

Hey,
I was trying to compile AOSPA from source. After the repo sync finished, i copied the proprietary blobs from The Muppets repository.. After that I ran "source build/envsetup.sh".
Everything was fine up til now, but when i ran breakfast pme, i got
"
Traceback (most recent call last):
File "build/tools/roomservice.py", line 63, in <module>
raise ValueError('No dependencies file could be found for the device (%s).' % device)
ValueError: No dependencies file could be found for the device (pme).
** Roomservice failure for: 'pa_pme'
"
I searched a little and figured out that i need to add PA dependencies in vendor/pa/products/pme
I used tried using the LOS file, but then when i ran breakfast pme, i got the following:
"
including vendor/pa/vendorsetup.sh
Traceback (most recent call last):
File "build/tools/roomservice.py", line 129, in <module>
raise ValueError('No remote declaration could be found for the %s project. (%s)' % (name, remote))
ValueError: No remote declaration could be found for the android_kernel_htc_msm8996 project. (None)
** Roomservice failure for: 'pa_pme'
"
Can anybody help me fix this?

Related

Help with building SLIM Nougat for Onyx (OnePlus X)

Sorry for hijacking this thread but I wasn't getting any help when posted in any other section... I am getting the following error, how should I fix it?
Code:
including vendor/slim/vendorsetup.sh
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/oneplus/onyx/slim.mk]]: "frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk" does not exist. Stop.
Device onyx not found. Attempting to retrieve device repository from SlimRoms Github (http://github.com/SlimRoms).
Found repository: device_oneplus_onyx
Checking branch info
Calculated revision: ng7.0
Default revision: android-7.0.0_r1
already exists: device/oneplus/onyx
Traceback (most recent call last):
File "build/tools/roomservice.py", line 379, in <module>
main()
File "build/tools/roomservice.py", line 363, in main
add_to_manifest(adding, fallback_branch)
File "build/tools/roomservice.py", line 201, in add_to_manifest
f = open(custom_local_manifest, 'w')
IOError: [Errno 13] Permission denied: '.repo/local_manifests/slim_manifest.xml'
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/oneplus/onyx/slim.mk]]: "frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk" does not exist. Stop.
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/oneplus/onyx/slim.mk]]: "frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'slim_onyx'
** Do you have the right repo manifest?

serranoltexx LineageOS 14.1 build fails [SOLVED]

I get this error when building LinageOS 14.1 for serranoltexx (Samsung Galaxy S4 mini international LTE) on Arch Linux:
Pastebin: pastebin.com/LxxSukPa
Code:
FAILED: /home/pk15/programming/mobile/android/system/out/target/common/obj/all-event-log-tags.txt
/bin/bash -c "build/tools/merge-event-log-tags.py -o /home/pk15/programming/mobile/android/system/out/target/common/obj/all-event-log-tags.txt
frameworks/base/core/java/android/app/admin/SecurityLogTags.logtags frameworks/base/core/java/android/content/EventLogTags.logtags frameworks/base/core/java/android/speech/tts/EventLogTags.logtags
frameworks/base/core/java/android/webkit/EventLogTags.logtags frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags
frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/EventLogTags.logtags frameworks/base/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags frameworks/ex/common/java/com/android/common/GoogleLogTags.logtags frameworks/native/services/surfaceflinger/EventLog/EventLogTags.logtags frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags packages/apps/Browser/src/com/android/browser/EventLogTags.logtags packages/apps/Settings/src/com/android/settings/EventLogTags.logtags packages/providers/CalendarProvider/src/com/android/providers/calendar/EventLogTags.logtags packages/providers/ContactsProvider/src/com/android/providers/contacts/EventLogTags.logtags packages/services/Telephony/src/com/android/phone/EventLogTags.logtags system/bt/btif/../EventLogTags.logtags system/bt/hci/../EventLogTags.logtags system/core/liblog/event.logtags system/core/libsysutils/EventLogTags.logtags system/core/logcat/event.logtags system/core/logd/event.logtags"
Traceback (most recent call last):
File "build/tools/merge-event-log-tags.py", line 99, in <module>
tagfile = event_log_tags.TagFile(fn)
File "/home/pk15/programming/mobile/android/system/build/tools/event_log_tags.py", line 69, in __init__
parts = re.split(r"\s+", line, 2)
File "/usr/lib/python3.5/re.py", line 203, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: cannot use a string pattern on a bytes-like object
[ 0% 8/33426] host Java: jarjar (/home/pk15/programming/mobile/android/system/out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/classes)
ninja: build stopped: subcommand failed.
Any help would be greatly appreciated!
Thank you
Pastebin: pastebin.com/LxxSukPa
In re.split(...) update to: line.decode('utf-8')
Sent from my A0001 using Tapatalk
Solved
I changed the /usr/bin/python to link to python2.7 instead of python3.5 and now it works fine.

repopick fails in Lineageos 14.1

Hi,
I do my own builds of Lineage 14.1 (and CM before) since some years. Taking the standard repositories and repo-picking some of the not yet merged commits. It always worked flawlessly.
Since some days, I get an error when using repopick that seems to be connected with an SSL problem:
Traceback (most recent call last):
File "/home/wolli/cm14.1/vendor/cm/build/tools/repopick.py", line 275, in <module>
reviews = fetch_query(args.gerrit, ' OR '.join('change:{0}'.format(x.split('/')[0]) for x in change_numbers))
File "/home/wolli/cm14.1/vendor/cm/build/tools/repopick.py", line 141, in fetch_query
return fetch_query_via_http(remote_url, query.replace(' ', '+'))
File "/home/wolli/cm14.1/vendor/cm/build/tools/repopick.py", line 122, in fetch_query_via_http
data = requests.get(url)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
raise SSLError(e)
requests.exceptions.SSLError: hostname 'review.lineageos.org' doesn't match 'jira.lineageos.org'
Does anybody else also observe the problem? Is something wrong on my build machine (which made no problems since the last years)?
I would appreciate any help. Thanks!
Best regards,
Klaerchen

Help with PA dependencies file.

Hello all,
i am trying to build paranoid android (nougat-mr2) for my LG G4 and i am having an error every time i try to start the build. I get an error saying
"Lunching h815 (Including dependencies sync)
Traceback (most recent call last):
File "build/tools/roomservice.py", line 63, in <module>
raise ValueError('No dependencies file could be found for the device (%s).' % device)
ValueError: No dependencies file could be found for the device (h815).
** Roomservice failure for: 'pa_h815'
Starting compilation
build/envsetup.sh: line 1555: schedtool: command not found
Build failed!"
Now i realise that i need to add a dependencies file, and i have done so but i'm not really sure what to call this dependencies file or even where to put it. i have put it in /device/lge/g4-common . but i'm still getting the error....... does anyone know what to call the dependencies file and where to put it (if that directory is not correct)?
Thanks!

Trying to build lineageos 18.1 for one plus one

Hi guys!
So I was following this https://wiki.lineageos.org/devices/bacon/build wiki to build a lineageos 18.1 ROM for my one plus one.
Unfortunately, when I get to the step for "breakfast bacon", I get the following errors.
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/target/product/product_launched_with_k.mk:2: error: _nic.PRODUCTS.[[device/oneplus/bacon/lineage_bacon.mk]]: "device/oppo/msm8974-common/msm8974.mk" does not exist.
22:35:04 dumpvars failed with: exit status 1
Device bacon not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_oneplus_bacon
Default revision: lineage-18.1
Checking branch info
Checking if device/oneplus/bacon is fetched from android_device_oneplus_bacon
LineageOS/android_device_oneplus_bacon already fetched to device/oneplus/bacon
Syncing repository to retrieve project.
sh: 1: repo: not found
Repository synced!
Looking for dependencies in device/oneplus/bacon
Looking for dependencies in device/oppo/msm8974-common
device/oppo/msm8974-common has no additional dependencies.
Looking for dependencies in kernel/oppo/msm8974
kernel/oppo/msm8974 has no additional dependencies.
Done
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/target/product/product_launched_with_k.mk:2: error: _nic.PRODUCTS.[[device/oneplus/bacon/lineage_bacon.mk]]: "device/oppo/msm8974-common/msm8974.mk" does not exist.
22:35:05 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/target/product/product_launched_with_k.mk:2: error: _nic.PRODUCTS.[[device/oneplus/bacon/lineage_bacon.mk]]: "device/oppo/msm8974-common/msm8974.mk" does not exist.
22:35:06 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_bacon'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
What am I doing wrong?
p.s. if I do a "breakfast d855", then I get no error.
My utter apologies for being so blind.
It is of course clearly written on that wiki that some devices would fail upon "breakfast" command being called due to the missing vendor files.
Hence one should first run "extract-files.sh" in the device specific folder. And indeed afterwards the breakfast command succeeds for "bacon".
I could be given a little margin for being a noob and also that my other device "d855" does not need extract-files.sh before breakfast.
Also what confused me yesterday was, that the paths contained oppo when infact I was building for bacon. I was sure something is wrong upstream.
My sincere apologies again for starting on xda with such a useless post.

Categories

Resources