yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] alessia3:
thanks HoochieCoo for your kind reply, but it's not possible... i'm not using custom rom!

i'm using my original stock rom (obviously deodexed etc....) and no zip file is provided for that... (actually, neither an odin file of my original stock rom, neither on sammobile...)

so, again, i ask for some help for my problem using patcher (more specific: making a single zip file of my rom).

i have samsung i9001 and cwm (ported to my device: called feamod, based on CWM recovery 5.5.0.4, the only available for my device)

my cwm does NOT create a nandroid ZIP file of the rom.

it creates a bakup folder with all the following files inside:

boot.img

cache.ext4.tar

data.ext4.tar

nandroid.md5

recovery.img

system.ext4.tar

(i tried to manually create a zip file, without using compression, of all the files in the backup folder, but pdroid patcher returns the messahe "not a valid nandroid backup")

how to create the zip file of my rom, to use with pdroid patcher?

thanks everybody in advance!!!!
[Android Apps and Games] pastime1971:
custom rom zip is pretty simple. it is a zip file of your system + kernel + script. just download one, unzip it and take a look. it looks like

boot.img
[B]META-INF/com/google/android/updater-script
META-INF/com/google/android/update-binary
system/framework/framework.jar
system/framework/services.jar
system/framework/core.jar[/B]
system/app
<and many more...>

bold part is what pdroid patcher needs to change + update.

i think

updater-script can be as simple as

run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
unmount("/system");

edit: on a second thought, TitaniumBackup app can generate update.zip which you should be able to use it to patch (i guess... :rolleyes:)
[Android Apps and Games] alessia3:
many many many MANY thanks!!!

now i have my pdroid installed!!!!!!!!!

unpacked folder "system" and all subfolders from my system.ext4.tar file

create zip file with that folder

extracted folder "meta-inf" from another cwm zip file

edited updater-script file with your script

added that folder to zip file

...and patcher recognised my rom and created my patch!

(the log said that patcher did't recognise the updater-script file and replaced it with a default script... sorry i forgot to copy/paste the log...)

already installed the patch and pdroid apk, and now i'm configuring it

so thanks again pastime1971 (and again... and again...)
[Android Apps and Games] Theraze:
Try making your own. The attached patches won't (usually) work if you're using a different build from what that version is, and being that you're on these forums there's a good chance you're using a nightly CM or some such variant on the original ROM used to make that patch...
[Android Apps and Games] californicated:
If I resigned my Rom for Toggle 2G, do I have to patch the resigned Rom files or can I use the original ones? Have deleted the resigned files.. :D

EDIT: ..found! :)
[Android Apps and Games] :
Guys i finally have sucessfully patched

CheckRom NoteHD V5 for Galaxy Note

(

Version for N7000

)

This two files can be added to OP:

PDroid-RESTORE-XXLA4_CheckromRevo_NoteHD_V5.zip

PDroid-v1.31-XXLA4_CheckromRevo_NoteHD_V5.zip

Proof of Pdroid running on Note attached!

Eheheh post 1000 :D
[Android Apps and Games] Superm@π:
Crap. Will do, probably gonna need to ask someone to help me. Thanks
[Android Apps and Games] Theraze:
If you're on a Windows box, just grab the patcher, install the JDK off the Oracle site (it's linked in the first post), and run it. Point it at the CM zip you're using, and it'll spit out the patch (and restoration patch, in case things go wonky) for you. Easy.

If you're on a *nix box or a Mac... there's older patch files around if you can find them that run in *nix straight. Or you can just run a quick VM and follow the Windows directions.
[Android Apps and Games] DaNiElCoRe:
now working fine in CM 7.2 By FAT KANG

thanks
[Android Apps and Games] californicated:
Patched and installed PDroid 10 minutes ago. Till now everything seems to be working fine :D

Here my Patch and Restore. But as I already mentioned in my last post, my Villain Rom is resigned for Toggle 2G. Not sure if it still works for you:

Patch v1.31 for VillainRom v3.0

Restore Patch

@svyat

Thanks for your great work! :)
[Android Apps and Games] thanhphu:
Is there any way to install this without having a recovery? My phone is relatively new and all the recoveries I have tried doesn't seem to work :(
[Android Apps and Games] Theraze:
Any way? Yes... there are some programs, depending on your specific phone model, that will apply patches and kernel changes from the main system as opposed to from CWM.

Now the question... should you? Probably not. If you can't get your phone to run CWM in a stable way, you probably need to poke it some more first before you risk turning it into a brick, since if you don't use exactly the right version of a patch, your phone won't boot up again until you run the restoration or reflash, and if you can't flash your phone again, it'll probably be Odin time...
[Android Apps and Games] ewes7777:
Mod Edit You do not need to Quote the whole post just hit the thanks Button next time

cool app! i recomended it!
[Android Apps and Games] pastime1971:
android permission nightmare on pcworld.com

http://www.pcworld.com/article/251824/androids_permission_problems.html
[Android Apps and Games] M3TALLICA:
Hi, thanks for this app. I have deodexed my galaxy note (actually it took me 2 days to learn it), now how do I create my_rom.zip file ?

Is there any way to convert CWM backups to flashable rom zip ?

There are already custom roms available to download but I want to learn it.

Please somebody care to elaborate ?
[Android Apps and Games] stuart0001:
Why on earth quote the entire mammoth 1st post ?
[Android Apps and Games] :
ewes7777

WTF? Quote the whole first post just to say that?????????? Please unquote the whole first post! -.-
[Android Apps and Games] p4nts:
Hi ccab

Thanks very much for that, gave it a go but still no joy ;-\

Props to @svyat for all the good work.
[Android Apps and Games] GeorgePB:
Could you make a rooted version of your app, that wouldn't require patching (or could use root to patch the phone)?
[Android Apps and Games] HoochieCoo:
Other than having glaring factual errors (like iOS being secure and the discussion about photo security), his point is already well taken by people on this thread.

But don't be lulled into the same thing iOS users experience (by thinking Apple protects them) and believe PDroid is the end-all to privacy. Your photos, in fact your entire external storage (built-in or on an SD card), is still accessible. PDroid doesn't regulate internet access.

PDroid really should be coupled with DroidWall or avast! (which has a root level firewall). This way, you can stop apps from communicating over the internet. With avast, you also gain remote locking and wiping. After all, the biggest privacy breach is losing your phone, in which case all bets are off. If you are really paranoid, use something like Tor. Don't forget things like the browser, cookies and Flash are giving stuff up too.

Now... I wish there was a way to transparently protect what goes on storage...
[Android Apps and Games] pastime1971:
internet access regulation is firewall's job, and android has iptables. as far as i know (unless i'm wrong), it is wide-open on both incoming and outgoing traffic, which i hate. currently, the purpose of iptables in android is to tether or vpn. DroidWall is focused on app-wise internet access regulation of outgoing traffic.

problem is that

most

mobile apps require internet connection to work, and firewall can only block or allow it

by port

. so, unless it is clear that app shouldn't access internet at all, it is hard to block internet access because of privacy. it will have to be protection on the private information/file.

PCWorld article states that android does have file access permission which no longer works. i do not really understand why it is though. does anyone know why ?

edit: edited to "iptables can control internet traffic by port" (also rule can be made ip specific, adapter specific)
[Android Apps and Games] rab1412000:
Wish we had a section where all the patched roms would be listed and could be downloaded.

I for one couldn't get the patch working on my pc and had to rely on someone else's patched villainROM to use pdroid.
[Android Apps and Games] M3TALLICA:
Finally made my own rom.

PDroid + Droid Wall great combo.
[Android Apps and Games] kenjesse:
Installed to my DX2 running CM7 using custom patch file without any problems...:D

Looks to be a excellent app.
[Android Apps and Games] svyat:
Fixed the update issue from version 1.27 and below. However, you'll need to re-create your backup, since the old ones are not compatible with the new patch version (1.32).
[Android Apps and Games] dirtyreturn:
@svyat, or anyone willing to answer. Using the patcher 1.3+ I get the HTC screen and then black screen. I am able to flash the Rom fine. The patch was successful. I tried to mount system/data partitions .What can I do to get more information if necessary?
[Android Apps and Games] Theraze:
Unfortunately my new 1.32 patch still fails to install with an error Status 1, as reported on 1.31 for post 988.
[Android Apps and Games] Sjonnie-Doe:
Even after applying a patch made with the latest patcher, i still get the message that PDriod is not installed :(

Maybe the red colored "errors" have something to do with it???

[COLOR="Red"]Creating updater script
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: Unknown file type, ignoring: framework.mod.jar.out\smali\android\content\ContentResolver.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.orig
W: Could not find resources
I: Building apk file...[/COLOR]

created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: preloaded-classes

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

[COLOR="Red"]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...
[/COLOR]

[COLOR="Red"]Building modified core.jar
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...[/COLOR]

Successfully created PDroid patch.
[Android Apps and Games] DaNiElCoRe:
can you add an option into the apk, the option that we can select all apps and allow or deny the access of the data.

Great work go ahead
[Android Apps and Games] ballmead:
Please excuse my noobness, is there a patch available for ICS 4.0.3 XXLPQ for Samsung Galaxy S2?

I tried to use the patch making software but it said that I didn't have a valid zip file for the XXLPQ Rom??
[Android Apps and Games] ukanth:
It is only for gingerbread...

Sent from my HTC Desire
[Android Apps and Games] topsign:
Hope ICS version come soon
[Android Apps and Games] alessia3:
copy/paste from a post of pastime1971 (thanks to him for the procedure):

"custom rom zip is pretty simple. it is a zip file of your system + kernel + script. just download one, unzip it and take a look. it looks like

Code:

boot.img

META-INF/com/google/android/updater-script

META-INF/com/google/android/update-binary

system/framework/framework.jar

system/framework/services.jar

system/framework/core.jar

system/app

<and many more...>

bold part is what pdroid patcher needs to change + update.

i think updater-script can be as simple as

Code:

run_program("/sbin/busybox", "mount", "/system");

package_extract_dir("system", "/system");

unmount("/system");

edit: on a second thought, TitaniumBackup app can generate update.zip which you should be able to use it to patch (i guess... )"

after that post i did the following:

unpacked folder "system" and all subfolders from my system.ext4.tar file (you can extract directly from you device if you prefer)

create zip file with that folder

extracted folder "meta-inf" from another cwm zip file

edited updater-script file with his script

added that folder to zip file

...and patcher recognised my rom and created my patch!

(the log said that patcher did't recognise the updater-script file and replaced it with a default script...)

if you prefer, you can try with titanium as pastime1971 suggested
[Android Apps and Games] DirkStorck:
Hi. Could someone please greate a patch for

HTC DESIRE NIGHTLY - @euroskank [ Mar 18 2012 13:16 ] CM 7.2.0 - RC1

because the windows version gives me an error and if I aplay the patch I get a bootloop.

Thank you :)
[Android Apps and Games] sirdeu:
Thanks

Thanks for making this real.

Waiting for your ICS version.
[Android Apps and Games] kerberos7:
Nice !

Waiting for ICS Version.
[Android Apps and Games] Tom Swift:
PhoneWeaver affected by Pdroid Patch

I installed the patch and everything except Phone Weaver appears to be fully functioning even with most of the privacy settings enabled.

All of the Phone Weaver functions work except enabling and disabling 3G/4G Data.

I patched the MHX-SUPERLITE-3.1 ROM.

Regards,

Tom
[Android Apps and Games] ngh55:
PDroid says it is not installed, never had a problem with versions prior 1.3x , hope it gets fixed soon, thank your for a great app

I'm using miui

EVO-4G powered by FherraZ-Mod
[Android Apps and Games] pastime1971:
i started a thread of

porting PDroid source code to ICS

at http://xdaforums.com/showthread.php?p=23802312#post23802312

it is only for source code, and

not for smali patching

.

if you can build a ICS ROM, take a look at it.

hopefully, it will accelerate/spread PDroid on ICS platforms.

edit: currently, it works on P990/CM9. other devices/CM9 should work. other ROMs not tested.
[Android Apps and Games] I900-Nutzer:
Same here on a ZTE Blade with CM7. Patch made with v1.2x works, Patch made with 1.3x -> PDroid says ROM is not patched ...

Thx for this "must-have" - Tool!
[Android Apps and Games] p4nts:
Was able to patch GingerMod successfully.

But not VillainRom, same message as you too.

Also able to patch 1.27 - both under x64.

1.27 works for me so I'll stick with that ;-D
[Android Apps and Games] p4nts:
PDroid wins again

Not only does PDroid protect your privacy, but maybe help it also help to save your battery ;-)

http://www.bbc.co.uk/news/technology-17431109

Blocking access to GPS etc.
[Android Apps and Games] svyat:
Get me an error log as described in first post ;)

Nope, those aren't errors. As long as it says that the patch was successful, you should be fine ;). Try mounting /system before you flash the patch.

Have you tried the latest version 1.32? Can you get me an error/warning log from ddms when your phone is booting?
[Android Apps and Games] iannj:
hi there,can this patch works with my HTC Thunderbolt 1.01.1520.0 MR4 Leak with Gingerbread v2.3.6 and Sense 3.0 with Verizon MMS Fix?
[Android Apps and Games] JZ*:
COOL:cool: I would be interested if your sharing! Is this the stock ATT (1717) ROM by chance? i want to use Pdroid, but just have a rooted "stock" rom.:o
[Android Apps and Games] XdaProNoob:
about PDroid

Hi,

I want to participate in the development of Pdroid. It is very inspiring project and I have a nice feature to discuss: The default values for all applications.

having default values for all applications can help a lot since some apps may cache the values they asked for and never ask for those again. or they may crush or loop infinitely due to random values (i tested it already with notifications on).

I suggest that immediately after the patched ROM is flashed, a "Create your own default values app" will run. that app should run even before the first app that comes with stock (you know, the one that tells you how to use the phone etc.).

from what I understand such thing should be supported both on the AOSP side, meaning building a new version of the patch with a fallback access to default values and also a little Form app for all the default values we want to have for the phone. that "Form" app of course should run stand alone when the ROM is run for the first time after flash. of course suggestion default value would be great too.
[Android Apps and Games] DirkStorck:
Hi,

sadly when I create a patch with the last version for windows I get a bootlop on my phone.

D/AndroidRuntime( 1342):
D/AndroidRuntime( 1342): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
I/AndroidRuntime( 1342): Heap size: -Xmx48m
D/AndroidRuntime( 1342): CheckJNI is OFF
D/dalvikvm( 1342): creating instr width table
D/dalvikvm( 1342): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1342): ODEX file is stale or bad; removing and retrying (/cache/dalvik-cache/system@framework@framework.jar@
classes.dex)
D/dalvikvm( 1342): DexOpt: --- BEGIN 'framework.jar' (bootstrap=1) ---
D/dalvikvm( 1343): creating instr width table
E/dalvikvm( 1343): too small to be DEX
E/dalvikvm( 1343): Optimization failed
W/dalvikvm( 1342): DexOpt: --- END 'framework.jar' --- status=0xff00, process failed
E/dalvikvm( 1342): Unable to extract+optimize DEX from '/system/framework/framework.jar'
D/dalvikvm( 1342): Unable to process classpath element '/system/framework/framework.jar'
E/JNIHelp ( 1342): Native registration unable to find class 'android/debug/JNITest'
E/AndroidRuntime( 1342): Unable to register all android natives
I/ServiceManager( 471): service 'media.audio_flinger' died
I/ServiceManager( 471): service 'media.player' died
I/ServiceManager( 471): service 'media.camera' died
I/ServiceManager( 471): service 'media.audio_policy' died
I/Netd ( 1345): Netd 1.0 starting
I/ ( 1344): ServiceManager: 0xad50
E/AudioHardwareQSD( 1344): Cannot open /dev/audience_a1026 -1
I/HTC Acoustic( 1344): libhtc_acoustic.so version 2.0.1.5
E/HTC Acoustic( 1344): Fail to open /system/etc/AdieHWCodecSetting.csv -1.
E/HTC Acoustic( 1344): read ADIE para from file failed -1
E/HTC Acoustic( 1344): ioctl ACOUSTIC_UPDATE_ADIE failed -1
I/HTC Acoustic( 1344): open /system/etc/AudioBTID.csv success.
I/HTC Acoustic( 1344): BT ID table version: PASSION_HTC_20100610
E/HTC Acoustic( 1344): Fail to open /system/etc/TPA2018.csv -1.
D/AudioHardwareQSD( 1344): speaker amplifier tpa2018 is not supported
D/AudioHardwareInterface( 1344): setMode(NORMAL)
I/AudioHardwareQSD( 1344): Set master volume to 1.000000
I/CameraService( 1344): CameraService started (pid=1344)
I/AudioFlinger( 1344): AudioFlinger's thread 0xeac8 ready to run
D/AudioFlinger( 1344): setParameters(): io 1, keyvalue routing=2, tid 1350, calling tid 1344
I/AudioHardwareQSD( 1344): Routing audio to Speakerphone
D/AudioHardwareQSD( 1344): Switching audio device to
D/AudioHardwareQSD( 1344): Speakerphone
I/AudioHardwareQSD( 1344): voice volume 5 (range is 0 to 5)
D/AudioHardwareQSD( 1344): Setting in-call volume to 100
[Android Apps and Games] ngh55:
Patch 1.32 worked but gave me 2 crashes on google gaps, going to find out if it was the patch or what happened, but PDriod is working again, thank you.
[Android Apps and Games] face-t:
Hi

do we need to patch the original ROM that we used to flash the phone at the begging or the one from nandroid backup. Could someone clarify it for me please. And the author could add it to the first post instructions :)
[Android Apps and Games] gdwy89:
A patch for Virtuous Unity 2.39 for those in need.

Note for Droid Incredible 2 users: This patch (and every other patch I've tried whether cosmetic or otherwise) will cause the backlights of your softkeys to stop working. It does appear to work, however.

Edit: Attachments failed to upload "because a security token was missing." I'm going to put a pin in this and get back to it. Sorry.
[Android Apps and Games] broad_st_bully:
ran the .exe and it said "does not work for odexed devices. please choose a de-odexed ROM" or something to that effect...I'm running this ROM...a CM/AOSP ROM...
[Android Apps and Games] Theraze:
In some cases, they re-odex the ROM for speed. If yours happens to be odexed... you can either de-odex manually, or try a different ROM.
[Android Apps and Games] svyat:
Which ROM do you use?
[Android Apps and Games] SYRK.CORP:
Pdroid patch for Stock Lite V6

Hey guys!

I want to share my Pdroid patch for Stock Lite V6 ROM http://xdaforums.com/showthread.php?t=1472019#

These files were generated by PDroid Patcher v1.32 Beta 0.32 for Windows but I modified them because they showed me error when I tried to flash them with CWM v5.0.2.6

Cheers! ;)
[Android Apps and Games] I900-Nutzer:
With v1.32 we are back in Business :) Big thx svyat!
[Android Apps and Games] denzel09:
Thanks

Inviato dal mio LG-P690 usando Tapatalk
[Android Apps and Games] stuart0001:
Really no need to quote mammoth 1st post.
[Android Apps and Games] DividedByZer0:
I'm still having troubles getting this to work.

I've tried the new version of the patcher tool for 1.32. I've tried both a Nightly and a Stable build of CM7 for the Droid Incredible. I've even tried copying my system folder from my phone and zipping it up with the META files. The tool fails every time and always at the same place.

It it possible that there is something specific to my machine?

Here is a link to the output. I've included a snippet below.

pastebin.com/Y2YE6ZQf
[Android Apps and Games] NobbyNoo:
I tried running the 1.32 patch tool on my desktop computer and I get the error at the same point as DividedByZero (tried to patch latest LGP990 CM7 RC1-76 kang by temaesk).

But when I ran it from my laptop with the same rom file, it patches fine. Both computers are running windows 7 64bit, with pretty similar software installed.
[Android Apps and Games] Toxina:
any way to make PDroid available for stock roms? :/
[Android Apps and Games] Theraze:
If you use a de-odexed rooted stock rom? Sure. Should work.

If your 'stock' rom isn't de-odexed and/or rooted? Not without fixing it.
[Android Apps and Games] Infy_AsiX:
I couldn't manage to patch on Windows7 64bit but could on Vista 32bit.
[Android Apps and Games] SilentSummer:
Loved this app before I flashed over to ICS last month.

Can't wait for ICS support :)