[HELP] Adding RRO Layers to AOSP Rom - Android Q&A, Help & Troubleshooting

Hi, I have a falcon (Moto G 2013). I built an AOSP rom from source and using a toolchain but I am unable to find a guide to cherry pick RRO to my rom. I saw the github wiki from here and here is my terminal output:
Code:
[email protected]:~/aosp/frameworks/base$
git initInitialized empty Git repository in /home/yeshwanthvshenoy/aosp/frameworks/base/.git/
[email protected]:~/aosp/frameworks/base$ git remote add origin https://github.com/yeshwanthvshenoy/platform_frameworks_base.git
[email protected]:~/aosp/frameworks/base$ git remote -v
origin https://github.com/yeshwanthvshenoy/platform_frameworks_base.git (fetch)
origin https://github.com/yeshwanthvshenoy/platform_frameworks_base.git (push)
[email protected]:~/aosp/frameworks/base$ git remote add revert https://github.com/LiquidSmooth/android_frameworks_base.git
[email protected]:~/aosp/frameworks/base$ git remote -v
origin https://github.com/yeshwanthvshenoy/platform_frameworks_base.git (fetch)
origin https://github.com/yeshwanthvshenoy/platform_frameworks_base.git (push)
revert https://github.com/LiquidSmooth/android_frameworks_base.git (fetch)
revert https://github.com/LiquidSmooth/android_frameworks_base.git (push)
[email protected]:~/aosp/frameworks/base$ git fetch revert
remote: Counting objects: 1253863, done.
remote: Total 1253863 (delta 0), reused 0 (delta 0), pack-reused 1253863
Receiving objects: 100% (1253863/1253863), 1.57 GiB | 13.30 MiB/s, done.
Resolving deltas: 100% (752145/752145), done.
From https://github.com/LiquidSmooth/android_frameworks_base
* [new branch] 5.1 -> revert/5.1
* [new branch] 5.1-aosp -> revert/5.1-aosp
* [new branch] lollipop -> revert/lollipop
* [new branch] lollipop-cm -> revert/lollipop-cm
[email protected]:~/aosp/frameworks/base$ git revert b97528cd113acd733e731efcff246fc64f234362
error: refusing to lose untracked file at 'libs/androidfw/AssetManager.cpp'
error: refusing to lose untracked file at 'include/androidfw/AssetManager.h'
error: refusing to lose untracked file at 'core/jni/android_util_AssetManager.cpp'
error: refusing to lose untracked file at 'core/java/android/content/res/AssetManager.java'
error: refusing to lose untracked file at 'cmds/idmap/scan.cpp'
error: could not revert b97528c... base: Fix the problems for runtime overlay.
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
[email protected]:~/aosp/frameworks/base$

Related

HTC Rezound cherry pick

I need help with this error while cherry picking -
[email protected]:~/cm9/packages/apps/Settings$ git fetch http://review.cyanogenmod.com/CyanogenMod/android_packages_apps_Settings refs/changes/55/17555/1 && git cherry-pick FETCH_HEAD
From http://review.cyanogenmod.com/CyanogenMod/android_packages_apps_Settings
* branch refs/changes/55/17555/1 -> FETCH_HEAD
error: could not apply fe56ef0... Bottom statusbar (2/2)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
any help would be appreciated

[Q] [CM 10.1 Building] Local_manifest.xml deprecated

I have built android before on Ubuntu (12.04). This is my first attempt at building on arch linux. (I temp switch to python2 when building android)
However when I do a repo sync, I get a lot of warnings which I never got on Ubuntu (baring in mind I haven't built for about a month, I'm a little rusty ;P)
Code:
[[email protected] system]$ repo sync
warning: local_manifest.xml is deprecated; put local manifests in local_manifests instead
Fetching projects: 3% (11/354) remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
Fetching projects: 4% (15/354) From git://github.com/CyanogenMod/android_build
eded398..c4fd5ea cm-10.1 -> github/cm-10.1
Fetching projects: 81% (287/354) remote: Counting objects: 9, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 3), reused 5 (delta 3)
Unpacking objects: 100% (5/5), done.
From git://github.com/CyanogenMod/android_packages_apps_Trebuchet
96fee2c..a0e17fc cm-10.1 -> github/cm-10.1
Fetching projects: 100% (354/354), done.
warning: local_manifest.xml is deprecated; put local manifests in local_manifests instead
Checking out files: 100% (38123/38123), done.ut files: 23% (9009/38123)
Syncing work tree: 100% (354/354), done.
[[email protected] system]$
I have tried creating a folder local_manifest and putting in the xml. I have tried putting the xml into manifests (both in ~/android/system/.repo) but neither seemed to work
any ideas?
(P.S I'm building for Nexus 7 CM 10.1 and am following the cyanogenmod N7 tutorial on their wiki)
I had the same issue and it was from a corrupt .repo directory. Try deleting the repo directory and starting over.
sudo rm -r ~/android/system/.repo
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Hope this helps.
[edited to show instructions for CM 10.1 instead of AOKP ]
rm -r ./.repo/local_manifest.xml
Nice one
ccb1208 said:
I had the same issue and it was from a corrupt .repo directory. Try deleting the repo directory and starting over.
sudo rm -r ~/android/system/.repo
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Hope this helps.
[edited to show instructions for CM 10.1 instead of AOKP ]
Click to expand...
Click to collapse
I think it worked, i'm sinking repo now (and have had no warning messages)
I had also tried nuking android and that didn't work before, weird :S
If I can't build cm, I did see today a warning that it is currently not working anyways... Ill post back a conclusion
I don't ever use the local_manifest.xml anyways but I tried just now to do a new build and local_manifests.xml just didn't grab anything i put in it. so I am back to junking up my manifest.xml with no local_manifest.xml or local_manifests.xml If y'all know a better way please share. TY:highfive:
justlovejoy said:
I don't ever use the local_manifest.xml anyways but I tried just now to do a new build and local_manifests.xml just didn't grab anything i put in it. so I am back to junking up my manifest.xml with no local_manifest.xml or local_manifests.xml If y'all know a better way please share. TY:highfive:
Click to expand...
Click to collapse
How would I use manifest.xml instead of local?
(Also, I have installed a ubuntu 12.10 partition now, so I'm building on that since most support, for anything linux in fact, seems to be aimed at debian base)

Can't sync repo for SlimRom - b jellybean

Hello,
I have problem with source of SlimBean, I'm trying to download branch jellybean but it stops at this moment:
Code:
: git pack-refs --all --prune 1>| 2>|
: load refs /home/lozohcum/SlimBean/.repo/projects/vendor/tmobile/providers/ThemeManager.git
: git symbolic-ref -m manifest set to jellybean refs/remotes/m/jb refs/remotes/github/jellybean 1>| 2>|
remote: Total 8926 (delta 5410), reused 8348 (delta 4897)
Receiving objects: 100% (8926/8926), 449.19 MiB | 474 KiB/s, done.
Resolving deltas: 100% (5410/5410), done.
From https://github.com/TheMuppets/proprietary_vendor_sony
* [new branch] 10.1.x.2.67 -> gh/10.1.x.2.67
* [new branch] cm-10.1 -> gh/cm-10.1
* [new branch] cm-10.1-staging -> gh/cm-10.1-staging
* [new branch] cm-10.2 -> gh/cm-10.2
* [new branch] ics -> gh/ics
* [new branch] jellybean -> gh/jellybean
* [new branch] jellybean-stable -> gh/jellybean-stable
* [new tag] cm-10.1.0 -> cm-10.1.0
* [new tag] cm-10.1.1.1 -> cm-10.1.1.1
* [new tag] cm-10.1.2 -> cm-10.1.2
: export GIT_DIR=/home/lozohcum/SlimBean/.repo/projects/vendor/sony.git
: git pack-refs --all --prune 1>| 2>|
: load refs /home/lozohcum/SlimBean/.repo/projects/vendor/sony.git
: git symbolic-ref -m manifest set to jellybean refs/remotes/m/jb refs/remotes/gh/jellybean 1>| 2>|
Do you know how to fix it?
U have the local manifest?
Sent from my GT-I9500 using XDA Premium 4 mobile app

Code Aurora's Android for MSM - Unable to downlad the project files using Git/Repo

Hi
I am coming from a non-OS embedded firmware and Windows OS background and a newbie to the Linux and Android OS world.
I have got a Qualcomm Snapdragon 400 development kit which is running a specific version of Android OS from Code Aurora. I want to download the source project of this OS to be able to make a few changes and rebuilt it.
The specific version I need is "LA.BR.1.2.4-01810-8x16.0" as listed at Code Aurora website under "Android for MSM Project" (I am unable to post the weblink being a newbie of this forum).
To get this project, I am following the instructions listed at this website which are:
Releases are available for download using Repo and Git. A specific release is downloaded by choosing both a branch and manifest from the Releases table.
$ repo init -u git://codeaurora.org/platform/manifest.git -b [branch] -m [manifest] --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
$ repo sync
But I am getting some errors and unable to resolve them.
Here is the terminal window log when I try to get the source files using Git/Repo as per the link above.
[email protected]:~/Documents/S.Ali/BW/410$ repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.4-01810-8x16.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 18 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (18/18), done.
From git://codeaurora.org/platform/manifest
65b6e6e..3004d8c aosp-new/emu-2.4-release -> origin/aosp-new/emu-2.4-release
c005393..52b8e1a aosp-new/lldb-master-dev -> origin/aosp-new/lldb-master-dev
7e723b6..eae6bdf aosp-new/lollipop-mr1-cts-release -> origin/aosp-new/lollipop-mr1-cts-release
88ac9b4..84298e7 aosp-new/marshmallow-cts-release -> origin/aosp-new/marshmallow-cts-release
1e9af62..83fe89c aosp-new/nougat-cts-release -> origin/aosp-new/nougat-cts-release
0498397..f505234 aosp-new/nougat-mr1-cts-release -> origin/aosp-new/nougat-mr1-cts-release
error: in `init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.4-01810-8x16.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable`: [Errno 2] No such file or directory: '/home/digital/.repo/manifests/.git/HEAD'
error: manifest missing or unreadable -- please run init
and when I try again, I get:
[email protected]:~/Documents/S.Ali/BW/410$ repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.4-01810-8x16.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
error: in `init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.4-01810-8x16.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable`: [Errno 2] No such file or directory: '/home/digital/.repo/manifests/.git/HEAD'
error: manifest missing or unreadable -- please run init
Probably I am doing something silly and/or missing something very basic.
I would be very grateful for your help in resolving this issue.
Thanks

How-to build Roms (crDroid) for the ZTE Axon 7

Quite a while ago I promised to make a How-to on how to build Roms for the Axon 7.
Well, here we are... 84 years later.
It's a bit quick & dirty, but all the basics should be there.
Thanks to raystef66 & tprfd for all the help.
Code:
Complete How-to for building LineageOS:
https://wiki.lineageos.org/devices/axon7/build#prepare-the-device-specific-code
I'd start there and then check this How-to for the rest.
( pre-building )
Start in your home directory.
Get the latest platform tools:
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
Unzip them:
unzip platform-tools-latest-linux.zip -d ~
Add adb and fastboot as well as ~/bin to your path by editing ~/.profile and adding these lines (~/bin may already be there):
# add Android SDK platform tools to path
if [ -d "$HOME/platform-tools" ] ; then
PATH="$HOME/platform-tools:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/axon7-build/bin" ] ; then
PATH="$HOME/axon7-build/bin:$PATH"
fi
Update your environment by running
[CODE]source ~/.profile
Install the required packages:
Code:
sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev openjdk-8-jdk
( First Build / crDroid )
cd /home
mkdir crDroid
cd crDroid
repo init -u git://github.com/crdroidandroid/android.git -b 9.0
repo sync
git clone https://github.com/Jake-Armitage/android_device_zte_axon7-1.git -b crdroid-pie device/zte/axon7
git clone https://github.com/Jake-Armitage/proprietary_vendor_zte-1.git -b lineage-16.0 vendor/zte
git clone https://github.com/Jake-Armitage/caf_kernel_zte_msm8996.git -b axon7-stable kernel/zte/msm8996
[When rebuilding]
( cd /home/[username]/axon7-build/android/crDroid && make clean && source build/envsetup.sh && breakfast axon7 && repo sync --force-sync )
[/(When rebuilding)]
source build/envsetup.sh #(don't do this again if you already did the step --> (When rebuilding)
breakfast axon7 #(don't do this again if you already did the step --> (When rebuilding)
cd /home/[username]/axon7-build/android/crDroid/device/zte/axon7
./setup-makefiles.sh
cd /home/[udername]/axon7-build/android/crDroid
croot
brunch axon7
[/CODE]
Testing the instructions now
Update:
First attempt and working, I just flashed my own compiled build thanks for the instructions! (Now let's git clone all and fix all issues (Wish))
Very new to android development (?)... How do you get the latest security patches and apply them to a rom?
randomUsername1 said:
Very new to android development (?)... How do you get the latest security patches and apply them to a rom?
Click to expand...
Click to collapse
The developers for lineage, crdroid, etc. do this. If you build with instructions from OP you will pull in the latest security patches. You can sync every month to get the latest. I am doing this with my own build of lineage 16 using a mix and match of sources for this phone.
Hi. Could anyone give me advice. I am trying to follow instructions and on step
Code:
repo init -u git://github.com/crdroidandroid/android.git -b 9.0
I'm getting error:
Code:
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.
warning: templates not found /build/git-repo-publish/parts/git/install/usr/share/git-core/templates
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 3, done
remote: Finding sources: 100% (16/16)
remote: Total 16 (delta 5), reused 15 (delta 5)
Unpacking objects: 100% (16/16), done.
From https://gerrit.googlesource.com/git-repo
2a2da80..0286e31 main -> origin/main
File "/home/rnb/crDroid/.repo/repo/main.py", line 79
file=sys.stderr)
^
SyntaxError: invalid syntax
I am using Ubuntu 20.04.2 LTS 64 bit.
rnb.001 said:
Hi. Could anyone give me advice. I am trying to follow instructions and on step
Code:
repo init -u git://github.com/crdroidandroid/android.git -b 9.0
I'm getting error:
Code:
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.
warning: templates not found /build/git-repo-publish/parts/git/install/usr/share/git-core/templates
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 3, done
remote: Finding sources: 100% (16/16)
remote: Total 16 (delta 5), reused 15 (delta 5)
Unpacking objects: 100% (16/16), done.
From https://gerrit.googlesource.com/git-repo
2a2da80..0286e31 main -> origin/main
File "/home/rnb/crDroid/.repo/repo/main.py", line 79
file=sys.stderr)
^
SyntaxError: invalid syntax
I am using Ubuntu 20.04.2 LTS 64 bit.
Click to expand...
Click to collapse
Never mind. It is working now. Had to install Ubuntu 20.10 on vitual machine and start all over again.
Note for those who has clean OS and had never build ROM. Consult to article how to build Lineageos. There some extra tweaks and tricks that has to be done initialy to your machine before building ROMs.

Categories

Resources