[TEST FIX][LSJ-LOCKSCREEN FREEZE] Test thread for Lockscreen Freeze fix - Galaxy S II Android Development

Hey all,
So early today an eagle eyed user on our forum www.alliance-rom.com (Kkillize) posted asking if the following could cause battery drain. The power profile.xml in framework-res.apk had the following:
Code:
<item name="cpu.idle">4</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">2100</item>
Now...last time I checked our device didnt have these values!! Seems samsung ported the S3 firmware and didnt change these entries.
I suspected these may be contributing if not responsible for the lockscreen freeze so me and Mirkoddd have tested changing these values today to what they should be...
Code:
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
...and so far have had 0 lockscreen freezes.
I have attached a link to a cwm framework-res.apk for deodexed LSJ for willing testers as this needs to be tested by lots of people. I have also attached the individual compiled xml for people on custom roms who want to drag this into their framework-res.apk.
MAKE A BACKUP AND DO NOT FLASH THE CWM ZIP ON A CUSTOM ROM!!!!
If you have already tried this and still get freezes, please shout up!!
Thanks
https://sourceforge.net/projects/goldiealliance/files/Stock-LSJ-LockscreenFreezeFixTest.zip/download

2hrs with no freeze

Mirko ddd said:
2hrs with no freeze
Click to expand...
Click to collapse
Yes.... I ran that all day yesterday with no freeze.
:thumbup:
I was scanning around and noticed that.
Sent from my SGH-I777 using Tapatalk 2

Seems too simple to me but we will see once people test it

Goldieking said:
Seems too simple to me but we will see once people test it
Click to expand...
Click to collapse
Funny thing is also...since I changed that bool setting I told you about.... earlier I haven't had any freeze either.
So I'm not sure if it's one or both you know?
Sent from my SGH-I777 using Tapatalk 2

As posted in the alliance forums, it definitely seems to be working. Tnx guys
Sent from my GT-I9100

Does that battery capacity value matter for users with the Samsung extended battery?
Sent from my GT-I9100 using Tapatalk 2

diffusal said:
Does that battery capacity value matter for users with the Samsung extended battery?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Yes because it effects how the phone reads the battery usage and it could show misinformation.
This is what the sgs2 should have with stock battery.
Code:
<device name="Android">
<item name="none">0</item>
<item name="screen.on">75</item>
<item name="bluetooth.active">32</item>
<item name="bluetooth.on">0.3</item>
<item name="screen.full">201</item>
<item name="wifi.on">0.3</item>
<item name="wifi.active">83</item>
<item name="wifi.scan">52</item>
<item name="dsp.audio">34</item>
<item name="dsp.video">265</item>
<item name="radio.active">242</item>
<item name="radio.scanning">82</item>
<item name="gps.on">1</item>
<array name="radio.on">
<value>2.7</value>
<value>3</value>
</array>
<array name="cpu.speeds">
<value>12000000</value>
<value>10000000</value>
<value>800000</value>
<value>500000</value>
<value>200000</value>
</array>
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
</device>

So for users with extended battery do we just change 1650 to 1950?
Sent from my GT-I9100 using Tapatalk 2

diffusal said:
So for users with extended battery do we just change 1650 to 1950?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
To get more accurate battery usage results..... yes...

Wow! Quiet thread, I thought loads of people would be wanting to test if this fixes the most annoying thing in LSJ. Without feedback and testers how can we know if it fixes the issue?

The lockscreen freeze happens mainly on wifi and is quite annoying.
Flashed the fix and will test it for at least 24hrs to come to a conclusion.
Kudos to whoever found this out. Does this also help in fixing battery drain on wifi?
Sent from the Matrix

rakeshishere said:
The lockscreen freeze happens mainly on wifi and is quite annoying.
Flashed the fix and will test it for at least 24hrs to come to a conclusion.
Kudos to whoever found this out. Does this also help in fixing battery drain on wifi?
Sent from the Matrix
Click to expand...
Click to collapse
It may help with drain i suppose yes. The more people who install it the better. Thanks

Goldieking said:
Hey all,
So early today an eagle eyed user on our forum www.alliance-rom.com (Kkillize) posted asking if the following could cause battery drain. The power profile.xml in framework-res.apk had the following:
Code:
<item name="cpu.idle">4</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">2100</item>
Now...last time I checked our device didnt have these values!! Seems samsung ported the S3 firmware and didnt change these entries.
I suspected these may be contributing if not responsible for the lockscreen freeze so me and Mirkoddd have tested changing these values today to what they should be...
Code:
<item name="cpu.idle">2</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
...and so far have had 0 lockscreen freezes.
I have attached a link to a cwm framework-res.apk for deodexed LSJ for willing testers as this needs to be tested by lots of people. I have also attached the individual compiled xml for people on custom roms who want to drag this into their framework-res.apk.
MAKE A BACKUP AND DO NOT FLASH THE CWM ZIP ON A CUSTOM ROM!!!!
If you have already tried this and still get freezes, please shout up!!
Thanks
https://sourceforge.net/projects/goldiealliance/files/Stock-LSJ-LockscreenFreezeFixTest.zip/download
Click to expand...
Click to collapse
Im on a custom rom so how can I safely apply this?
Omega 16.2
philz kernal 3.75
ICS XD AIO mod
GT-I9100

How do I change this if I have "the extended battery". The xml seems to be in some binary format

Take my cwm zip.
Copy your framework-res.apk from your phones system/framework folder to pc.
Download the xml attached in op.
Open your framework-res.apk with 7zip.
Drag the xml into the res/xml folder.
Close 7zip.
Replace the framework-res.apk in the flashable zip with the one you just edited and flash it in cwm.
Sent from my GT-I9100 using Tapatalk 2

Thanks but my ideal was to change The value to match my extended battery
Skickat från min GT-I9100 via Tapatalk 2

Goldieking said:
Take my cwm zip.
Copy your framework-res.apk from your phones system/framework folder to pc.
Download the xml attached in op.
Open your framework-res.apk with 7zip.
Drag the xml into the res/xml folder.
Close 7zip.
Replace the framework-res.apk in the flashable zip with the one you just edited and flash it in cwm.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Ok I will give it a try.
Omega 16.2
philz kernal 3.75
ICS XD AIO mod
GT-I9100

I am going to modify it to suit the 2000mah battery and test it. Why do we need to copy the framework-res.apk from the phone? Also, how to modify the xml file in the front page which is not allowing the text editor to edit. Thx.

Would you please share it with med also
Skickat från min GT-I9100 via Tapatalk 2

Related

Customizing ROM Home Screens.

I know where to edit to place items on the home screens during ROM install, as well as widgets and things.
What I do not know is how to find the identifiers for apps not already listed in the config.
For a widget (in red):
<!--b0d6e0e7-69f0-4d06-97fd-63cff0387fea-->
<item name="package_name">com.htc.htcsettingwidgets</item>
<item name="widget_name">htcbtwidgets.BTWidgetItem</item>
<item name="screen">1</item>
<item name="cell_x">1</item>
<item name="cell_y">0</item>​
And for an App (in red):
<!--fe680899-d34f-41f8-970a-22dd07aa9480-->
<item name="package">com.android.vending</item>
<item name="class">com.android.vending.AssetBrowserActivity</item>
<item name="screen">3</item>
<item name="x">3</item>
<item name="y">2</item>
<item name="itemtype">0</item>
Any help would be appreciated.
Thanks
D
try using adb
Code:
adb kill-server
adb start-server
pm list packages -f
Hy,
I'm new to Android kitchens...
I would like to know which file you edit to customize the home screen.
thx
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
Sent from my DROID2 using Tapatalk
thx,
Is there a similar file for basic sense?
Simeonn said:
thx,
Is there a similar file for basic sense?
Click to expand...
Click to collapse
Check out the /system/customize/ directory. It has a few subdirectories that contain default.xml files. That'll get you started.

[Q] Where is my homescreen wallpaper stored on ICS?

Hello all
As stated in the title I would like to know where exactly the default homescreen wallpaper image is stored on the ICS file system?
I am using version 4.0.3
Say for example I have a friend with a cool background wallpaper and that I want a copy of it.
Where exactly would I look in the android file system on his phone to get a copy of it?
Note: I do not want to download an app which manages my wallpaper images I want to find out how it works on ICS so that I can manage it myself.
I googled a bit and found the tutorial below at the end of this email.
It would appear that (on Gingerbread) wallpaper is managed by framework-res.apk
When I looked however at the different png files in "framework-res/res/drawable-hdpi" on my ICS installation I nothing what so ever that looks like my current home screen.
Another thread suggests the the wallpaper is stored under the system/media
On ICS I have 4 folders at that level
alarms
notifications
ringtones
ui
On ICS there are no images in any of these folders. The above was most likely true for Gingerbread but not ICS.
Is wallpaper managed by the launcher or by ICS itself?
Am I the only one who had this problem on ICS?
Can any one please help or provide a few clues?
# tutorial start
One of the most interesting leads I found is the tutorial below
http://forum.xda-developers.com/showthread.php?t=1057132&page=2
Difficulty level: Medium
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>
9. Create a 480x800 png to your liking, name it mybackground.png and place it in drawable-hdpi folder
9. Recompile framework-res.apk
# tutorial end
TIA
@+
On your pc or in root explorer unzip the rom
then system\app\TwWallpaperChooser\res\drawable-hdpi
Unzip as you go..
stock wallpapers are in drawable-hdpi
Hope this helps

[Mod]+[Guide] [Statusbar Animation]

Hay Guys/Girl I'm Back..
Now I Will Present Statusbar Animation...
It's So Simple,.
No Screeshoot Cause You Will Se After Hack Your UI
Istall With HackUI
Download: View attachment HackUI.apk
1. Make A New Folder On Sdcard Name It (.tjatoer)
2. Put Your SystemUI.apk To .tjatoer
3. Open HackUI And Hack Your System UI (No Reboot)
Download:
Droid :View attachment SystemUIAndroid.apk
Gangnam :View attachment SystemUIGangnam.apk
Matrix :View attachment SystemUIMartix.apk
Honey :View attachment SystemUIHoney.apk
Rename SystemUIGangnam.apk To SystemUI.apk
Guide How To Apply To Ur Statbar:
Download:View attachment drawable.zip
1. Download And Extact Zip File
2. Open The One File With Notepad++ (I Think It's No Need>status_bar_background_animation.xml)
3. U See File status_bar_afrizal_bg Like This
Code:
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1000" android:drawable="@drawable/afrizal01" />
<item android:duration="1000" android:drawable="@drawable/afrizal02" />
<item android:duration="1000" android:drawable="@drawable/afrizal03" />
<item android:duration="1000" android:drawable="@drawable/afrizal04" />
<item android:duration="1000" android:drawable="@drawable/afrizal05" />
<item android:duration="1000" android:drawable="@drawable/afrizal06" />
<item android:duration="1000" android:drawable="@drawable/afrizal07" />
<item android:duration="1000" android:drawable="@drawable/afrizal08" />
<item android:duration="1000" android:drawable="@drawable/afrizal09" />
<item android:duration="1000" android:drawable="@drawable/afrizal10" />
<item android:duration="1000" android:drawable="@drawable/afrizal11" />
<item android:duration="1000" android:drawable="@drawable/afrizal12" />
<item android:duration="1000" android:drawable="@drawable/afrizal13" />
<item android:duration="1000" android:drawable="@drawable/afrizal14" />
<item android:duration="1000" android:drawable="@drawable/afrizal15" />
<item android:duration="1000" android:drawable="@drawable/afrizal16" />
<item android:duration="1000" android:drawable="@drawable/afrizal17" />
<item android:duration="1000" android:drawable="@drawable/afrizal18" />
<item android:duration="1000" android:drawable="@drawable/afrizal19" />
<item android:duration="1000" android:drawable="@drawable/afrizal20" />
<item android:duration="1000" android:drawable="@drawable/afrizal21" />
<item android:duration="1000" android:drawable="@drawable/afrizal22" />
<item android:duration="1000" android:drawable="@drawable/afrizal23" />
<item android:duration="1000" android:drawable="@drawable/afrizal24" />
<item android:duration="1000" android:drawable="@drawable/afrizal25" />
<item android:duration="1000" android:drawable="@drawable/afrizal26" />
<item android:duration="1000" android:drawable="@drawable/afrizal27" />
<item android:duration="1000" android:drawable="@drawable/afrizal28" />
<item android:duration="1000" android:drawable="@drawable/afrizal29" />
<item android:duration="1000" android:drawable="@drawable/afrizal30" />
<item android:duration="1000" android:drawable="@drawable/afrizal31" />
<item android:duration="1000" android:drawable="@drawable/afrizal32" />
</animation-list>
4. Provide Ur Picture Animation Should PNG, And Change Name Like That There Is In status_bar_afrizal_bg
5. If Ur Pictures Animation There Are 10 Images Remove Code Line 14 Until 35
6. Now Decompile Ur SystemUI
7. Go To res\drawable Copy One File To res\drawable
8. And Go To res\layout\status_bar_expanded.xml Here On Line 2 (android:background=".............................")
Replace With (android:background="@drawable/status_bar_afrizal_bg")
9.Copy Ur Picture To res\drawable-ldpi
10. Now Compile Ur System UI, Sign And Put Your SystemUI.apk To sdcard\.tjatoer
11. Open HackUI And Hack Your System UI
Name afrizal U Can Change The Name With Your Own Name Or Whatever
Note: So Sorry, Cause I Wear In My SystemUI (android:background="..........") Located In res\layout\status_bar_expanded.xml
Another Time I Decompile Some SystemUI (android:background="........") Located In res\layout\status_bar_tracking.xml
Im Sorry. I Have Exams.
Thanks:
Allah
Nabi Muhammad SAW
Mom & Dad
Dewy
Marin Alin. (I Use Ur SystemUI To Present Statusbar Animation)
Evanlocked.
Dawam A
Dimas Adi
Khakiki
Fedy
Zallz.
Cbr
Rata Bb
Kirafuda R
Ncez.
Lihat Selengapnya
Official Grup Galaxy Young Indonesia
All....
Sorry For My Very Pery Bad English..
cool,but its coooler with screenies or a lil video i think,i think i make a lil screenvideo.
Could you please give a proper tutorial with steps.
What i have done :
Made folder > opened hackui > clicked given button, a notifcation displayed in status bar > then systemhoneyui.apk pasted in the folder > then installed it.
Then my status bar lost. Bur when again open hackui and clicked the button status bar comes as it is.
Sent from Earth
Quote:
androite said:
Could you please give a proper tutorial with steps.
What i have done :
Made folder > opened hackui > clicked given button, a notifcation displayed in status bar > then systemhoneyui.apk pasted in the folder > then installed it.
Then my status bar lost. Bur when again open hackui and clicked the button status bar comes as it is.
Sent from Earth
Click to expand...
Click to collapse
Rename to SystemUI.apk
What exact the app do???
Please xplain more.....
Same happens said as androite..
Sorry for bad English
Sent from my GT-S5360
This gay scumbag, why u dont give credit for hackUI creator?
(T_T)
Cool
Sent from my GT-S5360 using xda app-developers app
madfrog91 said:
This gay scumbag, why u dont give credit for hackUI creator?
Click to expand...
Click to collapse
Tjatoer is the creator of hackui and see the credits idiot before saying a word.
Edit : Op for which rom is this ? coz i tried it on minirom and it gave a force close.
Afrizal Firmansyah said:
2. Put Your SystemUI.apk To .tjatoer
Click to expand...
Click to collapse
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
androite said:
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
Click to expand...
Click to collapse
If u want animations.then put your downloaded status bar n rename to systemUI.apk.then open hack UI hit OK and poof.
A systemui android has jellybean style.like Marinalin theme.cmiiw
Sent from my GT-S5360 using xda app-developers app
---------- Post added at 10:47 AM ---------- Previous post was at 10:42 AM ----------
N if ur statusbar lost just delete sdcard/.tjatoer/systemUI.apk n replace with your previous systemUI.n hit OK.u will get your previous UI.
Sorry my bad Eng
Sent from my GT-S5360 using xda app-developers app
Quote:
androite said:
You mean our ROM's systemui or the one downloaded ??
Sent from Earth
---------- Post added at 01:29 PM ---------- Previous post was at 01:11 PM ----------
Worst app ever.
I permanently lost my status bar.
Untrustful app. :thumbdown:
Sent from Earth
Click to expand...
Click to collapse
.tjatoer folder on sdcard
install statusbargreeper1.8.1,apk and maybe you will not lose ur statusbar
not working on hyperion
force close why?
cool
@op
this is pulldown animation,right?
i see ure code look like a pulldown anomation
cmiiw
Worked for anybody here?
Sent from my GT-S5360 using xda premium
Hey op.how to make statusbar transparant?coz I change some PNG its still black.and sorry I change afrizal01-38..here teh screenis
Sent from my GT-S5360 using xda app-developers app
Sent from my GT-S5360 using xda app-developers app
@psidco
you dont need to change any png file. just change the hex code in status_bar.xml from
android:background="ff000000"
to
android:background="00000000"
this is look like animation pulldown
and the background can change using png from bootanimation
just rename of png
cmiiw

[help] port speed net meter for kitkat

Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.
This is the source of the speed net meter:
SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>
SystemUI>res/values/styles.xml
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style>
PS: i'm using apktool v2.0.0b9.
In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fatminmin.xposed.networkspeedindicator
es0tericcha0s said:
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:
Click to expand...
Click to collapse
thanks, but i don't want use xposed! :good:
Help :c
moderators, close the thread! resolved!
ramon20 said:
moderators, close the thread! resolved!
Click to expand...
Click to collapse
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
kermage said:
mind mentioning first what was wrong? could be helpful for others having the same problem.. :fingers-crossed:
Click to expand...
Click to collapse
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
ramon20 said:
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
Click to expand...
Click to collapse
:good:

[MOD|TUTORIAL]Pixel 2 XL Launcher Mods (Jan & Feb 2020) Updated 2/10/2020

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am not responsible for your device.
You must be rooted.​
The lastest uploads can be found HERE and HERE.
I will not be taking any more requests. Honestly, I'm just tired of modding this apk. I've got it how I like it, and I made a couple of other versions based off of what users have said they wanted.
If you want something different that what's posted here, you'll have to mod it yourself. See the section below to learn how to do that. It's not difficult, not "overly" time consuming, and the tools are free.
If you need help with how to complete the mods, or questions about the process in general, I will of course be more than willing to help you out. Just ask.
MIY (Mod It Yourself)
Have you used the instructions below to make your own unique mods to the Pixel 2 Launcher?
If so, you should share them with everyone! Post them up and I'll link to them here in the first post.
Also, let me know whether or not you found the instructions easy to understand.
I've heard that a lot of Android newbies have hopped on board with the release of the Pixel 2 series. If that's you, welcome to the wonderful world of Android!
Due to this, I'm going to take this tutorial from the top and break it down step by step.
The Setup
Tools Required:
A computer
Java installed: https://java.com/en/
A rooted Pixel 2 XL - How to root Pixel 2 XL
Proper drivers for the Pixel 2 XL.
Apktool - https://ibotpeaches.github.io/Apktool/ (scroll down and download the newest version)
Platform Tools (newest version - 16.0.2, at the time of this writing) - https://developer.android.com/studio/releases/platform-tools.html (Choose your OS version - Windows, OS, or Linux)
Text Editor - I use Notepad++ https://notepad-plus-plus.org/download/v7.5.1.html
7zip - a free zip extractor. Not necessary, but definitely better than using Windows built-in zip tool.
Step 1 - Ensure you have USB Debugging enabled on your phone
If you don't know how to do that:
Go to Settings>System>About Phone
Tap on "Build Number" seven times. You will see a message that says you are now a developer
Go back one screen to Settings>System
Click on "{ } Developer Options"
Scroll down a tiny bit to the "Debugging" section
Turn on "USB Debugging"
Plug your phone into your PC and answer the prompt on your phone to "Allow USB debugging?" Check the checkbox to "Always allow from this computer," then click "OK."
Step 2 - Ensure you have the proper drivers for the Pixel 2 XL installed on your PC. Plugging up your phone to your PC should cause Windows to automatically download and install them for you, or if you've ever had a Pixel or Nexus phone in the past, then you probably already have them; but if not, you can get them from here - https://developer.android.com/studio/run/win-usb.html
Step 3 - If necessary, download and install Notepad++ or whatever text editor you downloaded.
Step 4 - Create a new folder somewhere and call it whatever you like. We are going to put all of the stuff we just downloaded in said folder. For the purposes of this tutorial we'll call the folder MyAndroidMods.
Step 5 - Download Apktool from the link above and put it in in the MyAndroidMods folder. Rename the apktool_2.3.0.jar (version 2.3.0 at the time of this writing) to just apktool.jar
Step 5.5 - Download the Apktool Windows wrapper script - https://ibotpeaches.github.io/Apktool/install/ (This step is not necessary, but it makes things easier, trust me)
- Do as the instructions say, and right-click the hyperlink "wrapper script" text, and choose "Save Link As..." from the context menu. Save it as "apktool.bat" to the MyAndroidMods folder.
- If you should accidentally save it as "apktool.bat.txt," just delete the ending ".txt" part so that it becomes just "apktoo.bat" Windows will ask you if you're sure you want to change it because changing it might make the file unstable. Just click "Yes."
- The point of the apktool.bat file is that when we get to the command line part we will only have to type "apktool (perform command here)" instead of "java -jar apktool.jar (perform command here)." Believe me, every second saved is great.​Step 6 - Dowload the Platform Tools using the link provided above. It doesn't matter where you save the zip.
Step 7 - Extract the "platform-tools-latest-windows" zip. It doesn't matter where.
Step 8 - Copy all of the contents from inside the extracted "platform-tools-latest-windows\platform-tools" folder into your MyAndroidMods folder.
Step 9 - On your PC, go to C:\Windows\System32
Step 10 - Scroll down until you find the "cmd.exe" file.
Step 11 - Copy the cmd.exe file into your MyAndroidMods folder (this way we won't have to CD into your folder)
Step 13 - On your phone, go to /system/priv-app/NexusLauncherPrebuilt and copy the NexusLauncherPrebuilt.apk to your phone's Main Storage.
Step 14 - Plug your phone into your PC if it's not already.
Step 15 - On your phone, click the "USB charging this device" notification and change it to "Transfer files."
Step 15 - Copy or move the NexusLauncherPrebuilt.apk from your phone's Main Storage to the MyAndroidMods folder on your PC.
Step 16 - On your phone, go to /system/framework and copy the framework-res.apk to your phone's Main Storage.
Step 17 - Copy or move the framework-res.apk from your phone's Main Storage to the MyAndroidMods folder on your PC.
Step 18 - THE SET UP IS NOW COMPLETE! CONGRATULATIONS!
Ensure that your MyAndroidMods folder looks like the image below. Notice everything is in the root of the MyAndroidMods folder. Ensure that there is: apktool.bat, apktool.jar, cmd.exe, all the platform tool files, framework-res.apk, and the NexusLauncherPrebuilt.apk.
Using Apktool
For the purposes of this tutorial, we will only be concerning ourselves with three apktool commands:
- Installing the framework
- Decompiling an apk
- Recompiling an apk
Step 1 - The first thing we need to do is install the framework. To do that:
- Double click the cmd.exe in your MyAndroidMods folder
- In the command prompt window that opens up, type:
Code:
apktool if framework-res.apk
- You should then see a message that says, "Framework installed to:.......", like so:
Step 2 - Decompiling the Launcher.apk
- In the command prompt window, type:
Code:
apktool d NexusLauncherPrebuilt.apk
- Once that process is finished, it should look like this:
Step 3 or the last step after you've made your mods - Recompiling the apk
- In the command prompt window, type:
Code:
apktool b NexusLauncherPrebuilt -c
- Once that process is finished, it should look like this:
The Good Stuff - How to Make the Mods
Open up the files mentioned in the sections below using your favorite text editor.
To remove the text from ONLY the home screen:
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseIcon.Workspace" parent= [user=262514]@style[/user]/BaseIcon">
<item name="android:shadowColor">?workspaceShadowColor</item>
<item name="android:shadowRadius">2.0</item>
<item name="ambientShadowColor">?workspaceAmbientShadowColor</item>
<item name="ambientShadowBlur">2.5dip</item>
<item name="keyShadowColor">?workspaceKeyShadowColor</item>
<item name="keyShadowBlur">1.0dip</item>
<item name="keyShadowOffset">0.5dip</item>
</style>
Add this line somewhere in between the <style> brackets:
Code:
<item name="android:textColor">#00000000</item>
** This will also remove the text from the applications inside folders on the home screen when in the "dark theme." Continue reading towards the bottom to find out how to add that text back.
SAVE THE FILE
To remove the text from the app drawer:
Go to res/values/styles.xml, and find this section:
Code:
<style name="BaseIcon">
<item name="android:textColor">?android:textColorSecondary</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowRadius">0.0</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
Change the "android:textColor" value from "?android:textColorSecondary" to #00000000.
SAVE THE FILE
To make the G in the search bar always be in color:
Go to res/values/styles.xml, and find this section:
Code:
<style name="HotseatQsbTheme">
<item name="gIcon">@drawable/ic_super_g_shadow</item>
<item name="micIcon">@drawable/ic_mic_shadow</item>
</style>
Change it to this:
Code:
<style name="HotseatQsbTheme">
<item name="gIcon">@drawable/[COLOR="red"][B]ic_super_g_color[/B][/COLOR]</item>
<item name="micIcon">@drawable/[COLOR="red"][B]ic_mic_color[/B][/COLOR]</item>
</style>
SAVE THE FILE
To change the icon size, change the number or rows or columns in home screen, to change the number of icons in the hotseat, or to change the max number or rows or columns in home screen folders:
Go to /res/xml/device_profiles.xml, and find this line:
Code:
<profile launcher:name="Taimen" launcher:minWidthDps="387.0" launcher:minHeightDps="750.0" launcher:numRows="5" launcher:numColumns="5" launcher:numFolderRows="4" launcher:numFolderColumns="4" launcher:minAllAppsPredictionColumns="4" launcher:numHotseatIcons="5" launcher:iconSize="54.0" launcher:landscapeIconSize="52.0" launcher:iconTextSize="13.0" launcher:defaultLayoutId="@xml/default_workspace_5x5" />
Change these values to whatever size you want. They should be self-explanatory:
- launcher:iconSize="54.0"
- launcher:landscapeIconSize="52.0"
- launcher:numRows="5"
- launcher:numColumns="5"
- launcher:numFolderRows="4"
- launcher:numFolderColumns="4"
- launcher:numFolderRows="4"
- launcher:numHotseatIcons="5"
*Keep in mind that changing the iconSize, numRows, and numColumns affects both the home screen and the app drawer.
SAVE THE FILE
To remove the page indicator from the home screen:
Go to /res/values/dimens.xml, and find these lines:
Code:
<dimen name="dynamic_grid_min_page_indicator_size">32.0dip</dimen>
<dimen name="dynamic_grid_page_indicator_line_height">1.0dip</dimen>
Change both of their values to "0.0dip"
To remove the home screen app drawer up arrow:
Go to /res/values/dimens.xml, and find these lines:
Code:
<dimen name="all_apps_caret_size">13.0dip</dimen>
<dimen name="all_apps_caret_workspace_offset">18.0dip</dimen>
Change both of those values to "0.0dip"
SAVE THE FILE
To remove the white-haze background from the hotseat and remove the white background from the app drawer:
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseLauncherThemeWithCustomAttrs" parent= [user=262514]@style[/user]/BaseLauncherTheme">
<item name="allAppsScrimColor">#ccffffff</item>
<item name="allAppsNavBarScrimColor">#66ffffff</item>
<item name="popupColorPrimary">#ffffffff</item>
<item name="popupColorSecondary">#fff5f5f5</item>
<item name="popupColorTertiary">#ffe0e0e0</item>
<item name="isMainColorDark">false</item>
<item name="isWorkspaceDarkText">false</item>
<item name="workspaceTextColor" [user=365912]@and[/user]roid:color/white</item>
<item name="workspaceShadowColor">#b0000000</item>
<item name="workspaceAmbientShadowColor">#33000000</item>
<item name="workspaceKeyShadowColor">#44000000</item>
<item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
<item name="widgetsTheme" [user=262514]@style[/user]/WidgetContainerTheme</item>
</style>
Change the "allAppsScrimColor" value to "#00000000"
**After making the app drawer mostly transparent, you may want to consider changing the text for the "light theme" to white with a text shadow so it shows up better. Keep reading to find out how to do that.
SAVE THE FILE
To remove the semi-transparent, app drawer navbar shade while in the "light theme":
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseLauncherThemeWithCustomAttrs" parent= [user=262514]@style[/user]/BaseLauncherTheme">
<item name="allAppsScrimColor">#ccffffff</item>
<item name="allAppsNavBarScrimColor">#66ffffff</item>
<item name="popupColorPrimary">#ffffffff</item>
<item name="popupColorSecondary">#fff5f5f5</item>
<item name="popupColorTertiary">#ffe0e0e0</item>
<item name="isMainColorDark">false</item>
<item name="isWorkspaceDarkText">false</item>
<item name="workspaceTextColor" [user=365912]@and[/user]roid:color/white</item>
<item name="workspaceShadowColor">#b0000000</item>
<item name="workspaceAmbientShadowColor">#33000000</item>
<item name="workspaceKeyShadowColor">#44000000</item>
<item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
<item name="widgetsTheme" [user=262514]@style[/user]/WidgetContainerTheme</item>
</style>
Change the "allAppsNavBarScrimColor" value to "#00000000".
Alternatively, if you want to make it a semi-transparent black color, change that value to "#80000000".
SAVE THE FILE
To change the app drawer "light theme" text to white with a text shadow:
Go to /res/values/styles.xml, find this section, and perform the changes in red:
Code:
<style name="BaseIcon">
<item name="android:textColor">?android:textColorSecondary</item> [B][COLOR="red"]**Change this value to #ffffffff**[/COLOR][/B]
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowColor">#b0000000</item>[B][COLOR="red"] **ADD this line**[/COLOR][/B]
<item name="android:shadowRadius">0.0</item> [B][COLOR="Red"]**Chang this value to 2.0 or 3.0. This value refers to the blur radius of the shadow.**[/COLOR][/B]
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
**The BaseIcon style above also controls the folder icon text and the deep shortcut icon text. Since we've changed the text to white here, we need to change the folder icon text to a darker color so that it shows up better.
Also, since we've added a text shadow to the text to make it stand out better again light backgrounds, we need to alter the deep shortcut text to keep it looking clean.
Keep reading to find out how to do both of these things.
SAVE THE FILE
To change the color of the folder application icon text and remove its shadow:
1. Go to /res/values/styles.xml.
2. Add the code below as an entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
2.5 The color is set by the "android:textColor" value. In my example below it's set to a dark gray (the default color). You can set the color here to whatever you want.
Code:
<style name="FolderIcon">
<item name="android:textColor">#00000000</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
3. Also, add the code below as another entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
Code:
<style name="FolderApplications">
<item name="android:textColor">?android:textColorSecondary</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowColor">#00000000</item>
<item name="android:shadowRadius">0.0</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
SAVE THE FILE
4. Go to /res/layout/folder_application.xml
5. Find this line:
Code:
<com.android.launcher3.BubbleTextView android:includeFontPadding="false" launcher:iconDisplay="folder" style= [user=262514]@style[/user]/BaseIcon"
6. Change the "style" value from @style/BaseIcon to @style/FolderApplications
SAVE THE FILE
7. Go to /res/layout/folder_icon.xml
8. Find this line:
Code:
<com.android.launcher3.views.DoubleShadowBubbleTextView android:layout_gravity="top" android:id="@id/folder_icon_name" android:focusable="false" android:layout_width="fill_parent" android:layout_height="fill_parent" style= [user=262514]@style[/user]/FolderIcon" />
9. Change the "style" value from @style/BaseIcon to @style/FolderIcon
SAVE THE FILE
To make the status bar and navbar icons stay white when in the app drawer while using the "light theme":
1. Go to \smali\com\android\launcher3\allapps\AllAppsTransitionController.smali
2. Find this line (it should be line 1737):
Code:
invoke-direct {p0, v2}, Lcom/android/launcher3/allapps/AllAppsTransitionController;->updateLightStatusBar(F)V
3. Delete that entire line of code.
SAVE THE FILE
To make the status bar and navbar icons stay white when in the app drawer while using the "light theme" - ON THE ANDROID P DP1 LAUNCHER:
1. Go to \smali\com\android\launcher3\allapps\AllAppsTransitionController.smali
2. Delete line 528 and line 540.
SAVE THE FILE
To remove the text-shadow that got added to the deep shortcuts icon text:
1. Go to /res/values/styles.xml.
2. Add the code below as an entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
Code:
<style name="DeepShortcutIcon">
<item name="android:textColor">#ff333333</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
SAVE THE FILE
3. Go to /res/layout/deep_shortcut.xml
4. Find this line:
Code:
<com.android.launcher3.shortcuts.DeepShortcutTextView android:textSize="14.0sp" android:textColor="?android:textColorPrimary" android:gravity="start|center" android:id="@id/bubble_text" android:background="?android:selectableItemBackground" android:drawablePadding="@dimen/deep_shortcut_drawable_padding" android:drawableEnd="@drawable/deep_shortcuts_drag_handle" android:fontFamily="sans-serif" android:textAlignment="viewStart" android:paddingStart="@dimen/deep_shortcuts_text_padding_start" android:paddingEnd="@dimen/popup_padding_end" launcher:layoutHorizontal="true" launcher:iconSizeOverride="@dimen/deep_shortcut_icon_size" launcher:iconDisplay="shortcut_popup" style= [user=262514]@style[/user]/BaseIcon" />
5. At the very end of that line of code, change the "style" value from @style/BaseIcon to @style/DeepShortcutIcon
6. Go to /res/layout/system_shortcut.xml
7. Find this line:
Code:
<com.android.launcher3.BubbleTextView android:textSize="14.0sp" android:textColor="?android:textColorPrimary" android:gravity="start|center" android:id="@id/bubble_text" android:background="?android:selectableItemBackground" android:focusable="false" android:fontFamily="sans-serif" android:textAlignment="viewStart" android:paddingStart="@dimen/deep_shortcuts_text_padding_start" android:paddingEnd="@dimen/popup_padding_end" launcher:layoutHorizontal="true" launcher:iconDisplay="shortcut_popup" style= [user=262514]@style[/user]/DeepShortcutIcon"
8. At the very end of that line of code, change the "style" value from @style/BaseIcon to @style/DeepShortcutIcon
SAVE THE FILE
To change the border-radius (the "roundess of the corners") of the home screen folders:
1. Go to /res/drawable/round_rect_primary.xml
2. Find this line:
Code:
<corners android:radius="2.0dip" />
3. Change that value to whatever you want. The higher the number, the more rounded the corners. 0.0dip would be not rounded at all.
SAVE THE FILE
Recovering from a mistake
Flash the stock Pixel 2 Launcher zip using TWRP.
Just tried on 8.0 (Nov 5 Security Patch), does not work. Threw an error message along the lines of "Display Manager has failed" over and over. Thankfully I could pull the notification shade and ask the assistant to get my back to my file manager to switch the app back. In other news, it doesn't look like a reboot is necessary for this to take effect.
gettingerr said:
Just tried on 8.0 (Nov 5 Security Patch), does not work. Threw an error message along the lines of "Display Manager has failed" over and over. Thankfully I could pull the notification shade and ask the assistant to get my back to my file manager to switch the app back. In other news, it doesn't look like a reboot is necessary for this to take effect.
Click to expand...
Click to collapse
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Sent from my Pixel 2 XL using XDA Labs
sharkie405 said:
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Click to expand...
Click to collapse
Switched over to Nova this morning but I'm sure others would still like the mods. Here's the November 8.0 apk
Sir, could you port it to Nougat (7.1.2), with the ability to hide apps icon?
Works on 7.1.2 DarkRom on my Redmi Note 4, thanks a lot !
Thanks for this. Works on my galaxy tab 3 7.0 running on rr remix 5.8.4 , my only issue is I don't have that google search bar at the top of the drawer
Works on Mediatek too!
Android One (7.0) from General Mobile 6 crossported to DOOGEE Y6.
Thanks.
sharkie405 said:
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Sent from my Pixel 2 XL using XDA Labs
Click to expand...
Click to collapse
I'll give it a shot on my Pixel 2 whenever the 8.0 mods are available. Thank you so much for this... I love the simple stock launcher but cannot handle that annoying little arrow.
Ra6idr0y said:
I'll give it a shot on my Pixel 2 whenever the 8.0 mods are available. Thank you so much for this... I love the simple stock launcher but cannot handle that annoying little arrow.
Click to expand...
Click to collapse
I didn't bother with it last night since the person who requested said they moved on to Nova. But I'll do one with that 8.0 apk this evening for sure.
It's odd, however, that someone said it didn't work on 8.0, but two others have said it works on 7.1.2.
sharkie405 said:
I didn't bother with it last night since the person who requested said they moved on to Nova. But I'll do one with that 8.0 apk this evening for sure.
It's odd, however, that someone said it didn't work on 8.0, but two others have said it works on 7.1.2.
Click to expand...
Click to collapse
I'm impatient so gave this a shot on my Pixel 2 running 8.0 SEP security update... Works! I had Nova set as default home while moving/backing up the the files and also, I set the permissions to match the existing launcher apk before setting it as my new default. Only thing I noticed is the nav bar in the app drawer has an additional layer of semitrans black over it... probably normal or new from google with the update; don't remember it from before (would love to get rid of that too :angel.
Ra6idr0y said:
I'm impatient so gave this a shot on my Pixel 2 running 8.0 SEP security update... Works! I had Nova set as default home while moving/backing up the the files and also, I set the permissions to match the existing launcher apk before setting it as my new default. Only thing I noticed is the nav bar in the app drawer has an additional layer of semitrans black over it... probably normal or new from google with the update; don't remember it from before (would love to get rid of that too :angel.
Click to expand...
Click to collapse
The layer on the navbar would be a framework-res mod. Unfortunately, Apktool hasn't worked to mod the Pixel framework-res.apk since Oreo.
Sent from my Pixel 2 XL using XDA Labs
Thanks Dev, is working fine on my device Redmi 3 rrRemix 7.1.2
like this
sharkie405 said:
The layer on the navbar would be a framework-res mod. Unfortunately, Apktool hasn't worked to mod the Pixel framework-res.apk since Oreo.
Click to expand...
Click to collapse
Thanks, I was wondering what you were using to mod. Good to know apktool is still the default. I used it all the time back in the day with my Droid Incredible for theming.
What are your thoughts on the home screen widget? Hide/disable?
Ra6idr0y said:
What are your thoughts on the home screen widget? Hide/disable?
Click to expand...
Click to collapse
I've spent the last hour or so tinkering with it. I can "hide" it, as in hide the text, but the space is still taken up now by empty, unusable space. I assume "actually" removing it would require a smali edit, which I honestly don't feel like messing with. It doesn't seem to be possible with just /res files.
verzero said:
Thanks Dev, is working fine on my device Redmi 3 rrRemix 7.1.2
like this
Click to expand...
Click to collapse
How to get Weather info beside date info bruh?
sir... can you add option to hide google search icon on botton please....???
---------- Post added at 11:53 AM ---------- Previous post was at 11:44 AM ----------
also..after editing build.prop (to add qemu.hw.mainkeys=1)in my nexus 6p running latest november oreo update,some issues i faced are:
> after booting finished the screen got black and after long power button press,pop shows for restart,shutdown that what i only able to see and do.
>then it automatically shows "factory data resetting" .
>this process continue each time when i restart the phone.
Capt_N3m0 said:
How to get Weather info beside date info bruh?
Click to expand...
Click to collapse
Are u don't get weather info? I don't know how, this like normal for pixel launcher
sharkie405 said:
I am not responsible for your device.
You must be rooted.
Click to expand...
Click to collapse
Question, do you think you might be able to modify the launcher so that it doesn't have that horrible foggy white fade on the bottom third of the homescreen? I hate how much that washes out the colors of my wallpapers. If so could you do one that only has that mod and the mod to make the colored G in the search? Thanks in advance either way.

Categories

Resources