yashsingh1/xdaforums huggingface dataset:
[HTC Desire S] lowrider82:
Hi guys,

I would like to ask android expert's help if there is a solution to my problem.

I have an HTC desire s and unfortunately i am facing the same problem as many other htc users, with a faulty charging slot.

Therefore once I receive or make calls, the phone automatically goes on loudspeaker as it thinks its on a car dock or something.

I was wondering if there is some string that I can run, that can change the behavior of such process, and put as default in any case the normal speaker and not the loudspeaker for all calls/profiles.

I will be grateful to anyone that gives a hand with this!

By the way I have the latest MIUI V4 installed on my htc desire S and I am 100% it is a hardware related issue as when I slightly move the charging slot and hold it in that position the problem goes away, but as soon as I stop touching it, it comes back.
[HTC Desire S] lowrider82:
Anyone? I'm desperate :(

Sent from my GT-9100@MIUI 2.8.31+Siyah kernel v4.1.2 CPU@1600 GPU@400
[HTC Desire S] lowrider82:
So it isn't possible?

Sent from my GT-9100@MIUI 2.8.31+Siyah kernel v4.1.2 CPU@1600 GPU@400
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
hi everyone,

i have HD2 for 3 years (his battery drain in standby is 5-10 mA) and recently i bought second one, and I'm having problem with his battery drain in standby it never goes under 40mA (with airplane on is the same thing). i did task 29, put the same radio (2.15.50.14), same clk and same rom (NexusHD2-ICS-4.0.4-CM9-HWA V2.7), I try juice defender and it is always above 40mA. On cpu spy I see that phone is in deep sleep 90% of time (similar like my first HD2). I try couple difrent roms and it never goes under 40mA in standby. i swap battery an it didnt change anything. is there anything that i could try or is it that some HD2 just cant get normal standby battery drain? what should I do, any advice will bi appreciated.

thx in advance
[HD2 Android Q&A, Help & Troubleshooting and Genera] Nigeldg:
Seems like you've tried a fair amount, the only thing I can think of is that the hardware of the new HD2 is somehow faulty. Is the same issue present with all ROMs?
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
yes, with every (four) ROM standby battery drain is above 40 mA, I could try put back win 6.5 but that isn't why I bought this phone
[HD2 Android Q&A, Help & Troubleshooting and Genera] samsamuel:
A long shot, but perhaps a dodgy battery pin? Or maybe a dirty connection plate on the battery?

Have you switched the batteries to confirm its the phone not the battery?
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
yes I switch battery and it is the same, still big battery drain on second HD2 and normal on first. battery pins are clear an they looks to be good.
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
update,

first I put back win mobile 6.5 and battery would drain from 100% to 0% in 30 hours in standby , it is little bit better than android because on android battery last around 16 hours but still it is short standby time. After that I switch just motherboard from bad hd2 to good one and battery drain was bad where the second motherboard was installed, so it is something with motherboard or cpu or gpu and it is hardware problem. Maybe stronger battery could help bit, don't know what to do next :confused:
[HD2 Android Q&A, Help & Troubleshooting and Genera] GODISMYCOPILOT:
i reckon that 16hrs when its on android is good for a hd2 i have a hd2 with extended andina battery in i JUST get a full days use (ie 8am 2 10pm) with normal use thru out the day no mater what rom i have try'd and tbh ive try'd a lot and there on par with each other but if you have all the stuf on ,gps Bluetooth then i get about 6 hrs from it

as i have said b4 this phone was never ment to run android hence why the battery is better in winmo
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
I agree with you it that it isn't made for android, but there is to big deference between two hd2 that i have, anyway can you send me link of extended battery and what capacity is it?
[HD2 Android Q&A, Help & Troubleshooting and Genera] GODISMYCOPILOT:
http://www.ebay.co.uk/itm/HTC-HD2-T...808370?pt=PDA_Accessories&hash=item3cc10bb7b2

i dont know ware you in the world but you can search worldwide id wait if you cant get one and see if one pops up ,also these gold hd2 batterys you see on there are crap ive try'd one there no better than the htc org battery the andida has a good name but you get what you pay for

have you tr'd a bigger partion on it you may have bad blocks or could be or have been overheated in the past (processor) thats also common i use the nexus 4.0.4 rom and i find it ok
[HD2 Android Q&A, Help & Troubleshooting and Genera] stipa22:
to be honest i don't know, i got it last week for low price as used phone whit win mobile on. i did tray bigger partition it didnt help. but i think it might be damaged because last night I turned it off when it was on 20% battery (to save battery) and this morning I couldn't turn it on, battery was dead, so i think it has some hardware malfunction. i will try to find bigger battery (double size in capacity and in size), also don't believe in gold battery , not for that price, thanks for replay
[Nexus 7 Original Development] mateorod:
We have moved support away from this thread and into the main thread at Android General. The info in the second post is accurate as of 12/3/12.

Development on the Auto-Patcher continues, I have just stopped adding Nexus 7 specific features as this device's users didn't express any interest.

If I could close the thread, I would. But if something tickles your fancy, come see us at the above link.
[Nexus 7 Original Development] tonyp:
reserved :p

Nice to see you and pastimes and your work here as well - and I absolutely love the new Nexus 7 additions as i finally got mine as well :)

Btw: Are there any news on decompiling the jars and applying these fixes on an android device, without having to use the PC?

It's not important, I'm just interested.
[Nexus 7 Original Development] Cetin:
I will try this patcher for getting 3g dongle (ZTE K3565-Z) support.

My config is ParanoidAndroid with franco kernel.

What is my first step?

How do I get my whole rom with kernel into my mac os system? Can I take the nandroid (I dont think so, because I cannot flash zip back again)?
[Nexus 7 Original Development] mateorod:
Well, that is interesting, actually. There are a bunch of ways that you could get the update.zip on your tablet, but there isn't support for custom kernels yet. You can patch any rom, but if the patch needs to change the boot.img, flashing a new kernel will remove that part of the patch.

I think I know a way to add it though. I will try to add custom kernel integration to the next update.

But you CAN get the 3gdongle working on your rom, just put it through the patcher and transfer it through adb or email or dropbox.

./auto_patcher paranoidandroid2.2.1.zip 3gdongle

replacing paranoidandroid2.2.1 with the actual name of the zip.

The stock kernel is pretty awesome, bttw. But I think I can add this to the autopatcher. It is needed anyway.

Edit: I must be really tired. You can do this. The kernels are distributed as boot.imgs. Just open up the kernel installer zip, take out the boot.img. Then replace the boot.img in whatever rom you are using.

Then run it through the Auto-Patcher, using any options you like.

You will ONLY need to replace the boot.img of your rom if you are applying the 3gdongle, insecure,secure, or pdroid-aosp-jb modtypes and would like to use a custom kernel that doesn't come bundled with your rom.

I will add some version of this to the autopatcher's next update though, so it is easy to do from the command-line/GUI.
[Nexus 7 Original Development] mateorod:
If you need more info than that, you can ask and I will be more specific, I just reread your post and realized maybe I wasn't thorough enough...

Update Because this seemed so vital to the Nexus 7 community (because we have everyone and their mother with a custom kernel here...) I went and looked through the installers.

It looks most people: faux,_motley, clemsyn et.al. use the AnyKernel updater. Those updaters use some of the same binaries we do to preserve ramdisk edits. They don't want to overwrite mods of this sort any more than we want them to.

A couple devs, franco and some new one from today, Thoravuuk or somethin', just package a boot.img. In those cases you will need to place the custom boot.img (and title it boot.img) in the ROM you would like to patch with the Auto-Patcher.

In all cases, there is existing methods to preserve all support and features with nothing more than winzip or any other archive manager. Drag and drop.

So we will see how we end up handling this in the Auto-Patcher in the future. There are a bunch of methods to distributing kernels which make it tricky, but the more responsible Android devs already are prepared for the fact that you may have modified your ramdisk and want to keep it that way. Using Koush's AnyKernel is a great way to accomplish that.

For franco you will habe to briefly drag and drop for now.
[Nexus 7 Original Development] mateorod:
Just saw this part, tonyp. I hope this means you might have something planned for us...;)
[Nexus 7 Original Development] Cetin:
Hey man, thanks for your big support!

I will try like you said.

As I understand correctly the boot.img keeps untouched by your patch. So I can patch my Rom flash the zip and use any custom kernel by flashing it with fastboot flash boot command?!

NEXUS 7
[Nexus 7 Original Development] Cetin:
I tried patching but there´s is a problem:

How to choose the right file and which one is it?

### applying boot.img patch ###
... applying init.dongle.rc patch ...
... applying init.rc patch ...
The text leading up to this was:
--------------------------
|diff -Npru ramdisk/init.rc 3g-ramdisk/init.rc
|--- ramdisk/init.rc	2012-08-27 00:25:58.749201521 -0500
|+++ 3g-ramdisk/init.rc	2012-08-27 00:24:51.012865613 -0500
--------------------------
File to patch: 3g-ramdisk
3g-ramdisk: No such file or directory
Skip this patch? [y] n
File to patch: 3g-ramdisk/init.rc
3g-ramdisk/init.rc: No such file or directory
Skip this patch? [y] n
File to patch: init.dongle.rc
1 out of 1 hunk FAILED -- saving rejects to file init.dongle.rc.rej
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed patching init.rc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Nexus 7 Original Development] mateorod:
You're using a Mac correct? That is probably the least tested upon platform, although it should be fine. In your autopatcher folder, there is a logfile. Would you attach it please? I can know a bunch more with that file.

Thanks for reporting back.!

Oh yeah, once 2.0 gets stable (and I solve this new pdroid problem, that is soooo irritating. I predicted this was coming waay back in pastime's port thread, when we first ran into trouble with the build patches) that is the next thing I am going to work on.

I think pastime is going to lead the charge getting a linux GUI and I am going to work on getting the Android front-end. That is going to be wild, most people have just accepted it can't be done. ;)
[Nexus 7 Original Development] rufh_s:
noob here! i just want to apply 3g dongle patch on my nexus 7 stock rom (rooted ofcourse) help please

thanks
[Nexus 7 Original Development] mateorod:
Well, we don;t support system.img modding here yet, mostly because it is so device specific. This tool works on all roms and devices, so adding something for each device would be a real pain. I am going to keep looking at perhaps adding the Nexus 7 system.img, though.

What you can do is look for a deodexed stock rom in the rom page. There are several available, I believe scrosler has one, and maybe a couple more. These are basically stock roms, but with deodexing and unpacking of the system.img already done.

The main advantage to using custom roms is their customizability, (if that is even a word...). All the other stuff is a result of that.

If you want the 3gdongle support, you will probably have to try one of the flashable stock roms.
[Nexus 7 Original Development] demandarin:
Very useful mod. Thanks for bringing this here.

Quick question to clear up something:

The tablet mode or 3g dongle, can I just flash them through twrp and be done? Or does the untethered way need your manual method you described above for untethered installation?

I'm running stock rom with trinity kernel(anykernel i believe) BTW. I alternate between motleys and trinity. Sometimes Faux one also.

Edit: I see the above post basically answers my question. Won't work on stock rom. Needs a deodexed stock base rom. Will wait till you hopefully add img. Support. My nexus 7 runs great on stock rom with custom kernel. Waiting for custom roms to mature more before I go flashing.
[Nexus 7 Original Development] rufh_s:
Well I have downloaded the rom deodex by scrosler,but I am getting the error,have attached log cat.text

Thanks
[Nexus 7 Original Development] mateorod:
I should make a note of this in the top post, the only way to combine the 3gdongle and the Voice hack is to substitute the list of all the mods separately with

Nexus7

The voice and 3gdongle have separate edits to the bools.xml that are right next to each other. So applying one makes it so the next patch cannot find its context.

I made the Nexus7 patches by hand, so you get all three mods that way. The good news is that going by your log, that's the only problem. So you are basically done!

Edit: And as for the above stock system.img issue, well I may try and add system.img support. But it is a huge pain in the butt, requiring all sorts of manufacturer-specific stuff. I also like stock, though, and alternate between that and straight CM10. But I deodexed the stock.img as well, strictly to make use of all of the cool development that goes down around here.

You can manually deodex, then redex and all that, but I didn't really see a performance drop personally. I am pretty sure all the kernels you listed use koush's anykernel method, which is compatible with the Auto-Patcher and its methods.
[Nexus 7 Original Development] rufh_s:
Alright I am off to sleep now... will just patch 3g dongles and see...

Well I got to know this is not just n7 specific in your earlier post itself

This is for all devices that's really great,also I just got my n7 so wanted to be stock as much I can,yep I also prefer it..

Let's see, I ll keep you posted :)

Thanks again for the great work, will also test it on my phone if it works (droid 3) it would give me lot choices to use my data plan

and yeah I also see otg coming soon,all the best for the concept its perfect for noobs like me
[Nexus 7 Original Development] rufh_s:
apparantly patching only "3gdongles" patch didn't worked either attached log, may be i ll try this with some rom or try to find some other "stock" similar, can you suggest some? :)

thanks
[Nexus 7 Original Development] mateorod:
Okay, this isn't the fault of your rom. Your log shows that it is failing rebuilding your ramdisk. A user reported a corrupted .exe binary, but when I tried to investigate further I haven't heard back.

But since everything else appears to be working for you that may indeed be the case. Give me a minute to look and then I will put out a hotfix.

This will only affect WIndows users who are patching 3gdongle, insecire/secure and aosp-pdroid. I happen to know for a fact that the program runs fine on Cygwin, so I will checkout some new binaries and you should be okay.

Update: We have fixed the final issues with Cygwin and those selct mods. Thanks for your report, 1000+ downloads of 2.0 in the 24 hours or so and you were the one that aimed me towards the fix.

Thanks! Should be up later tonight, after I put my son to bed.
[Nexus 7 Original Development] mateorod:
Okay, update is ftp'ing its way up to techerrata as we speak. Maybe 20 mins or so.

I went and got my hands on a Cygwin terminal, and as far a I can tell, everything works as it should. We were having a hell of a time with the binaries, they just seemed to check out fine right up until we uploaded the package and then they crapped out on us.

But the new update has all working pieces. If you were using cygwin and had an issue, give it another shot. Writing a program to run on all three major platforms has been a major learning experience for me, let me tell you.

I am probably going to add the 720p video shooting next update, so if there is anything else you know and want, let me know. It doesn't have to be limited to this forum, there isn't much we can't tackle at this point.

Oh, and we strengthened the voice and 3gdongle patches, now you should be able to apply them both anyway you want, including the Nexus7 command.
[Nexus 7 Original Development] mateorod:
Auto-Patcher 2.0.2 with a bugfix that prevented a clean flash of the 3gdongle mod has been uploaded to techerrata. Will be available for download in maybe 20 mins.

If you are a Windows user of kobik77's GUI, then you can probably use the auto-update feature right now...
[Nexus 7 Original Development] Cetin:
Well,

this is my failed patching log for this rom "pa_grouper-2.11-09SEP2012-192509".

Maybe I should take another rom. For me I dont care much about rom. They are all fine.

It would be great if I can use the dongle like I use wifi.

What do you think?

Edit:

Now I´m trying to use the win auto_patcher tool with parallels.

Will post the result.
[Nexus 7 Original Development] mateorod:
I know this is easy to miss, I will update the first post to make it more clear.

We have updated the auto-patcher at least once since the one your are working with. As our intial 2.0 release there were little bugs here and there we didn't catch. At least one of them is related to the 3gdongle.

Go to our download page and get 2.0.2

You can use paranoidAndroid, for sure. And if you want franco kernel, just replace the boot.img in the rom, before you run the auto-patcher.

If this time, with 2.0.2 doesn't work for you,

I will upload an update.zip for you

. I have a policy, anyone who tries three times and submits logs can get personalized help.

So run the newest script, I know it works in windows and linux, and if it doesn't work I will get you. It should work for OSX as well, but i cannot personally test that one.

One last thing; we tried to squash this bug, but it still rears its head periodically- try and make sure no spaces in your directory names. It shouldn't matter, but to be safe try it.

Thanks for your patience, it will be rewarded.
[Nexus 7 Original Development] Cetin:
Ok, thanks a lot!

Windows 8 loaded in virtual environment Parallels doesn't work for me!

Then I tried your updated version for OSx.

Same file to choose after it get his patching work done,

again look here:

... applying init.dongle.rc patch ...
... applying init.rc patch ...
The text leading up to this was:
--------------------------
|diff -Npru ramdisk/init.rc 3g-ramdisk/init.rc
|--- ramdisk/init.rc	2012-08-27 00:25:58.749201521 -0500
|+++ 3g-ramdisk/init.rc	2012-08-27 00:24:51.012865613 -0500
--------------------------
File to patch: 3g-ramdisk/init.rc
3g-ramdisk/init.rc: No such file or directory
Skip this patch? [y]
1 out of 1 hunk ignored
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed patching init.rc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /Users/cetin/android/AutoPatcher/log20120913014531 for any debugging

! patching failed.
! it may be possible to patch /Users/cetin/android/AutoPatcher/pa_grouper-2.11-09SEP2012-192509.zip using other patch version

smali auto patcher v2.0.2
pdroid 1.32 patches 2012.09.0.7
v6supercharger patches 2012.08.17.

usage: ./auto_patcher ROM.ZIP MODS [ROMTYPE] [PATCHDATE]

MODS e.g: pdroid,v6supercharger or pdroid or v6supercharger
optional [ROMTYPE] can be cm9, aokp-jb, cm10, etc.
optional [PATCHDATE] can be specified to use older patch versions.
try "./auto_patcher ROM.ZIP -h" to see what is available

It´s asking me to choose one of these files but I cannot give a correct command for this.

--- ramdisk/init.rc
+++ 3g-ramdisk/init.rc

What do I need to type in console?
[Nexus 7 Original Development] mateorod:
Well, the OSX is having trouble with the PATH. Which has been a hassle to manage for the non-Linux environments. We have it done for Cygwin, but there may still be a quirk in the OSX operation. I saw that you have that space in your path, we probably need to double-quote a variable somewhere. Which, they all should be at this point.

That's neither here nor there for you, I admire your patience, Thanks for sticking with it. I made this update,zip in windows using Cygwin. That is the best way for a Windows machine.

I also, as an added bonus, inserted franco's kernel, so your set-up will be intact. Flash this over a PA rom. If you have any trouble with the 3gdongle, make sure you consult the trevd's thread; it is his mod and he knows more about it than I do.

Update.zip w/3gdongle for 9-09 paranoidAndroid. Made with franco kernel using the Auto-Patcher
[Nexus 7 Original Development] rufh_s:
well i was able to successfully patch with the latest version both 3gdongle and voice together :) thanks a lot

haven't updated yet on device,actually i was able to do 3gdongles manually from its thread,having some issues setting up cdma dongle will try and test this "update.zip" as well

thanks again
[Nexus 7 Original Development] mateorod:
Auto-Patcher 2.1.0 released on our download page. Users of the Windows GUI should already be able to pull the update from github automatically.

Significant restructuring of the program and working on windows, osx and linux.

Some hoop jumping to fix PDroid patching

Thanks to tonyp for the pdroid fix technique.
[Nexus 7 Original Development] Nark.GA60:
Hi getting this error trying to patch the latest CM10 nightly with the tabletUI.

./auto_patcher 'cm-10-20120926-NIGHTLY-grouper.zip' tabletUI cm10

The Auto-Patcher v2.1.1

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
inflated: system/build.prop
### probe rom type ###
... result of ROM check: version= 4.1.1 rom= cm10 ...
... Using cm10 patches ...
### unzip rom ###
inflated: system/framework/android.policy.jar
inflated: system/framework/framework-res.apk
inflated: system/framework/services.jar
### create updater script ###
inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...
### create restore.zip ###
### decompile system files ###
... decompile android.policy.jar ...
... decompile services.jar ...
... decompile framework-res.apk ...
... installing framework files ...
I: Framework installed to: /home/nark/apktool/framework/1.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### jar patch tabletUI/cm10/latest ###
... apply android.policy.patch ...
... apply services.patch ...
### apk patch tabletUI/cm10/latest ###
... apply framework-res.apk.patch ...
### rebuild jar ###
... rebuild android.policy.jar ...
... rebuild services.jar ...
### rebuild apk ###
... rebuild framework-res.apk ...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed compiling system/framework/framework-res.apk !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /home/nark/Work/Android/Auto_Patcher/log20120927224715 for any debugging

! patching failed.
! it may be possible to patch /home/nark/Dropbox/Public/CM10-Nexus-7/cm-10-20120926-NIGHTLY-grouper+franco.zip using other patch version

The Auto-Patcher v2.1.1
pdroid 1.32 patches 2012.09.13.
v6supercharger patches 2012.08.17.

usage: ./auto_patcher ROM.ZIP MODS [ROMTYPE] [PATCHDATE]

MODS can be pdroid,v6supercharger or pdroid or v6supercharger
optional [ROMTYPE] can be cm9, aokp, etc.
optional [PATCHDATE] can be specified to use older patch versions.
try "./auto_patcher ROM.ZIP -h" to see what is available