Req : Reduce End call delay - Galaxy Note 4 Themes and Apps

hey guys, searched a lot, but coudnt find anywhere how to reduce the end call delay... can someone help here ?

[quote name="dar007" post=57015546]hi citymen34
where do i edit on incallui to change the time set ?[/QUOTE]
com/android/incallui/CallList.smali
under this line, change red line. 834 Hexadecimal value = 2100 (ms) decimal value. Use hex- dex converter: http://www.binaryhexconverter.com/decimal-to-hex-converter
.method private getDelayForDisconnect(Lcom/android/services/telephony/common/CallI
..
..
..
.line 779
:cond_33
const/16 v1, 0x834
goto :goto_20
.line 781
:cond_36
const/16 v1, 0x834
Credits to @citymen34 for the method

PutraMasyers97 said:
[quote name="dar007" post=57015546]hi citymen34
where do i edit on incallui to change the time set ?
Click to expand...
Click to collapse
com/android/incallui/CallList.smali
under this line, change red line. 834 Hexadecimal value = 2100 (ms) decimal value. Use hex- dex converter: http://www.binaryhexconverter.com/decimal-to-hex-converter
.method private getDelayForDisconnect(Lcom/android/services/telephony/common/CallI
..
..
..
.line 779
:cond_33
const/16 v1, 0x834
goto :goto_20
.line 781
:cond_36
const/16 v1, 0x834
Credits to @citymen34 for the method[/QUOTE]
The path is a bit different in S4 & note 4...

pratik_193 said:
com/android/incallui/CallList.smali
under this line, change red line. 834 Hexadecimal value = 2100 (ms) decimal value. Use hex- dex converter: http://www.binaryhexconverter.com/decimal-to-hex-converter
.method private getDelayForDisconnect(Lcom/android/services/telephony/common/CallI
..
..
..
.line 779
:cond_33
const/16 v1, 0x834
goto :goto_20
.line 781
:cond_36
const/16 v1, 0x834
Credits to @citymen34 for the method
Click to expand...
Click to collapse
The path is a bit different in S4 & note 4...[/QUOTE]
I not understand nothing..
The folder "com" or "android" does not exist in my root note 4..

pratik_193 said:
hey guys, searched a lot, but coudnt find anywhere how to reduce the end call delay... can someone help here ?
Click to expand...
Click to collapse
Download this without root only less then 300kb
https://play.google.com/store/apps/details?id=com.brosix.callend

Related

Remvove GPS icon in status bar

Using scotts clean rom 1.2 and was wondering of there was anything I could flash to remove that icon.
Sent from my Rezound using xda premium
nfrederick said:
Using scotts clean rom 1.2 and was wondering of there was anything I could flash to remove that icon.
Sent from my Rezound using xda premium
Click to expand...
Click to collapse
PM me.
do u know how to use apktool?
pm sent
never used apktool
EDIT
just downloaded and installed, looks like it runs using correctly when I type apktool in a command prompt.
thats as far as I got haha
I have a SystemUI.apk that has it removed, as well as all of the advanced settings...you'd have to adb push it or use root explorer/ES File Explorer to stick it in system/app.
Ironically, I'm trying to do the opposite and don't know how to re-enable it with this particular SysUI
Would you mind posting it?
awenthol said:
I have a SystemUI.apk that has it removed, as well as all of the advanced settings...you'd have to adb push it or use root explorer/ES File Explorer to stick it in system/app.
Ironically, I'm trying to do the opposite and don't know how to re-enable it with this particular SysUI
Click to expand...
Click to collapse
nfrederick said:
Would you mind posting it?
Click to expand...
Click to collapse
Hahah... I can help you both...
I was just about to post a mod that removed location.
awenthol you need to change two lines under gpsone
in HtcCdmaStatusBar.smali...
Look For:
Code:
.line 279
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/HtcCdmaStatusBar;->mService:Landroid/app/StatusBarManager;
const-string v1, "gpsone"
const/4 v2, 0x0
Change to
Code:
.line 279
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/HtcCdmaStatusBar;->mService:Landroid/app/StatusBarManager;
const-string v1, "gpsone"
[COLOR="Red"] const/4 v2, 0x1[/COLOR]
Then the second spot a few lines down is....
Code:
.method private updateMtGpsIcon()V
.locals 6
.prologue
const/4 v3, 0x3
const/4 v2, 0x0
Code:
.method private updateMtGpsIcon()V
.locals 6
.prologue
const/4 v3, 0x3
[COLOR="red"] const/4 v2, 0x1[/COLOR]
Oh and my next ROM will have the icon removed... And I will post a sep zip for it...
Ok, here is my mod: http://forum.xda-developers.com/showthread.php?p=21119197#post21119197
Thanks Scott, perfect timing! Haha.
I can't view the .xml files. I get some stuff at the top, but all I get for the rest of the document is yyyyy and random characters..
maximus20895 said:
I can't view the .xml files. I get some stuff at the top, but all I get for the rest of the document is yyyyy and random characters..
Click to expand...
Click to collapse
You need to decode them with apktool

ref: Add Reboot Mod

EDIT: post #3 now includes the steps so a guide to add it to your own files this information is from http://forum.xda-developers.com/showthread.php?t=811532 only modified to work with photon
ok guys i got it working im on skinny rev unlocked with dark fire theme so that is the framework apk i used but its easy to modify for the developers wanting to add this to there theme or rom.. just use my files android.policy.jar and framework.jar
to do this decompile and edit this xml in your framework.apk
Code:
"framework-res.apk\res\values\strings.xml"
add
Reboot
Recovery
next add png icons here
"framework-res.apk\res\drawable-hdpi"
make sure they are named
"ic_lock_reboot.png
"ic_lock_recovery.png
then recompile/build etc.. after you have build apk decompile it again
go here
frameworkres.apk\res\values\public.xml
you will see this with different id #s
and
these are what you need to change in the android.policy.jar
com\android\internal\policy\impl\GlobalActions.sma li"
at line 661
const v3, 0x1080501 (reboot icon)
const v4, 0x10404ed (reboot string)
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;->(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080502 (recovery icon)
const v4, 0x10404ee (recovery string)
the first set of icon ids are for reboot
first # is drawable icon second is string #
second set is recovery as in the ( ) 's
so now change these numbers to those in the public.xml as i described above
next recompile your android.policy.jar and its ready to add
thanks!
screenie here http://dl.dropbox.com/u/46879286/20120214113758.jpeg
colors are off sorry
chrystal0925 said:
ok guys i got it working im on skinny rev unlocked with dark fire theme so that is the framework apk i used but its easy to modify for the developers wanting to add this to there theme or rom.. just use my files android.policy.jar and framework.jar
download here http://dl.dropbox.com/u/46879286/photon.power.mod.zip
to do this decompile and edit this xml in your framework.apk
"framework-res.apk\res\values\strings.xml"
add
Reboot
Recovery
next add png icons here
"framework-res.apk\res\drawable-hdpi"
make sure they are named
"ic_lock_reboot.png
"ic_lock_recovery.png
then recompile/build etc.. after you have build apk decompile it again
go here
frameworkres.apk\res\values\public.xml
you will see this with different id #s
and
these are what you need to change in the android.policy.jar
com\android\internal\policy\impl\GlobalActions.sma li"
at line 661
const v3, 0x1080501 (reboot icon)
const v4, 0x10404ed (reboot string)
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;->(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080502 (recovery icon)
const v4, 0x10404ee (recovery string)
the first set of icon ids are for reboot
first # is drawable icon second is string #
second set is recovery as in the ( ) 's
so now change these numbers to those in the public.xml as i described above
next recompile your android.policy.jar and its ready to add
thanks!
screenie here http://dl.dropbox.com/u/46879286/20120214113758.jpeg
colors are off sorry
Click to expand...
Click to collapse
This is great I was working on it last night did you have to make changes to build prop?
Sent from my MB855 using xda premium
No I didn't and it works fine
edit: above may not work on other roms with my files so heres a guide need to be deodex odex is not working:
use apk_manager to decompile framework-res
open "values\strings.xml add this to it
Code:
<string name="reboot_recovery">Recovery</string>
<string name="reboot">Reboot</string>
next add png icons here (i attached some to use )
"framework-res.apk\res\drawable-hdpi"
make sure they are named
"ic_lock_reboot.png
"ic_lock_recovery.png
recompile then decompile to get it to auto generate the public id's
now to add the option to the shutdown
so decompile framework.jar and open "com\android\internal\app\ShutdownThread.smali
add to line 40 keep the lines spaced(skipping a line between )
Code:
.field public static mReboot:I
then at line 542 before "invoke-static {}, Landroid/os/Power;->shutdown()V" add this
Code:
sget v1, Lcom/android/internal/app/ShutdownThread;->mReboot:I
const/4 v2, 0x1
if-eq v1, v2, :reboot
const/4 v2, 0x2
if-eq v1, v2, :rebootRecovery
then at line 557 or about line 554 after this
.line 512
return-void
add this
Code:
:reboot
const-string v4, "now"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
:rebootRecovery
const-string v4, "recovery"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
next save and recompile
now decompile androidpolicy.jar
open com\android\internal\policy\impl\GlobalActions.smali
look for .method private createDialog()Landroid/app/AlertDialog;
and at line 624 edit to add two more methods
Code:
.line 232
const/4 v0, 0x4
(change the 0x4 to 0x6)
and at line 657 edit out the ids from your public.xml (]do not add this reference here )
add this
Code:
const/4 v1, 0x4
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$10;
const v3, 0x1080501 ([COLOR="Red"]change this to drawable reboot id[/COLOR])
const v4, 0x10404ed [COLOR="red"](reboot string id[/COLOR])
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080502( [COLOR="red"]drawable recovery id[/COLOR])
const v4, 0x10404ee ([COLOR="red"]recovery string id[/COLOR])
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$11;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
so you need to go back to your framework.apk
open res/values/public to get the id's to change the above..
save and go to
GlobalActions$5.smali and copy it and name it GlobalActions$10.smali
open GlobalActions$10 and replace all instances ( so any where you see) of GlobalActions$5
with GlobalActions$10 then add this code
Code:
sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I
to line 52 before
invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V
now copy GlobalActions$10.smali and name it GlobalActions$11.smali
replace all instances of GlobalActions$10 with GlobalActions$11
then save recompile and everything is now added to run this mod!
chrystal0925 said:
No I didn't and it works fine
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
Sounds good,and Thanks
Sent from my MB855 using xda premium
Welcome hope it helps!
Sent from my MB855 using XDA App
If anyone needs send me your framework apk and I can mod it for you to use
Sent from my MB855 using XDA App
how to change android.policy.jar. when i open it, its only contain manifest.mf. there is also android.policy.odex.
zeguym said:
how to change android.policy.jar. when i open it, its only contain manifest.mf. there is also android.policy.odex.
Click to expand...
Click to collapse
you need baksmali to decompile it. which rom are you on? if you cant get it send me the policy and framework.. once you decompile the policy it turns it into a classes.dex then you zip the policy using 7zip or winrar and you replace the new classes.dex with the one in the zip..
chrystal0925 said:
you need baksmali to decompile it. which rom are you on? if you cant get it send me the policy and framework.. once you decompile the policy it turns it into a classes.dex then you zip the policy using 7zip or winrar and you replace the new classes.dex with the one in the zip..
Click to expand...
Click to collapse
I use stock rom.
Can you kindly give step by step how to decompile and compile it again.
I already have baksmali, but when trying to decompile it, it always failed.
is this because stock rom is odex ? not deodex ?
zeguym said:
I use stock rom.
Can you kindly give step by step how to decompile and compile it again.
I already have baksmali, but when trying to decompile it, it always failed.
is this because stock rom is odex ? not deodex ?
Click to expand...
Click to collapse
That could be why I'm using deodex files.. I'm not to sure on directions I use a tool like a script its simple it was 2 commands one to decompile other to recompile.. as far as I know deodex is for theming Modding etc..
I was trying to see if you can use my files but your framework I've had people use my reboot mod on the echo on stock but the framework apk was a deodex version and the rest odex I could deodex it n try if you can post the apk I dont think I have a stock file but if so then you would just decompile my files and edit what I listed after adding to the frameworkapk. You can try this way as well
Sent from my MB855 using XDA App
ive tried flashing on top of an odex version with a completely stock version just deodex it dont work it has to many looping issues so recommend that your rom is deodex..
wrong post. deleted.

[HOW-TO][4.1.2] Disable Edge Zoom in browser and Gmail.

Hello xda'ers,
after loads of PM, requests, and lot of people I found googlin complainting about this "feature" I give to you the fix.
There are 2 ways to disable edge zoom, but I give you the easiest one.
Requirements:
smali/baksmali (and its use) or apktool (and its use)
Decompile framework.jar
go to:
smali\android\webkit\ZoomManager.smali
look for:
.method setEdgeZoom(Z)V
delete the red line and add the green line
Code:
.method setEdgeZoom(Z)V
.registers 12
.parameter "enabled"
.prologue
[COLOR="Red"]const/4 v5, 0x1[/COLOR]
[COLOR="SeaGreen"]const/4 v5, 0x0[/COLOR]
const/4 v4, 0x0
.line 1602
invoke-virtual {p0}, Landroid/webkit/ZoomManager;->getScaleGestureDetector()Landroid/view/ScaleGestureDetector;
move-result-object v6
if-eqz v6, :cond_41
...
Recompile and enjoy.
If this made your day, consider to hit thank button.
Cheers
just in case..
This is a nice little feature, mate..
Good work, Mirko
mythtrandyr said:
Good work, Mirko
Click to expand...
Click to collapse
check yr PM, mate..

[GUIDE][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz 4.4.2

[GUIDE][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz 4.4.2​
Flashable zip for ND7 will be uploaded soon..
This guide will show you how to edit two files:
SecSettings.apk
Framework2.jar
You will need to know how to decompile/recompile and change ID's referenced in the smali that we add..
Like to give a BIG THANKS to @Adi Aisiteru Reborn for posting the initial port for CM11!
So lets start with SecSettings first..decompile it and go to res/values
in arrays.xml add this BEFORE </resources>:
Code:
<string-array name="listview_animation_entries">
<item>@string/listview_off</item>
<item>@string/listview_wave_left</item>
<item>@string/listview_wave_right</item>
<item>@string/listview_scale</item>
<item>@string/listview_alpha</item>
<item>@string/listview_stack_top</item>
<item>@string/listview_stack_bottom</item>
<item>@string/listview_unfold</item>
<item>@string/listview_fold</item>
<item>@string/listview_translate_left</item>
<item>@string/listview_translate_right</item>
<item>@string/listview_rotate</item>
</string-array>
<string-array name="listview_animation_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
</string-array>
<string-array name="listview_interpolator_entries">
<item>@string/listview_off</item>
<item>@string/listview_accelerate_interpolator</item>
<item>@string/listview_decelerate_interpolator</item>
<item>@string/listview_accelerate_decelerate_interpolator</item>
<item>@string/listview_anticipate_interpolator</item>
<item>@string/listview_overshoot_interpolator</item>
<item>@string/listview_anticipate_overshoot_interpolator</item>
<item>@string/listview_bounce_interpolator</item>
</string-array>
<string-array name="listview_interpolator_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
</string-array>
[COLOR="red"]</resources>[/COLOR]
Next strings.xml add this BEFORE </resources>:
Code:
<string name="listview_animation_title">ListView animation</string>
<string name="listview_off">Off</string>
<string name="listview_wave_left">Wave (left)</string>
<string name="listview_wave_right">Wave (right)</string>
<string name="listview_alpha">Alpha</string>
<string name="listview_scale">Scale</string>
<string name="listview_stack_top">Stack (top)</string>
<string name="listview_stack_bottom">Stack (bottom)</string>
<string name="listview_unfold">Unfold</string>
<string name="listview_fold">Fold</string>
<string name="listview_translate_left">Translate (left)</string>
<string name="listview_translate_right">Translate (right)</string>
<string name="listview_rotate">Rotate</string>
<string name="listview_interpolator_title">ListView interpolator</string>
<string name="listview_accelerate_interpolator">Accelerate</string>
<string name="listview_decelerate_interpolator">Decelerate</string>
<string name="listview_accelerate_decelerate_interpolator">Accelerate decelerate</string>
<string name="listview_anticipate_interpolator">Anticipate</string>
<string name="listview_overshoot_interpolator">Overshoot</string>
<string name="listview_anticipate_overshoot_interpolator">Anticipate overshoot</string>
<string name="listview_bounce_interpolator">Bounce</string>
[COLOR="Red"]</resources>[/COLOR]
Next you need to determine where you want the selection to pick you ListView animations. I put mine under Display options in SecSettings.
Go to res/xml and find display_settings.xml
Add this line wherever you want:
Code:
<PreferenceScreen android:title="@string/listview_animation_title" android:key="listview_animation_settings" android:fragment="com.android.settings.ND7.ListViewSettings" />
Next download the files attached and put them in their respectable folder.
res/xml goes into YOUR res/xml
com/android/settings/ goes into YOUR com/android/settings/ directory
Go ahead and recompile your SecSettings. Once compiled, get the NEWLY compiled one and decompile it.
Go to res/values/ public.xml
Search:
Code:
mokee_listview_animations
Copy the ID, the number at the end, 0x7*****
Go to com/android/settings/ListViewAnimations.smali (the one we added)
Search for the ID:
Code:
0x7f0700fc
and CHANGE IT TO YOURS.
Done with SecSettings..Recompile it!
Moving onto Framework2.jar.. decompile it and go to /android/widget/ directory..
Extract the attached zip and move the files into the directory above..
Compile and you should be done!
NOTE: There are some ID's referenced in AbsListView.smali but they should match all TouchWiz framework-res..If not let me know if you have trouble and I will post the ones you need to change!
IF anyone would like me to list my edits ONE BY ONE see HERE
Reserved..
Thanks sprytezero for the Video..
Would love to see this in N3bula (4.4.2)... ?
This is some bad ass work. Thank you!
Sent from my SCH-I605 using Tapatalk
hi .does it work on an international Note 2 ?
I tried but i got errors while compile framework2 but it looks a little bit differnt like yours.
maybe you can take a look on it.
greets
Blackball said:
hi .does it work on an international Note 2 ?
I tried but i got errors while compile framework2 but it looks a little bit differnt like yours.
maybe you can take a look on it.
greets
Click to expand...
Click to collapse
You can post the errors..
Here the errors.
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16196,16] no viable alternative at input '"mAnim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16200,16] no viable alternative at input '"scrollY"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16204,16] no viable alternative at input '"mDown"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16226,15] no viable alternative at input '"e"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16249,15] no viable alternative at input '"anim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16274,16] no viable alternative at input '"mInterpolator"'
i tried with differnt apktool.jar
and this part is differnt:
Find .method public onTouchEvent(Landroid/view/MotionEventZ
CHANGE .locals 12 to 13 Cant find Locals in this method
Then find this bit of code and add BLUE:
Code:
.local v0, "actionMasked":I
packed-switch v0, switch_data_0
:goto_1
switch_0
move v8, v9
.line 4653
goto :goto_0
.line 4595
switch_44
iput-boolean v9, p0, Landroid/widget/AbsListView;->mIsTap:Z
.line 3556
iget-object v10, p0, Landroid/widget/AbsListView;->Inverse:Landroid/os/Handler;
const-wide/16 v11, 0x64
invoke-virtual {v10, v8, v11, v12}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchDown(Landroid/view/MotionEventV
goto :goto_1
.line 4600
switch_2
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchMove(Landroid/view/MotionEventV
goto :goto_1
.line 4605
switch_3
iput-boolean v8, p0, Landroid/widget/AbsListView;->mIsTap:Z
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchUp(Landroid/view/MotionEventV
goto :goto_1
.line 4610
switch_4
invoke-direct {p0}, Landroid/widget/AbsListView;->onTouchCancel()V
Then at the end of that method CHANGE pswitch_1 to pswitch_44 There is no pswitch_1
Blackball said:
Here the errors.
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16196,16] no viable alternative at input '"mAnim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16200,16] no viable alternative at input '"scrollY"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16204,16] no viable alternative at input '"mDown"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16226,15] no viable alternative at input '"e"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16249,15] no viable alternative at input '"anim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16274,16] no viable alternative at input '"mInterpolator"'
i tried with differnt apktool.jar
and this part is differnt:
Find .method public onTouchEvent(Landroid/view/MotionEventZ
CHANGE .locals 12 to 13 Cant find Locals in this method
Then find this bit of code and add BLUE:
Code:
.local v0, "actionMasked":I
packed-switch v0, switch_data_0
:goto_1
switch_0
move v8, v9
.line 4653
goto :goto_0
.line 4595
switch_44
iput-boolean v9, p0, Landroid/widget/AbsListView;->mIsTap:Z
.line 3556
iget-object v10, p0, Landroid/widget/AbsListView;->Inverse:Landroid/os/Handler;
const-wide/16 v11, 0x64
invoke-virtual {v10, v8, v11, v12}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchDown(Landroid/view/MotionEventV
goto :goto_1
.line 4600
switch_2
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchMove(Landroid/view/MotionEventV
goto :goto_1
.line 4605
switch_3
iput-boolean v8, p0, Landroid/widget/AbsListView;->mIsTap:Z
invoke-direct {p0, p1}, Landroid/widget/AbsListView;->onTouchUp(Landroid/view/MotionEventV
goto :goto_1
.line 4610
switch_4
invoke-direct {p0}, Landroid/widget/AbsListView;->onTouchCancel()V
Then at the end of that method CHANGE pswitch_1 to pswitch_44 There is no pswitch_1
Click to expand...
Click to collapse
What version of TouchWiz/android are you? If you can attach your AbsListView.smali(NOT MODDED) and when I can I will take a look
lacoursiere18 said:
What version of TouchWiz/android are you? If you can attach your AbsListView.smali(NOT MODDED) and when I can I will take a look
Click to expand...
Click to collapse
If that is your framework2 you posted above.. you need to look again.. Everything is there.. EXACTLY like mine :highfive:
If you need further help let me know..
Blackball said:
Here the errors.
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16196,16] no viable alternative at input '"mAnim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16200,16] no viable alternative at input '"scrollY"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16204,16] no viable alternative at input '"mDown"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16226,15] no viable alternative at input '"e"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16249,15] no viable alternative at input '"anim"'
..\Decompiled_jar\framework3\android\widget\AbsListView.smali[16274,16] no viable alternative at input '"mInterpolator"'
i tried with differnt apktool.jar
Click to expand...
Click to collapse
try to remove commas ("...")
remuntada78 said:
try to remove commas ("...")
Click to expand...
Click to collapse
Yes that will work.. it's just bc I use the latest apk tool instead of v1.52 which a lot of tools use on xda
Hi,
When i copy your smali files into my framework2 i got lot of errors when i try to compile.
When i remove commas i got new error that i will post these days.
Blackball said:
Hi,
When i copy your smali files into my framework2 i got lot of errors when i try to compile.
When i remove commas i got new error that i will post these days.
Click to expand...
Click to collapse
Use this apk tool to re decompile your framework2..make you edits than recompile..this is what I used and it should work fine
https://www.dropbox.com/s/sv0h0hzcjfoivzw/apktool.jar
Ok .. i will try .. :good:
hi,
i sent you a PM.
Greets
Blackball said:
hi,
i sent you a PM.
Greets
Click to expand...
Click to collapse
Whats the problem with it..
Everything ... Please look into your PM Box.
Blackball said:
Everything ... Please look into your PM Box.
Click to expand...
Click to collapse
I looked.. I will not mod it for you.. Thats why I made this guide.. So don't say everything.
If you have errors, post them. Please dont send me your files..
Ok. Im sorry to disturb you.
I will try it again.
See you and Thanks for your help

[MOD] Custom Volume Step Count for Everything

So I've always been annoyed with how the HiFi volume only has 15 steps. For me, 5 is too low and 10 is too loud (cheap earbuds). With the release of the V30, I've learned that it has 75 steps for the HiFi volume, which prompted me to modify our system to get 75 steps as well.
Well, I didn't do that exactly, but I think this is better. I didn't manage to get the 75 steps on just the HiFi volume: I changed every slider, and it's customizable. By default, it's 1 step on the HiFi slider. This is about 1/2 of a step on the ringer volume I think. But if you don't like that, you can change what it uses.
The property is
Code:
volume_step_size
in Settings.Global.
You can set that using ADB. For instance, if you want to go back to the default step size for HiFi mode, you could use
Code:
adb shell settings put global volume_step_size 10
The default step size if 5, but for whatever reason, the system uses double the number you want. It's some weird scaling thing I think.
Attached is the modified services.jar. It goes in /system/framework/ with 0644 permissions.
Enjoy!
Do it Manually
This guide assumes you know how to decompile and recompile APKs/JARs or DEX files. I'm just going to tell you what code you need to edit to add this mod yourself.
- Decompile your services.jar. If you're on an odexed system, you'll either have to deodex the JAR or edit the DEX. That's beyond the scope of this though.
- Find these two files:
Code:
- /com/android/server/audio/AudioService.smali
- /com/android/server/audio/AudioService$VolumeStreamState.smali
- In AudioService, you need to add two new methods.
Code:
.method static synthetic -get49(Lcom/android/server/audio/AudioService;)Z
.locals 1
iget-boolean v0, p0, Lcom/android/server/audio/AudioService;->mHifiDacMode:Z
return v0
.end method
You'll want to make sure that -get49 isn't already used as a method name. My latest method was -get48, so the one I added I renamed to -get49.
Code:
.method private getCustomVolumeStepValue()I
.locals 3
const-string/jumbo v0, "volume_step_size"
const v1, 0x2
iget-object v2, p0, Lcom/android/server/audio/AudioService;->mContext:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v2
invoke-static {v2, v0, v1}, Landroid/provider/Settings$Global;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
return v2
.end method
This is the method that grabs the current volume step set in Settings.Global. If there's no value found, it will use "2" by default.
- Now, go into AudioService$VolumeStreamState and find this method: "rescaleDeltaIndex(IIII)I." Comment the entire method out and paste this instead:
Code:
.method private rescaleDeltaIndex(IIII)I
.locals 3
.param p1, "deltaIndex" # I
.param p2, "flags" # I
.param p3, "streamType" # I
.param p4, "device" # I
.prologue
.line 4948
invoke-static {}, Lcom/android/server/audio/AudioService;->-get26()Z
move-result v2
if-eqz v2, :cond_4
const/high16 v2, 0x20000
and-int/2addr v2, p2
if-nez v2, :cond_4
const/4 v2, 0x3
if-ne p3, v2, :cond_4
.line 4950
iget-object v2, p0, Lcom/android/server/audio/AudioService$VolumeStreamState;->this$0:Lcom/android/server/audio/AudioService;
invoke-static {v2}, Lcom/android/server/audio/AudioService;->-get49(Lcom/android/server/audio/AudioService;)Z
move-result v2
if-eqz v2, :cond_0
and-int/lit16 v2, p2, 0x1000
if-nez v2, :cond_1
.line 4951
:cond_0
invoke-static {}, Lcom/android/server/audio/AudioService;->-get0()I
move-result v2
mul-int/2addr p1, v2
.line 4953
:cond_1
const/4 v1, 0x0
.line 4954
.local v1, "rescaledeltaIndex":I
invoke-virtual {p0, p4}, Lcom/android/server/audio/AudioService$VolumeStreamState;->getIndex(I)I
move-result v0
.line 4955
.local v0, "currentIndex":I
rem-int v2, v0, p1
if-eqz v2, :cond_3
.line 4956
if-gtz p1, :cond_2
.line 4957
rem-int v2, v0, p1
neg-int v1, v2
.line 4964
:goto_0
return v1
.line 4959
:cond_2
rem-int v2, v0, p1
sub-int v1, p1, v2
goto :goto_0
.line 4962
:cond_3
move v1, p1
goto :goto_0
.line 4966
.end local v0 # "currentIndex":I
.end local v1 # "rescaledeltaIndex":I
:cond_4
return p1
.end method
-get49 is the method you pasted earlier.
-get0 is the method that returns HIFI_MEDIA_VOLUME_OFFSET. Just make sure your -get0 is the same one as mine.
- Now, you need to actually get the custom method you pasted to be called. Find "adjustStreamVolume(IIILjava/lang/String;Ljava/lang/String;I)V" in AudioService and find the call to "rescaleIndex(III)I" inside it.
My call looks like this:
Code:
invoke-direct {v0, v6, v1, v13}, Lcom/android/server/audio/AudioService;->rescaleIndex(III)I
Change whatever you have to look like this:
Code:
invoke-direct {v0}, Lcom/android/server/audio/AudioService;->getCustomVolumeStepValue()I
- Rebuild and install!
Do I remove an old file first or just set this one in there
THANKS!!
The big step sizes have bothered me a lot!
If I want to use the adb command to set step sizes of 1, should I use 2?
Edit: File works for me!
Cheers
Emil
I've been looking for something like this. Thank you! ?
---------- Post added at 02:23 PM ---------- Previous post was at 02:22 PM ----------
shadavis08 said:
Do I remove an old file first or just set this one in there
Click to expand...
Click to collapse
I added .bak to the end of the original file so its still there in case I need it.
I changed the file and softrebooted. Not working.
Am I doing something wrong?
Salvaparalyzer said:
I changed the file and softrebooted. Not working.
Am I doing something wrong?
Click to expand...
Click to collapse
Did you change the permissions?
I would do a full reboot. A soft boot may not be enough.
Sent from my LG-H918 using Tapatalk
Salvaparalyzer said:
I changed the file and softrebooted. Not working.
Am I doing something wrong?
Click to expand...
Click to collapse
Are you sure it isn't working? Did you put it in the right place?
A little off-topic, but do you have any idea if something similar can be done for the brightness slider? Basically I would like to be able to set it to stick to increments of 5% or 10% when adjusting. Is there a similar setting I can change using ADB?
RichBordoni said:
A little off-topic, but do you have any idea if something similar can be done for the brightness slider? Basically I would like to be able to set it to stick to increments of 5% or 10% when adjusting. Is there a similar setting I can change using ADB?
Click to expand...
Click to collapse
Every time I fiddle with brightness something bootloops.
Zacharee1 said:
Are you sure it isn't working? Did you put it in the right place?
Click to expand...
Click to collapse
Permission are also correct I think
Update: Hmm, my phone soft restarts with incoming or out coming calls with this mod, fixed it by restoring my original file.
Just a heads up! Backup your old file.
H990DS V11i-GLOBAL-COM(flashed V10j Indonesia from V10g SEA)
3mL said:
Update: Hmm, my phone soft restarts with incoming or out coming calls with this mod, fixed it by restoring my original file.
Just a heads up! Backup your old file.
H990DS V11i-GLOBAL-COM(flashed V10j Indonesia from V10g SEA)
Click to expand...
Click to collapse
Weird, it doesn't happen here. The 990DS seems to always have problems with universal mods though.
Zacharee1 said:
Weird, it doesn't happen here. The 990DS seems to always have problems with universal mods though.
Click to expand...
Click to collapse
Yea, it's unfortunate.
Would you mind telling me what file you edited in the .dex file?
Perhaps it would work by editing my original file.
3mL said:
Yea, it's unfortunate.
Would you mind telling me what file you edited in the .dex file?
Perhaps it would work by editing my original file.
Click to expand...
Click to collapse
I'll write up a guide in a few hours. It involves editing Smali and all that.
Not only that. Phone reboots when trying to make a call with your file.
Restored the old file and the problem was gone.
H990ds here
3mL said:
Yea, it's unfortunate.
Would you mind telling me what file you edited in the .dex file?
Perhaps it would work by editing my original file.
Click to expand...
Click to collapse
Guide up.
Zacharee1 said:
Guide up.
Click to expand...
Click to collapse
Cheers! I'll have a look at it tomorrow.
Thanks Zach for the nice work.
I'm on OvrDrive's rom, h918, 10j. I believe it is odexed because the OP doesn't say anything about deodex.
I renamed the current services.jar, put yours in and set permissions. Rebooted and couldn't get past the LG logo.
Should your file work on this setup, or do I have to do it manually as you outlined?
androiddiego said:
Thanks Zach for the nice work.
I'm on OvrDrive's rom, h918, 10j. I believe it is odexed because the OP doesn't say anything about deodex.
I renamed the current services.jar, put yours in and set permissions. Rebooted and couldn't get past the LG logo.
Should your file work on this setup, or do I have to do it manually as you outlined?
Click to expand...
Click to collapse
I'm pretty sure this JAR is from OvrDriVE's 10J ROM so it should work fine.
Zacharee1 said:
I'm pretty sure this JAR is from OvrDriVE's 10J ROM so it should work fine.
Click to expand...
Click to collapse
Thanks! I'll try it again.

Categories

Resources