Building Paranoid Android From Source - G2 and Desire Z Q&A, Help & Troubleshooting

Hello, i'm trying to build PA from source but cannot find the following info for our device:
Add your own device tree, kernel tree, hardware source tree, & vendor proprietaries tree in the local manifest.
For this, create a new file .repo/local_manifest.xml, & use something in similar terms:
For example, I'm using all corresponding trees for Samsung Galaxy S3 i9300 - International
Following is just an example, not what you should copy/paste. SEARCH & USE YOUR OWN DEVICE SPECIFIC TREES.
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="ParanoidAndroid/android_device_samsung_i9300" path="device/samsung/i9300" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-10.1" />
<project name="ParanoidAndroid/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
</manifest>

RE: Building Paranoid Androis from source
@masterleron It's because the Vision isn't officially supported, but it's easy enough to add support yourself, as luckily for you we are supported by the Andromadus team! This might work:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Andromadus/android_device_htc_vision" path="device/htc/vision" remote="github" revision="cm-10.1" />
<project name="Andromadus/htc7x30-3.0" path="htc7x30-3.0" remote="github" revision="cm-10.1" />
<project name="Andromadus/android_device_htc_msm7x30-common" path="device/htc/msm7x30-common" remote="github" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-10.1" />
<project name="Andromadus/android_hardware_qcom_librpc" path="hardware/qcom/librpc" remote="github" revision="cm-10.1" />
</manifest>
EDIT: OK I don't know if that will actually work, probably not, look here for help

This new one worked perfectly for me:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Andromadus/android_device_htc_vision" path="device/htc/vision" remote="github" revision="jb4.2" />
<project name="Andromadus/htc7x30-3.0" path="htc7x30-3.0" remote="github" revision="andromadus" />
<project name="Andromadus/android_hardware_qcom_librpc" path="hardware/qcom/librpc" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_qcom_display" path="hardware/qcom/display" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_libhardware" path="hardware/libhardware" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_qcom_audio" path="hardware/qcom/audio" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_libhardware_legacy" path="hardware/libhardware/legacy" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_ril" path="hardware/ril" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_broadcom_wlan" path="hardware/broadcom/wlan" remote="github" revision="mr1-staging" />
<project name="Andromadus/android_hardware_qcom_camera" path="hardware/qcom/camera" remote="github" revision="ion" />
<project name="Andromadus/android_hardware_msm7k" path="hardware/msm7k" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_gps" path="hardware/qcom/gps" remote="github" revision="jellybean" />
<project name="Andromadus/proprietary_htc_vision" path="vendor/htc" remote="github" revision="jb4.2" />
</manifest>
Sent from my HTC Vision using Tapatalk 4 Beta

I have a long standing issue with my htc g2 which I have not been able to correct until now, my phone hooks even when I was running it on stock rom gb 2.3.4, and then jumped it to gb 2.3.7 it never got better and again jumped it to andromadus mimicry ics hoping it will get better still remained the same and I'm currently running it on andromadus jellybean and it's still hooking and flashed the kernel nothing seems to be working at all. I'll press the power button for like 3 to 4 times for the screen to go off and on every time it hooks for it to work normal again which most time it doesn't. Please I really need your help cos everything I've tried seem not to be working. Thanks [email protected]
Sent from my HTC Vision using xda app-developers app

This new one is the best for the vision, downloads all the necessary files.:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Andromadus/android_device_htc_vision" path="device/htc/vision" remote="github" revision="jb4.2" />
<project name="Andromadus/proprietary_htc_vision" path="vendor/htc" remote="github" revision="jb4.2" />
<project name="Andromadus/htc7x30-3.0" path="htc7x30-3.0" remote="github" revision="andromadus" />
<project name="Andromadus/android_device_htc_common" path="device/htc/common" remote="github" revision="jb" />
<project name="Andromadus/android_device_htc_msm7x30-common" path="device/htc/msm7x30-common" remote="github" revision="cm10.1" />
<project name="Andromadus/android_hardware_qcom_librpc" path="hardware/qcom/librpc" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_qcom_display" path="hardware/qcom/display" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_qcom_audio" path="hardware/qcom/audio" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_qcom_gps" path="hardware/qcom/gps" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_camera" path="hardware/qcom/camera" remote="github" revision="ion" />
<project name="Andromadus/android_hardware_libhardware" path="hardware/libhardware" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_libhardware_legacy" path="hardware/libhardware/legacy" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_ril" path="hardware/ril" remote="github" revision="jb4.2" />
<project name="Andromadus/android_hardware_broadcom_wlan" path="hardware/broadcom/wlan" remote="github" revision="mr1-staging" />
<project name="Andromadus/android_hardware_msm7k" path="hardware/msm7k" remote="github" revision="jellybean" />
<project name="Andromadus/android_frameworks_av" path="frameworks/av" remote="github" revision="cm10.1" />
<project name="Andromadus/android_frameworks_native" path="frameworks/native" remote="github" revision="cm10.1" />
</manifest>
Sent from my HTC Vision using Tapatalk 4 Beta

For android 4.3 (PA 3.99):
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Andromadus/android_device_htc_vision" path="device/htc/vision" remote="github" revision="cm10.2" />
<project name="Andromadus/proprietary_htc_vision" path="vendor/htc" remote="github" revision="jb4.2" />
<project name="Andromadus/htc7x30-3.0" path="htc7x30-3.0" remote="github" revision="andromadus_4.3" />
<project name="Andromadus/android_device_htc_common" path="device/htc/common" remote="github" revision="jb" />
<project name="Andromadus/android_device_htc_msm7x30-common" path="device/htc/msm7x30-common" remote="github" revision="cm10.2" />
<project name="Andromadus/android_hardware_qcom_librpc" path="hardware/qcom/librpc" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="jb4.3" />
<project name="Andromadus/android_hardware_qcom_display" path="hardware/qcom/display" remote="github" revision="jb4.3" />
<project name="Andromadus/android_hardware_qcom_audio" path="hardware/qcom/audio" remote="github" revision="jb4.3" />
<project name="Andromadus/android_hardware_qcom_gps" path="hardware/qcom/gps" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_qcom_camera" path="hardware/qcom/camera" remote="github" revision="ion" />
<project name="Andromadus/android_hardware_libhardware" path="hardware/libhardware" remote="github" revision="jb4.3" />
<project name="Andromadus/android_hardware_libhardware_legacy" path="hardware/libhardware/legacy" remote="github" revision="jellybean" />
<project name="Andromadus/android_hardware_ril" path="hardware/ril" remote="github" revision="jb4.3" />
<project name="Andromadus/android_hardware_broadcom_wlan" path="hardware/broadcom/wlan" remote="github" revision="mr1-staging" />
<project name="Andromadus/android_hardware_msm7k" path="hardware/msm7k" remote="github" revision="jellybean" />
<project name="Andromadus/android_frameworks_av" path="frameworks/av" remote="github" revision="cm10.2" />
<project name="Andromadus/android_frameworks_native" path="frameworks/native" remote="github" revision="cm10.2" />
</manifest>

Related

[Q] How to build own CM11 on LG G3?

I always get *** No rule to make target `/home/pakkapon/android/rom/cm11/out/host/linux-x86/bin/dtbToolCM', needed by `/home/pakkapon/android/rom/cm11/out/target/product/d855/dt.img'.
This my local manifest.
Code:
<manifest>
<project path="device/lge/g3-common" name="invisiblek/android_device_lge_g3-common" remote="github" revision="cm-11.0"/>
<project path="device/lge/d855" name="invisiblek/android_device_lge_d855" remote="github" revision="cm-11.0"/>
<project path="kernel/lge/g3" name="invisiblek/android_kernel_lge_g3" remote="github" revision="cm-11.0"/>
<project path="vendor/lge" name="invisiblek/proprietary_vendor_lge" remote="github" revision="cm-11.0"/>
</manifest>
You need qcom common.
https://github.com/CyanogenMod/android_device_qcom_common

[Q] Building CM12 for d2spr

First time building CyanogenMod from source and I've run into a roadblock.
I am at the point where I have CM12 repo synced and when i run
Code:
breakfast d2spr
I get the error:
** Don't have a product spec for: 'cm_d2spr'
** Do you have the right repo manifest?
so then I run
Code:
breakfast
it returns a list of devices and d2spr is not in the list.
So I'm kinda stuck here. how do I get the vendor files for d2spr?
Thanks!
I had to add a roomservice.xml to the local_manifests folder (under .repo in your main directory), to get it up and running:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Hrubak/d2spr-tools.git" path="d2spr-tools" remote="github" revision="cm-12.0" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" revision="cm-12.0" />
<project name="CyanogenMod/android_device_samsung_d2spr" path="device/samsung/d2spr" remote="github" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="CyanogenMod/android_device_samsung_msm8960-common" path="device/samsung/msm8960-common" />
<project name="CyanogenMod/android_device_samsung_d2-common" path="device/samsung/d2-common" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_d2" path="kernel/samsung/d2" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
</manifest>
and then run
Code:
d2spr-tools/apply.sh
Be advised that when I ran the shell script I got a conflict with one of the files. You can either attempt to correct the error or run "git cherry-pick --abort" in the conflicting directory.
and then finally
Code:
. build/envsetup.sh && brunch d2spr
will compile it.
got these instructions from here:
github.com/Hrubak/d2spr-tools

Tab Pro 8.4 [T325] CM-13.0 from source -- unknown baseband, no IMEI

Hello I kinda hope I'm posting this in the right place. 'cause I kinda need some advice as to why I'm unable to build my mondrianlte with a working radio stack.
So breaking this down I'm on Mint Linux 17.3 (Rosa), I have all the ensured that I have my build environment set up etc.. build-essential, openjdk7 etc...
I've followed the CyanogenMod mondrianwifi wiki for the most part.
I think I had managed to crack the local_manifests (tabpro.xml) with some trial and, error.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<remote name="git" fetch="https://github.com/" />
<project path="hardware/samsung" name="CyanogenMod/android_hardware_samsung" repo="github" revision="cm-13.0" />
<project path="kernel/samsung/mondrianwifi" name="CyanogenMod/android_kernel_samsung_mondrianwifi" remote="github" revision="cm-13.0" />
<project path="vendor/samsung" name="crpalmer/proprietary_vendor_samsung" remote="git" revision="cm-13.0" />
<project path="device/samsung/mondrianlte" name="crpalmer/android_device_samsung_mondrianlte" remote="git" revision="cm-13.0" />
<project path="device/samsung/tabpro-common" name="crpalmer/android_device_samsung_tabpro-common" remote="git" revision="cm-13.0" />
<project path="device/samsung/msm8974-common" name="CyanogenMod/android_device_samsung_msm8974-common" remote="github" revision="cm-13.0" />
<project path="device/samsung/qcom-common" name="CyanogenMod/android_device_samsung_qcom-common" remote="github" revision="cm-13.0" />
<project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" remote="github" revision="cm-13.0" />
<project path="external/sony/boringssl-compat" name="CyanogenMod/android_external_sony_boringssl-compat" repo="github" revision="cm-13.0" />
</manifest>
One repo sync and, about 90 Minutes later...
$cd ../device/samsung/mondrianlte
$./extract-files.sh
Which when using a prior version of CM-13.0 manages to finish without any visible errors extracted Files could be found either in ../vendor/samsung/tabpro-common, or ../vendor/samsung/mondrianlte.
After that I run:
$source build/envsetup.sh
$breakfast mondrianlte
brunch mondrianlte.
The build (for me...), takes about ~5H 20m to complete, again with out any errors.
I can even boot it just fine, but alas with out any Cellular Voice & Data.
I've already tryed to swap out the Kernel, with what I would have assumes was a working version.
I've tried to reflash both the modem.bin & non-hlos.bin
I've even tried use EFS Backup & Partition Backup (to hopefully push what was a working /efs partition to my new build.
My Tab Pro 8.4 however wasn't having any of that.
Could it be that I have to somehow also mod the mondrianwifi kernel to become fully compatible with my lte version, or is it something else that I'm missing.
Ok having took a clue from another picassolte user, I tried rebuilding CM-12.1 from source again. The last time I had tried it I wasn't able to get off the bootloader screen (Where it says Samsung Tab|Pro T325...)
So that was about +7h of my life wasted back then. I guess I could chalk it down to not having a proper local_manifests *xml set up.
So in my epic adventure to try and get myself up to the May Security Updates LMY49J I decided that I had to give it another try.
This was the local_manifests *.xml that I finally used to install CM-12.1 on my T325
Code:
<?xml version "1.0" encoding="utf-8"?>
<manifest>
<remote name="git" fetch="https://github.com/" />
<project path="hardware/samsung" name="CyanogenMod/android_hardware_samsung" repo="github" />
<project path="kernel/samsung/mondrianwifi" name="CyanogenMod/android_kernel_samsung_mondrianwifi" remote="github" />
<project path="vendor/samsung" name="crpalmer/proprietary_vendor_samsung" remote="git"
<project path="device/samsung/mondrianlte" name="crpalmer/android_device_samsung_mondriante" remote="git" />
<project path="device/samsung/tabpro-common" name="crpalmer/android_device_samsung_tabpro-common" remote="git" />
<project path=device/samsung/msm8974-comon" name="CyanogenMod/android_device_samsung_msm8974-common" remote="github" />
<project path="device/samsung/qcom-common" name="CyanogenMod/android_device_samsung_qcom-common" remote="github" />
<project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" remote="github" />
</manifest>
Again unlike CM-13.0 it took about +2h's longer to compile then CM-13.0 (5h 20m) to CM-12.1's (7h 30m).
But, unlike CM-13.0 I now have a fully working CM-12.1 build with fully working voice and Data.
Could this be because I was just trying to pull the cm-13.0 trees, instead of the master branches (like above?)
I think I might retry using the same manifest once more to build CM-13, just to be sure. But, I'm starting to think something might have gone a bit pare shaped and that's why we haven't been getting any new-ish nightlies from crpalmer. In which case I'd be just as lost... If not more so. Though I do hope to be able to dig down a bit deeper one of these days.

CM13 OP3 local_manifests.xml contents?

Hello,
I'm building CM13 and wanted to know if my local_manifests.xml was correct,
Code:
<manifest>
<project name="CyanogenMod/android_device_oneplus_oneplus3" path="device/oneplus/oneplus3" remote="github" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="CyanogenMod/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_kernel_oneplus_msm8996" path="kernel/oneplus/msm8996" remote="github" />
<project name="TheMuppets/proprietary_vendor_oppo" path="vendor/oppo" remote="github" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" />
<project name="CyanogenMod/android_frameworks_opt_connectivity" path="frameworks/opt/connectivity" remote="github" revision="cm-13.0" />
</manifest>
Thanks!

Device tree for AOSP?

Hello,
I'm trying to compile android-6.0.1_r74 for my HTC One M8, but the device tree from CyanogenMod doesn't even get recognized by the AOSP build environment.
I only get:
Code:
[email protected]:~/android-6.0.1_r74$ . build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android-6.0.1_r74$ choosecombo
Build type choices are:
1. release
2. debug
Which would you like? [1] 1
Which product would you like? [full] cm_m8
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_m8". Stop.
** Not a valid product: cm_m8
Which product would you like? [full] m8
build/core/product_config.mk:222: *** Can not locate config makefile for product "m8". Stop.
** Not a valid product: m8
Which product would you like? [full] cm
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm". Stop.
** Not a valid product: cm
Which product would you like? [full] ^C
[email protected]:~/android-6.0.1_r74$
Does anybody
know of a device tree for the M8 that works with AOSP?
have an idea what has to be done to get the CM-device tree to work with AOSP?
know where I could find resources/documentation that could help solve this problem?
know of a person or chat group/irc/etc. that doesn't just ignore you completely?
Here is my manifest file. I already tried different configurations, but none of them worked:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="SlimRoms/device_htc_m8" path="device/htc/m8" remote="github" revision="mm6.0" />
<project name="SlimRoms/device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="mm6.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="SlimRoms/kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="mm6.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" revision="cm-13.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_vendor_cm" path="vendor/cm" remote="github" revision="cm-13.0" />
</manifest>
<!-- somewehre from github
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="CyanogenMod/android_device_htc_m8" path="device/htc/m8" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-13.0" />
</manifest>-->
<!-- original
<manifest>
<remote name="github" fetch="https://github.com/" />
<project name="CyanogenMod/android_device_htc_m8" path="device/htc/m8" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_m8-common" path="device/htc/m8-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_htc_msm8974-common" path="device/htc/msm8974-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" revision="cm-13.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_vendor_cm" path="vendor/cm" remote="github" revision="cm-13.0" />
</manifest>-->

Categories

Resources