[JB][MODS][FIXES]Jelly Bean Fixes/Mods by reaper61616

reaper61616

Senior Member
Nov 23, 2010
663
747
0
Brodnica
Hi I will uploading and describing fixes, mods and other things in this thread.

Everything in flashable CWM-zip.​

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
APN FIX

Previous version have some bugs: In lockscreen emergency call string is replaced by another, in dialer after ending call is displayed something insted total talk time.
Now it's fixed and you can use it without any problems, APN settings and data is working good. :)


APN fix for expeacer's CM10 THANKS FXP -> APN_FIX.zip

APN fix for kamarush's CM10 THANKS FXP (need to be tested!!)-> APN_FIX_KAMARUSH.zip


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
PHONE MOD

This is Phone mod to turn off simlock notification after boot.

Phone.zip


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
SMS/MMS MOD

Mms.apk colored like Settings (almost). :)

And sory for the late. ;)







Mms_dark.zip

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
TRANSPARENT NOTIFICATION DRAWER


Hi!

I figureout how to set transparent background color in CM10 :)



1. Decompile SystemUI.apk (I'm using apktool 1.4.9)

2. Go to: %apktool_folder%\SystemUI\smali\com\android\systemui\statusbar\phone

3. Open in text editor file: PhoneStatusBar$FastColorDrawable.smali

4. replace whole line:

Code:
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I
with

Code:
const v0, 0x6033b5e5
6033b5e5 => aarrggbb (a=alpha, r=red, g=green, b=blue) => this is semi-transparent ICS-blue color :)

After this method draw looks like:
Code:
.method public draw(Landroid/graphics/Canvas;)V
    .locals 2
    .parameter "canvas"

    .prologue
    .line 2632
    const v0, 0x6033b5e5

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2633
    return-void
.end method
4a. For 'HighEndGfx' devices (like HTC One X) need to make something more:

4aa. Open file: %apktool_folder%\SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali

4ac. Replace tree lines of code ( do not copy numbers!!):
Code:
1. invoke-static {v0}, Landroid/app/ActivityManager;->isHighEndGfx(Landroid/view/Display;)Z
2. 
3. move-result v0
wiht one line of code ( do not copy numbers!!):

Code:
1. const v0, 0x0
4ad. Now fragment of method makeStatusBarView() looks like:

Code:
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplay:Landroid/view/Display;
    
    const v0, 0x0

    if-nez v0, :cond_0
5. Open SystemUI.apk with WinRAR or 7zip.

6. Compile SystemUI folder and go to %apktool_folder%\SystemUI\build\apk

7. Copy only classes.dex to SystemUI.apk.

8. Move SystemUI.apk to /system/app in phone.

9. Reboot.

10. Set permissions to rw-r-r (644)

11. ... and be happy to have transparent notification drawer. :)

This is 100% working in CM10, don't know what about others JB roms.

 

Attachments

Last edited:

jobayer

Senior Member
Jul 9, 2012
634
683
0
Dhaka
hey thanx. it works on expeacer's CM10 :D do u have the fix which disable the popup window of sim unlock? its appear after every restart
 

reaper61616

Senior Member
Nov 23, 2010
663
747
0
Brodnica
Mms.apk dark colored.
 

Attachments

shprakash

Senior Member
May 3, 2011
703
306
93
35
Bangalore
kamarush's JB :eek: !!!! kamarush didn't make it for mini. its only for mini pro. how did u get that???

---------- Post added at 11:56 PM ---------- Previous post was at 11:53 PM ----------

hey reaper thanx again :) it looks great. whats about simlock popup?
i some how managed to work it on mini... so only asked his help..:laugh:
 

shprakash

Senior Member
May 3, 2011
703
306
93
35
Bangalore
how!!! im noob :( would u please guide me??
from cm 10 of expeacer's zipped rom..
extract the zip file in there u'll see files like (dev,META-INF,system)
go to dev inside that u'll see a folder named st15 open that file ull see 3 files copy that.
and now extract kamarush's CM10 rom go to system now paste the copied files.
again make it as a zip file its done...:laugh:
 
  • Like
Reactions: jobayer

neurer

Member
Mar 10, 2011
33
20
28
Dimming button and lcd backlight

Running "CyanogenMod10 Alpha [12/07/24] by expeacer" on XM here. Switching to the button and lcd backlight values of "JellyBean 4.1.1 by kamarush" seems to have extendend battery lifetime quite a bit for me. Here's a quick guide:

  • open /system/etc/hw_config.sh
  • find paragraph "# LMU AS3676 Configuration"
  • add/modify this:

Code:
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1,70,255,52,24,5,80 > $dev/lcd-backlight/als/curve  # ALS curve for group1
echo 2,127,1,130,130,2,2 > $dev/button-backlight/als/curve  # ALS curve for group2
echo 2,127,1,130,130,2,2 > $dev/keyboard-backlight/als/curve  # ALS curve for group2
echo 3,0,2,0 > $dev/lcd-backlight/als/params  #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable  #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/button-backlight/als/enable  #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/keyboard-backlight/als/enable  #Sensor on/off. 1 = on, reg 90h
echo 500 > $dev/button-backlight/max_current
echo 5000 > $dev/keyboard-backlight/max_current
  • hint: keyboard-backlight values are for XMP
  • reboot
  • say thanks to kamarush if it works in your setup.
 
Last edited: