How to set custom Sview Background Image
Or change Time Out for Sview Display of Note 3_ 4.3 Deodexed Roms and Odexed Stock Roms
DISCLAIMER!: I DID NOT FORCE YOU TO TRY THIS! IF YOU BORK UP YOUR PHONE, IT'S NOT MY FAULT!
For Kit Kat see post #14 By:hilmi94zul
Things you will need:
Safestrap Recovery
Favorite "DEODEXED" Rom.
7zip
For Odexed Stock Rom you will need Root file system explorer/editor (I used Root Explorer PRO, because I think it's awesome.) and these files under "NoModdedTimeOut" like the name says there is not a modded time out but you can get custom SView Background with Stock Rom HERE Please Create your own custom "mainbg_pattern_mainarea.png" from step 1 then proceed to step 7 for Stock 4.3 .
Notepad++
Android Multitool
Anything you need to get Android Multitool working on your computer.
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
Step 7.
Thanks:
tcitchicruise for letting us know where the background image was.
Flextrick for making Android Multitool!
Hashcode for Safestrap Recovery!
hilmi94zul for Kit Kat Method
Or change Time Out for Sview Display of Note 3_ 4.3 Deodexed Roms and Odexed Stock Roms
DISCLAIMER!: I DID NOT FORCE YOU TO TRY THIS! IF YOU BORK UP YOUR PHONE, IT'S NOT MY FAULT!
For Kit Kat see post #14 By:hilmi94zul
Things you will need:
Safestrap Recovery
Favorite "DEODEXED" Rom.
7zip
For Odexed Stock Rom you will need Root file system explorer/editor (I used Root Explorer PRO, because I think it's awesome.) and these files under "NoModdedTimeOut" like the name says there is not a modded time out but you can get custom SView Background with Stock Rom HERE Please Create your own custom "mainbg_pattern_mainarea.png" from step 1 then proceed to step 7 for Stock 4.3 .
Notepad++
Android Multitool
Anything you need to get Android Multitool working on your computer.
Step 1.
Getting the files you need:
First off get a custom background image you want in .png format 1002x954 pixels.
Rename it "mainbg_pattern_mainarea.png"
If you are trying this for STOCK ODEXED 4.3 ROM go to Step 7 otherwise continue on.
Put your custom "mainbg_pattern_mainarea.png" in AndroidMultitool folder.
Put Favorite "DEODEXED" Rom.zip in AndroidMultitool folder.
Open Favorite "DEODEXED" Rom with 7zip. Right click-->7-Zip-->Open Archive. DO NOT EXTRACT!
7zip window will open and you will see the folders inside the ROM.
Double Click "system" folder.
Double Click "framework" folder.
Double Click "framework-res.apk"
Open " res --> drawable-sw360dp-xxhpdi" folder
Find "mainbg_pattern_mainarea.png" and rename it "mainbg_pattern_mainareaX.png"
Drag your custom "mainbg_pattern_mainarea.png" in to 7zip window
Click Folder with green arrow beside directory path 3 times so you are back in AndroidMultitool\ ROM \system\framework
Right Click "android.policy.jar"-->Copy to-->OK
Right Click "framework-res.apk"-->Copy to-->OK
Right Click "twframework-res.apk"-->Copy to-->OK
Close the 7zip Window
Rename it "mainbg_pattern_mainarea.png"
If you are trying this for STOCK ODEXED 4.3 ROM go to Step 7 otherwise continue on.
Put your custom "mainbg_pattern_mainarea.png" in AndroidMultitool folder.
Put Favorite "DEODEXED" Rom.zip in AndroidMultitool folder.
Open Favorite "DEODEXED" Rom with 7zip. Right click-->7-Zip-->Open Archive. DO NOT EXTRACT!
7zip window will open and you will see the folders inside the ROM.
Double Click "system" folder.
Double Click "framework" folder.
Double Click "framework-res.apk"
Open " res --> drawable-sw360dp-xxhpdi" folder
Find "mainbg_pattern_mainarea.png" and rename it "mainbg_pattern_mainareaX.png"
Drag your custom "mainbg_pattern_mainarea.png" in to 7zip window
Click Folder with green arrow beside directory path 3 times so you are back in AndroidMultitool\ ROM \system\framework
Right Click "android.policy.jar"-->Copy to-->OK
Right Click "framework-res.apk"-->Copy to-->OK
Right Click "twframework-res.apk"-->Copy to-->OK
Close the 7zip Window
Decompile the files:
Copy the "android.policy.jar, framework-res.apk, and twframework-res.apk" files from step 1 to the "Files" folder inside "AndroidMultitool" folder.
Run Android Multitool.
Install framework-res and twframework-res .apk Click box with 3 dots, pick file, then click install. (I don't know if this step is needed but I always do it just in case.)
Decompile android.policy.jar .Click on selector box under "Decompiling" make sure it is set to "jar". Click box with 3 dots, pick file, then click decompile.
I leave "use baksmali" unchecked for above steps.
Run Android Multitool.
Install framework-res and twframework-res .apk Click box with 3 dots, pick file, then click install. (I don't know if this step is needed but I always do it just in case.)
Decompile android.policy.jar .Click on selector box under "Decompiling" make sure it is set to "jar". Click box with 3 dots, pick file, then click decompile.
I leave "use baksmali" unchecked for above steps.
Edit Files:
Open "Decompiled_jar" folder inside "AndroidMultitool" folder.
Open "android.policy --> com --> android --> internal --> policy --> impl --> sviewcover
Open "SViewCoverManager.smali" with Notepad++
I have found a couple things here.
S_VIEW_COVER_DISPLAY_TIMEOUT_DEFAULT:I=0x1770
const/16 v1, 0x1a
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageAlpha(I)V
The Hex value in "const/16 v1,0x1a" is 0x1a which is 26 which is roughly 10%
const/16 v1, 0x1a
to
const/16 v1, 0xff
Do find next "alpha" 4 times. Two values are 0x1a and two are 0x10 I changed all 4 to 0xff
Save file
Close Notepad++
Open "android.policy --> com --> android --> internal --> policy --> impl --> sviewcover
Open "SViewCoverManager.smali" with Notepad++
I have found a couple things here.
S_VIEW_COVER_DISPLAY_TIMEOUT_DEFAULT:I=0x1770
0x1770 hex = 6000 decimal, I think this is milliseconds.
The s view display is on for about 6 seconds.
So if you want the screen on for 30 seconds that's 30000 milliseconds and hex for 30000 is 0x7530
1 minute would be 60000 or 0xea60
Click on binoculars in toolbar and find next "alpha" you will see the linesThe s view display is on for about 6 seconds.
So if you want the screen on for 30 seconds that's 30000 milliseconds and hex for 30000 is 0x7530
1 minute would be 60000 or 0xea60
const/16 v1, 0x1a
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageAlpha(I)V
The Hex value in "const/16 v1,0x1a" is 0x1a which is 26 which is roughly 10%
Tranparent =0 = hex 0x00
Opaque=255 = hex 0xff
So change lineOpaque=255 = hex 0xff
const/16 v1, 0x1a
to
const/16 v1, 0xff
Do find next "alpha" 4 times. Two values are 0x1a and two are 0x10 I changed all 4 to 0xff
Save file
Close Notepad++
Compile files:
Get back to AndroidMultitool
Under Compiling
Compile "android.policy.jar" .Click on selector box under "Compiling" make sure it is set to "jar". Click box with 3
dots, pick file(AndroidMultitool --> Decompiled_jar --> android.policy click "OK"), then click "compile".
Close android multitool program
Open "AndroidMultitool\Files"
Right click "android.policy.jar" --> 7-Zip --> Open archive
Select "META-INF" Right click --> Copy to --> AndroidMultitool\Compiled_jar\android.policy .Click "OK"
Open "AndroidMultitool\Compiled_jar\android.policy"
Select "META-INF" and "classes.dex" Right click --> 7-Zip --> Add to "android.policy.zip"
Rename "android.policy.zip" to "android.policy.jar"
Copy "android.policy.jar" to "AndroidMultitool" folder
Under Compiling
Compile "android.policy.jar" .Click on selector box under "Compiling" make sure it is set to "jar". Click box with 3
dots, pick file(AndroidMultitool --> Decompiled_jar --> android.policy click "OK"), then click "compile".
Close android multitool program
Open "AndroidMultitool\Files"
Right click "android.policy.jar" --> 7-Zip --> Open archive
Select "META-INF" Right click --> Copy to --> AndroidMultitool\Compiled_jar\android.policy .Click "OK"
Open "AndroidMultitool\Compiled_jar\android.policy"
Select "META-INF" and "classes.dex" Right click --> 7-Zip --> Add to "android.policy.zip"
Rename "android.policy.zip" to "android.policy.jar"
Copy "android.policy.jar" to "AndroidMultitool" folder
Putting Modded Files Back into Rom:
Open Favorite "DEODEXED" Rom with 7zip. Right click-->7-Zip-->Open Archive. DO NOT EXTRACT!
7zip window will open and you will see the folders inside the ROM.
Double Click "system" folder.
Double Click "framework" folder.
Drag "android.policy.jar" into 7zip window.
Close 7zip
7zip window will open and you will see the folders inside the ROM.
Double Click "system" folder.
Double Click "framework" folder.
Drag "android.policy.jar" into 7zip window.
Close 7zip
Install:
Now install your new rom with Safe Strap!
For some reason it took a couple minutes for my Phone to boot up. But afterwards no problems!
IF YOU DIDN'T START OUT ON STEP 7 YOU ARE DONE! DON'T WORRY ABOUT STEP 7!
For some reason it took a couple minutes for my Phone to boot up. But afterwards no problems!
IF YOU DIDN'T START OUT ON STEP 7 YOU ARE DONE! DON'T WORRY ABOUT STEP 7!
Step 7.
Stock Rom Downloaded files:
Open Downloaded framework-res.apk with 7zip DO NOT EXTRACT!
Open framework-res\res\drawable-sw360dp-xxhdpi
Copy your custom background image from Step 1 here.
Close 7zip window.
Copy/Paste your modded "framework-res.apk" and downloaded "android.policy.odex" to system/framework with your root explorer/editor. When you do this you will get an automatic reboot. android.policy.odex should have rw-r--r-- permission. If you have problems try fixing permissions in Safe Strap
Open framework-res\res\drawable-sw360dp-xxhdpi
Copy your custom background image from Step 1 here.
Close 7zip window.
Copy/Paste your modded "framework-res.apk" and downloaded "android.policy.odex" to system/framework with your root explorer/editor. When you do this you will get an automatic reboot. android.policy.odex should have rw-r--r-- permission. If you have problems try fixing permissions in Safe Strap
Thanks:
tcitchicruise for letting us know where the background image was.
Flextrick for making Android Multitool!
Hashcode for Safestrap Recovery!
hilmi94zul for Kit Kat Method
Last edited: