yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] DualJoe:
[MENTION=4342828]mateorod[/MENTION]:

Minor bug (cygwin only) - $LOG not yet declared in line 1183:

$LOG is declared at first in line 1200:
[Android Software/Hacking General [Developers Only]] lorddunlow:
I think I have to kiss you now. Awesome. I hate having to use a computer for anything now.
[Android Software/Hacking General [Developers Only]] SirGeraint:
My 170k (obviously) didn't work. Had to wait until I could get to the 8M files I usually had. At first Auto-Patcher wasn't working for me. So I was troubleshooting the script (trying to force it) and then it 'acted' like it had another update. If it did it didn't change the version any, but it started working.

When mine wasn't working it wasn't doing any of these important steps:

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

... decompile Mms.apk ...

### copy patch openpdroid/4.3/cm/20130730 ###

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...

### jar patch openpdroid/4.3/cm/20130730 ###

... apply framework.patch ...

... apply preloaded.patch ...

... apply core.patch ...

... apply services.patch ...

... apply services-gps_fix.patch ...

... apply telephony-common.patch ...

... apply Mms.apk.patch ...

### rebuild jar ###

... rebuild framework.jar ...

... rebuild core.jar ...

... rebuild services.jar ...

... rebuild telephony-common.jar ...

... rebuild Mms.apk ...
[Android Software/Hacking General [Developers Only]] mateorod:
I need a log...testers report success, so if there is a problem, I cannot tell without logs. Something is likely borked, though, pa should not patch.

Not too overwhelming, I guess, but that the progress will only be as fast as me and the guys working on the autopatcher can go. This isn't my project, it is completely open-source on all ends.

I need a log to know what is happening, sorry.

Yeah, I first did a similar process over a year ago, although I did not know about lilDebi, which sounds cool. I have long had a goal of putting together an apk installer, but there is a list of things that had to get done first, some of which are still in the queue. Someday.

Better to show me what did happen as opposed to what didn't...could you upload a log please?
[Android Software/Hacking General [Developers Only]] SirGeraint:
Yeah, I was just trying to describe to them a way to tell when it wasn't working. I guess maybe I wasn't clear that it started working for me. So if it's the same for everyone else then there's nothing to fix. I'm not sure if anything I did fixed it or if it was on your end. I'll admit I was kludging it. Then I made another change. I will attach a log.

The first problem seemed to be that even after it identified the android version and romtype it was looking in openpdroid/all/generic/latest which didn't exist (instead of openpdroid/4.3/cm which does exist). Later when it was 'making a list' of what to include it was empty.

But as I said, I'm good now.
[Android Software/Hacking General [Developers Only]] mateorod:
I am glad to hear that you are set...although I admit some confusion as the log you submitted looks to be very very incomplete. Perhaps a reinstall of the autopatcher folder...the autopatcher itself only had a very minor change between 4.2 and 4.3, most of the big changes you guys got incrementally due to auto-updating.

Really, the only conceivable thing I could see is a problem with the decompiling, because I did change the baksmali call when experimenting with [MENTION=4293606]DualJoe[/MENTION] "-s" flag recommendation. I may just revert that now, since we aren't using it...
[Android Software/Hacking General [Developers Only]] pawo99:
Hi, I'm trying patch this CM10.2 based ROM for Nexus 4 http://d-h.st/DDz

Here is my log: http://codepad.org/kdEzpz8G.

I'm using ApG. I'm getting this error:

!!! PATCHING FAILED FOR android/provider/Settings$Secure.smali' !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed android/provider/Settings$Secure.smali' in framework.jar cannot be remedied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

PS. I'm able to patch CM10.2 of previous version of this ROM.
[Android Software/Hacking General [Developers Only]] SirGeraint:
The log files before it started working are 1544 bytes smaller. But I'm pretty sure it's because the "JAR FILES" list was empty and there were no lines about decompiling, applying patches, rebuilding, etc. Then when it was time to create the update.zip it only added 7 files (none of them jar files). But that was the problem.... that it didn't have a list of anything to do.

This line below was empty in the log files before it started working... so there wasn't anything to do.

### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/

telephony-common.jar system/app/Mms.apk

I'm not sure if this will help anyone else or not. I'm not trying to beat a dead horse.
[Android Software/Hacking General [Developers Only]] pawo99:
I have this error with another build of CM10.2 for Nexus 4 http://fitsnugly.euroskank.com/?rom=cm10&device=mako

http://codepad.org/kHBo4J0W

36 out of 87 hunks FAILED -- saving rejects to file smali/com/android/server/am/BroadcastQueue.smali.rej

!!! PATCHING FAILED FOR com/android/server/am/BroadcastQueue.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed com/android/server/am/BroadcastQueue.smali in services.jar cannot be remedied
[Android Software/Hacking General [Developers Only]] Mika83AC:
I'm getting the same error while trying to patch Temasek's CM10.2 rom
[Android Software/Hacking General [Developers Only]] Android-Andi:
Thanks for supporting Android 4.3 patches!

Only TabletUI

Date of patch 20130806

Only openpdroid

Date of patch 20130730

Tried to patch CM 10.2 tabletUI&openpdroid:

Date of both patches 20130730 : [MENTION=4342828]mateorod[/MENTION] Can you change to use tabletUI patch from 20130806 ?
[Android Software/Hacking General [Developers Only]] mateorod:
Looks like something upstream broke our patches as of the 08/08 builds, perhaps. I will download and test, but if so, all there is to do is rebuild and make new updated patches. Use the previous nightly until we can update sometime tonight.

I am assuming you meant to post logs there?

What this probably means is that we are off a day on the tabletUI patch date. Post your log and I can adjust it to the correct date. The autopatcher matches your build date to the patches. You can try manually patching with ./auto_patcher ROM.zip openpdroid,tabletUI, cm 20130806 although I am actualy not sure if that will work or not.

I will see what I can do to get this up.
[Android Software/Hacking General [Developers Only]] Android-Andi:
Logs Attached

Not working, because there ist no patch for openpdroid on 20130806.

It must be openpdroid 20130730 and for tabletUI 20130806.

I also need the new PDroidManager.apk for Android 4.3 to test if openpdroid-patch is working (i don´t want to set up my google-account on 2nd Rom in dualboot). Can you please upload the new apk?

Edit:

Thx for the PDroidManager.apk http://xdaforums.com/showpost.php?p=44456869&postcount=260
[Android Software/Hacking General [Developers Only]] mateorod:
No problem, I had meant to do it when I updated the app in Google Play. We'll see if th mods give me an OP in those threads- may need to start new ones if not.

I added implementation in Autopatcher 3.0.1 to have any number of available mods go through our build query. So now, no matter how many mods you select. each will go through our build query functions and be matched with the patch date that fits it best. You will notice some new output when you select multiple mods, for instance in one of my test runs on [MENTION=5153662]Android-Andi[/MENTION]'s rom,

./auto_patcher ../Of*/*0808* openpdroid,tabletUI,voice
...
### probe rom type ###
... result of ROM check: version= 4.3 rom= cm ...
... Using results of ROM check ...
... openpdroid patch date has been set to: 20130730 ...
... tabletUI patch date has been set to: 20130806 ...
... voice patch date has been set to: 20120826 ...
### unzip rom ###
....

We will be updating the patches for the rest of the mods and Romtypes this week. I have OpenPDroid patches for Cm roms after 0808 being built as we speak.

I have long wanted to add this feature, but was caught up in worrying about how to do it in a way that wouldn't break in cygwin. Thanks for the push to finish it. The last step in this will be to allow the functionality (which I can barely think of a us case for) to specify different dates on the command line as well. Someday down the line, perhaps. Works well, it looks to me. Let me know after you flash, ok?
[Android Software/Hacking General [Developers Only]] pawo99:
With updated Autopatcher 3.0.1 I got errors on two builds of CM10.2:

!!! error: failed android/provider/Settings$Secure.smali' in framework.jar cannot be remedied

ROM:http://d-h.st/DDz

and

!!! error: failed com/android/server/am/BroadcastQueue.smali in services.jar cannot be remedied

ROM:http://fitsnugly.euroskank.com/dl.php?file=jellybro/mako/cm-10.2-20130809.0515-SKANK-mako.zip
[Android Software/Hacking General [Developers Only]] Android-Andi:
Building: Perfect!

Flashing: Working!

Thanks a lot!
[Android Software/Hacking General [Developers Only]] Christoph21x:
THANK YOU!

Dear mateorod & Urinophoria!

Thanks a lot - you fixed with the most recent update the issue on my patches under Win7/64.

Now - together with the most recent update of PDroid Manager - the patching is not only reported as successful, it all runs again like a charm.

Thanks a lot!

Greetz - Chris
[Android Software/Hacking General [Developers Only]] Urinophoria:
Think I have PAC 4.3 patching and playing nice now, so we'll have access to that soon.. Just sent my work to Mateorod. Now to figure out why PA hates me so fckin much!

---------- Post added at 02:55 AM ---------- Previous post was at 02:44 AM ----------

Props to [MENTION=4342828]mateorod[/MENTION] for that one, I dimly understand what he did, lol! My only contribution was asking enough questions to eventually discover it was (for now) outside of my capabilities. He's the Jedi :cool:
[Android Software/Hacking General [Developers Only]] mateorod:
[MENTION=4418789]Urinophoria[/MENTION] updated the CM-10.2 patches and added PACman 4.3 for when those builds start appearing. I have tested many of the builds that users reported and they should now be working.

Thanks Urinophoria!
[Android Software/Hacking General [Developers Only]] Urinophoria:
NP :) Think I may have kickstarted PA, I'm 45 minutes into the build and no crashing.
[Android Software/Hacking General [Developers Only]] pawo99:
Hi, with new version 3.0.15 I was able to patch ROM 10.2 Jellybro from Euroskank, which failed to be patched with 3.0.1.

But I'm still unable to patch crDroid ROM based on CM 10.2 : http://d-h.st/DDz

I got this error message:

!!! PATCHING FAILED FOR android/provider/Settings$Secure.smali' !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed android/provider/Settings$Secure.smali' in framework.jar cannot be remedied

http://codepad.org/PCSrVlGN

Thanks for all your work
[Android Software/Hacking General [Developers Only]] IUnga:
auto-patcher v3.0.1

build 6 from [MENTION=2332422]temasek[/MENTION]

error log: http://codepad.org/WcuJmEWV
[Android Software/Hacking General [Developers Only]] Mika83AC:
same for me while trying to patch temasek's CM10.2 V6
[Android Software/Hacking General [Developers Only]] pawo99:
I'm reporting that I was able to patch this CM10.2 ROM, which is latest full build unofficial from 8/10/2013 :victory:: http://xdaforums.com/showpost.php?p=44475821&postcount=270

I'm a little confused that some CM10.2 ROMs can be patched and the others not :confused:
[Android Software/Hacking General [Developers Only]] Android-Andi:
because there are some kang prjoects...
[Android Software/Hacking General [Developers Only]] IRKONIK:
Ok, patched this: http://xdaforums.com/showthread.php?t=2390952

Patching works fine, log is here: http://pastebin.com/pGhUF3EJ

Cheers! So, should I test it now? :D Filesizes are normal at 6.2 and 7.2 MB

PS: Why do you call your project Dysprosium? :)

PPS: I like pastebin a lot, but I can't get it to work so that the text isn't messed up. Any tips on which syntax highlighting I should choose?
[Android Software/Hacking General [Developers Only]] Urinophoria:
Most likely will not work, but it won't hurt anything, if you check your logs, it used patches from July 26 and failed in patching telephony-common. Likely worst case scenario is that PDroid Manager won't work.

I'm working on the patches for PA now though, so it it doesn't work when you flash it, you'll be in business soon :)
[Android Software/Hacking General [Developers Only]] 181charan:
Hello!

I wanna use the Windows version of the Auto-Patcher... I downloaded Java.exe and cygwin.exe and placed it in the ApGPackages but it prompts that it has to start the download again... Which directory do i have to extract the files to? Any help? Tried reading a few pages but found nothin..

EDIT

Gonna be answering my own question but if others having the same problem as me. Follow this-

1) Place Java.exe and cygwin.exe in "ApGPackages" folder, and DONT run ApG as yet... Run Java.exe and cygwin.exe which will extract themselves there itself

2) then check for a file called "ApG.ini" and open it in notepad

3) you will find the following

[JAVA]

JAVA_VER=0

[CYGWIN]

CYGWIN_VER=0

just replace the ver with some random numbers for the program to detect your extracted folders!

Ex-

[JAVA]

JAVA_VER=20120904072035

[CYGWIN]

CYGWIN_VER=12354659879

4) Run your app and wait for it to sync auto-patcher from Git-Hub... n u are done!!

Well at least it worked for me!! :) :)
[Android Software/Hacking General [Developers Only]] IRKONIK:
Well... It works. The app opens, no errors, nothing. Now I only need an app to test it. Since Titanium Backup Pro has to behave like a b*tch, I can't restore from nandroid backups :(

So I need to install everything fresh..

Cheers and thanks!

Via Tapatalk 4 BETA, that, surprisingly, is free.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Ok, Mateorod explained it to me in private. I didn't bother to look at your actual device. AP was breaking on patching mms, your device is a tablet, tablet=no mms-no breakage.

Also, PA 4.3 patches have been uploaded and it is now officially supported in the AutoPatcher. Make sure to update then let er rip! Let me/us know if there are any misfires on it!

Evervolv will be up soon for anyone waiting on it... Still not getting AOKP to build past 4.2.2.
[Android Software/Hacking General [Developers Only]] echoedge:
Any idea why the CM 10.1.2 Stable Release is breaking at android/provider/Settings$Secure.smali' for the openpdroid patch?

http://codepad.org/heRU0cCX

Furthermore, it's detecting it as an AOSP rom, not a CM one?

I even tried manually doing the commands but it still tries to patch it as aosp (that's trying windows APG, haven't tried it with linux).

Thanks
[Android Software/Hacking General [Developers Only]] Urinophoria:
Try manually specifying a few patch dates prior? The code gets locked in for stables and RC's so it may predate the code for the patches. Basically it would be trying to use patches that were made for versions a couple releases after it was built.

Try that and kick some logs if it doesn't work.

On a high note, looks like all of Mateorod's automation in the updater is working good!

---------- Post added at 05:26 AM ---------- Previous post was at 05:06 AM ----------

Another patch update:

And Evervolv 4.3 patches are live. Update and let er rip if you need em!
[Android Software/Hacking General [Developers Only]] Eshi:
Manually changing the date to 20130616 worked for me. (CyanogenMod 10.1 Nightlies / Releases [SR1.1])
[Android Software/Hacking General [Developers Only]] IRKONIK:
Well sh*t. My PC broke down. So now I have to use my tablet and phone for everything. Does somebody have an easy tutorial on how to setup Linux via vnc on my phone/tablet or comparable stuff? Which distro is the most lightweight and or fastest on android?

Thanks in advance :) I really need to patch some new roms I found..

Via Tapatalk 4 BETA, that, surprisingly, is free.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Ubuntu and Backtrack are the best supported/documented that I've seen. Don't know about lightweight or functional though. I only did it a couple times, just to prove I could, then never used it again. Takes up more space than I was willing to dedicate and the loop is really easy to break.

If I were to do it again, I'd probably use Ubuntu and find a lighter DM than Unity, most of what I do is best documented and supported for the latest Ubuntu LTS.

Looks like it got easier, I haven't tried it, but I found this: http://www.redmondpie.com/install-a...id-device-with-ubuntu-installer-download-now/
[Android Software/Hacking General [Developers Only]] justDave:
This will get you patching in no time:

http://xdaforums.com/showthread.php?p=44383396&highlight=lil+debi#post44383396
[Android Software/Hacking General [Developers Only]] IRKONIK:
Much love to you two, Urinophoria and justDave :) thanks for helping me out :D

Via Tapatalk 4 BETA, that, surprisingly, is free.
[Android Software/Hacking General [Developers Only]] IRKONIK:
Well, well. Debian runs, I have acces via android vnc BUT I can't get su. I tried all "classic" methods (just htting enter, root, sudo passwd root, etc.) but they don't work. :D How dafuq do I get root access? also, I am not entirely sure that the img I use has connection to the internet, so I am also not sure if I can get any of the packages via apt-get.

This is not as easy as I thought it would be. I wanted to use slitaz because it's so leightweight, but there is no app that can set it up, which bugs me. Debian is not the fastest and ubuntu is one huge lag.

At least I learn a lot by doing all this, which is nice. About a month ago I was one lost linux newf*g, but now I am able to do everything I need.

I actually really like linux over Windows. It feels.. faster. More efficient. Less "consumer friendly" but overall just.. better.

Thanks again for all your help :D You guys rock! :good:
[Android Software/Hacking General [Developers Only]] justDave:
You shouldn't see a password prompt. Are you rooted?
[Android Software/Hacking General [Developers Only]] IRKONIK:
My device is rooted, newest busybox is installed, terminal emulator works like a charm, but via vnc no root. (Maybe because of chroot? Idk)

Lil'Debi is not working at all. It can't start with the image I downloaded, and I can't find any info about which image actually does work with it. If you have a working one, please post the link to it.

I really don't understand why the Lil'Debi dev did not implemented a feature for downloading an image.

But nonetheless I got one thing to work: via complete Linux installer I got the core of Debian running (no vnc, because it has no gui), I have root access but no connection to the internet.

So strange.

Also, not having a physical keyboard is a huge pain in the 4ss. :D

I ordered a Bluetooth keyboard over amazon. Hopefully it's here by Wednesday. Else I go nuts :p

Cheers, and thank you :)

Gesendet von meinem Nexus 10 mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] justDave:
You don't need an image for Lil Debi. It build one from scratch. Go into preferences and set the image path (the file should not exist). Then set the image size (2000 should leave you plenty of room), click install and watch it do its thing.
[Android Software/Hacking General [Developers Only]] IRKONIK:
I did that multiple times with multiple sizes (256MB, 600MB, 1000MB, 2GB). It always builds it without errors. But when I hit "start" it says:

start-debian.sh

Configuration that will be started:
app_bin: /data/data/info.guardianproject.lildebi/app_bin
mnt: /debian
sdcard: /storage/emulated/0
image_path: /storage/emulated/legacy/debian.img
sha1file: /data/data/info.guardianproject.lildebi/debian.img.sha1
loopdev: /dev/block/loop5

> /system/bin/e2fsck -pv /storage/emulated/legacy/debian.img
debian_chroot: recovering journal
debian_chroot: clean, 120/128256 files, 17325/512256 blocks

> losetup /dev/block/loop5 /storage/emulated/legacy/debian.img

root mount for everything Debian
mount: mounting dev/block/loop5 on /debian failed: Device or resource busy
Mounting '/debian' failed, returned 255
chroot: can't execute '/bin/bash' : No such file or directory

What really confuses me is that android has "so many paths" for the internal sdcard. /storage/emulated/0/ /storage/sdcard0/ /storage/emulated/legacy

I really do not get, why it refers at line 6 to the first one, on all the others to other directory. :eek:

Sorry for getting OT and flooding your thread mateo, but I did not find a "lil' debi" thread.

Cheers!

Edit: If you want/need the install log I will provide it. :)

Edit 2: Ok, if you need it: Here

Edit 3: Read a few things about those "different" directories, here. So now I know why those exist. But what I still don't know is if this is what "breaks" the app.
[Android Software/Hacking General [Developers Only]] mateorod:
We use codenames for our project versions like many others do (Ubuntu uses animal and adjectives Raring Ringtail, Natty Narwhal, etc. It is common to use spices and colors etc. Android obviously uses desserts or treats). When you increment a major version, you go up a letter in the alphabet.

PdroidPatcher was version 0.1..it was unnamed. When we released this as Auto-patcher (we added V6Supercharger because we realized we could handle all sorts of mods. I offered to (and actually made) a version just for V6 for [MENTION=3357461]zeppelinrox[/MENTION] but he wasn't interested, so we combined it into one) then it became 2.0 and soon after that was when we started the naming scheme.

0.1-1.0 = PdroidPatcher to Auto-patcher

no name since we had no reason to think it would live to another version

2.0 = Bismuth

Android 4.1 support, added tabletUI, 3Gdongle, voice, external_internal, pd2.0, etc.

2.5 = Copper

Android 4.2 support, OpenPdroid debut, rom matching, package management features and re-worked help, log and error-messages

3.0 = Dysprosium

Android 4.3, auto-updating and many many bugfixes

We are using metals, although in a long enough timeline, I can see us perhaps having to dip into alloys (heaven forbid I am working on this that long :eek:). Dysprosium root word means "hard to get to" which certainly describes the last 6 months of this undertaking, so....
[Android Software/Hacking General [Developers Only]] takota6:
I apologize for my ignorance.

I've patched the latest cyanogen 10.2 (8/10) droid DNA. the APG patches fine but when I apply patches in recovery which flashes fine, but upon boot and install of Pdroid Manager it states no patches, and looking into data/pdroid nothing appears .. I'll take a link if this had been explained before..Txs
[Android Software/Hacking General [Developers Only]] Urinophoria:
Can we have a log from the patching, a link to the source and maybe a logcat of you starting pdroid manager. It's happened before, just need to see the underlying text in the log so we either know which patches to fix, or how to direct you to fix your local install (if it's the problem).

Or, if you want to just try something to fix it right now.... Delete the auto patcher directory and start again. I don't have enough data for more than a WAG, but it sounds like you're trying to use old patches for new roms