yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] xmxm:
Hi,

I am trying to patch InfinityROM for droid charge and I am getting following errors:

Building modified framework.jar

I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/app/ContextImpl.smali.orig
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: preloaded-classes
adding: preloaded-classes(in = 65693) (out= 11977)(deflated 81%)
updated manifest

Building modified services.jar

I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/ServerThread.smali.orig
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig
W: Could not find resources
I: Building apk file...
java.io.FileNotFoundException: META-INF/MANIFEST.MF (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at sun.tools.jar.Main.run(Main.java:217)
at sun.tools.jar.Main.main(Main.java:1167)

*** ERROR: failed to build framework.jar

I am also getting following warning:

Creating updater script

Could not find a mount statement in the original updater-script

If you continue making the patch, you will need to mount /system in recovery (CWM) before flashing the patch!

Continue? [y/n]:

I was running patcher v0.71. I am running this on Ubuntu with Java v6 installed. Any ideas what may be causing it?
[Android Apps and Games] svyat:
It's because you are using a nightly version of CM. Either use the latest stable release (7.1) or make a patch for your nightly.

Post a link to where I can download your ROM. I'll take a closer look then.
[Android Apps and Games] svyat:
Which ROM are you using? Have you actually checked the CPU usage with some app, like System Panel? When does it occur? Which process is causing it?
[Android Apps and Games] DnaPolymerase:
I'm running a LG Optimus One. Is the flashing patch part mandatory or is it only for htc phones?
[Android Apps and Games] dirtsky:
I would really like to try this out but I have a Incredible. Hopefully a patch comes out for it.
[Android Apps and Games] g4rb4g3:
I tried to build my own CM-Rom (for Desire-Z) with this but I can't compile it :(

ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation()
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName()

Without the patches compiling works perfectly.
[Android Apps and Games] svyat:
Yeah, a complete build with PDroid won't work for some reason. You have to make a clean build first, then apply the patch and partially build only the modified portions by doing the following:

source build/envsetup.sh
make update-api
mmm frameworks/base
mmm frameworks/base/services/java
mmm libcore
make snod

Importing the project into eclipse and checking for build errors might also be a good idea.

On a side note, I haven't built any Cyanogen ROMs this way before, so you might still encounter some issues. Plus, I am currently fixing some minor bugs I've recently discovered and will be uploading the new source soon, so you might want to wait a little.

However, if you do manage to build it, it would be nice if you would let me know which device and which exact ROM this is and send me the /system/framework/framework.jar /system/framework/services.jar and /system/framework/core.jar files so that I can include them for others to download ;)
[Android Apps and Games] svyat:
Yeah, you're right. I don't see anything PDroid related in that stacktrace. I also looked at the BlueHD mods and they don't seem to modify anything PDroid related either. Might be some different issue :confused:
[Android Apps and Games] NicholasQ:
Any plans to bring this to ice cream sandwich?
[Android Apps and Games] g4rb4g3:
Thanks, I'll wait for the update and try it again then.
[Android Apps and Games] svyat:
Haven't looked into it yet. I guess I'll have to get me some 32GB RAM rig first :P
[Android Apps and Games] leeps:
BlueHD ships /system/framework/services.jar, which gets replaced by PDroid's. Since I don't have the source of BlueHD, I don't know what exactly has changed from ARHD, but I've contacted the developer about that.

Also, will you release updated sources for your changes?

I think there should be a system that allows to combine mods more easily. Overwriting files is just not the way to do things, so I really like that you published your source code. Thank you very much for that.
[Android Apps and Games] svyat:
Oh, didn't notice that. Then, that's most certainly the issue.

Yes, in a couple of minutes.

Well, the problem is that not always the source of the target device is available, so that the only option is decompiling the ROM, patching it and then replacing original files.
[Android Apps and Games] g4rb4g3:
I tried it again witht the latest patch (1.2) and the way you described it but it still doesn't compile.

'out/target/common/obj/JAVA_LIBRARIES/framework_intermediates//classes.dex' as 'classes.dex'...
Docs droiddoc: out/target/common/docs/api-stubs
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocation()
ILocationManager.java:0: error 10: Parameter of hidden type android.location.GeocoderParams in android.location.ILocationManager.getFromLocationName()
make: *** [out/target/common/docs/api-stubs-timestamp] Fehler 45
[Android Apps and Games] kastorma:
Really looking forward to that.
[Android Apps and Games] svyat:
The error occurs when you try to do make update-api, right? Check your out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/privacy/java/android/privacy directory. If there are two files in there (IPrivacySettingsManager.java and IPrivacySettingsManager.P), you're good. Just continue partially building stuff with the mmm commands ;)

If the directory or files aren't there, you might try removing (and backing it up) the out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/location directory. Then running make update-api again and putting the location directory back afterwards, if it's not created.
[Android Apps and Games] hallydamaster:
Sorry about the delayed answer. It is hard to tell the most popular ROM. Alot are using CM7, but I think more people are using stock firmwares. And then there are 100's of stock based ROM's. I use CM7 myself.
[Android Apps and Games] svyat:
I've actually quickly checked the ICS source now. From the application framework standpoint it looks pretty much identical to Gingerbread, if you ask me. So it won't be much of a problem to port PDroid to ICS-based devices.

I'll put some work into making new patches for more devices now ;)
[Android Apps and Games] NicholasQ:
Great! That sounds awesome. A lot of us in the nexus s section are running ICS now and a patch would be awesome. Are you pretty much doing the patches yourself or are you going to allow ROM modders to use your patch at apply it to various ROMs (with crediting you of course)?
[Android Apps and Games] no_johnr:
Looks interesting :)
[Android Apps and Games] svyat:
Just added a patch for Desire HD on CM 7.1. Patches for Samsung Galaxy S II and Motorola Defy coming soon.
[Android Apps and Games] romracer:
Some ROM cooks remove META-INF from the jars in /system/framework. That appears to be what has happened in the first error. Technically I think its valid for them to do that, but its also usually unnecessary. Just removing the signatures (if they even exist - they don't on Samsung ROMs) is enough.

With the mount warning, I'm going to venture and guess that your updater-script is using busybox to call the mount command. From my quick glance at the patch script, I don't think it supports that.
[Android Apps and Games] svyat:
Yes, most likely that's the cause. I'll fix relying on the META-INF from the original file in the next patch version.

That's also what I'd think. Some also create a ****load of installation scripts, which are called from the updater-script, so that my patcher script cannot find the mount() statement in the updater-script. Generally it's not a major issue, since you can mount /system manually before flashing the patch (not ideal, but I couldn't come up with anything fully automated there).
[Android Apps and Games] dirtyreturn:
I have been using the latest 1.26 patch for virtuous affinity 1.48. I have gotten a couple FCs on first tap of the app and occasionally a FC at random while on phone. Sometimes, while refreshing the apps list the progress bar will operate pretty weird and will have to refresh another time or two for it to work properly. Hope reporting these errors help even a little bit.
[Android Apps and Games] svyat:
Try flashing the latest patch ;)
[Android Apps and Games] xmxm:
This Droid Charge ROM has thread here on XDA - http://xdaforums.com/showthread.php?t=1377977

The direct link to ROM file I was trying to patch is http://www.imnuts.org/downloads/charge/ep4/1211_infinity_ext4.zip
[Android Apps and Games] bonanza123:
@svyat are you already working on an ICS version? how's the progress?
[Android Apps and Games] dirtyreturn:
svyat, or anyone with linux I guess - if you would be able to, I thought

http://xdaforums.com/showthread.php?p=20490493 had a similar base to virtuous affinity for the Mt4g. Was wrong and it for stuck at splash screen. If anyone with some spare time and was willing to patch posted Rom I'd appreciate it. RCmix energized blue edition.

Edit: tried latest patch on two roms, same base I'm sure. Is there some way to make a repair?
[Android Apps and Games] flydev:
any plans for i9000 with cf-root?
[Android Apps and Games] romracer:
Someone else a page or two back had this error. I don't think a solution was posted.

Is Java installed? Is the "jar" command in your path? What happens if you type "which jar" at the command prompt? What happens if you type "jar -xvf pdroidpatcher.zip" at the prompt?

That might help us narrow it down for you.
[Android Apps and Games] hstop:
Is it possible to use the patch on a preinstalled (non-custom) ROM of a Samsung Galaxy Y?
[Android Apps and Games] Haraldr Blaatand:
Can the patch script be ported to run (as root) on the phone? (i.e. modify the apks that are on the system)

(I cannot view the source from where I am currently.)
[Android Apps and Games] xternal:
The main post says he is working on it, just need to be patient :) I am eagerly awaiting too :)
[Android Apps and Games] romracer:
Not unless you can find a zip of the ROM in CWM's format (with updater-script/update-binary, etc).

---------- Post added at 10:51 AM ---------- Previous post was at 10:49 AM ----------

Not without considerable work. It requires patch, jar/java, apktool/baksmali/smail, etc. All of those would need Android/ARM compatible versions.
[Android Apps and Games] willam71:
This was a problem reported on Galaxy Note and Rocket ROM. I was just going to do some logging when I noticed the new version. So I decided to test it first ... and voila ... it seems to be working perfectly now (hope it will stay like that too ... :D)

Thanks!!!!
[Android Apps and Games] dirtyreturn:
Some advice would be very well taken - for those with experience with the needed OS in being able to self create a patch. I have a 64 bit windows 7 OS, if I were to get ubuntu running as a dual boot OS would making the patch be moderate in difficulty? I have little experience/willing to expand my horizons and get it done on my own. Tips/sarcastic comments or otherwise would be helpful.
[Android Apps and Games] Completely_Clueless:
You shouldn't have any trouble, because I too run Windows 7 x64, and I downloaded and installed Ubuntu 11.10 x32 alongside it. The patcher ran fine, all I had to install was fastjar and open jdk.

I'm inexperienced with Linux, so the way I installed the two software packages was by opening up Terminal (the Linux version of Command Prompt) and then typing in "jar." After hitting "Enter," Terminal will tell you that you need to install the packages, and it'll tell you the commands to do so (something like "get-install," if I remember correctly).

Good luck :) !
[Android Apps and Games] AgentFirefox:
Issue with alarms while receiving a call

Hey all you out there..

.. i am using PDroid now for some days and have a Problem:

While receiving a Call - 2 alarms / alerts are snoozed.

This is a crazy issue... Is is this way, even if i delete all alerts i setted in the clock etc.

Incoming call - 2 alerts are snoozed with the time i entered in the options for snooze-time...

After every call, i have to go to the notificationsbar and delete the 2 snoozed alerts.

I put on the log-function in PDroid and ALLOWED everything that wants access while a incoming call is received...

No change - every time i get an incoming call - 2 alerts are snoozed with the setted snooze-time..

Can everybody please help me...? This makes me crazy.... :-D

For German aid:

Mein Fachenglisch ist leider nicht mehr das Beste....

Jedesmal wenn ich einen Anruf bekommen, werden 2 Alarme auf "snoozed" gesetzt....

Jedesmal muss ich nach dem Anruf in die Notificationbar und die Alarme deaktivieren...

Ich habe alles ALLOWED, was mir das Log von PDroid während eines eingehenden Anrufes anzeigt.

Nichts wird mehr blockiert....

Trotzdem hab ich bei jeden eingehenden Anruf sofort 2 snoozed Alarme eingestellt...

Ich habe auch mal alle meine Alarme gelöscht - gleicher Effekt...

Immer 2...??? - Egal wieviele Alarme eingestellt sind oder ob diese aktiv sind oder nicht...

Wär super, wenn mir jemand helfen könnte...!

Herzlichen Dank...

Thanx in advance
[Android Apps and Games] gongoscho:
I have the same problem with the alarm(s) :confused: I think this is a rom problem (base 3.12.405.1).
[Android Apps and Games] jsomby:
Just use virtualbox to create virtual linux machine and do the trick :)
[Android Apps and Games] peters.:
The same happening on friends wildfire and cm 7.1.0.1 stable.
[Android Apps and Games] AgentFirefox:
Alert / Alarm - Problem

Ok... Thanks for your feedback....

I also have ARHD 6.3.1 running... and had no issues untill i installed PDroid.

gogoscho has the same on ARHD 6.3.1... Why do you think it is a ROM-Prob...?

peters. sayss he knows the prob on a friends wildfire and cm 7.1.0.1 stable..

@svyat:

May you please check that if you have the time...?

Maybe its just a setting-prob we all do not know an which is not shown on the log-messages.

My settings a really straight. I do not allow anything, just in case i definitely need it for something. But how i said, everything while an incoming call is allowed, just to exclude that there is the nervestepping prob with the alerts.

Thanx in advance.
[Android Apps and Games] docflower:
Could someone throw this through the linux grinder... please.

http://roms.miui.us/1.12.30/MIUI.us_captivatemtd_1.12.30_Eng_Deo_ZipA_Signed.zip

Much appreciated!

PS. If I update the patch will all the setting be in place from the last patch? If that makes sense... can they carry over from one patch to the next?
[Android Apps and Games] CarlosBattousai:
Which patch do I use for my stock Gb 2.3.4 Droid X2?
[Android Apps and Games] svyat:
Is that the complete error log? I don't see anything that would be PDroid related and could make your device bootloop (those 2 null errors are not fatal and usually happen during each boot). Maybe you didn't copy the whole error output. If you did, it might help to filter by "warn" so that the warnings are also displayed.

Could you provide exact steps to reproduce the issue? Do I need to create two alarms, activate them and then receive a call?
[Android Apps and Games] moccor:
Not sure about the question, I only started using PDroid recently. I'll make you the patch again soon.

If you give me a link to the ROM, I can make you one.
[Android Apps and Games] AgentFirefox:
@svyat - Alert Error Problem

Hey and thank you for your answer.

Please refer also to my two posts to the alert-problem.

This happens exactely how here described:

In exact the same time a incomming call is received, the system sets two alerts "snoozed".

It is the snoozetime used that is set in the settings for snoozetime.

And this happens with 5 alerts set in the settings, with 6 alerts set in the settings, and also with NO alerts set in the backround.

This happens with the alerts activated or not activated.

This constellation makes me wondering...

Because the issue definitely "generates" the (always) two alerts. No matter if there are alerts in the settings, how much there are, if they are activated or not, or if there are no alerts in the settings.

Maybe it is a code issue / problem.

Or maybe it is just a setting problem.

But how i described above, i turned on the log and then i allowed everything that is going on and shown on the log messages while an incoming call is received.

I love PDroid. Its the with big distance best system control over all the important settings to control access on sensitive data.

But this incoming call issue makes me crazy.. I get a lot incoming calls per day. not only in the last days with new year and so on.

I use ARHD 6.3.1

I had no issue with this Rom before installing PDroid.

Thank you for your help.

I wish a very happy new year to all of you...!

With the best wishes from Germany,

AgentFirefox
[Android Apps and Games] moccor:
http://dl.dropbox.com/u/20285760/PDroid-v1.27-MIUI.us_captivatemtd_1.12.30_Eng_Deo_ZipA_Signed.zip - Patch MD5 hash: faa633e78146018eaa5c08f0354620a2

http://dl.dropbox.com/u/20285760/PDroid-RESTORE-MIUI.us_captivatemtd_1.12.30_Eng_Deo_ZipA_Signed.zip - Restore
[Android Apps and Games] apx@dwx:
for everyone who want to use pdroid, i have build two packages incl the orig. files to restore. one for the lastest build by nexx r2 and jorgens build from 12/30/2011

#NEXX R2:

http://www.multiupload.com/J5TPIGRZQV

Jorgens 12/30/2011 Update:

http://www.multiupload.com/24S3P2E7XT
[Android Apps and Games] svyat:
Okay, so those snoozed alarms appear even if you have absolutely no alarms configured?

I am also using ARHD 6.3.1 and the PDroid patch version 1.27. I just removed all alarms, called myself from another phone, picked up and then ended the call. No snoozed alarms appeared in the notification bar. Am I doing something wrong?
[Android Apps and Games] hocgwai:
possible build issues

first of all, thanks for all your hard work on this. its a very useful kit.

im trying to build pdroid for my gnote running rocket rom v12 and ran into some warnings while building framework.jar, modified services.jar, and core.jar. although, at the end, it still completes with 'looks like everything went fine' and produces the PDroid patch files. Im wondering if its fine to flash the resulting patch?

i have included the warning output below:

Building modified framework.jar

I: Checking whether sources has changed...

I: Smaling...

W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/app/ContextImpl.smali.orig

W: Could not find resources

I: Building apk file...

created: META-INF/

inflated: META-INF/MANIFEST.MF

inflated: preloaded-classes

adding: META-INF/MANIFEST.MF (in=71) (out=71) (deflated 0%)

adding: preloaded-classes (in=65693) (out=11977) (deflated 81%)

Total:

------

(in = 10259872) (out = 4301531) (deflated 58%)

Building modified services.jar

I: Checking whether sources has changed...

I: Smaling...

W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/ServerThread.smali.orig

W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig

W: Could not find resources

I: Building apk file...

created: META-INF/

inflated: META-INF/MANIFEST.MF

adding: META-INF/MANIFEST.MF (in=71) (out=71) (deflated 0%)

Total:

------

(in = 2193403) (out = 1015442) (deflated 53%)

Building modified core.jar

I: Checking whether sources has changed...

I: Smaling...

W: Could not find resources

I: Building apk file...

...and the rest of the output seems to be normal, ending with

Looks like everything went fine
[Android Apps and Games] romracer:
Those warnings all appear to be fine. There are no resources in a jar, so the "could not find resources" warning from apktool is safe to ignore.

The warning about unknown file type is because the file ends in .orig. If you look further up in your output, you'll see the patch applying with offsets or fuzz and so the orig file is the file before the patch (this might be useful to a developer to confirm the patch applied in the right spot since it was offset X lines).
[Android Apps and Games] krzych:
Hi! I'm already your fan! (yes, I discovered PDroid one week ago, and today patched my ROM with pach generated by the patcher myself!, and I'm ALREADY your fan! ;P).

The application is GREAT. I would like to contribute by testing, helping, any way! (as soon as it's free/open source - and I hope it will be free forever).

There are two files in my signature for LeeDroid latest ROM. Append them to the first post in the thread please :).

I'll try to observe who needs to generate the patch (but still those who did it before me - continue, I can't guarantee I'll be here often :D).

Any way to help with debugging or even developing? (I'm not android/java developer but since I use C much, I could do some work probably after quick training ;) ).
[Android Apps and Games] docflower:
Thanks for the patch! And yes my settings were saved through a miui update and patch flash.
[Android Apps and Games] racks11479:
Hi svyat,

Great patch you have here. I had a minute so I patched it for the latest stable for CM7.1 for the Nook Color. Add it to your OP if you want. Just wanted to help! Thanks for a great product!

**As usual the disclaimers of me not being responsible for what happens to your devices is stated! Whatever you do, just don't blame it on me, go ahead and "blame it on the rain" if you want! :p **

PDroid Patch for Nook Color-CyanogenMod 7.1:

PDroid Restore Patch for Nook Color-CyanogenMod 7.1:

Enjoy! :D

-Racks
[Android Apps and Games] krzych:
Logging is only good when its native to logcat, logging to any flash drive will simply destroy it some day.

By the way - features that we would really like:

1. Blocking SMS/Phone usage permission (mean, making calls, sending sms'es)

2. Maybe mass "deny" option? (fe. I have no app which should read my IMEI/IMSI/similar - after flashing new ROM it's kinda annoying to mark every app, every deny for every permission...)

And... do we have the config somewhere to backup? How can we restore after upgrading ROM?
[Android Apps and Games] am11:
Anyone know what Sim info and Network Info are? Most of the apps I have installed have access to it.
[Android Apps and Games] hocgwai:
since we are on the topic of feature set request...I would like to second the mass deny or default deny all feature. or maybe even selectable profiles. it would make customization much easier.
[Android Apps and Games] svyat:
Exactly ;)

Most of those features are on my to-do list. However, I'm currently somewhat short on time since I started a new job today. But I will not abandon PDroid and will still work on it when I'm not too busy.
[Android Apps and Games] svyat:
To be more precise, ALL apps have access to it without requesting any permissions.

SIM Info setting controls access to the operator name, MCC (mobile country code) + MNC (mobile network code) and country ISO code (e.g., DE for Germany) saved on the SIM card. And Network Info does the same for the mobile network your device is currently registered on.
[Android Apps and Games] deadf1sh:
I'm so tempted to install CM9 on my SGSII, but now that i've tasted Pdroid i can no longer install a rom without it! It works wonderfully now on CM7.

I hope ICS is on top of your to-do list :)
[Android Apps and Games] hocgwai:
Not to knock PDroid (I love this app!), but I believe CM7 has a permissions app built in as well, so I assume its a part of CM9. I no longer have a sgs2 so I cant confirm but you may check it out.