Stock as in a Nexus device or stock as in some other OEM skinned device? You shouldn't have problems applying either if you're using stock vanilla AOSP and rooted. OEM skins (touchwiz/sense/etc) though are another thing since you don't have any source code to work off of without modding or using something like Cyanogenmod and they tend to mod a lot of the framework base. Pdroid's patches were to the framework_base part of the Android source from what I recall working with it before. Modding the Android source isn't too bad if you import it into Intellij IDEA or Eclipse though. If you have some questions about where to start, feel free contact me.
Nexus device, yep. I didn't know takju was AOSP, I thought AOSP is sort of the "base". I'll try to set up OpenPDroid (I think PDroid doesn't work with ICS), thank you!
Yeah, pdroid as in its Android 2.3 form is wont work. Before OpenPdroid, I had to manually merge changes into the ASOP source by hand and do a little tweaking. You should be all good with takju. I have a Verizon Galaxy Nexus (toro) and build AOSP fine with that.
All the proprietary binaries are on Google's site[1] for Nexus devices or can be pulled from your device under /vendor/ (in the past, google sometimes failed to put up a few like the camera or bluetooth so had to get those via your device or a trusted repository). Alternatively, you can pull them from a repository maintained by a some of the more well known Android ROM modders using the directions I put up here (https://github.com/yareally/android_proprietary_files). Also you'll have to get a google apps package (or alternatively build it yourself) if you compile AOSP since you won't have access to the Android Market and such otherwise (stock AOSP resembles what you get in the emulator). A premade google apps package I would trust (and use myself when I don't want to build my own) can be located on goo.im[2]. They'll say Cyanogenmod, but they'll work for stock AOSP just the same.
Oh hum, so, from what I understand, I need to use AutoPatcher(?) to patch my stock ROM and install that. Doesn't that mean that all my data will be wiped?
This sounds like a huge hassle to install a privacy manager, I'd be okay with installing a small patch, but wiping my phone quickly ventures into "not worth it" territory :/
You can back up your data first before unlocking your bootloader and such (https://play.google.com/store/apps/details?id=com.koushikdut...). Works without even being rooted since it's a wrapper around the built in backup Android implemented since Android 4.0.
After that, you unlock via running a simple command which will let you flash your own compiled rom (alternative, you can unlock and then root and patch as you mentioned after unlocking the bootloader, but unlocking is the first step for either solution).
After backing up, run from your pc command line (you need the android sdk platform-tools first):
fastboot oem unlock
↑ that will wipe all your data and put it back in the state you got it initially, so make sure to back up first. More info on that can be found in the link below ↓
Thanks for that. I've already unlocked the bootloader (back when I got it), I was referring to needing to wipe everything when installing the ROM (I'm rooted, too).
I don't want to take up more of your time, though, I'll just download the stock rom and try to AutoPatch it and see if that works. Thank you very much for your help!
Np, I don't think that patch should require you to do much and the stock ROM shoudn't really be any different (if we're talking about the Android Factory Images[1]) than what you have right now so the patch should work without flashing any ROM. If you're going to flash and wipe everything by flashing it (and you're already stock Android), then might as well try the patch first before flashing the stock ROM.
Oh if you're rooted, then just use titanium backup if you want to be safe :). Good luck.