Android OS Forum banner
3421 - 3440 of 3468 Posts

·
Premium Member
Joined
·
3,873 Posts
Can I do this.

Am initallzing

repo init -u ........ i9100, samsung

Then copying the projects of manifest.xml in notepad++.

Next copying the projects manifest.xml of first default init in another notepad++

Comparing both manifest using winmerge.

And see which project is needed to download.

Then do repo sync?

Sent from my GT-I9100 using Tapatalk 2
We don't support that device anymore so you'd have to create and update your own device tree. There's plenty of googling to do if that's the route you want to pursue.
 

·
Android Beginner
Joined
·
13 Posts
The tutorial in the initial post of this thread needs a few updates...

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

...should be replaced with:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

It is probably a good idea to have noobs like me add things to ~/.bashrc so they are not forgotten after the term is closed; adding ~/bin to $PATH with export is fine, becuase after creating it, it will be auto detected and added to $PATH as directed in ~/.profile after restarting the terminal window.

I would think that USE_CCACHE should probably be echo'd to ~.bashrc so that it is persistent: ???

export USE_CCACHE=1 && echo -e "\nexport USE_CCACHE=1\n" >> ~/.bashrc

.

The sections "Download the source" and "Download the kernel source" also seem to be out of date... perhaps it would be better to just provide a link to https://github.com/AOKP/platform_manifest for always-up-to-date instructions for downloading source.. with the current kitkat tree there is not a manual_add_kernel_manifest.sh script that I could find, and the platform manifest seems to indicate that this is covered with its method of syncing.

.

Anyway, thanks for the tutorial!

.

After messing up the process a few times and having to re-install ubuntu to larger partitions I made a couple of scripts to automate the setup and install.. these are setup to sync ONLY the i605 samsung tree and have no error checking, but could be easily modified / improved. One script has all the stuff that requires SUDO and should be run first; the second should NOT be run with sudo:
 

Attachments

·
Android Beginner
Joined
·
13 Posts
Whoohoo...

Zipping package...

Signing package...

Cleaning up...

______ _____ __ __ _____
/\ _ \/\ __`\/\ \/\ \ /\ _ `\
\ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \
\ \ __ \ \ \ \ \ \ , < \ \ ,__/
\ \ \/\ \ \ \_\ \ \ \\`\ \ \ \/
\ \_\ \_\ \_____\ \_\ \_\\ \_\
\/_/\/_/\/_____/\/_/\/_/ \/_/

===========-Package complete-===========
zip: /home/tln/android/git/aokp/out/target/product/i605/aokp_i605_kitkat_unofficial_2014-01-01.zip
md5: f0b49f5420e20db45de4795fa504210b
size: 170M
========================================

real 251m9.178s
user 383m41.920s
sys 32m38.397s
[email protected]:~/android/git/aokp$
..is that a normal amount of time, or is my system just really sloooowwwww!??

.

My next project was to modify a few things and rebuild... is there a way to just rebuild the things I modify or do I have to wait this long everytime I build?

Thanks!
 

·
Android Apprentice
Joined
·
329 Posts
Whoohoo...

..is that a normal amount of time, or is my system just really sloooowwwww!??

.
My next project was to modify a few things and rebuild... is there a way to just rebuild the things I modify or do I have to wait this long everytime I build?

Thanks!
Seems a little slow to me, maybe try enabling ccache to speed it up some?

Sent from my SCH-I545 using RootzWiki mobile app
 

·
Android Beginner
Joined
·
13 Posts
I set up ccache with 30 gigs.. that was my first build, so hopefully the next will be a bit faster.

..I'm still trying to figure out how to pull a patch from another rom's source.. I don't get why it can't be as simple as clicking a download button and finding the .patch / .diff in the download directory..

:\
 

·
Premium Member
Joined
·
909 Posts
I set up ccache with 30 gigs.. that was my first build, so hopefully the next will be a bit faster.

..I'm still trying to figure out how to pull a patch from another rom's source.. I don't get why it can't be as simple as clicking a download button and finding the .patch / .diff in the download directory..

:\
git has all functionality for this:

git remote add
git fetch
git cherry-pick
 

·
Android Beginner
Joined
·
13 Posts
git has all functionality for this:

git remote add
git fetch
git cherry-pick
..sorry, I'm not sure quite what to do with that...

I want to pull a patch for an alpha/beta feature that is available in OmniROM, and has also been ported to CM. I tried using the git fetch commands that are on the respective gerrit commit pages next to the "Download" title:

https://gerrit.omnirom.org/#/c/1510/

http://review.cyanogenmod.org/#/c/56080/

..but in both instances they run for abit, and then fail at ~82% recieved with an error that the remote host hung up:

[email protected]:~/android/git/omno_patch$ \
> git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_base refs/changes/80/56080/2 && git format-patch -1 --stdout FETCH_HEAD
remote: Counting objects: 877185, done
remote: Finding sources: 100% (877185/877185)
fatal: The remote end hung up unexpectedly.00 GiB | 494.00 KiB/s
fatal: early EOF
fatal: index-pack failed

[email protected]:~/android/git/omno_patch$ git fetch https://gerrit.omnirom.org/android_frameworks_base refs/changes/10/1510/14 && git format-patch -1 --stdout FETCH_HEAD
remote: Counting objects: 869728, done
remote: Finding sources: 100% (869728/869728)
fatal: The remote end hung up unexpectedly.00 GiB | 2.74 MiB/s
fatal: early EOF
fatal: index-pack failed

[email protected]:~/android/git/omno_patch$ git fetch https://gerrit.omnirom.org/android_frameworks_base refs/changes/10/1510/14 && git cherry-pick FETCH_HEAD
remote: Counting objects: 869728, done
remote: Finding sources: 100% (869728/869728)
fatal: The remote end hung up unexpectedly.00 GiB | 3.86 MiB/s
fatal: early EOF
fatal: index-pack failed
[email protected]:~/android/git/omno_patch$

...I was running this from an initialized but empty git directory; should I be running it in my AOKP directory? Is the syntax above correct?

Also, would it be wrong of me to just hand copy/paste code into the files listed, and if I did, can I rebuild just those packages in a manner similar to the post above this one?

Thanks again.

.

.

EDIT: I think I may have found an answer to my own question about how to download a .patch file directly:

http://chem-bla-ics.blogspot.com/2011/01/github-tip-download-commits-as-patches.html

..for CM if I go to their github page, click on android_framework_base (..this is where the patch was to be applied), click on the link for latest commit, then remove the long ID number for that commit and replace it with the patch ID from the gerrit links above, followed by .patch, it gives me a patch file:

https://github.com/CyanogenMod/android_frameworks_base/commit/557222e8cdac87d60e5d318222089e6d5278c960.patch

..it looks like I could apply this .patch file from within the AOKP frameworks/base directory? Should I do this to a copy of this directory to preserve the original, or would resyncing restore the defualt files without having to re-download everything?

If I were to use the "git fetch" download method on the gerrit pages, which link (cherry-pick, patch, etc) would I use as the command, and would these also be run from the AOKP frameworks/base directory? Do I have to do anything before/after the command from the Download section of the gerrit page, or just rebuild?

Suggestions / critique of either and/or both plans is appreciated.

Thanks.

.

.

EDIT 2:

I made a copy of the target directory and ran a "dry run" patch attempt, and after replacing "cm_strings.xml" with "strings_custom.xml" (these appear to be equivilent files), the CM patch is partly successful:

### SUMMARY of FAILS ######
[email protected]:~/android/git/tmp-patch/aokp/frameworks/base$ patch -p1 -F2 --dry-run < ~/android/git/omno_patch/MultiWindow.patch |grep "out of"
1 out of 3 hunks FAILED
1 out of 1 hunk FAILED
3 out of 13 hunks FAILED

..with the OMNI patch changed to use "strings_custom.xml", the results are a little better:

[email protected]:~/android/git/tmp-patch/aokp/frameworks/base$ patch -p1 -F2 --dry-run < ~/android/git/omno_patch/MultiWin-OMNI.patch \
|grep "out of"
1 out of 11 hunks FAILED
1 out of 4 hunks FAILED

[email protected]:~/android/git/tmp-patch/aokp/frameworks/base$ patch -p1 -F2 --dry-run < ~/android/git/omno_patch/MultiWin-OMNI.patch \
|grep -c "succeeded"
30

..It looks like this one should be easier to make "fit". ;D
 

·
News Team
Joined
·
1,390 Posts
Got remote add- the https page on git that you want to pick from ...packages/apps/Settings maybe? Git fetch to pull it in and git cherrypick the long ass number of the commit. I'm sure I've missed a couple things but there are quite alot of Google targets for this.

Sent from my Nexus 5 using Tapatalk
 

·
Android Beginner
Joined
·
13 Posts
I just rebuilt with my changes and it looks like I got two .zip files:

aokp_i605_kitkat_unnoficial_2014-01-01.zip

aokp_i605-ota-eng.tln.zip

..will the ota zip just flash changes, or do I need put it in the root of internal/external SD & reboot?
 

·
I roll my own
Joined
·
88 Posts
I just rebuilt with my changes and it looks like I got two .zip files:

aokp_i605_kitkat_unnoficial_2014-01-01.zip
aokp_i605-ota-eng.tln.zip

..will the ota zip just flash changes, or do I need put it in the root of internal/external SD & reboot?
Flash the one with a date in the name.

Sent from my Nexus 10 using Tapatalk
 

·
Registered
Joined
·
33 Posts
I'm building AOKP for HTC ace (desire hd/inspire 4g). I get this error:
make: *** No rule to make target `/home/espmartin/SchutzhundAOKP/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/espmartin/SchutzhundAOKP/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
I've recently suffered HDD failure, and have managed to re-install Ubuntu 13.10, so my builds are all pretty much on a vanilla installation (with Java 1.6).

Any thoughts?
 

·
Registered
Joined
·
33 Posts
Re-installed Oracle's java 1.6, and I get simular error:
[36mInstall: /home/espmartin/SchutzhundAOKP/out/target/product/ace/system/app/BluetoothExt.apk[0m
/home/espmartin/SchutzhundAOKP/out/host/linux-x86/bin/acp -fp /home/espmartin/SchutzhundAOKP/out/target/product/ace/obj/APPS/BluetoothExt_intermediates/package.apk /home/espmartin/SchutzhundAOKP/out/target/product/ace/system/app/BluetoothExt.apk
make: *** No rule to make target `/home/espmartin/SchutzhundAOKP/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/espmartin/SchutzhundAOKP/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
Since searching leads me to java issues, I am totally stumped....please any help would be appreciated!
 
3421 - 3440 of 3468 Posts
Top