yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] crnkoj:
ah yes the local_manifest.xml overrides the default.xml . you must create the local_manifest.xml in the /working_dir/.repo/

hmm so you say that it fails with the default xml from the link above, ill not use it than, although to be honest its just standard witht he https fix in it now that i checked it :)

---------- Post added at 09:15 PM ---------- Previous post was at 09:13 PM ----------

LOL so true olympus is missing, i have no idea how i managed to leave it out ... yes plz add olympus to it than i hope it should work lol... haha just finished building one

will just scrap it fix this resync and build =/
[Atrix 4G Android Development] acerbix:
I changed the project path some, and made some minor changes to the local manifest - keeping my fingers crossed.

The default.xml pulls from the master - it doesnt seem to have the fingerprint branch set - maybe thats why?

I am scrapping my entire repo and resyncing - I am getting multiple compile failures - missing methods. Hope that will help :D
[Atrix 4G Android Development] sspa:
Yes I have a working CM7 kang but so far no luck on the FP.
[Atrix 4G Android Development] crnkoj:
heh, as said i think the local manifest overrides the default, im not sure though, but im resyncing with the olympus fixes now lol, and will even change the default from master to fingerprint

short update to the local_manifest.xml here it is after i fixed that typo :) http://paste.pocoo.org/show/534856/
[Atrix 4G Android Development] ghost_og:
Thanks. No, the default.xml that I'm using has those changes included. It looks like they were incorporated into the original one now. I've just been using that for a few weeks.

I think a few of the paths are wrong. I have been manually downloading the github zips and replacing the matching folders in ~/android/system. Notice that the name= URL indicates the folder path it should be in. Shouldn't it be like this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!-- note: no longer need to replace CM9 Trebuchet launcher with AOSP's Launcher 2 -->

<remote name = "gh"
fetch="https://github.com/" />

<project path="device/motorola/[B]olympus/[/B]"
name="Atrix-Dev-Team/android_device_motorola_olympus.git"
remote="gh"
revision="fingerprint"/>

[COLOR="Blue"] <project path="[B]vendor[/B]/motorola/"
name="Atrix-Dev-Team/proprietary_vendor_motorola.git"
remote="gh"
revision="gingerbread"/>[/COLOR]

<project path="[B]packages/apps/Settings/[/B]"
name="Atrix-Dev-Team/android_packages_apps_Settings.git"
remote="gh"
revision="fingerprint"/>

[COLOR="Red"] <project path="[B]vendor[/B]/motorola/[B]olympus/[/B]"
name="Atrix-Dev-Team/android_vendor_motorola_olympus.git"
remote="gh"
revision="master"/>[/COLOR]

<project path="[B]frameworks/base/[/B]"
name="Atrix-Dev-Team/android_frameworks_base.git"
remote="gh"
revision="[B]fingerprint[/B]"/>

</manifest>

It looks like the red and blue ones are duplicates for this path:

/vendor/motorola/olympus/

-up to date-keep (https://github.com/Atrix-Dev-Team/proprietary_vendor_motorola/tree/gingerbread/olympus)

-older-remove (https://github.com/Atrix-Dev-Team/android_vendor_motorola_olympus)

Not sure how the manifest would determine which to keep so it's probably best to get rid of the older one.

I did a "make clean" and it originally took me 14+ hours to compile so it's gonna be awhile before I have another build to test.
[Atrix 4G Android Development] acerbix:
I made very similar changes to the local manifest. One thing though: the blue repository does not have a fingerprint revision, I set it to gingerbread.

Question: in order to get past the sync failure problem, in addition to changing default.xml to using https, did you also change manifests.git/config to use https instead of git?

I think my repo is totally messed up, since my builds are borking - so I am rm -rf'ing my entire repo, .repo and reiniting everything. Keeping my fingers crossed, will know in 8-10 hrs :)
[Atrix 4G Android Development] ghost_og:
Thanks, just saw that as I was double checking everything. Here is what I think my local_manifest.xml should look like. I re-ordered everything to match the layout of the github page to make it easier to follow:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!-- note: no longer need to replace CM9 Trebuchet launcher with AOSP's Launcher 2 -->

<remote name = "gh"
fetch="https://github.com/" />

<project path="device/motorola/olympus/"
name="Atrix-Dev-Team/android_device_motorola_olympus.git"
remote="gh"
revision="fingerprint"/>

<project path="frameworks/base/"
name="Atrix-Dev-Team/android_frameworks_base.git"
remote="gh"
revision="fingerprint"/>

<project path="vendor/motorola/"
name="Atrix-Dev-Team/proprietary_vendor_motorola.git"
remote="gh"
revision="gingerbread"/>

<project path="packages/apps/Settings/"
name="Atrix-Dev-Team/android_packages_apps_Settings.git"
remote="gh"
revision="fingerprint"/>

</manifest>

Should the revision for the proprietary files be "gingberbread" or "master"?

(I also edited my above post to reflect the gingerbread change).
[Atrix 4G Android Development] crnkoj:
i think it doesnt matter, probably better gingerbread since eventually master will be ics/cm9
[Atrix 4G Android Development] ghost_og:
Nope, just added those couple of lines to the default.xml. It was specifically just for the prebuilt folder. I think the way I had it set up would use git:// for everything else. Prebuilt seemed to be the only one that needed https:// to complete.
[Atrix 4G Android Development] crnkoj:
hmm i used your local_manifest.xml and got this error http://pastebin.com/XYyqVG88 trying stuff around but no success.

more weird things lol if i remove the framework/base than the apps make an issue (the hell?)
[Atrix 4G Android Development] ghost_og:
Before you were kind enough to tell me what the local_manifest.xml was, I was only using the default one. After my repo sync would complete, I would then d/l the .zip for all the fingerprint patches, and replace them in the appropriate /android/system directory after extracting them.

I was in the middle of compiling when I put that local manifest together so haven't had a chance to try it out. Though I do notice the commit ref# in your log is referencing the gingerbread branch.

Sorry I couldn't be more help, but at least its a temporary workaround so you can start building again. ;)
[Atrix 4G Android Development] crnkoj:
ye im not so keen on building without fp unlock working :D it doesnt matter fingerprint or gingerbread :)

it all seems i might have fixed it. i changed the project path to nothing on both.

ok or not
[Atrix 4G Android Development] ghost_og:
I think it just had to do with "/" at the end of each line. I compared it to the default and made slight changes. Try this one.

I just placed this local_manifest.xml in ~/android/system/.repo/ and was able to successfully sync.

*Damn, it completed, but the fingerprint files weren't in the source. Screw it, I'll just manually move them over for now.
[Atrix 4G Android Development] sspa:
I believe you can totally skip prebuilt since it's where the toolchain is, and if you have previously downloaded it, you can just reuse it; doing this will save you tons of time downloading it
[Atrix 4G Android Development] crnkoj:
ok so i got it to work you have to set up your local_manifest.xml like this http://paste.pocoo.org/show/534920/

i will start building now and report back in about 50 mins

bah now i get this

build/core/java.mk:9: *** frameworks: Target java module does not define any source or resource files. Stop.
[Atrix 4G Android Development] ghost_og:
The problems with prebuilt started when I initially was setting up my build environment, so I had never downloaded it before that. It was a very frustrating few days before I was able to get my first complete repo sync.

---------- Post added at 03:02 PM ---------- Previous post was at 02:51 PM ----------

Before you start, did you happen to double check that the fingerprint commits were in your source? I went through and verified files for each of the 3 patches to make sure. Look in:

~/android/system/frameworks/base/core/java/android /app/admin/DevicePolicyManager.java

and see if there are any references to "fingerprint".

I would also do the same for a fingerprint related files in /package/app/Settings and /device/motorola/olympus. My "successful" sync with the updated manifest didn't have any of them.
[Atrix 4G Android Development] crnkoj:
hmm the files are there but thers no mention of fingerprint in the file you suggested to check

wanna talk on irc freenode on #moto-atrix ?
[Atrix 4G Android Development] ghost_og:
Sure give me a sec to get on my netbook. See you in there.
[Atrix 4G Android Development] acerbix:
Wouldnt it create the Settings app tree in" packages/" rather than "packages/apps/Settings"?
[Atrix 4G Android Development] acerbix:
I was able to sync successfully with this local manifest: http://pastebin.com/1p4di2jX

This syncs without errors - but I see the commits from atrix-dev being discarded:

http://pastebin.com/egjcCBuA

Fetching projects: 100% (316/316), done.
Checking out files: 100% (92/92), done.ing out files: 21% (20/92)
Checking out files: 100% (192/192), done.g out files: 22% (44/192)
Checking out files: 100% (4679/4679), done. out files: 33% (1565/4679)
Checking out files: 100% (4573/4573), done. out files: 25% (1177/4573)
Checking out files: 100% (1222/1222), done. out files: 37% (461/1222)
Checking out files: 100% (10012/10012), done.ut files: 8% (862/10012)
Checking out files: 100% (12618/12618), done.ut files: 8% (1018/12618)
Checking out files: 100% (5192/5192), done. out files: 47% (2449/5192)
Checking out files: 100% (10462/10462), done.ut files: 0% (18/10462)
Checking out files: 100% (1677/1677), done. out files: 4% (83/1677)
Syncing work tree: 100% (316/316), done.

device/motorola/olympus/: discarding 29 commits
frameworks/base/: discarding 35 commits
packages/apps/Settings/: discarding 1 commits

Any idea why these commits would be discarded? I am not seeing any of the fingerprint branch changes, prolly due to the commits being discarded
[Atrix 4G Android Development] ghost_og:
Ok, crnkoj an I got it sorted. Not sure if this is the "proper" way to do this, but it was working for him.

Use this as your local_manifest.xml

and this as your default.xml

Crnkoj removed any package referenced in the local_manifest.xml from the default.xml. See if that works for you.

*Edit* We think the reason the discarding was happening, was that our local_manifest.xml had different urls from what was in the default.xml for each of these packages. So it would overwrite the packages we were pulling from Atrix-Dev-Team's github with the ones from Cyanogenmod's. Your /vendor/motorola should have correctly synced with the fingerprint branch since it is not included in the default.xml.
[Atrix 4G Android Development] acerbix:
Thanks - Cmkoj forgot to take out frameworks/base in his default.xml BTW :)

I'd much rather not mess around with the default.xml file.

I wrote a small shell script to physically overlay the 4 atrix dev repositories. Should amount to the same thing. Will let you know how things go.
[Atrix 4G Android Development] ghost_og:
Thanks for the heads up. FYI, none of us did this but the dev team has a custom default.xml up on the github. You'll notice they included the url for the correct patches, but gingerbread is defaulted. Just thought you'd be interested since you were hesitant about making changes to that file. (they also have the prebuilt https:// workaround included)
[Atrix 4G Android Development] acerbix:
That's what I started out with - it gave me tons of compile errors. Will try manual overlay on a spanking new repository and see how that goes :) With the shell script at least the right files are being pulled in. Trying my first build - will see how things go :)

Attaching my script in case it helps :)
[Atrix 4G Android Development] acerbix:
Were you folks able to build successfully? Even after manually pulling down code, I see the same build errors:

packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol
symbol : method noEndofBody()
location: interface javax.obex.Operation
op.noEndofBody();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings

Any help will be appreciated.

This is what I am doing for the build -

- Sourcing build/envsetup.sh

- lunch 133 (cyanogen/olympus)

- make bacon

Thanks in advance :)
[Atrix 4G Android Development] ghost_og:
I'm still waiting on my "real" FP build, but I've been able to complete 4 "fake" FP builds with navigation only. I used the regular default.xml (not the one just linked to), no local_manifest, and manually inserted the -gingerbread branches for everything else. This was before I realized I was using the wrong branch, so I'll let you know once this build is done (12 hours maybe? lol). With this current build I also manually copied the files, so if I get an error it'll be sooner.

*PS* I think compile errors will come from missing files/incomplete syncs. You can find that file on the github and try and track down the error. I would just repo sync, and make sure you do a make clean before trying again. I ran into some missing things a few times. Soo frustrating after hours of waiting. And most importantly, if the error isn't causing your build to stop, just ignore it.

*Update* So it looks like my error is occurring in CMParts. Here's what I'm getting. I'm going to try and delete the folder, repo sync, make clean, and build again. Last one of the night for me. Also, lunch seems to have changed to 132 now for olympus.
[Atrix 4G Android Development] xenomorph150:
I get the exact same error about the bluetooth when trying to build from source for Motorola Milestone...

"packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol

symbol : method noEndofBody()

location: interface javax.obex.Operation

op.noEndofBody();

^

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 error

4 warnings"

Any way to fix this?
[Atrix 4G Android Development] crnkoj:
ye, i just woke up and started the compile, sadly it stopped with the same error as you gave. it suggest to try to compile with -Xlint:deprecation , im trying several make/compile options to use it and ignore, but somehow i havent found anything. it does seem that the fp build uses some deprecated feature that the new cm doesnt l ike to use.
[Atrix 4G Android Development] acerbix:
I've hacked through and gotten past the error and the build is chugging along. Feeling v sleepy, once I wake up tomorrow morning, will post update.
[Atrix 4G Android Development] xenomorph150:
Awesome!

I'm looking forward!

Sweet dreams! ;)
[Atrix 4G Android Development] crnkoj:
very nice, i gave up on it for now, hopefully it will build for you and than im awaiting your suggestions/steps :D judging by the error we all got/get that way one might probably have to change a few lines in the code (i have no clue as to where or how though...)
[Atrix 4G Android Development] crnkoj:
mods, why would you move this, its going into the dev way to get fp to work with latest cm updates it is not a q&a since we discuss options there and write progress? you can feel free though to write a useful answer if you think to know how it goes.
[Atrix 4G Android Development] xenomorph150:
Totally agree with that oo.
[Atrix 4G Android Development] acerbix:
Success!!!!!

Yay! Finally - got it to work!

Been running for 1+ hr, so far running beautifully w no FCs. Tested sleep/wake up from sleep and fingerprint unlock with both correct and incorrect fingers. It unlocks on correct finger match and will tell you if the finger does not match. What's more I think the matching algorithm works better in cyanogenmod than on the original ROM (at least its more responsive/accurate- less false negatives).

This is what I did to get it to work:

- Used vanilla CM7 repo/no atrix dev mod default.xml or local_manifest changes whatsoever [Dont forget to get rom-manager, dont do extract.sh in device/motorola/olympus :)]

- Scrapped and rebuilt my local CM7 base [prolly not necessary :)]

- Wrote/used the attached script (if you use "-s" option in the cmdline it will repo sync as well) to get proprietary, vendor and settings code from atrix dev. The script is ugly but works. Extract in your android/system dir. You could choose to use local manifest/default.xml instead but I wanted more control :D

- Manually merged the changes from Atrix-dev frameworks/base fingerprint branch: i.e. edited or created every file listed in the fingerprint commit on atrix-dev in my local base. Extremely painful, and for the first time I *really* appreciated the diff features on github :D

- lunch and make bacon [I personally hate parallel builds with -j4 or whatever, since it makes debugging tough]

- Corrected typos/merge errors and redo make bacon until it compiles right

- Once everything finishes compiling, make clobber and make bacon again (to make sure things really had dependencies set okay) [This is paranoid - you dont need to do this]

- adb push the update file

- Reboot recovery and apply update

- Enjoy

One quirk - fingerprint unlock options were visible but disabled initially. I had to delete my device admin (my work email provider), add the fingerprints and then resync my email to reapply teh device admin rules from work.

Here's the link for my frameworks/base zip. At some point, I will pull together a zip of only the changes - for now this is the entire frameworks/base dir: http://www.multiupload.com/EMVF3DQZWM

***Update: ignore the link above: I am attaching a much slimmer zip file with only my changes. Unzip and untar this file in frameworks/base.

Thanks to ghost, cmkoj, smapp and others who have been a tremendous help through the process.

Cheers
[Atrix 4G Android Development] crnkoj:
great news thanks, cant wait for the workaround!
[Atrix 4G Android Development] acerbix:
Hate me-too posts - but mods, shouldnt dev threads where we are working through actual development issues and posting updates be in Dev? Not every dev work results in ROMs, MODs or kernels - there are still quite a few DIY'ers who like to build things just for the heck of it :) Looking forward to understanding why this is a Q&A topic.

Please dont ban/kick me - this question is born of intellectual curiosity, not questioning your benevolent overlordship :D
[Atrix 4G Android Development] crnkoj:
very nice! ill take a look at it in a few minutes

hmm read the stuff you added, so actually we have to run make bacon and than fix code thats giving errors, if i understand you correct?
[Atrix 4G Android Development] sspa:
Thanks, I found the same thing, you have to merge frameworks/base from CM7 repository.

For code merging, you can use visual diff tools such as Meld, DiffMerge etc to make it much easier.

You can also use the merge capability in git (and create patch too) but I'm not a git expert.
[Atrix 4G Android Development] xenomorph150:
Mh sadly I don't come over that bluetooth problems I mentioned. Any ideas?
[Atrix 4G Android Development] acerbix:
Well - now that we figured out how to include fingerprint in kang builds, on to the next thing: I want to reaprtition the emmc on the atrix to do the following:

- Merge osh with data to get a bigger data partition. webtop is not usable on CM7 so why keep it around and waste good diskspace?

- change mounts around so that the emmc partition (mmcblk0p18) mounts on /mnt/sdcard and the external sdcard mounts on /sd-ext [ignore emmc altogether]. This will let TiBu and other software restore backups from blur roms and enable switching between blur and CM roms easier.

I will start a different thread for this if you are interested in working on this. I can work offline but its always easier to collaborate :)
[Atrix 4G Android Development] acerbix:
Did you download frameworks/base from the link above? You should delete your frameworks/base directory and unzip the downloaded one.

Also - do a "make clobber" before doing a make bacon.

Let me know how it goes.
[Atrix 4G Android Development] sspa:
Are you compiling with "-j4" etc in "make bacon"? I found the same thing, but if I remove the -j switch, it runs through w/o error. Maybe it's an issue related to the parallel compiling (some files expect some other files to be compiled first?).
[Atrix 4G Android Development] acerbix:
Is there a way to generate patch files in github? That would be awesome :)

Meld/DiffMerge works - however, you still need to eyeball the resulting file to make sure the code doesnt look insane :)
[Atrix 4G Android Development] acerbix:
Nope - I already fixed all the merge errors. The build should run cleanly for you. Confirmed this on a second dev machine.
[Atrix 4G Android Development] crnkoj:
one shouldnt repartition the internal nand, since it ****s up pds and so on, its a bad idea.

---------- Post added at 07:01 PM ---------- Previous post was at 06:52 PM ----------

hmm e in t he frameworks_base.zip right not if one only uses the script?

on a second note, i would be more interested in devising a dualboot option as to repartitioning the internal sdcard
[Atrix 4G Android Development] acerbix:
Good point - it wouldnt be a full repartition, just from mmcblk0p13-17. The way I understand the partition table:

12 - system

13 - osh

14 - cdrom/iso9660 - with a bunch of windows driver setup files

15 - cache

16 - data

17 - prebuilt

18 - emmc

So - I have two options:

- I could delete 13, move 14 & 15 up as 13 & 14 in the new partition table (actually copy over contents, delete and recreate partitions of the same size and copy contents for 14 over), move 16 up and expand it to include the freed up space from 13, and leave 17/18 alone. The new table would have 13 - cdrom, 14 - cache, 15 - data, 16 - prebuilt, 17 - emmc This would be the most efficient, but would need a lot of code changes in device/motorola/olympus

- I could delete 13 and create a new 1 MB sized 13, do everything else as above. This way, the partition #s stay unchanged and there should be no code changes (I hope) and we'd get an expanded data partition.
[Atrix 4G Android Development] acerbix:
Well - the script just pulls in the vendor, proprietary and settings repos. If you dont use the attached framework/base zip, you will have to manually merge code from framework/base in android repository. Prolly easier to download the zip :)

Dualboot - interesting. The folks over at NC do dualboots like crazy :) On the other hand, they have open source bootloaders that they use. Atrix BL to the best of my knowledge are closed source. Are you thinking of porting a BL over? I havent followed the NC scene in over 8 months - should get back in :) They seem to have a cool ics port going on.
[Atrix 4G Android Development] xenomorph150:
Na, sorry.

I just stumpled across this thread as the bluetooth error was the same as mine, but I do try to compile CM7 for the Motorola Milestone as mentioned here ( http://android.doshaska.net/cm7build ).

So I thought that could be some kind of "universal CM7 error" and there could be an universal appliable fix.
[Atrix 4G Android Development] ghost_og:
Glad you got it working. I'm still getting stuck at the CMParts error. When you say you manually overlayed the commits, did you just copy over every file from this page? And what kind of corrections did you make exactly? Was it just to the bluetooth file that was giving you trouble?

Thanks, I will try that now. The -j4 option would usually work with my previous builds, weird.
[Atrix 4G Android Development] acerbix:
Ah - no such luck. My problem was specific to the way I was trying the build. Best of luck with your attempt.
[Atrix 4G Android Development] acerbix:
1. The bluetooth file was the first file to fail to compile. I commented out the offending line and tried again: The second set of errors I got was exactly the same as the CMParts error you posted.

2. The new files, you can copy over. The changed files you have to manually merge [since they might have changed between when the changes were made in sept-dec to now.

Don't know if this helps - my builds failed whether I used -j4 or not.