yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Tungstwenty:
I've checked Phone.apk on 4.0.3 (XWLP3) and the recording option change seem to be pretty straightforward to apply, will try as soon as I get the chance.

However, 1 question - is /system/lib/libaudiopolicy.so needed for anything? This ROM does not include it so I'm not sure whether a new file should be placed there, or if a differently named file needs to be somehow patched (there are 1 or 2 other *audio*policy*.so files around).

Can anyone let me know what the patch consists of, and how can I get the sources to rebuild with the needed change? Patching the ARM instructions can also be an option if we're talking about a simple conditional jump or similar.
[Galaxy S II Themes and Apps] rlorange:
Actually yes! I found these libs for ICS the other day. I'll find em and post...
[Galaxy S II Themes and Apps] rlorange:
here hope this helps. I'm very sure these are ICS Sammy libs and some app on the market can use them already.

http://db.tt/TcuEPmZg
[Galaxy S II Themes and Apps] toinktoink:
how to stretch dialer when using a lower dpi setting?
[Galaxy S II Themes and Apps] QckGl:
Does anyone know if there is a phone apk. solution for the increasing ringtone on the XWLP3 modem?? I'm using a i777
[Galaxy S II Themes and Apps] Tungstwenty:
The 2nd post in the thread should work for you, this line is still there in XWLP3:

If this is not enough, there's a 2nd line in the same file that also changes the volume which is:

invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V

Try both options (only 1st line, and both of them together) and see if that does the trick.

---------- Post added at 07:36 PM ---------- Previous post was at 07:11 PM ----------

I found a much more direct way of activating call recording on XWLP3, only a single line needs changing.

Edit the PhoneFeature.smali file and search for ""voice_call_recording", you should find this single occurrence:

const-string v6, "voice_call_recording"

Change the line after that so that instead of

invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

it becomes

invoke-static {[COLOR="Red"]v5[/COLOR]}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

This essentially turns the feature "on" instead of "off", and everything else in the user interface will adapt to make it as such. In my case, the "Add to call" button is replaced by the "Record" one, and the former is moved to the menu key popup.

Now, this still

requires replacing the 2 libraries

that rlorange posted a couple of posts back. Without them the recording fails, if you replace them it works fine.

However, I'm not totally comfortable using these libs which I'm guessing were obtained from some other geography. I've compared the full ARM disassembly of the before / after, and despite the relevant file size differences in one of them and the almost match in the other, the code is pretty much the same except for a couple of places. Curiously, the files with the similar size do contain differences including "FM audio device" handling, an additional "HW ver" entry point not present in the patched ones, etc. so I'm not sure everything will work fine with the patched version (recording does, but something else could break).

Checking the changed parts I find no straightforward place to patch in order to make this work with "our" original version of the lib with just an instruction patched or so. The changes don't look related to recording from the CALL device (but at least one of them must be) and they must be patched one at the time to see which makes it work. I'm not sure I'll have the patience to do this in the next few days so for now the only option is to use the libs provided by rlorange:

Cheers!
[Galaxy S II Themes and Apps] Mirko ddd:
i was about to post the line who needs to be changed -.-

anyway u deserve a thank ;)

---------- Post added at 02:00 AM ---------- Previous post was at 01:16 AM ----------

Hello rlorange, i downloaded your libs someday ago, just forgot to thank so now i did.

Well, thank you, this feature so will be available in our next rom ;)
[Galaxy S II Themes and Apps] silverstorm:
Thank you LeoMar75,Tungstwenty and rlorange.

I was loving this on 2.3.6, and was reluctant to move to ICS because of potentially losing Call Rec functionality.

I love xda!
[Galaxy S II Themes and Apps] Mirko ddd:
well, seems to be recording in LP4.. but when i stop recording still have "fail to save"

Mh, maybe something wrong with voice recording smali?

i already pushed the libs provided by rlorange.

mh..
[Galaxy S II Themes and Apps] Tungstwenty:
I haven't migrated to LP4 yet. Can you post the relevant part from the logcat? (pastebin.com link)

EDIT: Sorry, my mistake. The line I mentioned before (in PhoneFeature.smali) is not enough, I did add another fix and I didn't remember it. Here it is:

Open "PhoneVoiceRecorder$RecorderThread.smali" and search for "invoke-virtual {v3}, Landroid/media/MediaRecorder;->prepare()V". After that line, add the ->start() invocation which was absent (which makes the stop fail since it never started in the first place).

invoke-virtual {v3}, Landroid/media/MediaRecorder;->prepare()V
[COLOR="Blue"]### Add this next line
[B]invoke-virtual {v3}, Landroid/media/MediaRecorder;->start()V[/B][/COLOR]

This is still for LP3 but I'm guessing the problem in LP4 is the same, I noticed that symptom myself before I found that start() was missing.

About the libs, after a lot of head banging I did find some differences which are probably the relevant stuff for recording to work. It now does start, obtains the input device handle, but during recording and till the stop (which hangs) I see:

W/AudioRecord( 1832): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000
...
W/AudioRecord( 1832): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000
...
E/PhoneVoiceRecorder( 2359): stopRecord
E/PhoneVoiceRecorder( 2359): stopRecording
W/AudioRecord( 1832): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000

I guess I'm missing some final detail to make this work, but I no longer have big expectations of finding it.

I'm hoping that the provided libs are perhaps not originals that come in other roms, but patches someone built over those versions, and if someone could provide the original binaries corresponding to those patches, then I'd be able to port the fix to the libs that are shipped in the latest roms. It's a long shot, but ... anyone? :)
[Galaxy S II Themes and Apps] Mirko ddd:
welldone, now it works ;)
[Galaxy S II Themes and Apps] maxwarp79:
I tried to decompile Phone.apk from stock ROM version XWLP7 with ApkTool (using correct framework-res.apk) but when I do ./apktool d Phone.apk I get this:

I: Baksmaling...

Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00

at org.jf.dexlib.DexFile.<init>(DexFile.java:377)

at org.jf.dexlib.DexFile.<init>(DexFile.java:274)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)

at brut.apktool.Main.cmdDecode(Main.java:128)

at brut.apktool.Main.main(Main.java:65)

How can I solve the problem? Alternatives to decompile Phone.apk?
[Galaxy S II Themes and Apps] shoman94:
You need a modified apk tool for ics or just use baksmali/smali 1.3.2
[Galaxy S II Themes and Apps] maxwarp79:
I'm going to try a modified ApkTool, thank you! ;) NOT WORKED! :(

EDIT: the modified ApkTool doesn't worked for me, so I tried to use baksmali/smali 1.3.2 in this way:

1. I extracted classes.dex file from Phone.apk with WinRAR;

2. deleted classes.dex file from Phone.apk with WinRAR;

3. decompiled classes.dex with java -jar baksmali.jar classes.dex;

4. edited Ringer$1.smali how LeoMar75 says;

5. recompiled classes.dex with java -jar smali.jar .\out;

6. inserted new classes.dex in Phone.apk with WinRAR;

7. signed Phone.apk with dsixda's Android Kitchen.

Now when I try to open Phone app, I get a FC, where is mistake?
[Galaxy S II Themes and Apps] silverstorm:
For step 1, I pulled the Phone.apk to my laptop, then made a copy of the apk (so ended up with 2 Phone.apk files). I then extracted the classes.dex from copy 1 of the Phone.apk file and deleted the whole apk file.

I then did the same as you from steps 3 to 5.

For step 6, I opened copy 2 of the Phone.apk in WinRAR and dragged and dropped my recompiled classes.dex straight into the archive, replacing the existing classes.dex already in there (Note: I did not delete the original classes.dex within the archive, I just replaced it).

I then put my Galaxy S2 into Flight Mode and pushed the Phone.apk to my handset, rebooted and came out of Flight Mode. I did not sign it again. It's working great.

As far as I'm aware you can sign normal apps with pk8 / pem keys. System apps are different. Best way is not to break the apk signature in the first place.

Whenever you extract or delete from an original apk you break the signature. When you moved your modded classes.dex back into the same apk you extracted/deleted earlier, it resulted in a corrupted apk. I would suggest you use the copies method as described above so that you move your classes.dex back into a fresh unbroken copy.
[Galaxy S II Themes and Apps] :
Noob Proof method to enable call recording - XWLP8

Thanks guys, it was great following your posts:)

Use baksmali/smali 1.3.2

- extract classes.dex file from Phone.apk with WinRAR;

- decompile classes.dex with java -jar baksmali.jar classes.dex;

- Open "PhoneVoiceRecorder$RecorderThread.smali" and search for "invoke-virtual {v3}, Landroid/media/MediaRecorder;->prepare()V". After that line, add the ->start() invocation which was absent (which makes the stop fail since it never started in the first place).

Code:

invoke-virtual {v3}, Landroid/media/MediaRecorder;->prepare()V

### Add this next line

invoke-virtual {v3}, Landroid/media/MediaRecorder;->start()V

- Edit the PhoneFeature.smali file and search for ""voice_call_recording", you should find this single occurrence:

Code:

const-string v6, "voice_call_recording"

Change the line after that so that instead of

Code:

invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

it becomes

Code:

invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

- recompile classes.dex with java -jar smali.jar .\out

- sign Phone.apk with dsixda's Android Kitchen;

- open an unedited Phone.apk in WinRAR and drag and drop recompiled classes.dex straight into the archive, replacing the existing classes.dex already in there;

- Replace phone.apk in system/app and the two .so files in system/lib/hw (preferably while in airplane mode), set permissions, reboot

Many thanks to @Tungstwenty, @rlorange, @maxwarp79, @silverstorm, @LeoMar75 :)
[Galaxy S II Themes and Apps] Tungstwenty:
Even noober-proof :)

Just though I'd share with you my current take on this.

Instead of decompiling, patching, recompiling, etc. the Phone.apk of each specific ROM, I've used the awesome Xposed Framework to implement a runtime patch that should work on many or all the ICS samsung builds, without requiring the compilation of patches whenever new ROMs are installed.

Just have a look here, it's self-explanatory.
[Galaxy S II Themes and Apps] eybee1970:
could someone kindly reupload the libs please? Thx in advance
[Galaxy S II Themes and Apps] Tungstwenty:
You can find them attached to this post.
[HTC Rezound] antdawg702:
Just wondering if the are any roms released that include any kind of window transition animations. I don't care if its a sense rom, or a clean Rom . I've tried a few, and all I see Is the fade in/out HTC transitions. Is there a software limitation preventing devs from adding this?
[HTC Rezound] renzo.olivares:
its pretty easy i just think none of the devs want to include it
[HTC Rezound] antdawg702:
Possible to add them to a rom by flashing? Or would I have to create a rom with transition animations included , and is it not possible yet with ice on the rezound?
[HTC Rezound] superchilpil:
Try animod from the marlet

Hit thanks or ill hit you :)
[HTC Rezound] mentallo:
Ineffabilis let's you disable them.

I have used others that let you disable them also. I think RezRom also.

Sent from HTC Rezound with Tapatalk
[HTC Rezound] superchilpil:
They want to enable non stock transitions not disable them

Hit thanks or ill hit you :)
[HTC Rezound] phio:
Nova launcher is pretty sweet.
[HTC Rezound] antdawg702:
Animoid works?
[HTC Rezound] antdawg702:
I would pay somebody to work screen transitions into any of the currently released ics roms no lie, PayPal
[Nexus S 4G Android Development] r_data:
[KERNEL] Air Kernel [JBN - Weekly : #311 | Stable - r4] [3.0.63+] [ 4.2.X & 4.1.X ]

I made this kernel and had released local community in Korea.

Now, I decided to release here.

If you use my kernel and get any problems, please give me feedback!

For Nexus S 3G/4G

Features :

- Based on Linux Kernel 3.0.63 (JBN 4.2.X & 4.1.X)

- BLN

- BLD

- Touch Wake

- Custom Voltage

- Voodoo Colors, Voodoo Sound V10 ☞ supercurio http://twitter.com/supercurio ☞ Voodoo Control plus on Android market

- Governor :

Interactive

, Conservative (Tweaked), Ondemand (Tweaked), Performance, Lazy(Tweaked), SmartassV2(Tweaked), LulzactiveV2, Wheatley, Savagedzen, OndemandX

- Scheduler :

Simple I/O

, ROW, BFQ v4, V(R), Deadline, Noop, CFQ

- Overclocking to 1.4Ghz

- 65 Fps

- Blue Colors

- High BIGMEM

- init.d support

- FAST AC Charging (by chad0989 (Chad Froebel)) -> Fast charge toggle widget:

https://play.google.com/store/apps/details?id=com.incredicontrol.fastchargewidget IncrediControl:

https://play.google.com/store/apps/details?id=com.incredicontrol

- Great Battery Life!

- CIFS, TUN support (as modules)

- SLUB memory allocator

- Optimized CRC32 algorithm

- ARM RWSEM algorithm

- More TWEAKS ...

- ...

Thanks to Ezekeel, supercurio, morfic, byeonggonlee, mathkid95, franciscofranco, stevegaron, faux123, KalimochoAz, sztupy, reddv1!!!

JellyBean Weekly Version :

#311 (02-12-2013 KST / GMT +9:00)

http://air.sloud.kr/2013/02/air-kernel-weekly-311-for-ns-42x-41x-jb.html

JellyBean Stable Version :

Stable r4 (12-17-2012 KST / GMT +9:00)

http://air.sloud.kr/2012/12/air-kernel-stable-r4-for-ns-42x-41x-jb.html

ICS Stable Version :

v4.4 (06-29-2012 KST / GMT +9:00)

http://air.sloud.kr/2012/06/ics-air-kernel-v44-stable-version-for.html

※ Read Me !!

- Download fails when you're using STOCK browser !!

: System Settings -> Apps -> ALL -> Download Manager -> Clear Data (Thanks to mobile_pc !!!)

- If BLN Led Timeout doesn't work, check the NSTools Service. (v1.13)​

Kernel Source (github) : https://github.com/edoko/AIR-Kernel_ICS

Kernel Settings, use arifhn's NSTools (thanks to arifhn!)

USB OTG, use Usb Host Controller (thanks to sztupy!)
[Nexus S 4G Android Development] r_data:
v3.3 Schedule

I will release it soon :)
[Nexus S 4G Android Development] nexusphone_user:
Finally, 4G! Thanks :)
[Nexus S 4G Android Development] r_data:
It's my pleasure :)
[Nexus S 4G Android Development] eaguil16:
I'll check this out
[Nexus S 4G Android Development] joebarkho:
This is a solid kernel, thanks for posting up on this forum.
[Nexus S 4G Android Development] KeeperOfThePizza:
is this compatible with AOKP Milestone 3?
[Nexus S 4G Android Development] joebarkho:
dude, its a nexus s 4g kernel..... Rom doesnt matter.. I used this when he had it on the nexus s section only.
[Nexus S 4G Android Development] KeeperOfThePizza:
oh damn, alright thanks!
[Nexus S 4G Android Development] enik_fox:
Glad to see you finally got a thread over here!
[Nexus S 4G Android Development] KeeperOfThePizza:
What governor do you recommend we use for this Kernel?

Right now I'm gonna try lazy, min 100 max800 and report back..
[Nexus S 4G Android Development] joebarkho:
at least a 200 min for no issues.
[Nexus S 4G Android Development] Bruce lee roy:
Ooh my holy Toledo! Data you have answered the request. Thank you sharing your treasure with the 4g community.

You without me is like Harold Melvin without the Blue Notes
[Nexus S 4G Android Development] neo_x22000:
so far this is the only kernal that doesnt give me random reboots on apex ics...

sent from Ice Cream Infused NS4g
[Nexus S 4G Android Development] KeeperOfThePizza:
So far so good! Looks like I'm on pace for 12-13hr's

View attachment 919863

100min/800max, lazy governor.
[Nexus S 4G Android Development] FL0OD:
If your a voodoo color user that likes to set your colors below 0 don't let the added voodoo color fool you, its borked so you cant set it below that setting which to me is pointless but just so you know.

°•neXus S4G•°
[Nexus S 4G Android Development] JohnCorleone:
I am far from a coding expert. Very far but isn't there some Matrix stuff in here? Maybe a mention in the OP for MathKid as well unless I am misinterpreting what I see.
[Nexus S 4G Android Development] Bruce lee roy:
Why?... Why not just send the guy a pm? Don't you think that might be a little more appropriate?

You without me is like Harold Melvin without the Blue Notes
[Nexus S 4G Android Development] JohnCorleone:
Ok I am not here to start trouble. I thought it was a simple oversight. And maybe PMs have already been sent and not responded to
[Nexus S 4G Android Development] joebarkho:
it was after a clean install though. Would NStools resetting mean anything then?
[Nexus S 4G Android Development] Rimmir:
NSTools resetting just means that the phone knows you installed a new kernel and it happens every time I install a kernel too...

Sent from my Nexus S 4G
[Nexus S 4G Android Development] the1dynasty:
Just downloaded the voodoo colors version so I can adjust my colors to he more on the blue side but I can't seem to find the voodoo control app now... anyone know where I can get it?
[Nexus S 4G Android Development] ljordan2:
It has a new name, voodoo color.
[Nexus S 4G Android Development] Rimmir:
Sorry, I'd like to make a correction. I have my Google Music set to play only stuff from the memory card only, but the phone freezing in the middle of a song has still happened to me. However, I had it (Google Music) on for about 4-5 hours and it didn't freeze. I think it's just a random issue. I was using Air Kernel 3.5.
[Nexus S 4G Android Development] joebarkho:
I think it has to do with deep idle if anything
[Nexus S 4G Android Development] Rimmir:
Maybe, although I did have deep idle on when I was using Music yesterday. Perhaps it happens when a kernel is adapting to a phone or something?

Sent from my Nexus S 4G
[Nexus S 4G Android Development] joebarkho:
im gonna try it without deepidle when I get a chance.
[Nexus S 4G Android Development] the1dynasty:
I streamed a bit of music today via pandora over wifi... probably just over 1hr... no issues with deep idle off...
[Nexus S 4G Android Development] joebarkho:
1hr21m pandora, deepidle off, all good
[Nexus S 4G Android Development] wild1z:
I am not a deep idle fan. Too much to mess with. (change all volts, cut your arm off... ect.) My phone dislikes it I guess.
[Nexus S 4G Android Development] the1dynasty:
i was using it all the time before... but i guess my phone doesn't like it as much either... so its off for me now!
[Nexus S 4G Android Development] wild1z:
Yeah I think it works sometimes with various configs, I just don't have the time to go under volt this and overclock that. I wish that was the crux of my daily worries but it's not. ;)
[Nexus S 4G Android Development] joebarkho:
yeah, Ive been using a screen off profile with setcpu though. 200/400 wheatly.
[Nexus S 4G Android Development] bearsblack:
Can't wait to see an update! Keep up the great work ;D

I <3 Ice Cream Kangwichez!
[Nexus S 4G Android Development] Greenlava7:
So I'm trying to use the air kernal with voodoo colors and I made sure it was the right one but voodoo colors doesnt have any effect.
[Nexus S 4G Android Development] Greenlava7:
Also I'm on milestone 3 which version should I use.
[Nexus S 4G Android Development] skizzled:
You'll need to use 3.5 if you want to effectively make use of Voodoo Sound. r_data "fixed" 3.6 by not allowing negative values for Gamma.

This is the exact reason I'm still using 3.5 as opposed to 3.6.
[Nexus S 4G Android Development] Greenlava7:
Yea its strange tho because I tryed using 3.1 and it gave me the same problems. Can't find 3.5 download links. Could you possibly help me out sir.
[Nexus S 4G Android Development] joeyddr:
Same here.... the evil green flash for 1 second shouldn't be a reason to break voodoo..
[Nexus S 4G Android Development] Greenlava7:
The green flash goes away if you turn off auto brightness and have your brightness above 30percent. Does anyone have a link to 3.5 or can someone upload it?
[Nexus S 4G Android Development] Greenlava7:
Anyone?
[Nexus S 4G Android Development] ijrod21i:
Does anyone know the difference in fps between the voodoo and non voodoo version? Or why voodoo and 65fps are unable to be implemented together?
[Nexus S 4G Android Development] skizzled:
For anyone else looking for 3.5 Voodoo Colors - No Animation, I uploaded it in the following thread: http://xdaforums.com/showpost.php?p=23976130&postcount=1577
[Nexus S 4G Android Development] joebarkho:
mannn.. I cant seem to stop getting reboots while streaming music
[Nexus S 4G Android Development] r_data:
Released v3.7 !!

To use LiveOC, Removed or Stopped NSTOOLS and flashing this script. This script contains Kernel Configs(Selective LiveOC, Voltage, CPUfreq governor, Clock, Scheduler, Deep Idle and Backlights MODs). <- http://airkernel.blogspot.com
[Nexus S 4G Android Development] r_data:
LiveOC 110% Script.

(Original Script is 120%.)
[Nexus S 4G Android Development] joeyddr:
Is voodoo still broke in this?
[Nexus S 4G Android Development] neo_x22000:
do i need to run this script?

sent from Ice Cream Infused NS4g
[Nexus S 4G Android Development] FAFS:
Does anyone know nexus s stock kernel voltage settings?
[Nexus S 4G Android Development] FAFS:
Disregard that last post
[Nexus S 4G Android Development] joeyddr:
Anyone able to adjust gamma below 0?
[Nexus S 4G Android Development] noizy1234:
I tried to edit the colors in voodoo but it wasn't working. Anyone found a fix for this?.. I flashed the latest one that's supposed to have the voodoo colors
[Nexus S 4G Android Development] bearsblack:
Nvm. Flashing naowz! Thanks so much :D

.kang
[Nexus S 4G Android Development] bearsblack:
Config script is realllly unstable for me.. :/

.kang
[Nexus S 4G Android Development] bearsblack:
anyone else also noticing liveoc only affecting 400 and 800? I liked with v3.6 with liveoc at 110% and having 1320 instead of 1200. Now I'm forced to run with 1400 max lol

.kang
[Nexus S 4G Android Development] Greenlava7:
Use 3.5 its linked a couple pages back
[Nexus S 4G Android Development] joeyddr:
It won't work because the "green flicker fix" is applied
[Nexus S 4G Android Development] grifforama:
Has anyone else's gallery duplicated all photos after flashing ?
[Nexus S 4G Android Development] bearsblack:
no sir.

.kang
[Nexus S 4G Android Development] stellar:
I'm confused, so if we don't want to use NSTOOLS we use the script you provided? But if we do we just flash the kernel like any other kernel without touching the script? :o
[Nexus S 4G Android Development] brenix:
Any chance you will include the fast charge patch
[Nexus S 4G Android Development] Greenlava7:
3.5 is the best by far. It works with negative gamma values in voodoo colors and I've got a day if battery life with 2.5 hours of screen time. I'm using wheatley gov. On demand. Deep idle on. Min 200 Max 1000.
[Nexus S 4G Android Development] myepicyear:
How have been managing to run both "Wheatly" AND "On-demand" simultaneously? That's one mod I've never heard of.. :p
[Nexus S 4G Android Development] bearsblack:
Lol truth. 3.7 running smooth as glass since release. And liveoc @ 110% is much more stable now. Thanks for this awesome kernel. Can't wait for 3.8 ;D

.kang
[Nexus S 4G Android Development] suffer1989:
Does anybody else have their phone hang up, and heat up and eat up battery life on the air kernel 3.7 ?

Im using using the Nuhetri 2.3.0 rom.

http://xdaforums.com/showthread.php?t=1416451