yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mateorod:
I have the patches up on Github already. Since I found that Pdroid2.0 did not originally support preloaded classes, I decided to put them up. I suggested that CollegeDev add them in this thread, and he did, but that was my only recourse at the time and it made me think we needed version control.

Now I am not really doing any work on them and neither is anyone else at the moment. It would be hard since CollegeDev is working on an update (for 4.1.2 or CM10.1, I don't know) and who know what will come out of that.

But I did put them up with the idea being that once 4.2 comes to all romtypes, having a way for multiple people to read and contribute would be helpful. The best course of action would be for CollegeDev to host them, so we could all follow along and possibly contribute.

Edit: Pastime and my port of the original PDroid patches is up as well, just as an FYI. I still need to commit the ICS and Gingerbread versions, I will try and get to that this week.
[Android Apps and Games] m0d:
Highly appreciated
[Android Apps and Games] TheWeird1:
hello thanks for this great app!

I think I have found a bug, for the "android-system" application, you don't have the "Acoounts" option there but you do have the "Accounts credentials" there. Also if you select the "Data access notification" option you see that the access is blocked (I set the option to block everything by default).

I am running the 1.51version of the application and the patches.
[Android Apps and Games] Chaussette_:
Thank you for the prompt answer wbedard.

In fact (maybe I didn't expressed correctly my interrogations, english is not my native language), I was asking myself if it would be possible to make a PDroid patch without auto_patcher.

I mean, manually modifying all files needed by PDroid. As you said, it should not be possible on pure stock ROM because its sources are not released.

However, with UltimaROM or Omega and a custom kernel, would that be even possible ? :eek:
[Android Apps and Games] wbedard:
Leaving aside for a moment the lack of source code to work with, you don't really need autopatcher.

If you could find some way to create the modified framework files, you could simply use adb to push them directly to your device while in recovery mode. Since it's not really that many files being patched/replaced, it would be reasonably easy to do. Now, as to how you create the modified files, I don't see how you can do that without source code...:)
[Android Apps and Games] CollegeDev:
Mhh, I've looked through it and for me there is a "Accounts" row. Can you please just refresh your applications and make an screenshot of it? Because normally this is not possible (an algorithm parses all the permissions and generates the rows and that works for all supported permissions [I've tested it]).
[Android Apps and Games] FFU5y:
Just a quick note for anyone who was interested in PAC (i.e. PDroid App Chooser the currently experimental patch to allow PDroid core to support multiple manager apps without causing big security holes, and associated controller app; more info here):

This patch and app are now at the point where they can actually be applied and used.

You can check the details (and read more about what the patch does) in the readme

You can grab the source from on my Github.

To use it, you need to be able to compile your own ROM, or have someone else willing to do it for you. This bar is intentionally set high, because the change is experimental and I don't want to cause PDroid core fragmentation. If you're interested, the code is there for the reading even if you can't build it.
[Android Apps and Games] TheWeird1:
I did a refesh of the applications and I still don't have the option. I have made a screenshot and attached it hope it helps. If you anything else let me know and I will try to help you.
[Android Apps and Games] M66B:
I like to use PDroid2 for CM10, but unfortunately video recording is not working with PDroid. This may be because CM10 for SE Xperia devices use the legacy camera for compatibility with ICS camera blobs.

I may be able to fix this on my own, but hints where to look are highly appreciated.
[Android Apps and Games] Hotfingers:
+1 (except for the being able to fix it myself part)

Please post if you find a fix.
[Android Apps and Games] CollegeDev:
Okay, what will happen while you trying to record video? Can you provide logcat? Then I can hint you to some lines, not the whole class.

Okay, we will have a look. Also, can you provide logcat of this?

Yepps, please wait for the next release and try again, ok?

Wow, are you sure about that? Really, I appreciate your work on Pdroid Manager, but now you have given PDroid

more security wholes

then it ever had (give me 2 hours and I write you an application which owns your device within some seconds). I'm willing to work with you together, but for a more

likely

(hope this is the right word at this place) solution which doesn't provide security wholes at all. The more code you provide to give accesses to database, the more wholes you can produce and you've got it now. User should decide at your own which application they want to choose, but not via manager. This is (from security side) horrible!

BTW: If you want to choose PAC, you're going to change the signature of my package, that's horrible!! Why do you change my own signature? I don't like that!!!

NEWS:

New release will come today(application only, patch will came few days later), but without new theme (Themer is currently working on it and it takes longer than we thought).
[Android Apps and Games] M66B:
Thanks, actually I am looking into it right now.

I have added some more logging and if I cannot find the problem, I will post the (extended) logcat.
[Android Apps and Games] FFU5y:
The point of PAC is that it could be merged into the 'standard' PDroid 2.0 core if it were suitable. What I really don't want is fragmentation of the core into two competing versions. It's hard enough for users to get PDroid set up already, without adding that extra challenge.

It is experimental - an option to provide authorisation between the core and the app. If you want to post something which uses a hole introduced by PAC to cause problems, that's fine. I would be curious to see what hole I introduced, and it isn't like anyone is actually using PAC at this stage so it will not put people's phone security at risk.

PAC was a 'suggested' solution to the problem of supporting multiple mananger apps at the same time: I felt that if I didn't provide code for on possible solution, I didn't have any right to complain if some other solution was implemented that I didn't think was as good.

The signature of your app doesn't need to change, just the protection on the WRITE_PRIVACY_SETTING permission (from 'signature' to 'normal'). I don't have your signing key, so the patching had to change the signature in order to create a valid package.

If you create a patch which uses your signature I'll merge it, or I'm happy to remove the patch for the PDroid 2.0 App from the repository if you would like (although in that case I will replace it with a description of how to modify the permissions so people can do it if they want). The point of using patches was to make the technical bar reasonably high for using such a modified version of the app: if someone can patch it they can probably understand the consequences.

I'm happy to continue this discussion in PM if you would like - I don't know if readers of this thread will get a lot out of reading the details of the back-and-forth. Or it can continue in-thread.
[Android Apps and Games] CollegeDev:
Major update is out now, have fun! :)

@FFU5y

Will answer later, if there is more time, ok?
[Android Apps and Games] FFU5y:
Cool.

Update looks good btw. Will be interested to see the core changes associated with the 'tasks' screen.
[Android Apps and Games] M66B:
To fix video recording with PDroid, apply the patch below after applying the PDroid patches.

I believe this is a common CM10 problem and not a SE Xperia CM10 only problem.

--- frameworks/base/media/java/android/media/MediaRecorder.java	2012-12-08 13:10:55.000000000 +0100
+++ frameworks/base/media/java/android/media/MediaRecorder.java	2012-12-08 13:11:19.000000000 +0100
@@ -1128,6 +1128,7 @@ public class MediaRecorder
pSetMan.notification(packageName[0], 0, PrivacySettings.REAL, PrivacySettings.DATA_CAMERA, null, null);
else if(packageName != null && packageName.length > 0)
pSetMan.notification(packageName[0], 0, PrivacySettings.REAL, PrivacySettings.DATA_RECORD_AUDIO, null, null);
+	deletedFile = true;
}

if (mPath != null) {
[Android Apps and Games] mateorod:
Honestly, I can understand your reluctance with this stuff. Putting out an app and then finding an immediate competitor can be startling. But I think we will profit if we get together on this stuff. FFU5y spent a couple days working out a skeleton, nothing more. From my perspective, he's just trying to open the conversation. Maybe you see it differently.

If you want to see why we need an open-source alternative, see the yearpastime and I spent working around svyat's disappearance. I know you work some crazy hours yourself, CollegeDev, life gets in the way. Having someone else be able to pick up the mantle is important.

I will not be able to test the new PDroid2.0 or the Pdroid Manager. My device only comes with Android 4.2. In the past, I would be working on updating those patches (by now we would usually have modified patches out) and I could participate. As it stands now, I am pretty much hamstrung waiting to see what you are working on. I don't know if you are working on 4.1.2 or 4.2.0.

Believe me, I appreciate all the work and improvements you have made to PDroid. But surely you can see how we could benefit from working together here. I am looking forward to you posting the patches on Github, that is a great step. I can tell you are willing, I just thought I would pop in and mention my thoughts and why/where collaboration could benefit everyone.

That is good work, there.
[Android Apps and Games] kenshin33:
what does actually need protection with encryption ?

I'm no expert on the matter but it seems to me that if a rogue application gains root access all bets are off. what one can do is make it it harder to do harm but hardly impossible (Signature verification can be bypassed). That's the whole point of locked systems (Stock roms, have no root access and locked devices can't install any OS that is not cryptographically signed with some key, IOS, Android, most consols ...etc)

but the minute you gain some level of access (unlocked devices) nothing prevents you from doing anything you want. encrypted data won;t be accessible but "destroyable". So you can wipe it and start from scratch.

Encryption of data will protect data against un authorized access even if the system is compromised (to some extent, depending on stregnth of algorithm and keys, b/c given enough time no encryption mechanism is irreversible, as they are bijective (at leat injective) functions -they have to be- the inverse always exists -not necesarly easily couputable though). but in the case of Pdroid what data needs encryption or what access need sig berification to prevent a compromise ??
[Android Apps and Games] schertling:
I don't think the point is getting a foolproof system that allows any junk being installed without having to think anymore. It's just having all the trivial mainstream apps restricted like flashlights asking for location and SIM access.
[Android Apps and Games] karamelos:
woow

Many thanks for this update the app is very complete
[Android Apps and Games] welle12:
PDroid.jpeg file is missing in the 1.51 patches.zip file. it should be included in the next release. This is no problem for me as i have the file from an old release, but people that don't have it have a problem.
[Android Apps and Games] karamelos:
Rename it
[Android Apps and Games] FFU5y:
That is a pretty fair assessment. You can patch ODEX files, which essentially 'changes' an app; you can replace system apps; there is very little you can't do on the device with root while it is running, and a lot of that you can potentially do when the device reboots.

Actually, it will be accessible too. In order for the data to be readable anywhere, the key must be stored somewhere. If an app is running as root, then anywhere that the key can be stored the app will be able to dig for it. It may be difficult - e.g. extracting a couple of class files from the framework.jar file and then parsing out a key is not straightforward, but it is by no means insurmountable.

Edit: removed the rest because whether it was valid or invalid, it wasn't constructive
[Android Apps and Games] CollegeDev:
-now via pm-

btw: just to let other users know that a lot of the denounced arguments doesn't fit!
[Android Apps and Games] schertling:
What a pity having two obviously qualified devs indulging in cockfights, be it in a more or less subtle way.

Perhaps this assuming posting will let me fall from favor with both but what benefit for the sake would it be having them cooperating instead.
[Android Apps and Games] CollegeDev:
WORD! I don't know why he is doing that, and really, I don't want any cockfight or whatever you will call it!! But it is unfair against me to claim something that doesn't pitch.

@FFU5y

I would be more than happy to talk with you via pm, not in this thread. Is that okay for you?
[Android Apps and Games] SecUpwN:
AW: [APP][4+] PDroid 2.0 - searching Themer - [2012-12-08 v1.52]

I just LOVE the newest version! Sooo awesome with the new tabs and LOGS, great look and feel - way to go, CollegeDev! :) And cool you mention CREDITS now, would you please correct "Syvat" into "Svyat"? Thanks!
[Android Apps and Games] CollegeDev:
Ouh, my fault!:( Will correct this asap when I'm back at home!

I will have a look at it, because on my device the video-recording (allow and block) is working.
[Android Apps and Games] schertling:
The new version supplies significant enhancement for organization of big databases (i.e. loads of apps loaded) :good:.

Help is helpful too.

And it has fixed an annoying bug - localization. I thought that would need new patches but the new app version alone did the job already :)

Thanks again CollegeDev and thanks also to wbedard
[Android Apps and Games] M66B:
Thanks.

On my device/ROM (FreeXperia CM10) the reset method is called just after recording, which always deletes the file with the recording.

Setting the deletedFile flag when access is allowed prevents this. Blocking still works, because the flag will not be set if access is not allowed.

All tested.
[Android Apps and Games] zhuzf:
Found display issues on my WVGA phone. Attatched pls find the screen shots.
[Android Apps and Games] SecUpwN:
Somehow I managed to set permissions such a way, that WLAN and Data will not be turned off anymore. Could you please tell me how to proceed?
[Android Apps and Games] CollegeDev:
Which device do you own? Is your sig correct?

Go to system ui, Einstellungen, einstellungsspeicher and set following settings to real: Wifi Info, switch Wifi State, switch network state.
[Android Apps and Games] SecUpwN:
Thanks, that did the trick. But it seems like I can't send SMS with GO SMS PRO although permissions are granted to send and receive.. what to do?
[Android Apps and Games] Koetermann:
I had the same issue, everything allowed but could't sent SMS by GO SMS PRO. At the moment I'm back to the standard SMS Program.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] SecUpwN:
Could you please find a solution for this using logcat maybe? I'd be very thankful as I don't have the standard SMS app anymore, I solely use GO SMS PRO.
[Android Apps and Games] kAosLort:
Deodexed Stock Rom i9300

I know how to deodex my stock firmware on gt-i9300, is it possible to deodex needed files framework etc., apply patches and than reodex the files and install pdroid2.0 on stockfirmware?

Currently I'm using pdroid2.0 on cm10 nightly. But if this could work I would change back to my stock firmware
[Android Apps and Games] CollegeDev:
I'm currently ill and will be back as soon as I'm healthy.
[Android Apps and Games] welle12:
I can confirm the patch works. Without it the video gets deleted after recording is stopped - and therefor its not possible to record videos. I use a MK16i device. At first i thought its a CM bug.

M66B thanks for the fix

Get well soon.
[Android Apps and Games] M66B:
I hope you will get better soon and that there is nothing serious.

All the best.
[Android Apps and Games] SecUpwN:
ISSUE: GO SMS PRO cannot send messages any longer, here's a LOGCAT. Would someone please be so kind and tell me what happened and how to resolve this?
[Android Apps and Games] Koetermann:
Here is my LogCat (Error-Level) from GO SMS Pro:

E/com.jb@wf(13755): [UserProfile] {ID:xxxxxxxxxxxxxxxxx;GOSMSOldVersion:0;GOSMSVersion:113;Channel:101;AndroidVersion:4.1.2;AndroidBuildId:xxxxxx;Brand:samsung;Board:smdk4x12;Device:m0;Model:GT-I9300;Country:DE;Operator:;IsRoot:true;HasMarket:true;}

E/com.jb@wfInfo(13755): Installation:0;country:de;model:GT-I9300;androidVer:4.1.2;phoneType:1;buildId:xxxxxx;oper:;

E/SpannableStringBuilder(13755): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

E/com.jb@MsgSending(13755): SmsMessageSender queueMessage and sendBroadcast

E/com.jb@MsgSending(13755): sendMessage moveMessageToFolder MESSAGE_TYPE_OUTBOX

E/com.jb@MsgSending(13755): sendFirstQueuedMessage sendMessage

E/com.jb@MsgSending(13755): handleSmsSent moveMessageToFolder MESSAGE_TYPE_FAILED

Hope that will help to find a solution. :confused:

Plz get well soon. :good:

Regards

Koetermann
[Android Apps and Games] wbedard:
Get well soon!

R/

wbedard
[Android Apps and Games] SecUpwN:
Dude, I'm a blond girl and have no clue which setting could be wrong. Anybody here who is willing to help us?
[Android Apps and Games] proudfoot:
Allow icc access?
[Android Apps and Games] SecUpwN:
Thanks for your hint, but that's not resolving the error. It MUST have to do with the settings to access and send SMS - I granted access to this feature for all apps using batch mode and suddenly I was able to send SMS again. How to find out which app has to be corrected?
[Android Apps and Games] FFU5y:
It would be helpful to have a debug-level log for all apps at the time you try sending the message, not just for Go SMS: the reason being that I am pretty sure the PDroid core will log the access attempts to the logcat. Thus, it should be possible to see all of the access attempts going on at the time. Hopefully, that will reveal if some access attempts to SMS are being made concurrent with trying to send.

You might want to quickly glance over the logcat before posting it, just to make sure it doesn't contain any personal information.

Edit: just saw your earlier logcat. I'll have a look at that.

Edit 2:

I'm not sure if it related or not, but it looks like GoSMS may be checking the phone state, that is getting blocked, and problems are occurring as a result. I'm not 100% sure, but I'd try allowing configuring GoSMS to be able to make phone calls (yes, sounds weird, but still...). I am by no means sure this will help, but I suggest giving it a shot.

There is also one other very interesting line in the logcat:

12-10 19:57:06.449 E/PrivacySettingsManager(26935): getSettings - PrivacySettingsManagerService is null

That suggests something is trying to get settings for an app (although what app the settings are for is not logged) and the privacy settings manager has become disconnected from the service. Actually, looking at the logcat more closely, the above logcat line it is more likely to be related to:

12-10 19:57:06.399 I/PrivacyGSMPhone(27165): Package: com.android.phone asked for getCellLocation()

and

12-10 19:57:06.529 I/PrivacyTelephonyRegistry(26935): package: com.google.android.location blocked for CellLocation

To clarify, though: you're saying that when you update all your apps (every single one) to have the ability to send SMS, and change no other settings at all, then you are able to send SMS, right? If that is the case, could you set all the apps to be able to send SMS, check you can send SMS, then block *only* Go SMS and check again?

Unfortunately, there isn't quite enough debug information in there to work out what is going on quickly.
[Android Apps and Games] wbedard:
FWIW, I get all these messages about every 2 minutes in the logcat for my phone. Although I don't use traditional SMS messages much, I haven't noticed any issues on my end. I'll review the posts on this issue this afternoon and runs some tests.

R/

wbedard
[Android Apps and Games] SecUpwN:
I've batch-granted permissions for all apps to SEND SMS and it works perfectly then. THIS is a full logcat while sending an SMS. Maybe you can filter out the relevant programm where sending must be allowed?
[Android Apps and Games] FFU5y:
Yeah, unfortunately the logcat simply doesn't include enough details to know what is actually going on. I can see the message going through in one, and failing in the other, but there doesn't look to be any contextual information around then involving PDroid. Is there a way in the PDroid App these days to turn on notifications for all apps at once? Or log all apps at once? The additional data inserted into the logcat from that may be enough to show up the issue...
[Android Apps and Games] SecUpwN:
If broadening the log is not possible, I could trace the relevant app through filtering all apps that have the option to send SMS. Any hints on how to do so?
[Android Apps and Games] wbedard:
Yes & yes! In the preferences, you can check an option to show a toast for every access by every app. In the current version, the new Log feature logs every access by every app (not just user-selected ones...).
[Android Apps and Games] Infernal Satan:
I'm a little bit confused.

I used Autopatcher 2.4.7, but in PDroid 2.0 it shows that the Patch version is 1.51 (not 2.4.7???) , App Version 1.52.

So when the next update comes out, do I have to patch again?
[Android Apps and Games] FFU5y:
The version of autopatcher is not related to the version of the patch being applied: so Autopatcher 2.4.7 applies the patch for the latest version of PDroid 2.0 core (which is 1.51).

CollegeDev's app has a version which loosely corresponds to the core version number that it supports, but (as you will have found running version 1.52 of the app) there is some backward compatibility: his app can manage some earlier versions of the PDroid core, in this case app verlsion 1.52 supporting patch version 1.51.

The oddity at the moment is that version 1.52 of the App is released, but version 1.52 of the patches is not: thus, the most recent version of the core is 1.51.

I hope that helps.

Edit: forgot the key point: when the new version of the core comes out, you will need to patch again. However, you should just be able to apply the new patch and install it without having to wipe your phone or anything crazy like that - if you apply the patch to the same original ROM, that is.
[Android Apps and Games] SecUpwN:
Ok folks, HERE is a fresh log with as much info as I could collect while sending was working. Which app is the one that needs 100% SMS sending capabilities?

On a more general note: I thought it would be useful if PDroid 2.0 could include some way of selecting certain apps into specific groups which have user-predefined privacy settings so that changing the overal values of all apps does not break stuff. Thus, users could ensure their fragile apps still work even though the privacy on their phones is like that on alcatraz. Is something like that achievable and does it make sense to you, too?
[Android Apps and Games] rroronoa:
Could someone tell me how do i install this, what do i flash and install? Im totally out now when i readed OP :D

Edit: i'm running aokp milestone 1 jb on galaxy s3
[Android Apps and Games] karamelos:
Hi try with auto-patcher for easy way link in my signature (show content) .

Or patch with your ROM source
[Android Apps and Games] rroronoa:
Thanks but i watched that thread already but i didnt understand that.. i mean do i have to use computer or is there some easy way like flash zip :rolleyes: i dont have conputer so that would be great if there would be flash zip..