yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] Sandpapers:
Hey. I am to the point where I want to build, but I cant find my device. p930, lg nitro hd.

I don't get where https://github.com/CyanogenMod/android_device_lge_p930 is used in the process, nor do I quite get what .repo/local_manifest.xml is referring to.

Blah, i feel like im just compiling a cm9 from source, not specific to my device. Any help is appreciated, im greatly trying to get this right.
[LG Optimus 2x] pastime1971:
did you "repo init ..." as described in the tutorial ? (except for ics not gingerbread) that will create .repo in the directory where you ran it. (you are supposed to run it under something like ~/android)

if so, then,

create

android/.repo/local_manifest.xml such that it reads like one in post #91. (you can copy the code part in that post)

you do need all three : device/lge/p930, device/lge/star-common, and vendor/lge/

and then run "repo sync -j16"

edit: pay attention to PERIOD in .repo. anything starts with PERIOD is not visible by ls (you need "ls -a")

edit: attached is a what you would type from the terminal.
[LG Optimus 2x] hallydamaster:
Is it possible for anyone to share an executable of the patcher?

Or am I missing something?
[LG Optimus 2x] tonyp:
You're missing that the patcher only works for CM7 (Android 2.3.x) yet, not for ICS. For CM9 you need to compile PDroid in from the source. If you have no idea what I'm talking about you could ask kindly in your ROMs dev thread if someone would compile a build with PDroid included.
[LG Optimus 2x] hallydamaster:
Ok, so for CM9 Nightly I would have to compile the source from github with the patch?

Is it possible to compile CM9 using Cygwin?
[LG Optimus 2x] pastime1971:
yes, that is correct.

check out 'how to build cyanogen from source' tutorial (or any other android)

but it is always better to use a native linux or vm, i think. (for a text only install, you probably only need a few GB for / partition. CM9 repo + build requires something like more than 12 GB.)

(it may be possible to do it on windows not cygwin, but i simply don't use windows...)
[LG Optimus 2x] Sandpapers:
Thanks, it was hidden, such a stupid mistake there. I did all of that correctly, but when it comes to brunch, my device just doesn't show up on that list. It shows 39 other devices, just not mine.

At this point is my device supposed to be connected to the computer? Is local_manifest.xml supposed to add my device to that list?

I took the local_manifest.xml and just placed it in the proper location. As far as the p930.txt.zip file, not sure what to do with that. It didnt look like it contained anything pertinent? That could be where i messed up.
[LG Optimus 2x] pastime1971:
no, you don't need to connect your phone to pc. (that part is to extract proprietary blob, but we use koush's already extracted blob instead.)

yes, local_manifest.xml adds p930 repo. after adding it to .repo/ and running "repo sync", you should see device/lge/p930 and device/lge/star-common.

p930.txt.zip is just an example of text commands you would be using...

as for brunch, no, i didn't see p930, either. that could be just because brunch menu has not been updated for unsupported devices. just run "brunch cm_p930-userdebug" instead of "brunch"
[LG Optimus 2x] Sandpapers:
Hahaha... This is getting old. Repo sync hung up twice. I let it sit for 30 mins, it did nothing. First time that has happened, thought it was just a fluke. Re did repo sync -j16, happened again...

Any ideas?
[LG Optimus 2x] pastime1971:
no clue. maybe try with -f ?

repo has had some issues before. no choice but to wait, i guess.

on a separate note, i also tried to AOKP yesterday, and it hung. so, i guess you are not alone.
[LG Optimus 2x] temasek:
Try with a lower -j, eg -j6 or even -j1
[LG Optimus 2x] Sandpapers:
So, after error after error I've decided to give up. Make error 1 and 127 plague me too much at this point. I just hope Svyat comes up with an ICS based patcher asap.

Thanks again for all the help. Learned a lot from you guys
[LG Optimus 2x] temasek:
Don't give up. Keep trying. Go back to step 1 and work from there.

Learn thru failures. That's what many learn....at least I do.
[LG Optimus 2x] Sandpapers:
Tried again, no errors this time and it was going for about 45 minutes and it just froze. Noticed it froze when I saw the time still said 7:22 PM and it was 7:40 by then.

I used WUBI to install ubuntu, could that be an issue? Not enough memory / space allocated to the installation? I don't feel like how I setup the dual boot should matter, but now I can't even boot up ubuntu. Going to uninstall and reinstall, then start from square 1.

I wish I had a computer dedicated just to doing this, would make things so much nicer if I could do others things with the computer while its compiling and repo'ing.
[LG Optimus 2x] pastime1971:
as long as it has an enough space, it should be fine. (i'm guessing ~15 GB free after linux set up?)
[LG Optimus 2x] pastime1971:
in fact, ICS support is near ~
[LG Optimus 2x] Sandpapers:
Ya I saw that. Super excited. Hoping it will patch any roms based on ICS. That is what I am assuming it will do. Couldn't ask for more.
[LG Optimus 2x] pastime1971:
it is exciting. however, smali patching could be a hassle as witnessed in svyat's thread.

i am eager to see his ICS source.

for kangers, it is more straightforward to build it from the source. much easier to debug, too...
[LG Optimus 2x] mateorod:
I can second the hassle of smali patching. I have created a bunch off patches, but finding some that carry over to other devices has been a real struggle. I have been running them through the four sets of system jars that I have, and they haven't been successful quite yet. I do have a patch file that works for a single device, but not what we need.

Now, I am working in Linux, so I am creating the whole process from the ground up, as far as what the patches and scripts will need to do when distributed. There is some framework sketched out from the gingerbread patches, but this is the first time I have done this (my other system app projects have been for a package manager.)

Now, I did create a totally workable package for porting pdroid to nook color. It works fine. In a lot of ways, I think it is a superior system to smali patching, because it only requires a reboot, no computers or patching necessary for the users. And it doesn't require repatching for updates, either.

I made one for maguro, and had hope to have it out already, but I don't know how its working yet. Anyone want to test for me? All you need is the device running ICS.

And if anyone has built a Pdroid ROM for any other device, and wants to have a package made, I can do that in ten minutes now that the scripts have run. Let me know if you want to bring Pdroid to your device's nightlies.
[LG Optimus 2x] pastime1971:
@ mateorod,

maguro on AOSP was a bit tricky due to odex business. (which i totally forgot about...)

unless we have someone with maguro using CM9, it may be that way.
[LG Optimus 2x] mateorod:
Hmm. When you posted those files, I just thought you were running on maguro. Well, if anyone has a ROM running Pdroid on ICS and would like to see the process in action, post or pm me and I'll have you get me the system apps and I'll throw together a package. That package will work for anyone running nightlies of that ROM until the system apps go out-of-date, which seems to happen about once a month with Cyanogen. At that point, I can just update the package.

If you'd like to see how the process works, here is my post for the nook color. I use this same method to distribute a services.jar for the V6 supercharger, for nook only, so the only steps necessary are the first two.

We have the capability to do onboard modding, recompiling included, through Botbrew, but that will have to wait until the beefier devices get a little more standard. But I personally believe this is how these sorts of mods will be done in the future.

I am still going to keep working on the smali patching, because I know that is the only way some roms will get Pdroid. But I think this is better, for the user at least. Relying on people to go to their computer and create patch updates daily is a lot.
[LG Optimus 2x] Sandpapers:
I will gladly help test anything. I've recovered my phone from boot loop city plenty of times, so I can't see how anything worse than that can happen.

I run LG Nitro HD P930 running CM9 Nightlies. Let me know if you want anything tested. I sorta stopped with the self patching, couldn't get a compile to finish.

Ps. Will http://xdaforums.com/showpost.php?p=24816272&postcount=72 work for other phones? Should I give it a try or is it known to not work on other devices?
[LG Optimus 2x] pastime1971:
i just posted a

blind

build for P930 in the post #3, if you want to test it.

edit: mateorod will have to set it up for other devices to work. currently, he has it for nook and maguro so far, i think.

edit: see mateorod's post #123 for follow up. now he has hosted p990 and p930.

edit: also let us know if PDroid is working for your devices (P930, P999, etc.)
[LG Optimus 2x] pastime1971:
@ mateorod,

thanks. i will link your post in the first page.

edit: also for those who download the whole rom or use mateorod's botbrew, let us know if PDroid is working for your devices.
[LG Optimus 2x] SGH-i200:
mateorod's post

@Pastime - Link to mateorod's post is wrong in your post:

http://xdaforums.com/showpost.php?p=24934484&postcount=123
[LG Optimus 2x] pastime1971:
thanks, SGH-i200 !

i edited it around, and left a mess there... :p (fixed now)

edit: P999 is correct. it is for G2X. i just compiled it (for fun) P990 (O2X) is on the top of that post.
[LG Optimus 2x] Sandpapers:
Boohoo. It doesn't work from post 123 using the botbrew method for the p930. Everything seems like it goes well until the reboot, it gets to the 86/86 apps, then goes immediately to the CM9 loading screen. Loops there.

Any info you need? Any info i can get while its in this state?

Edit: Installed your flashable zip from post 3? 4? whatever it was for the P930. Worked so far, going to restart to see if any bootloops. What CM9 nightly did you end up using so I know for reference sake?

No bootloops!!!!!!!!!! <3 love you

Also, can I install the new nightlies over this version I have and keep pdroid still working?
[LG Optimus 2x] pastime1971:
also, try flashing the whole ROM from the post #3 to make sure it is good.

i blindly build one as i don't have the device.
[LG Optimus 2x] mateorod:
:

Hmmm. Considering it sounds like you make it through the entire boot process, I wonder what is causing that. Your davlik sounds like it rebuilt okay. Let me look at it some. If you're willing, I may ask you to try it again. What Botbrew is doing is swapping your system apps for the ones that worked for you while flashing,. There are some maintainer scripts that support the davlik cache while you swap them, but since you get through the rebuild process I am not sure what is causing it to fail, since we now know the system-apps work for you.

Do you have adb set-up? Send me a pm and if you are willing we'll get to the bottom of this and then post the solution, so this doesn't turn into a Botbrew package support thread. Once we get it working you should be able to use it in your nightlies (for awhile, at least).. If anyone else has a P930, I would love to hear your experience.

Thanks for testing!

edit: Also: how old was the ROM you were running when you tried PDroid? There is always the possibility that your rom was incompatible with the system apps. Now that you have a rom that we know works, with the same system apps, would you try using Botbrew on your existing install? If it boots and PDroid works, then we probably know what the problem is.
[LG Optimus 2x] pastime1971:
no

, flashing a new rom will overwrite pdroid framework.

just like smali patching of GB needs to be done every time, this whole ROM has to be recompiled for every nightly, which is why it would be great if someone can volunteer building PDroid/CM9 for P930.

i could compile it, but it would be a blind build. besides building a rom takes me 1.5 hour each. so not an affordable job.

furthermore, svyat may provide his patch for ICS any time soon ... :rolleyes:
[LG Optimus 2x] mateorod:
sand-

Problem debugged. If you ever get around to trying Botbrew on your flashed PDroid ROM, I bet it would work fine. The CM repo did one of its major updates, system-app wise. I am going to update the Nook repo, but will have to yank the packages for the other devices until pastime or someone else decides to build again. Thanks for testing.

Whenever dome newer builds go up, I will add packages to the repo and edit the original post so I don't rebring up this issue constantly xd!

It is one of those things. CM repo changes are hard to anticipate, and with the expansion to outside devices, it took me longer than usual to spot the problem.

Thanks!
[LG Optimus 2x] Sandpapers:
Weird. Botbrew doesnt pull up package android-framework-pdroid-1.3.2-1 when your repository is installed. I am trying to install it on the flashable zip you made in post #3 with pdroid already on it. That could be the issue.

I'm going to clean install my latest CM9 nightly and try botbrew method again. Will edit later to let you know how it goes. Sorry I didn't respond to the post from earlier/yesterday, wasn't near a computer. Generally do this all at work. Thanks for building a stable release for me.

Google Market has issues, all the white parts are black. All black parts are white. I can't see text unless I long press on something, that's no big deal.

Camera doesn't work, assuming that the build used, no big deal also. Pdroid randomly crashes, no clue what apps or why it happens.

Edit: Botbrew doesn't show android-frameworks package after installing your repository on latest CM9 nightly. Not sure whats up. !!
[LG Optimus 2x] mateorod:
Hey- yeah, i yanked the packages. The system apps are out-of-date. I got confirmation of this last night and to save people from broken installs i yanked them.

It is somewhat like when people ran the patcher for CM7 and would post them for others to use. They work for awhile, and then all of a sudden, a nightly will have a significant upgrade and it will break the patch.

If i see further builds posted, i will upgrade the packages. But, really, the initial packages were put up in a hope of attracting maintainers. Without the device, or at least the source, I can't keep those packages up to date forever.

It was just our bad luck that the system apps had one of their monthly updates on the day we released the packages. Such is life with nightly updates, though. :)

For now the only device that can use PDroid on nightlies. If anyone builds their own patched ROM, they can share it with others on their device by pming me.

Thanks for testing, though. You alerted me to th3 problem before i would have found it on my own!
[LG Optimus 2x] Sandpapers:
Aw darn, heres to hoping Syvat can make a working patcher. That was always easy for me, just run it and good to go.

As far as building from source... if i were to build and the latest nightly is from 4-17. Would it automatically be from that cm9 build? I want to find a CM9 that works well for me, smooth and performance wise its stable, and build from that specific nightly.
[LG Optimus 2x] pastime1971:
google market issue is probably due to http://review.cyanogenmod.com/#/c/14589/

i built that rom w/ many cherry picks. (probably, should be just nightly + pdroid, i guess.)

personally, i don't see it on my p990. but maybe other devices are susceptible.

camera is probably because i included DBINDER_COMPAT for http://review.cyanogenmod.com/#/c/13317, which i need for P990 and forgot to change. :mad:

edit: P990 needs fixes and tweaks for CM9 to work because it is not officially supported yet. what is a situation on P930. i'm guessing you can just run nightly and everything is working ?
[LG Optimus 2x] pastime1971:
if you know a kanger, you could invite him here.
[LG Optimus 2x] Sandpapers:
Ya I just run the latest CM9 nightly for my device. Works fine, no big issues. Still that stupid jitter everytime i hold my finger still on something. That is my biggest gripe so far with ICS. Other than that great rom. Just needs pdroid!

Edit: Don't know any kangers. Hell, this device was barely getting any development for awhile. No custom ICS roms yet, just CM9.

Sorry for repeating this question but i still dont know the answer. How do i build on top of the nightlies? If i want to update the rom, i assume i have to build it from source after patching. When i repo sync, does that automatically pull up the latest nightly? Then when I build it would be on top of that? Or are the nightlies literally them pulling the source, modifying so much stuff and then building it from what they have? I'm guessing thats what it is.
[LG Optimus 2x] pastime1971:
(1) well, nightly is a snap shot of a continuous development of source. when you build, you are creating a snapshot at different time/step. you can think of it as a nightly (or hourly) at whenever you want it.

(2) better. source is updated upon gerrit approval (http://review.cyanogenmod.com/#/q/status:merged,n,z) nightly is built once a day (at night)

whenever you repo sync, it syncs to whatever has been merged. that way, you can taste what would be tonight's nightly. if you cherry-pick, you can even taste next week's nightly. (cherry pick is to add commits in review which may or may not be further updated, merged, or abandoned)

(3) yes, on top of yesterday's nightly, adding the latest merged commits.

(4) that would be a better description.
[LG Optimus 2x] Sandpapers:
Thanks for the 101 class on all this. Might try building again when a few more nightlies are made. If i can get the camera and market working properly i'd be set for awhile. I don't personally like updating to every nightly.

I wish that botbrew worked. That's a ridiculous app.
[LG Optimus 2x] mateorod:
Hey,

Whenever some new patched builds come out, I'll put those packages out again. They last for as long as the system apps stay unchanged. The packages I use for the nook color tend to work anywhere from three-to-four weeks. I can update them immediately when they go out of date b/c I build for that device. I had someone test the packages for your device and it worked fine, but only for nightlies from that period.

It just so happened that the CM repo updated the services.jar significantly enough that it broke the packages that very day. It happened to all the packages we offer that supply services.jars. I redid everyone I could. I would put some more effort into' wrangling some maintainers, but from what pastime has hinted, it looks like syvat is about to drop a patch so it somewhat lowered in my priority list.

On the subject of patches, pastime, I may come by and post a patch or two for you to look at. I can successfully patch maguro apps fine, but I havent been able to get them to port to other devices. I keep fiddling with the context, but too little and it can't find the hunks and too much and the context is too maguro specific and doesn't exist. But I do have the patches made, maybe you would have some luck. I have put together all the pieces that we would need to package the patcher together, (baksmali binaries, SignApk, the key/certificate and so on) although I haven't written a script for it yet.

If you want to take a shot, I'll restore the blank lines so it is a little more readable. It's in unified format, and fairly-straight forward. Big patches, though, something like 3500 changes in the services.jar alone.

I was fitting it in when I could, but since an official update for PDroid sounds like it is coming I haven't spent as much time on it the last couple days (I've been busy remaking packages due to the repo update!)

Anyway, sand, thanks for trying the app! I am just developing for it, not its developer, but I think it is pretty much insane as well. :)
[LG Optimus 2x] pastime1971:
@mateorod,

i will be more than happy to take a look at it.

i appreciate your effort...
[LG Optimus 2x] pastime1971:
@ mateorod,

CM9/PDroid for P930 has been updated, http://www.mediafire.com/?ow1y71l9axopa57
[LG Optimus 2x] mateorod:
Hey Cool! Sorry I was MIA for a minute, I have been single-fathering it all week with my wife out of town...:eek:

Give me a little bit and I will update this post with some info and an attachment or two. I will put a quick Botbrew package together for the updated build (thanks for building! I do want to see these packages at work while we move forward with the patcher) and will tell you where I am at with the patches.

Like I said before, it hasn't been a problem building a patch that works for individual devices, just one that carries over to others. Give me a little time to work on it tonight, and I will open it up for input.

I can put together packages for things like Botbrew and I can pull together a patcher like PDroid has for CM7, but building the actual patch files and applying them has been something new for me. But I have some ideas I am going to try tonight, and then we'll see what we have.

Thanks!

Update

: Okay, I was lying. The kid has sucked all the juice out of me. I'll work more on them tomorrow. But you can take a look at what we are working with below. I am going to upload the maguro file patches, because those are the most straight-forward at the moment. You will see it patches the maguro file fine, but if I try the services.jar patch on the nook, for instance, six out of the 3300+ changes fail for the first set, and all of the next three sections fail.

Now, there is reason for optimism. We correctly patch something like 3300/3500. And most of those failures are all in the same files, so we may just have some localizing to do. If I can get those other three sections banged into shape then we will be able to pick out the few remaining failed hunks and give them special treatment. That's doable with a few, but not with the 200ish we have now.

I also need to decompile and try with some of the LG files you just gave me. I haven't done that yet, and I wonder now if that isn't the problem.:eek: I bet it is. :eek:Are those maguro files stock? I bet they are. Damn. Let me try the LG files tomorrow. If what I suspect is true, I may have more than I thought. Anyway, they are big, and I left the blank lines in this one so it would be readable. This is not quite my working copy, but it'll show whoever might want to look where it stands.

Now if anyone has some time to play with these, please do. I just haven't had much time to really go at it like I would like. I haven't even tried applying the core patch yet. So some dedicated futzing could really be valuable.

I had to game the uploading rules, so erase the .docx extension. Do NOT expect any benefits from these patches. They are WIP and will not enable PDroid on your device, no matter how many zips you try and drop them in!
[LG Optimus 2x] mateorod:
Oh yeah, and I made a Botbrew package for the LG-P930 with the files pastime1971 posted. Thanks pastime!

The directions for use are here.

Please only use for builds from 4/18 and later. We are working on a database structure that will automatically slot which file your specific build date needs, but until that is up, I unfortunatly don't have the time to personalize packages for every device.

But this package should work on nightlies for the next couple weeks, God and Cyanogen willing. Let me know how it works for you, if you try it!
[LG Optimus 2x] Sandpapers:
Sweet. I'll try out the botbrew method on a new nightly. I have had issues with Pdroid crashing, Google play crashing when updating apps, and a huge battery drain. I'm suspecting the battery drain is from me not using any methods to prevent that.

Otherwise, thankful to have ICS + Pdroid working.