Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,414 Members 53,564 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][4.4][rooted] How to force enable low RAM mode and status bar transparent

Tip us?
 
thichthat
Old
(Last edited by thichthat; 10th March 2014 at 02:37 PM.)
#1  
Member - OP
Thanks Meter 37
Posts: 30
Join Date: Nov 2012
Default [GUIDE][4.4][rooted] How to force enable low RAM mode and status bar transparent

I've heard somebody told that they had to disable low RAM function in Kitkat to enable status bar transparent. So in this post, I'll show you how to enable low Ram but the status bar still can be transparent when you're in launcher or lockscreen

First, we need:
- your phone rooted, deodexed running android 4.4+
- Nandroid backup (very important)
- Apktool and you know how to use it
- Notepad++

Ok, so let's start:
Step 1: copy these file from your phone to your computer:
/system/framework/framework.jar
/system/priv-app/SystemUI.apk
/system/build.prop

Step 2: open build.prop in notepad++, find this line:

Code:
Select Code
ro.config.low_ram=
if it say "true", skip to step 4
if it say "false", just change to "true" and reboot your phone
if you can not find this line, or nothing change after you changed it to "true" and reboot, follow step 3

Step 3: (force enable low Ram)
Add this line to your build.prop

Code:
Select Code
ro.config.low_ram.mod=true
Now use apktool to decompile your framework.jar
Navigate to \framework.jar.out\smali\android\app\ActivityManag er.smali, open it in notepad++
Find this line:

Code:
Select Code
ro.config.low_ram
And change it to

Code:
Select Code
ro.config.low_ram.mod
Compile, push it back to your phone and reboot
Wait until your phone booted up

Step 4: (force enable status bar transparent)
Decompile SystemUI.apk
Navigate to \SystemUI\smali\com\android\systemui\statusbar\pho ne\BarTransitions.smali
find these line:

Code:
Select Code
    invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z

    move-result v0
Change it to

Code:
Select Code
    const/4 v0, 0x1
Compile and push it back to your phone

Done

Sorry for my bad english. This is my first post since I used xda. Hope you like it!
The Following 4 Users Say Thank You to thichthat For This Useful Post: [ Click to Expand ]
 
moonship
Old
#2  
moonship's Avatar
Senior Member
Thanks Meter 42
Posts: 111
Join Date: Mar 2014
Location: Kassel
Thank you for your post
 
Bert98
Old
#3  
Bert98's Avatar
Senior Member
Thanks Meter 193
Posts: 717
Join Date: Jul 2012
Location: Sant'Urbano (PD)
Bro I'd love to have this, but my de-recompiling skills are next to 0. If I upload the files, would you mind doing it for me? Thanks 😁

Inviato dal mio Xperia U utilizzando Tapatalk
Moto G XT1032 8Gb
-ROM: AOSPA 4.5 Alpha 2
-KERNEL: Pink Kernel

Nexus 7 Grouper 16Gb
-ROM: AOSPA 4.5 Alpha 2
-Kernel: M-Kernel a69

#stayparanoid
 
thichthat
Old
#4  
Member - OP
Thanks Meter 37
Posts: 30
Join Date: Nov 2012
Quote:
Originally Posted by Bert98 View Post
Bro I'd love to have this, but my de-recompiling skills are next to 0. If I upload the files, would you mind doing it for me? Thanks 😁

Inviato dal mio Xperia U utilizzando Tapatalk
Please check your code again. You saw that error when you compile framework-res or SystemUI?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes