[SOLVED :D] Trying to port CRT OFF effect... - Galaxy S Advance I9070 General

OLD:
Hey guys! I'm trying to port CRT effect with the method pointed by Mirko ddd: http://forum.xda-developers.com/showthread.php?t=2075043
It's not working by default and we have exactly the same smali file, I thought that our libsurfaceflinger.so was not capable or something like that but it really is, I tried his method but removed the condition that checks if the object "p2" is equal as zero:
instead of:
Code:
#getter for: Lcom/android/server/PowerManagerService;->mScreenBrightnessHandler:Landroid/os/Handler;
invoke-static {v7}, Lcom/android/server/PowerManagerService;->access$6900(Lcom/android/server/PowerManagerService;)Landroid/os/Handler;
move-result-object v7
[COLOR="Red"] if-eqz p2, :cond_2
const/16 v9, 0xb
const/4 v10, 0x0
const v2, 0x10
invoke-virtual {v7, v9, v2, v10}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object v9
invoke-virtual {v9}, Landroid/os/Message;->sendToTarget()V
:cond_2[/COLOR]
const/16 v9, 0xa
invoke-virtual {v7, v9, p1, v3}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object v2
.line 3068
.local v2, msg:Landroid/os/Message;
I used this:
Code:
#getter for: Lcom/android/server/PowerManagerService;->mScreenBrightnessHandler:Landroid/os/Handler;
invoke-static {v7}, Lcom/android/server/PowerManagerService;->access$6900(Lcom/android/server/PowerManagerService;)Landroid/os/Handler;
move-result-object v7
[COLOR="Red"] const/16 v9, 0xb
const/4 v10, 0x0
const v2, 0x10
invoke-virtual {v7, v9, v2, v10}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object v9
invoke-virtual {v9}, Landroid/os/Message;->sendToTarget()V[/COLOR]
const/16 v9, 0xa
invoke-virtual {v7, v9, p1, v3}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object v2
.line 3068
.local v2, msg:Landroid/os/Message;
the result: I can see the CRT off effect on my screen but when the screen turns on only and not when it turns off, I will still looking for any fix.
If someone here is interested on helping here is the decompiled java source of PowerManagerService class (and Subclass ScreenBrightnessAnimator inside): http://pastebin.com/TyALnNrQ
EDIT: It's done, thanks cocafe by adding fbearlysuspend delay to his kernel, it will only work on CoCore 5.1+, download attached.

Re: Trying to port CRT OFF effect...
Did you add ANIMATE_POWER_OFF to the static fields?
Btw the framework boolean method doesn't work when turned to false?
I haven't tried it yet as I am too busy.

Re: Trying to port CRT OFF effect...
varun.chitre15 said:
Did you add ANIMATE_POWER_OFF to the static fields?
Btw the framework boolean method doesn't work when turned to false?
I haven't tried it yet as I am too busy.
Click to expand...
Click to collapse
That static field is already there (0xb) and it works, and the boolean method in framework is already false (already tried switching it with no success), it is common on most jb firmwares like i9300 or i9100
Sent from my GT-I9070 using xda app-developers app

I enabled the CRT-off animation 5 mins ago according this tutorial (i'm using 2.3.6):
http://androidforums.com/admire-all...method-see-below-works-stock-monster-4-a.html
It's working, but for some reason i didn't like the effect as much as i did on my old phone (it was a Galaxy Ace). When the power-button is pressed, the animation is displayed correctly, but i think there were some artifacts on the "CRT-screen" that gets "compressed" (not sure someone understands what i mean ^^). So i undid the changes.

Re: Trying to port CRT OFF effect...
downloadonlyaccount said:
I enabled the CRT-off animation 5 mins ago according this tutorial (i'm using 2.3.6):
http://androidforums.com/admire-all...method-see-below-works-stock-monster-4-a.html
It's working, but for some reason i didn't like the effect as much as i did on my old phone (it was a Galaxy Ace). When the power-button is pressed, the animation is displayed correctly, but i think there were some artifacts on the "CRT-screen" that gets "compressed" (not sure someone understands what i mean ^^). So i undid the changes.
Click to expand...
Click to collapse
Thanks but I am trying for jb only
Sent from my GT-I9070 using xda app-developers app

R: Trying to port CRT OFF effect...
I tried with a guide for s3 and the method for gb but it didn't worked
Sent from my GT-I9070 using xda premium

Re: Trying to port CRT OFF effect...
KINGbabasula said:
I tried with a guide for s3 and the method for gb but it didn't worked
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
I tried that method too but s3 framework is much different than s2 and s advance framework, it's supposed to be easier on our phone XD
I will look further when I get time again, need to figure out what does p2 object do (int), we have the help of the java source
Sent from my GT-I9070 using xda app-developers app

R: Trying to port CRT OFF effect...
frapeti said:
I tried that method too but s3 framework is much different than s2 and s advance framework, it's supposed to be easier on our phone XD
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
I know
Sent from my GT-I9070 using xda premium

could any kernel dev try changing the fb early suspend delay to 200-300 ms? maybe it works

R: Trying to port CRT OFF effect...
Sorry but what is CRT off?
Sent from my GT-I9070 using xda app-developers app

Re: Trying to port CRT OFF effect...
CappoAdvance said:
Sorry but what is CRT off?
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Its the effect like the old tv turnig off applied when u shutdown the screen
Enviado desde mi GT-I9070 usando Tapatalk 2

this app works.. crt off and old style both .. give it a try :victory::good::fingers-crossed:
Screen off and Lock from Google Play free

R: Trying to port CRT OFF effect...
ravijani said:
this app works.. crt off and old style both .. give it a try :victory::good::fingers-crossed:
Screen off and Lock from Google Play free
Click to expand...
Click to collapse
Only clicking on the widget
Inviato dal mio GT-I9070 con Tapatalk 2

KINGbabasula said:
Only clicking on the widget
Inviato dal mio GT-I9070 con Tapatalk 2
Click to expand...
Click to collapse
it works from notification... widget and floating widget..
three types..
but its cool... you dont need to touch hardware keys much often.

R: Trying to port CRT OFF effect...
ravijani said:
it works from notification... widget and floating widget..
three types..
but its cool... you dont need to touch hardware keys much often.
Click to expand...
Click to collapse
Yes but we are trying to have the effect when pressing the key
Inviato dal mio GT-I9070 con Tapatalk 2

Re: Trying to port CRT OFF effect...
That is not the real effect btw, not sure if u saw the real one
Sent from my GT-I9070 using xda app-developers app

frapeti said:
That is not the real effect btw, not sure if u saw the real one
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
behave the framework-res jetmod for the rom does not solve the jelly bean? since she has that effect. I really wanted this effect on my s advance, already tried to decompile the file and make modifications more still not got nothing = /
Twisting much for what you get.

news?

Luigi-Bros said:
news?
Click to expand...
Click to collapse
It's done now 8)
Sent from my GT-I9070 using xda app-developers app

frapeti said:
It's done now 8)
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Flashed it using cwm, but it did not worked
Sent from my GT-I9070 using xda premium

Related

[Q] JB v14 LastPass Issues

Hi,
When running Jellybomb v14, and using my app LastPass, I am unable to view my links as the background is all BLUE. Please help & tks for your time!

Is there a spell check on the note 10.1?

Sent from my GT-N8013 using xda app-developers app
Certain apps spellcheck and the default keyboard kinda spellchecks. Maybe you could write more to explain what your issue is?
Sent from my GT-N8013 using Tapatalk 2
I am simply trying to spell check my email
Sent from my GT-N8013 using xda app-developers app
ExploreMN said:
Certain apps spellcheck and the default keyboard kinda spellchecks. Maybe you could write more to explain what your issue is?
Sent from my GT-N8013 using Tapatalk 2
Click to expand...
Click to collapse
I think the op is referring to "spell check" not autocorrect, I too want to be able to see at a glance via the red underline if there are any spelling errors in my typing.
Has anyone solved this yet?
For anyone interested in getting this to work will need some knowledge of editing apk and smali files. ( not me:crying: )
This is what I have found in another thread. Hope some devs here can help us out.
http://forum.xda-developers.com/showthread.php?t=2021591
iT iS Me said:
For me Spell Checking option is very important and I like using it in CM roms. However, our NOTE is more productive with Stock roms. I searched a lot to find a way to enable the option. Unfortunately, there was no 100% clear guidance but I could manage to get it. Thanks to everyone helped.
You need to decompile Secsettings.apk & framework2.jar.
In SecSettings, open the file "res\xml\language_settings.xml" and look for:
Code:
<PreferenceScreen android:title="@string/phone_language" android:key="phone_language" android:fragment="com.android.settings.LocalePicker" />
add new line and paste the following:
Code:
<com.android.settings.inputmethod.SpellCheckersPreference android:title="@string/spellcheckers_settings_title" android:key="spellcheckers_settings" />
In framework2.jar, open the file "smali\android\widget\TextView.smali" and look for:
Code:
.method public isSuggestionsEnabled()Z
.locals 1
.prologue
.line 8464
[COLOR=Red][B]const/4 v0, 0x0[/B][/COLOR]
return v0
.end method
Change the highlighted to:
Code:
.method public isSuggestionsEnabled()Z
.locals 1
.prologue
.line 8464
[COLOR=Red][B] const/4 v0, 0x1[/B][/COLOR]
return v0
.end method
That is all and enjoy.
NOTE: It works with Google Keyboard or alternatives.
Click to expand...
Click to collapse
google spell check
has anyone found a way?
did anyone follow these steps mentioned above?

[Developers Only] Note III Framework/System Apps Deodex

Galaxy Note III SystemApps & Framework Dump​
Please do not use this unless you know what you're doing! this is uploaded and maintained for developers/porters who doesn't want to download full firmware and deodex everything​
Model: SM-N9005
Country: Open Europe
Version: Android 4.3
Changelist: 1287056
Build date: Sat, 3 Aug 2013 01:17:38 +0000
Product Code: OXX
PDA: N9005XXUBMH1
CSC: N9005OXXBMH1
MODEM: N9005XXUBMH1
What works without any modfication?
Camera opens but closes pretty fast afterwards, this can tell us if we can use it or not!
what doesn't work without any modification?
Sfinder doesn't work
TWLauncher
don't know more haven't finished deodex everythin yet
Framework Files:http://www.mediafire.com/download/yfbr2p4dbqzpkiv/FrameworkN3.zip
Sytem Apps: https://mega.co.nz/#!cc1RyIzY!VnizhSPZBm04thUiNkt_HmSC77Eqiw14YVtiNEVelXM
NoteIII Launcher: Changed min sdk version to 17, its being recognized but gives FC. progress made
Code:
1:32.468: E/dalvikvm(5214): Could not find class 'com.samsung.android.theme.SThemeManager', referenced from method com.android.launcher2.ThemeLoader.<init>
Samsung adds theme support?
SecBrowser hasn't been deodexed its the only app it failed to deodex!
Bloomberg+ works with Air Gesture's
Installation: Install as normal apk
Samsung Wallet: Works
Install as normal apk
Snote works only on setup mode. You can select layout and sync but when clicking start it crashes
Shealth crashes
Sketchbook crashes
Music Player crashes when trying to open currently playing song Window. So it can be fixed.
TouchWiz Easy Home works (gues its unchanged)
Could you share the SecLauncher4.apk which you had it downgraded to API 17 ?
Thanks.
Sent from my GT-I9300 using Tapatalk 2
@Arsaw http://www.mediafire.com/?aojilnqzz5gne3w
Sent from my GT-I9505 using Tapatalk 4
LastStandingDroid said:
@Arsaw http://www.mediafire.com/?aojilnqzz5gne3w
Sent from my GT-I9505 using Tapatalk 4
Click to expand...
Click to collapse
Many thanks
Sent from my GT-I9300 using Tapatalk 2
The launcher doesn't work but I assume it needs framework files
Sent from my GT-I9505 using Tapatalk 4
LastStandingDroid said:
The launcher doesn't work but I assume it needs framework files
Sent from my GT-I9505 using Tapatalk 4
Click to expand...
Click to collapse
It has secretmode methods hardcoded in the apps and frameworks. Hope I can get it fixed
Sent from my GT-I9300 using Tapatalk 2
i've added system apps in the OP now time to play
@LastStandingDroid,
I dont know if this matters much, but I was digging around in framework-2.jar and I found something interesting that might go along with your first post. If you decompile this jar and look in smali>com>samsung>android>theme you will find a single smali file attached to SThemeManager. I dont ever remember seeing this before, maybe some digging around can find this app. Just a thought. BTW this was on a Note 3
RErick said:
@LastStandingDroid,
I dont know if this matters much, but I was digging around in framework-2.jar and I found something interesting that might go along with your first post. If you decompile this jar and look in smali>com>samsung>android>theme you will find a single smali file attached to SThemeManager. I dont ever remember seeing this before, maybe some digging around can find this app. Just a thought. BTW this was on a Note 3
Click to expand...
Click to collapse
hmm samsung always have some hidden things for us
i guess it can be if-eqz v0, :cond_0
cond_0
const/4 v0, 0x0 <- and its disabled
luckily i've learned to understand some smali (not all of it) but a good start, so i'll be looking into my work when i've got time
hopefully its not that hard to enable it, the harder part is to get it to work, and wonder why they don't use themes

[MOD] 4.4.2 Kitkat Call Recorder

Deodexed Rom
1: Pull the file SecPhone.apk from system\priv-app unpack the SecPhone.apk with apktool
2: Browse the folder SecPhone\smali\com\android\phone and look for the file name "PhoneFeature.smali"
3: Open with notepad ++ and search for the word const-string v6, "write_sleep_checking_file"
4: Above the code .line 1323 add the following codes below.
Code:
.line 1322
sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
const-string v5, "voice_call_recording"
const/4 v2, 0x1
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v6
invoke-virtual {v0, v5, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
5: Rebuild the apk with apktool.
6: Make backup of the old file just incase.
7: Push the new built apk inside system\priv-app
8: Reboot and enjoy.
#Remove accending ringtone.
1: Browse SecPhone.apk\smali\com\android\phone\Ringer$1.smal.
2: Find the code below.
Code:
iget-object v1, v1, Lcom/android/phone/Ringer;->mAudioManager:Landroid/media/AudioManager;
invoke-virtual {v1, v6, v2, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V
.line 860
3: Remove the line invoke-virtual {v1, v6, v2, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V
4: Rebuild and push.
Edit: File attached only for DEODEXED! rom KITKAT 4.4.2
https://www.mediafire.com/?vu9w39yp63bdx9u
First!
Work?
nice job .
Build a .zip and just flash?
Galaxy Note 3
Hello! You can attach SecPhone.apk changed? thanks
Just if we don't have apk tool.
Plz upload the modified one.
Thanks.
Sent from my SM-N9005 using Tapatalk
firasusman said:
Just if we don't have apk tool.
Plz upload the modified one.
Thanks.
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
Ill upload it in a bit my wife is using skype wit her mom or she gonna lag and kick my butt
Hehehe...
Ok my dear let your wife talk till morning.
We will wait.. :sly:
Lol
Sent from my SM-N9005 using Tapatalk
File attached remember for deodexed roms only
Automatic call recording working?
meawww said:
File attached remember for deodexed roms only
Click to expand...
Click to collapse
Thanks...
Sent from my SM-N9005 using Tapatalk
thanks, i test it on omega 7
no, don't work
gege0202 said:
thanks, i test it on omega 7
no, don't work
Click to expand...
Click to collapse
What..?
Oops.
Sent from my SM-N9005 using Tapatalk
a file are create, but just a big sound not the conversation
gege0202 said:
thanks, i test it on omega 7
no, don't work
Click to expand...
Click to collapse
no good news ....
Galaxy Note 3
Yes the mod doesn't work I made the mod yesterday same weird noise.
Thanks for share
Sent from my SM-N9005
Lets just wait for solo he have a working one for his commin out rom saturday/sunday
minis
The mod works fine, the problem is that the new kitkat version does not support the call recording, about any mod or program call recording in kitkat only records noise as I researched I think it needs to modify the kernel to enable new audio recording
Enviado desde mi SM-N9005 mediante Tapatalk
meawww said:
Lets just wait for solo he have a working one for his commin out rom saturday/sunday
Click to expand...
Click to collapse
Sorry we did our modifications but yesterday I've tested it and the recorded sound was just noise...
Inviato dal mio SM-N9005 utilizzando Tapatalk
soloilmeglio said:
Sorry we did our modifications but yesterday I've tested it and the recorded sound was just noise...
Inviato dal mio SM-N9005 utilizzando Tapatalk
Click to expand...
Click to collapse
+1 just noise

[guide/How-To] Enable Native Call Recording KK 4.4.2

This is based on Verizon S5 SM-G900V Android 4.4.2 G900VOYU1ANCG Deodexed. Please Thank tdunham for this mod.
Decopile InCallUI.apk and find this smali file.
Smali edit for InCallUI.apk:
com/android/services/telephony/common/PhoneFeature.smali
add lines are highlighted in RED
const-string v3, "CscFeature_VoiceCall_ConfigRecording"
invoke-virtual {v0, v3}, Lcom/sec/android/app/CscFeature;->getString(Ljava/lang/StringLjava/lang/String;
move-result-object v0
const-string v0, "RecordingAllowed"
sget-object v3, Lcom/android/services/telephony/common/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
const-string v5, "voice_call_recording"
const-string v6, "RecordingAllowed"
invoke-virtual {v6, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/StringZ
move-result v0
Recompile and push back to phone.
For those of you that may not be capable of doing the mod yourself here is a link to the InCallUI.apk that is deodexed. http://d-h.st/T6k
First make sure you do a backup or at least copy your InCallUI.apk and InCallUI.odex to a safe place. Then copy this InCallUI.apk to system/app and delete InCallUI.odex or change it to InCallUI.odex.bak.
Enjoy!!!
Awesome. Any way you could provide us a modified apk to replace ours? I don't think many people are capable of making that mod.
Sent from my SM-G900V using Tapatalk
InCallUI.apk deodexed
joshw0000 said:
Awesome. Any way you could provide us a modified apk to replace ours? I don't think many people are capable of making that mod.
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
Here you go!!! Check updated OP.
EMSpilot said:
Here you go!!! Check updated OP.
Click to expand...
Click to collapse
Thanks. Mind doing to an odexed copy?
https://www.dropbox.com/s/odzn0cnnjao3ka8/InCallUI.apk
Sent from my SM-G900V using Tapatalk
deodexed
joshw0000 said:
Thanks. Mind doing to an odexed copy?
https://www.dropbox.com/s/odzn0cnnjao3ka8/InCallUI.apk
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
You do not need an odexed copy. You will gain nothing from it. This will run perfect on an odexed or deodexed ROM.
But here you go anyway http://d-h.st/MLH
EMSpilot said:
You do not need an odexed copy. You will gain nothing from it. This will run perfect on an odexed or deodexed ROM.
But here you go anyway http://d-h.st/MLH
Click to expand...
Click to collapse
Thanks man. I used the deodexed copy and it works flawlessly. Saves recordings to internal sd /Sounds.
Sent from my SM-G900V using Tapatalk
This only for dev edition? I tried it and I don't see the icon. Fix permissions?
Sent from my SM-G900V using XDA Free mobile app
---------- Post added at 10:22 PM ---------- Previous post was at 10:19 PM ----------
Nevermind.I have it working. Thanks guys
Sent from my SM-G900V using XDA Free mobile app
Can't get it to work. When I replace my apk with the downloaded apk and try to make a call it says. Cannot add call.
Sent from SG4 with Tapatalk
mrfordwrench said:
Can't get it to work. When I replace my apk with the downloaded apk and try to make a call it says. Cannot add call.
Sent from SG4 with Tapatalk
Click to expand...
Click to collapse
Fix permissions and reboot.
Sent from my SM-G900V using Tapatalk
Thanks @EMSpilot for the simple mod instructions, it works great.
Working now thanks!!
Sent from SG4 with Tapatalk
Works great but I have a little cosmetic issue:
Anyone else with this issue ?
Also, is it possible to get a version with the record button in the menu ? (for more discreet recording)
I created a version with the proper buttons, see two posts down
timeToy said:
Works great but I have a little cosmetic issue:
Anyone else with this issue ?
Also, is it possible to get a version with the record button in the menu ? (for more discreet recording)
Click to expand...
Click to collapse
No I cannot put it in the menu. If you are talking about the white color of the buttons that is native to the InCallUI.apk. You can decompile and change the color of the png's then compile.
Resolved the cosmetic issue:
Download the DeOdexed InCallUI.apk with the fixed buttons, copy/push to system/app and set the proper permissions.
Feel free to re-use in your own ROM with proper credit
Bluetooth?
Would this happen to record while on bluetooth? I know somehow they we're able to get it working on the S4.
Thoughts?
Thanks!
????
cubsrule17 said:
Would this happen to record while on bluetooth? I know somehow they we're able to get it working on the S4.
Thoughts?
Thanks!
Click to expand...
Click to collapse
While on Bluetooth? Doing what on Bluetooth? Making a call over Bluetooth?
cubsrule17 said:
Would this happen to record while on bluetooth? I know somehow they we're able to get it working on the S4.
Thoughts?
Thanks!
Click to expand...
Click to collapse
no only speaker or headset.
EMSpilot said:
While on Bluetooth? Doing what on Bluetooth? Making a call over Bluetooth?
Click to expand...
Click to collapse
Yes making a call.
Sent from my Nexus 7 using Tapatalk
Does anyone have the stock incallui.apk file handy? I'd like to get the add call button back. Thanks.

Categories

Resources