yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] CollegeDev:
Nope, not until now!

Mhh, we have to look forward to a guy who is able to compile it for you. I can't compile it for all people, because I put all my spare time into the development of PDroid2.0, and that's a lot of work :( But I can pm the dev of your ROM and ask him, if he is willing to include PD2.0 to its ROM? Is that okay for you?

Thanks!

I really like the way you're reporting this issue, thanks! It isn't really a bug in PDroid. I think I know what's going on there, but it will take some time (some days, because now I haven't enough spare time at all :( ) to write a little bit what is going on there. But one expression: PDroid is public enough that applications are going to fight against it!

You can't compile a stock ROM, because the source isn't available. You need some "hacks" to get it working...

Yes, please help us to support PDroid2.0! Please upload the ROM...

:good:

Yeah, nice to see some bash lines here! :D It is very similar to one of my scripts. Can I use this as the "base" of the new public github script? I will add some parameters just like $1 to set the CWD and some echo ouptuts to inform the user. Then we can upload it to github to provide a better solution for "automatic patching", is that okay?

Did you delete the PDroidAgent directory inside (packages/apps/..) before appyling the patches? If not, please do it!

The way you're applying patches is ok so far. For the 2. question: Since you're not developing inside the framework, you can just revert to HEAD of the git by using the commands:

cd "$CWD/build" ; git checkout . ; git clean -df
cd "$CWD/libcore" ; git checkout . ; git clean -df
cd "$CWD/frameworks/base" ; git checkout . ; git clean -df
cd "$CWD/frameworks/opt/telephony" ; git checkout . ; git clean -df
cd "$CWD/packages/apps/Mms" ; git checkout . ; git clean -df
rm -rf "$CWD/packages/apps/PDroidAgent"

which biglsd posted or just using the command:

git reset --hard

In every folder (libcore;base;telephony;mms;PDroidAgent). That will reset your git and you can apply the patches again.

I think I will create a script for linux users which automatically patches your sources. That should be the best way so far. Is that okay for you?
[Android Apps and Games] xelra:
I've had a look into how to setup Jenkins. Maybe it would be best to make Jenkins do weekly compiles of the CM tree with PDroid 2.0 patched in. But we would need someone to donate some serious computing power. My own root server doesn't have the processing power to compile 50 ROMs per week.
[Android Apps and Games] MordyT:
How serious is serious power?

Also, does anyone know if the CM team would be willing to include pdroid in their codebase? Has anyone asked?

From my Nexus - TT4b5
[Android Apps and Games] xelra:
I agree. PDroid should be part of CM. But that's probably gonna be a long road from here.

Serious is probably something with 8 cores and 32+ GB of RAM. Maybe Dual CPU totalling 16 cores. It all depends. We'd have to see.
[Android Apps and Games] Hired Geek:
Here you go: h t t p://www23.zippyshare.com/v/35765089/file.html (had to cripple the link a bit, as I'm not allowed to post URLs yet)

CM10.1 as of 05/10/2013, built for mako (LG Nexus 4), PDroid 2.0 patches v1.57

Alright, enjoy the holidays! Looking forward to getting some insights.
[Android Apps and Games] MordyT:
Funny... I have a box with similar specs at the data center now that I was about to get shipped back to me as it is sitting idle. Maybe I will hold off.

Off to contact the CM team now...

From my Nexus - TT4b5
[Android Apps and Games] jahrule:
That would be sexy.
[Android Apps and Games] marcogtt:
Collegedev you are so kind thank you. I was already trying with him and I guess he's not keen to do this.

I think that the best thing would be learn how to do this from scratch.

I'm asking myself, can't you look into the patcher created by masterbaron to inject toggle2g framework if it would be a good basis for you to create an injector for pdroid? That would be awesome.

Otherwise I would have to learn how to compile sources with a raspberry pi....but from scratch but from what I understood its not really a matter of compiling since it is a stock ROM.....I need to figure out how to do that....probably wanam is the best selling ROM out there for the best selling phone till the S4 arrived....there should have been more interest from developers on pdroid just like it was in the old ages with GB and s2.

This is really making me sad it wasn't like that...

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] biglsd:
Pdroid never will part of CM, because it can spoof IMEI. If I'm not mistaken, leader of CM already say it.
[Android Apps and Games] Koetermann:
To compile any Android ROM from the sources you'll need much more power than the little "raspi" has. :D
[Android Apps and Games] I900-Nutzer:
Short Question: the .gitignore - File can be ignored or must be in the same Directory as the Patches?

Thx!
[Android Apps and Games] xelra:
..... or time. ;)

The ".gitignore" file contains a list of files that the repository owner or contributor doesn't want to get commited when he/she uploads his/her work. It doesn't have anything to do with you and can be safely ignored.
[Android Apps and Games] kaizokan:
Thanks i think i now can patch with the provided info. Sure a script would make things easier, i hope i don't need it, but if you got the time to do so, then it's okay :)
[Android Apps and Games] Teemoo:
Device: Galaxy Nexus GSM (Maguro) (i9250)

ROM: CM10.1

Date: 19/05/2013

MD5: da95b698cbdeb9da4285e1629047b9be

PD-Version: 1.57

http://www2.zippyshare.com/v/33493632/file.html
[Android Apps and Games] SangreSlayer:
CM 10.1 RC2+ PDriod 2.0 v1.57.1 on Nexus 4

Hi All,

After reading through the various threads (Autopatcher, OpenPDroid, and PDroid 2.0) I haven't really been able to get a clear answer on what i need to do to get this setup and working with on the above versions (CM 10.1 RC2 PDroid 2.0 v1.57.1). It looks like AutoPatcher doesn't work with Pdriod 2.0 for 4.2.x ( I think..)

Can anyone point me in the right direction?
[Android Apps and Games] jahrule:
You can use auto patcher with almost any aosp ROM and take little knowledge but you have to use pdroid app from op or their openpdroid manager app (available on market), or... You can recompile cm10 for your device with the instructions in this thread and use the latest pdroid app from college dev's git.
[Android Apps and Games] kaizokan:
How to get PDroid2.0

Your options: :cool:

The latest PDroid2.0 framework version that you can patch with Auto-patcher is framework v1.51 on a supported Rom with android version 4.1.2 - Not higher!

(I do not know if you also can also use lower versions 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.1, 4.1.1, 4.1.2)

For framework v1.51 you also need to install the same version of the Pdroid 2.0 (manager) App to use PDroid 2.0

App v1.52 also works, but u cannot use the newly added task killer. Higher app version will not work! maybe in the future.

See the supported ROM types on the Auto-Patcher thread.

For the latest PDroid 2.0 framework, currently v1.57 for android version 4.2 and higher you need to build from source, you can not use Auto-patcher.

Learn to build Cyanogenmod (CM10.1) from source

IF someone else has already build a Rom for your device you can use that one without doing any patching or building.

Just flash Rom and install App (with the same version as the framework in Rom)

Check out the PDroid2.0 Flash-Repo for all PDroid2.0 build in Roms currently uploaded in post #2

You can also wait (I do not know how long) till PDroid2.0 and OpenPDroid are finally merged into one framework and get available through Auto-patcher. And only the manager Apps might have different features.

Or you can use OpenPdroid. See the OpenPDroid thread. (The description might be outdated! more info on the Auto-patcher thread)
[Android Apps and Games] I900-Nutzer:
Device: Samsung Galaxy Note (n7000)

ROM: CM10.1

Date: 19/05/2013

MD5: 16bb075282405af00ce9eb47b7e6eee5

PD-Version: 1.57

http://www22.zippyshare.com/v/47635348/file.html

Device: ZTE Blade / Orange San Francisco

ROM: CM10.1 (developed by KonstanT)

Date: 19/05/2013

MD5: 5ab4126a095ddb9329c831e0a10e7e2d

PD-Version: 1.57

http://www55.zippyshare.com/v/41709229/file.html
[Android Apps and Games] SangreSlayer:
Thanks for the detailed information. That is actually precisely what i thought. Which is the i should probably build from source if I want PDroid2.0.

Thanks for the info, I will update after a successful build. Thanks!
[Android Apps and Games] MadMic:
Awesome! :highfive: Thanks - now how much will it take to bribe you to build the same for the latest version of PA? :laugh:
[Android Apps and Games] xelra:
[ROM][CM10.1][PDroid2.0-1.57] Sony Xperia Z

PCM10.1 - CyanogenMod 10.1 & PDroid 2.0 ROM thread

Device: Sony Xperia Z (yuga)

ROM: CM10.1

Date: 2013-05-20

MD5: f08ca0ef18792ed17a88a167f83259ab

PD-Version: 1.57​
[Android Apps and Games] CollegeDev:
That sounds really really nice, but where we can get this? If you know any good solution, please get in touch with me :)

Nope, CM-Team will never add this to their sources. They commented this in the past.

Yes, the better the hardware the faster the compiling process :) But, who is willing to "donate" such kind of hardware....:confused::eek:

Thank you so much! I haven't any holidays :( I've currently a lot of work :( But I will write some lines related what you've recognized, because it is very interesting!

Hell, does that mean you can "donate" such kind of hardware to maintain a buildbot?

:D

Related the toggle2g: I don't know if I understand you in the right way, can you please explain it a little bit more detailed?

Related your compiling questions: unfortunately, the "raspi" isn't strong enough to compile a whole android ROM. The best way for you would be a smali injection, but this is currently a lot of work :(

So, what do we do now?

Yes, unfortunately that's true!

Good!

Thanks, keep up that good work. Added to OP!

Thank you guys for the great support!!! I've now uploaded the script from biglsd (little bit modified) to my github with instructions how to use it. Now it is really easy to patch the sources!!

Great work mate!! Added to OP!! Keep it up!

Yes, please inform us about your process. You can now test the new script on github, which makes it easier to patch.

:D

Hey, can you please upload it on zippyshare.com? Then I'm able to add it to the Flash-Repo.

PDroid2.0 is now on way to GooglePlay (~1,2 weeks until release)

Updated complete Build-Instructions

Added description on GitHub for "how to" change the default deny mode

Added Script from biglsd to my github with "how to" description. Now it is very easy to apply the patches to the source-code.

If I forgot to add a ROM to the Flash-Repo, please get in touch with me.
[Android Apps and Games] mnjm9b:
I fear that having this on google play will only accelerate the demand for the next version of android to block our ability to use pdroid altogether... :(
[Android Apps and Games] marcogtt:
I guess this is it, if I can't patch a stock ROM...then I won't be able to patch the eventual upgrades.

Toggle2g is something that required a framework patch.

This was done by a java patcher that was resigning something injecting the t2g functiobality.

I really don't know how this process could be close or not to have pdroid on stock ROMs but I remember that for cm ROMs the injected wasn't needed...
[Android Apps and Games] xelra:
Maybe it is very similar to the Auto-Patcher? Check out mateorod's thread.
[Android Apps and Games] lothos:
This is the script I use. I keep the android repo on another box via NFS, so I set the output to local storage.

#!/bin/bash
ROOT=/home/morganw/android
PATCHES="$ROOT/patches/CM10.1*.patch $ROOT/patches/adb.patch"

export USE_CCACHE=1

cd $ROOT/cm-10.1
. build/envsetup.sh
croot
rm -rf $ROOT/orig

echo -n "Appying patches"
for b in $PATCHES; do
patch -s -p1 -E -B $ROOT/orig/ < $b
echo -n "."
done
echo ""

rm -rf /home/morganw/cm-10.1-out/*
mkdir -p $ROOT/cm-10.1/privacy
cp $ROOT/patches/PDroid.jpeg $ROOT/cm-10.1/privacy
time CM_BUILDTYPE=PDROID brunch d2att && \
cp -v out/target/product/d2att/cm-*-PDROID-d2att.zip /media/tmp

echo -n "Removing patches"
for b in $PATCHES; do
patch -s -p1 -R -E -B $ROOT/orig/ < $b
echo -n "."
done
echo ""
[Android Apps and Games] MordyT:
yes, I Am willing to donate hardware for patches. I have my server on the way back from the data center with 2x quad core and 16gb of ram, small sad, large data drive. I need to get it to a closer data center that is cheaper...

Pdroid original and manager already on play.

From my Nexus - TT4b5
[Android Apps and Games] SangreSlayer:
so an update on my build progress.

This would be the first rom I ever compiled so I had to setup a build environment. After many hours of that I was finally able to build the rom. However 30 min into the compile.... I realized i forgot to patch it with PDriod..

So i will need to rebuild it, anyone know how I can clear the compile i did? would a "make clean" clean it all up so i can patch it and recompile?

---------- Post added 21st May 2013 at 12:07 AM ---------- Previous post was 20th May 2013 at 11:53 PM ----------

can you elaborate on the pie control breakage? based on your dates it seems that even RC2 is affected?
[Android Apps and Games] marcogtt:
Maybe....but where's the point? Auto patcher is not working on stock ROM....toggle2g injector is used to inject to stock ROM.

But anyway it was just a though, no technical background here....

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] CollegeDev:
To prevent this, we should now build groups of teams who are willing to help me. Please read my proposal at the end of this post.

Yes, if the "2g-feature" is inside your Stock-ROM, then the dev injected it via smali. CM-Roms doesn't need any smali injection, because you can just build them from source and can do whatever you want to do. That's the big advantage of custom-roms. But, one question: Why don't you just use a cm-build instead of your Stock-ROM?

Yes, but it isn't able to patch Stock-ROMs.

[MENTION=2959527]xelra[/MENTION] Are you a native german speaker? If so, please just confirm that. I want to get in touch with you related the build-bot and so on...

Nice script! I think we have enough men power here to build a team...

That sounds really, really good! I'm not very familar with servers, so we need someone who is able to set-up a build bot. If we are not able to find somone, then I'm willing to learn how it works and we can start! Can you please pm me? Thanks :)

That's no problem. Just type

make clobber && make clean

Then apply the patches and build again.

No, that's absolutely right. I will have a look at it.

I think it is now the time to build dev groups who are working on PDroid2.0. The advantage of this is that we are more flexible if we split the work. E.g. the dev-group can fix bugs very quickly and the build group just take the new patches and send them to the build bot and so on. What I thought about:

One group who sets up a build-bot which should build weekly cm10 and other ROMs for the most popular devices. Together with Mordy-T, we should be able to do that :)

One Group of Testers. That means they have to test the application before! the new version goes up to GooglePlay. It should be a team with members that have different devices.

One Group of framework devs: It would be more then awesome if there is someone outside who is willing to help me with further development, code style changes, code review and so on

One Group for setting up a gerrit instance. What is gerrit?

That are my "initial" thoughts about that. If you have any new ideas, or criticism, please feel free to write some lines.

Cheers
[Android Apps and Games] marcogtt:
Yes the toggle2g patcher has been create to inject the patch into custom ROMs where in cm10 this is not needed. Also this injector is working good with a lot of different brand stock ROMs ( not only Samsung)

Would you mind taking a close look to that tool? Maybe its a good start for having a similar tool for pdroi

Here is the OP

http://xdaforums.com/showthread.php?p=7410035

I think that this should be the same path to follow if the direction is to satisfy stock ROM support.

The reason why I'm not on cyanogenmod are vary, but a lot of people are in my same situation.

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] En0id:
Device: Samsung Nexus S (crespo)

ROM: CM10.1

Date: 21/05/2013

MD5: 3c98c8056a65b4f0709e61bc736d9100

PD-Version: 1.57

www63 <dot> zippyshare <dot> com/v/17482714/file.html

I can't post links yet ;)
[Android Apps and Games] kaizokan:
Does anyone know why i still get:

unable to load device-specific module; assuming none

This does not stop the rom from building, the Rom works fine. I just don't know why one of the last lines says this. is this important? I already have extracted the device specific files. I searched for it online but could not find any error related things for this specific part. Is this normal? should i ignore it?
[Android Apps and Games] I900-Nutzer:
I get the same Message when i compile for the Note or the Blade. I would say it's normal. ROMs working as expected ...
[Android Apps and Games] Px80:
will you make your app available for agp patches?

Because its acutally telling me that my patches are too old to work with the latest version von Pdroid.
[Android Apps and Games] xelra:
I'm not a supported of DDL hosters. But if it's a link you need for the repo, then do you mean like this?

Device: Sony Xperia Z (yuga)

ROM: CM10.1

Date: 2013-05-20

MD5: f08ca0ef18792ed17a88a167f83259ab

PD-Version: 1.57

Link to Torrent file from the attachment: HERE!
​

Yes, I am. So many Germans around here, I guess the word privacy attracts Germans. :silly:

We fly towards it, like moth to the light. :laugh:

Well, I will be pushing this a bit in my free-time, of which I have very little, and try to set it up in a VirtualBox. Then at a later time we might clone it over to a production server, generously donated by Mordy-T, where the devs and maintainers will have access to setup jobs for their respective devices.

I will do it for my Sony Xperia Z only at first and when I have that, then it's probably time to have a talk.

As far as I know, the only people "really" working on the code are you and mateorod. And I think mateorod's development has stalled as of lately, which is the reason I'm here with PDroid 2.0 now, because actually I like the policy of OpenPDroid more.

What is the actual status of the PDroid 2.0 and OpenPDroid merge? It seems to me that the difference of both projects is growing rather than shrinking.

That being said. Gerrit for 2 developers? Even if it's 10 active developers, I think github has that covered. In the end you might have more work in keeping the system running, than you have with the project itself. Like a government. ;)

What we could do, right now, is create a channel on freenode, where we can chat about things in real-time. It's open and any interested party can just join in.

I think it's especially important to keep all organisational and development related talks accessible for everyone and that every private talk, behind closed doors of any kind, is a talk lost for the cause.

About Google Play. Wasn't there some kind of testing facility integrated into Google Play a few months back. Where certain users would be able to get beta versions and test them?

And - Thank You for developing PDroid 2.0. I didn't install a single user application on my new phone before I hadn't built the ROM for it. It's the most important thing for a phone right after the OS itself. :victory:
[Android Apps and Games] kaizokan:
Thanks and i found a post without errors with the same message http://xdaforums.com/showpost.php?p=31039115&postcount=200 Maybe everyone has this.

So my first build for Galaxy s2 i9100 was successful after all :D
[Android Apps and Games] Hired Geek:
It seems the breakage (pie wouldn't appear in certain scenarios) was related to changes not being merged into the 10.1 branch (RC2 is different from that). All's good now. If anyone needs updated builds for mako: I update my device on a loose schedule and will share the current build if someone needs it. Just let me know.
[Android Apps and Games] kaizokan:
I have no PDroidAgent directory inside (packages/apps/..). So i can't delete or patch it. When trying to patch i get: no such file or directory. How should i patch it?

Nevermind i found out there are PDagent files on github i need to add. lol

After removing patches and abandoning pdroid i get: no pdroid branch. Did i miss something?

About the script. I needed to use bin/bash/ ./AutoPatch for it to start, but it did not work as it should

EDIT: (see Koetermann's post for error messages with the script).
[Android Apps and Games] MordyT:
I will send you a pm. However the server is not available for a few weeks as it is being shipped back from my old DC and then I need to backup and wipe everything. Then I need to find new datacenter closer to home ( so I can drive to it if need be)

From my Nexus - TT4b5
[Android Apps and Games] mateorod:
I posted updated patches that correct those errors last week. CollegeDev has them, he just hasn't had time to update the OP, I guess. Read back a page or so.
[Android Apps and Games] CollegeDev:
Nope, I don't think that I will release source-code for the application.

The easiest way is to look at autopatcher from mateo. Just use this tool to create a patch for your rom and AOKP is support since v2.2.0.

Please report if it works for you!

Nope, he doesn't know about it. I wrote him pm about some features, but he didn't answered until now.

You're right man, I've fixed this and send this to mateo. He has made the new patches for me, because I'm very busy at the moment. Please use them and tell me if all works fine. Will update OP ASAP!
[Android Apps and Games] proudfoot:
@AuSSiELaMbChOpS, You need to remove the old pdroid database first.

1. enable root (if it's not enabled already), open terminal.

2. su

3. rm -rf /data/system/privacy*

4. reboot.
[Android Apps and Games] AuSSiELaMbChOpS:
Sweet thanks for that all good now. This app is awesome I loved PDroid but all the extras in this are just crazy!! Gone are the days of painfully going through Permissions Denied turning off permissions hoping stuff wouldnt crash. Now its nice and easy once you get used to patching your rom each time you update.
[Android Apps and Games] pepingrilloxxx:
Some devices like HTC Tattoo will not support versions above GB (I think) because of its hardware limitations. I have a Tattoo with 2.3.7 android version and CM 7.2, and I am very interested on PDroid Extension. Will you one day support GB? Pleaseeeeeee!!!

Best regards and sorry for my poor english
[Android Apps and Games] generosity21:
Have you already looked at the original PDroid? It was designed specifically for Gingerbread.

http://xdaforums.com/showthread.php?t=1357056
[Android Apps and Games] CollegeDev:
No problem! I have to look if there is more spare time to do this, because there are some changings between GB and JB (also ICS). Will inform you about next steps!

He wants to have the new features :rolleyes:

PDroid Extension now renamed to PDroid 2.0, to prevent misunderstandings!! Hope now all will be fine!

Cheers
[Android Apps and Games] Px80:
I hope to use it very soon! :D

APG still can't patch the rom i use..
[Android Apps and Games] wbedard:
Although I have built a few ROMs myself, would anyone please post a couple of lines explaining what the "rom dev" version of the PDroid 2 application is for? I don't need all the details, just enough to get looking in the right direction. Thanks in advance!