Here it is guys, the how-to for enabling ART on the new 4.04.1540.2 (Android 4.4) base! I have tested whether ART works and sadly, I get bootloops when using it (both ART and ART (debug). ART (debug) seems to not stick since the phone does boot up, but the selection still shows as "Dalvik" not "ART (debug)". I only tested this on my deodexed ROM so I have no idea if it will work on ODEXED. Hopefully we can get more devs collaborating to get this working. Anyway, enabling ART in the Developer Preferences is really easy.
PART 1
Decompile Settings.apk
Navigate to smali.com.android.settings
Open up DevelopmentSettings.smali in Notepad++ or a text editor of your choice
Locate the followiing code (onCreate() method) and delete the part in RED
Code:
const-string v3, "show_touches"
invoke-direct {p0, v3}, Lcom/android/settings/DevelopmentSettings;->findAndInitCheckboxPref(Ljava/lang/String;)Lcom/htc/preference/HtcCheckBoxPreference;
move-result-object v3
iput-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mShowTouches:Lcom/htc/preference/HtcCheckBoxPreference;
const-string v3, "wifi_display_certification"
invoke-direct {p0, v3}, Lcom/android/settings/DevelopmentSettings;->findAndInitCheckboxPref(Ljava/lang/String;)Lcom/htc/preference/HtcCheckBoxPreference;
move-result-object v3
iput-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mWifiDisplayCertification:Lcom/htc/preference/HtcCheckBoxPreference;
const-string v3, "select_runtime"
invoke-virtual {p0, v3}, Lcom/htc/preference/HtcPreferenceFragment;->findPreference(Ljava/lang/CharSequence;)Lcom/htc/preference/HtcPreference;
move-result-object v2
[COLOR="red"] if-eqz v2, :cond_5
iget-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mAllPrefs:Ljava/util/ArrayList;
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-direct {p0, v2}, Lcom/android/settings/DevelopmentSettings;->removePreferenceForProduction(Lcom/htc/preference/HtcPreference;)Z
move-result v3
if-nez v3, :cond_5
invoke-virtual {p0, v2}, Lcom/android/settings/DevelopmentSettings;->filterRuntimeOptions(Lcom/htc/preference/HtcPreference;)V[/COLOR]
:cond_5
const-string v3, "hdcp_checking"
Recompile Settings.apk and push it to your device!
In case you don't know how to enable Developer Preferences in Settings, go to Settings -> About -> Software Information -> More. Once at the "More" screen, tap the Build Number option seven (7) times.
Here are some screenshots
{
"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"
}
Here's a flashable zip too: http://d-h.st/B22
Cheers
reserved
+1 for this :good:
I did it yesterday and it just stuck at boot animation(animation is complete). I am on stock odexed system.
As far as I know from running 4.4 ROMs on my Nexus 7 you can only use ART on a fully odexed ROM, deodex will always result in failure to boot. Also some apps are not compatible with ART yet so you may well find a few specific app FCs. It may be that sense apps don't play well with ART yet. Remember it is still a developer only option and not mainstream yet so not really too much of a surprise...
TEST!
jerrylzy said:
I did it yesterday and it just stuck at boot animation(animation is complete). I am on stock odexed system.
Click to expand...
Click to collapse
yes tried on 3 different roms both odexed and deodexed not working on both. i think we need some core files for art to work which htc didn't put in as art is still in testing mode
gunswordx said:
yes tried on 3 different roms both odexed and deodexed not working on both. i think we need some core files for art to work which htc didn't put in as art is still in testing mode
Click to expand...
Click to collapse
libart.so ...
So pretty much none of the options work (besides dalvik, of course)?
Sent from my new HTC Nexus via xda-developers app
tried it myself at first after setting from shell, and secondly after @jerrylzy gave me his classes dex and pointed out the obvious
anyway in both cases bootloop . on odexed and deodexed as well . logcat doesn't tell me too much yet. still poking. i know for sure that if you have xposed installed ART won't stick after reboot
Dunc001 said:
libart.so ...
Click to expand...
Click to collapse
Tried it does not help
http://forum.xda-developers.com/showpost.php?p=47604251&postcount=77
ser35 said:
Tried it does not help
http://forum.xda-developers.com/showpost.php?p=47604251&postcount=77
Click to expand...
Click to collapse
Try pushing libart.so from a current CM11 HTC One build, set permissions, reboot, enable ART. Not running 4.4 on my One atm so can't test.
Dunc001 said:
Try pushing libart.so from a current CM11 HTC One build, set permissions, reboot, enable ART. Not running 4.4 on my One atm so can't test.
Click to expand...
Click to collapse
Is ART working on CM11?
apollyon0810 said:
Is ART working on CM11?
Click to expand...
Click to collapse
I was running ART on a GPE rom fine.. Honestly didnt feel as fast as I thought it would.. I'm back on a Sense rom now and it would be awesome to see this working..
apollyon0810 said:
Is ART working on CM11?
Click to expand...
Click to collapse
CM11, GPE, whatever - just so long as you grab a binary that's confirmed working on HTC One already regardless of the build. Several of the current 4.4 non-sense ROMs in the two forums already state working ART. Just experiment.
Nice work guy
the file is here, anyone want to try?
Link
There is an easier way
Xperia, HTC, samsung, LG stock roms don't ship with ART option in developer settings, so there is a workaround Enable ART runtime on any Stock ROM via recovery
How to Enable ART on any Stock or AOSP ROM
Simplest way to enable ART on an AOSP ROM is through “Developer options > select runtime”. But sadly, the option is not even available in most stock ROMs may it be HTC, Samsung, Sony, LG, Motorola etc. The work around is following the steps mentioned below:
Pre-requisites:
1. Rooted 4.4.x ROM (Stock or Custom) with some custom recovery (CWM or TWRP)
2. Xposed framework is not compatible with ART runtime. You must uninstall Xposed framework before continuing.
3. To Check If You Are Using ART Or Dalvik, goto
Open data/property/persist.sys.dalvik.vm.lib in Text Editor, if it shows ‘libart.so’, you’re already on ART, else it would say ‘libdvm.so’.
4. Full list of apps that don’t work with ART.
Note: If libart.so and libart-compiler.so is Not Present in lib folder. Your ROM Doesn’t Support ART.
Step 1. Download Enable ART, Enable Dalvik flashable Zips from xda thread= http://forum.xda-developers.com/showthread.php?t=2707841 .
Step 2. Flash the Enable ART zip in recovery and clear Dalvik cache.
Reboot, *your ROM would boot and create ART cache for the first boot.
Troubleshooting: If you’ve any bootloops or problems, you can revert the change at anytime by flashing enable dalvik zip.
This is just cut and paste from the article linked to in above post
Good Luck
Also, does anyone know what the base 4.04.1540.2 that hero mentioned in the op is? Seems like an US Dev base bc of numbering but I haven't heard of this yet.
Sent from my HTC One using Tapatalk
Dunc001 said:
As far as I know from running 4.4 ROMs on my Nexus 7 you can only use ART on a fully odexed ROM, deodex will always result in failure to boot. Also some apps are not compatible with ART yet so you may well find a few specific app FCs. It may be that sense apps don't play well with ART yet. Remember it is still a developer only option and not mainstream yet so not really too much of a surprise...
Click to expand...
Click to collapse
I was running ART on my nexus4 and Xperia z1 with CM deodexed, so i dont think that's the problem
Sent from my HTC One using XDA Premium 4 mobile app
Related
welcome to ëxpĿode
{
"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"
}
Explode v1.5 The Sence
port from Beauty sence
+ Stable, Fast, Rock Solid
+ HTC styled 14 toggles
+ Various Buid.prop Tweaks
+ Deodexed
+ Zipalign
+ Rooted
+ BusyBox
+ Bash Shell Support
+ BusyBox run-parts support
+ Full Support for Init.d scripts
+ Superuser Access; Busybox Support
+ ICS keyboard
+ Asop lock screen ( default )
+ HTC styled settings
+ HTC styled dialer
+ HTC styled caller bg+ img
+ HTC styled laucher
+ Beats themed music player
+ Bass/Treble Enhanced Sound
+ 14 Toggles by lidroid rom
+ Swipe to Remove Implementation
+ New Google Play Store; Google Search Updates
+ Full Bravia Engine Port; Fix Xloud; Beats Integration
+ UI optimized; New Lockscreen by lockbot
+ Addon Important Apps (see more inside!)
BUGS
Click to expand...
Click to collapse
lildroid flash light dont touch it
CREDIT
Click to expand...
Click to collapse
ALLAH
ME
Amal Das(the main):angel:
XDA
MARK JASON
_pxD.aa
babyyeobo14
Carlo Atabay
DOWNLOAD
Click to expand...
Click to collapse
ADDON
Click to expand...
Click to collapse
+ADDED+
Velocity tweak
Gekky tweak
+Features+
Automatic Zipalign On Startup
Ram Optimizes On Startup
Automatic Gaming And Multitasking Switch Enabled *BETA*
Automatic Cache And Junk Cleanup
SqLite Database Optimzer And Defragger
Sd Card W/R Booster And Fixer
Network TCP And 3G Tweaks
Improves Battery Life Through Some Kernel Tweaks
Some Database And File Fixes
System Tweaks To Improve Performance
Some Lag-Free Kernel Tweaks
Some xbin tweaks
Many init.d tweaks
Many ddefault.prop tweaks
VM Tweaks
SD card tweak
Better Battery Life through Battery Tweaks
Reduced /dbdata, /data, /sdcard usage of *.db files and faster database access. | World first smart sqlite optimizing
Increase touchscreen sensitivity
much of prop tweaks
CWM Flashable
Less lags through LMK Tweak and Various VM Tweaks
Instructions:
Wipe data & cache
Flash explode v1.5
Wipe cache
Reboot
Again wipe data & cache
Flash explode v1.0 update 1
Wipe cache
Done
CREDIT:
SethDeCode'z
Forever King
_pxD.aa(tester)
babyyeobo14 (tester)
Mark Jayson (tester)
DOWNLOAD
Press thanks
awesome..:good:
nice presentation
& nice rom......congrats & bl........AWESOME ROM YET
relly like ur rom.....
thanks
Nice Ported Rom!!! Love it <3 Try it now
Sent from my GT-S5300 using xda premium
xDroidZz said:
Nice Ported Rom!!! Love it <3 Try it now
Sent from my GT-S5300 using xda premium
Click to expand...
Click to collapse
try & report me
Dear TS
When I download the file, I got Crank v1.
Is it Explode 1.5???
Nodali said:
Dear TS
When I download the file, I got Crank v1.
Is it Explode 1.5???
Click to expand...
Click to collapse
brother first i thinked that i name it crank
but explode 1.5 is so
crank=explode.....
explodeaamir said:
brother first i thinked that i name it crank
but explode 1.5 is so
crank=explode.....
Click to expand...
Click to collapse
You are......Wonderfulllllll..........
but, when the flashlite bug will be fixed? Hehehehe
I have tried, FC when booting...
Nodali said:
You are......Wonderfulllllll..........
but, when the flashlite bug will be fixed? Hehehehe
I have tried, FC when booting...
Click to expand...
Click to collapse
wat u said
fc
give me a screen shot
Sadly
Too Much Force Close...
---------- Post added at 04:24 AM ---------- Previous post was at 04:22 AM ----------
explodeaamir said:
wat u said
fc
give me a screen shot
Click to expand...
Click to collapse
How to capture? Where the file I upload?
go before flashing the rom just odin ur device then back to stock rom after this wipe data& cache install rom wipe cache reboot explode 1.5 installed wipe data & cache flash addons wipe cache reboot done.....
Nodali said:
Sadly
Too Much Force Close...
---------- Post added at 04:24 AM ---------- Previous post was at 04:22 AM ----------
How to capture? Where the file I upload?
Click to expand...
Click to collapse
take screen shots and attach here...
your pm has been disable lol
u need my help right soo why did you disable your pm? lol how can i help you if you disable it btw
soo check your email
or this is your answer
Code:
Decompile SystemUI dan FIND:
smali\com\android\systemui\statusbar AND FIND StatusBarService.smali
PRESS CTRL + F SEARCH:
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
CHANGE LIKE THIS :
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:Lcom/android/systemui/statusbar/CloseDragHandle;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/CloseDragHandle;->addView(Landroid/view/View;I)V
RECOMPILE AND DONE
try and rport
evanlocked said:
u need my help right soo why did you disable your pm? lol how can i help you if you disable it btw
soo check your email
or this is your answer
Code:
Decompile SystemUI dan FIND:
smali\com\android\systemui\statusbar AND FIND StatusBarService.smali
PRESS CTRL + F SEARCH:
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
CHANGE LIKE THIS :
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:Lcom/android/systemui/statusbar/CloseDragHandle;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/CloseDragHandle;->addView(Landroid/view/View;I)V
RECOMPILE AND DONE
try and rport
Click to expand...
Click to collapse
Oops! sorry i enabled the "Receive Private Messages only from Contacts and Moderators"
THANKS for this brother u really healed me......
explodeaamir said:
Oops! sorry i enabled the "Receive Private Messages only from Contacts and Moderators"
THANKS for this brother u really healed me......
Click to expand...
Click to collapse
Just press it btw lol im kidding
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
evanlocked said:
Just press it btw lol im kidding
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
Click to expand...
Click to collapse
i clicked but my limit of 8 thanks completed SORRY
Just thought I would write this how-to guide before I forget how I did it.
TOOLS:
1. knowledge of decompiling/recompiling
2. smali/baksmali
3. notepad++
4. 7zip
HOW TO HAVE TRANSPARENT STATUSBAR ON LOCKSCREEN:
NOTE: Transparent statusbar on lockscreen depends on the current transparency of your statusbar. You should already have a transparent statusbar either by modding your SystemUI or using Xposed Tweakbox module.
STEPS:
1. decompile android.policy.jar and edit com/android/internal/policy/impl/KeyguardViewManager.smali
2. the method to edit is .method public declared-synchronized show()V
3. search inside this method and look for 0x100800
4. change 0x100800 to 0x10900
5. recompile android.policy.jar and push to your phone.
6. Well, you could THANK me if you are HAPPY about the result, he he he
Click to expand...
Click to collapse
HOW TO HIDE STATUSBAR ON LOCKSCREEN:
STEPS:
1. decompile android.policy.jar and edit com/android/internal/policy/impl/KeyguardViewManager.smali
2. the method to edit is .method public declared-synchronized show()V
3. search inside for this code fragment and add the one in RED.
Code:
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/4 v2, 0x1
iput v2, v1, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
.line 161
:cond_a6
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mViewManager:Landroid/view/ViewManager;
iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
iget-object v3, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-interface {v1, v2, v3}, Landroid/view/ViewManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
[COLOR="Red"]
const/4 v2, 0x0
invoke-virtual {p0, v2}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V[/COLOR]
.line 163
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;
if-nez v1, :cond_e0
.line 165
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardViewProperties:Lcom/android/internal/policy/impl/KeyguardViewProperties;
iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mContext:Landroid/content/Context;
iget-object v3, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mCallback:Lcom/android/internal/policy/impl/KeyguardViewCallback;
iget-object v5, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
invoke-interface {v1, v2, v3, v5, p0}, Lcom/android/internal/policy/impl/KeyguardViewProperties;->createKeyguardView(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardWindowController;)Lcom/android/internal/policy/impl/KeyguardViewBase;
move-result-object v1
iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;
.line 167
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;
const v2, 0x1020250
4. recompile android.policy.jar and push to your phone.
5. Well, you could THANK me if you are HAPPY about the result, he he he
Click to expand...
Click to collapse
Thanks so much !!!
Sent from my GT-N7000 using xda premium
Having a modded systemui or using xposed, status bar would be appearing transparent on lockscreen, BUT it can be interesting if this approach can be used to make the status bar non-transparent on modded systemui for those who like have a non transparent status bar on locksreen and transparent statusbar on home screen
Edit: Sorry if I didn't get it right! Once I tried it and saw the difference with modded systemUI and thanks a lot for this golden tip, now home screen background doesn't have any effect on status bar background on locksreen :good:
{
"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"
}
but what about those who are not good in decompiling and recompiling can you do this if i provide you android.policy.jar files of my tab 2 and note n7000 plz
you have no idea why the animated background turns black?
tonyking123 said:
but what about those who are not good in decompiling and recompiling can you do this if i provide you android.policy.jar files of my tab 2 and note n7000 plz
Click to expand...
Click to collapse
or You Can Make A Module To Hide Status Bar In Lockscreen Or Transparent Lock Screen That Can Be Beneficial More Mostly Android Device
i am asking for Transparent Status Bar in lock Screen bcoz tweakbox module does not trans parenting status bar in lockscreen On My Tab 2 P3100
if Hiding Status bar work that could be awesome
good luck :fingers-crossed:
If any body can make the mod would be appreciate. I hate status bar dominate over the lockscreen..
Sent from my GT-N7000 using xda premium
Good work mate. Gonna try this on my rom. Been wondering about it for ages
EDIT: Works great. Both mods up in Sweet ROM thread for those using my rom
Sent from my Sweet ROM powered GT-N7100
I have been searching like idiot before for how to do it,, You are Great xperiacle,,
Can anyone who is using LT9 ROM, explains what both 0x100800 and 0x10900 links to in public.xml in framework-res.apk. You might find it as 0x01008000 and 0x01090000
Thanks in advance
majdinj said:
I have been searching like idiot before for how to do it,, You are Great xperiacle,,
Can anyone who is using LT9 ROM, explains what both 0x100800 and 0x10900 links to in public.xml in framework-res.apk. You might find it as 0x01008000 and 0x01090000
Thanks in advance
Click to expand...
Click to collapse
"alert_dark_frame" id="0x01080000" />
"activity_list_item" id="0x01090000" />
All the best with it. Im off now to a conference for 3 days
not-i said:
"alert_dark_frame" id="0x01080000" />
"activity_list_item" id="0x01090000" />
All the best with it. Im off now to a conference for 3 days
Click to expand...
Click to collapse
Have a nice trip man
Thanks , works great , how can i take a screenshot of my lockscreen though ? haha
el5arsawi said:
Thanks , works great , how can i take a screenshot of my lockscreen though ? haha
Click to expand...
Click to collapse
Just hold home+power and you will hear a sound or feel a vibration and the screen will blink.
Nice xperiacle! Works great!!
is this applicable in note 2??
mike0jj said:
is this applicable in note 2??
Click to expand...
Click to collapse
Probably. I'm gonna try it when I get back from my conference
Sent from my Sweet ROM powered GT-N7100
not-i said:
"alert_dark_frame" id="0x01080000" />
"activity_list_item" id="0x01090000" />
Click to expand...
Click to collapse
if I have different ids in my rom, should I put 0x10900 or search public.xml for corresponding.??
really I am confused!!!!
and what is with live lockscreen issue???
sorry, but I am new to android (just followed some tutorials to mod status bar icons - so my experience isn't too much)
Works great on my S2.
Good job, thanks :good::good:
---------- Post added at 01:34 AM ---------- Previous post was at 01:29 AM ----------
mike0jj said:
if I have different ids in my rom, should I put 0x10900 or search public.xml for corresponding.??
really I am confused!!!!
and what is with live lockscreen issue???
sorry, but I am new to android (just followed some tutorials to mod status bar icons - so my experience isn't too much)
Click to expand...
Click to collapse
Hi,
You should use the id that matches with "activity_list_item", don´t forget to delete the "0", after x and at the end.
Good luck
Josehg said:
Works great on my S2.
Good job, thanks :good::good:
---------- Post added at 01:34 AM ---------- Previous post was at 01:29 AM ----------
Hi,
You should use the id that matches with "activity_list_item", don´t forget to delete the "0", after x and at the end.
Good luck
Click to expand...
Click to collapse
I will try it soon,,,
thanks
Great Great Thx to dear xperiacle for another great work for N7000
---------- Post added at 10:11 PM ---------- Previous post was at 10:07 PM ----------
mike0jj said:
is this applicable in note 2??
Click to expand...
Click to collapse
yeh, actually there is a one thread already in note2 threads
just a search
Regards
Deleted..
Another day and another tutorial mod .
This time, it will be my pleasure to present to you this guide about how to enable Air View Control Panel and how to port SPen Gesture function from SGN II,,
★ Air View Control Panel with SPen Gesture ★
{
"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"
}
Needed Tools:
1) Baksmali tool. If you like, you can download my Baksmali Manager from here.
2) Notepad++ for smali editing part from here.
The procedure:
- Baksmali SecSettings.apk
- Navigate to classout\com\android\settings folder and open PenSettingsMenu.smali
- Our targeted codes are found within this method ".method public onCreate(Landroid/os/Bundle;)V"
- In the method ".method public onCreate(Landroid/os/Bundle;)V", locate this section and delete all colored text (don't delete the defined condition.!!):
Code:
.line 198
:cond_209
[B][COLOR="Red"] invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v0
const-string v1, "pen_hover"
invoke-virtual {p0, v1}, Lcom/android/settings/PenSettingsMenu;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]
.line 199
[B][COLOR="Blue"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v0
iget-object v1, p0, Lcom/android/settings/PenSettingsMenu;->mPenHovering:Landroid/preference/SwitchPreferenceScreen;
invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]
.line 200
[B][COLOR="Green"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v0
iget-object v1, p0, Lcom/android/settings/PenSettingsMenu;->mPenHoveringSound:Landroid/preference/CheckBoxPreference;
invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]
.line 206
[B][COLOR="DarkOrange"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v0
const-string v1, "pen_gesture_category"
invoke-virtual {p0, v1}, Lcom/android/settings/PenSettingsMenu;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]
.line 207
[B][COLOR="Magenta"]invoke-virtual {p0}, Lcom/android/settings/PenSettingsMenu;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v0
const-string v1, "pen_quick_command"
invoke-virtual {p0, v1}, Lcom/android/settings/PenSettingsMenu;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR][/B]
Legend:
Deleting red codes: This will enable Air View header.
Deleting blue codes: This will enable Air View switch with control panel.
Deleting green codes: This will enable Air View haptic feedback.
Deleting orange codes: This will enable Pen gestures header.
Deleting purple codes: This will enable Quick command main action in Pen gestures category.
You can delete or keep ".line xxx" debugging; it is up to you.!!.
- Save changes.. smali SecSettings.apk, push it to your phone and fix permissions to rw-r--r-- (644).
- Push "SPenGesturePad.apk" to your phone and fix permissions to rw-r--r-- (644).
- Reboot the phone into recovery mode and flash SGNII_VODB.zip file.
and viola you made it
Note:
Don't forget to have "com.sec.feature.hovering_ui.xml" in /system/etc/permissions folder with 644 permissions.. You can download it from here: View attachment com.sec.feature.hovering_ui.rar
Click to expand...
Click to collapse
Resources download:
- SPenGesturePad.apk with drawer visibility (thanks to @not-i) | Download |.
- Flashable SGNII_VODB.zip file | Download - size: 4.27mb |. (md5 sum: d3d7c56898ec2d430adddb7fd71a8ad7 )
Special thanks to: @not-i for his contributing in porting the SPen gestures function, without him I wouldn't acheive the final porting.. BIG THANKS MAN :good:
Note:
- If you want to download extra languages for VODB, please see post #43
For discussing other Air View Control features, please see post #2,,,
Discussing other AirView control features
There are other options that you could enable as well in the same smali,,, see the pictures bellow
These extra options are useless to be enabled in our Note I (GT-N7000) since our device doesn't have the hardware capability.
reserved
Great finding majdinj
Looking for this feature since Note2 release.
Thanks mate:good:
nice one, thanks majdinj
Looks good mate. Have you tried looking through the android manifest of the gesture apk for the associated libraries?
Also thinking there may be a permission needed. I'll have a look through my Note 2 and see what I can find.
EDIT: it uses permission - com.sec.android.app.minimode but we have this already. This points to minimode.jar. I have compared both from N7000 & N7100 and only difference is in com/sec/android/app/minimode in the two smali's in the attached zip (these are from MG1 N7100).
Maybe this will help?
not-i said:
Looks good mate. Have you tried looking through the android manifest of the gesture apk for the associated libraries?
Also thinking there may be a permission needed. I'll have a look through my Note 2 and see what I can find.
EDIT: it uses permission - com.sec.android.app.minimode but we have this already. This points to minimode.jar. I have compared both from N7000 & N7100 and only difference is in com/sec/android/app/minimode in the two smali's in the attached zip (these are from MG1 N7100).
Maybe this will help?
Click to expand...
Click to collapse
Thanks @not-i,, I will see what I can do with these goodies.. As start, I will push the whole jar to decrease defragment possibility.
majdinj said:
Thanks @not-i,, I will see what I can do with these goodies.. As start, I will push the whole jar to decrease defragment possibility.
Click to expand...
Click to collapse
How much was working for you? I can add gestures now and no fc by copying those two smalis into LT9 minimode.jar. I also recompiled gesture app with LT9 framework.
Only problem is where to write the gestures. In note 2 you hold pen and stroke up to bring up gesture pad. I'm not getting it yet
Sent from my GT-N7000 using xda premium
majdinj said:
Any help or suggestion is opened to the ground.!!
Click to expand...
Click to collapse
Mod from first post works perfectly! (XXLT4)
If you have FC, then "it's good" maybe you can find the problem with the Dalvik Debug Monitor
I had FC in SystemUI after pressing the help button on the mw app bar...
DDM (ddms) told me what is missing. :good:
It's the part of the Android SDK. It works well with Philz kernel.
not-i said:
How much was working for you? I can add gestures now and no fc by copying those two smalis into LT9 minimode.jar. I also recompiled gesture app with LT9 framework.
Only problem is where to write the gestures. In note 2 you hold pen and stroke up to bring up gesture pad. I'm not getting it yet
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Here is my feedback:
New minimode.jar smali: NO
Compiling SPenGesturePad.apk with GT-N7000 framework: NO
Have you able to create gesture and saved it normally and then recall it without fc?
if so, could you please share your modded minimode.jar and SPenGesturePad.apk so I can check and then inquiry about the procedure.
thanks in advance for co-operation :good:
Edit:
I think this feature will not be handy if we couldn't figure out how to call gesture pad as @not-i mentioned: ((Only problem is where to write the gestures. In note 2 you hold pen and stroke up to bring up gesture pad. I'm not getting it yet))..!!!!
tkari4 said:
Mod from first post works perfectly! (XXLT4)
If you have FC, then "it's good" maybe you can find the problem with the Dalvik Debug Monitor
I had FC in SystemUI after pressing the help button on the mw app bar...
DDM (ddms) told me what is missing. :good:
It's the part of the Android SDK. It works well with Philz kernel.
Click to expand...
Click to collapse
It gives same results as adb logcat.. it locates to same smali (GesturePadNewCmdActivity) with NullPointerException.
I got gestures working :laugh::good:
I will upload the files when I'm at work. Running late right now.
@majdinj I made the gesture apk visible in app drawer. Now you can open it to write on the gesture pad and it works. Only problem is that you may as well just open the app you want as it will take just as long, ha ha.
Next step is to try make the gesture pad come up with some command or gesture on home screen
:thumbup:
Sent from my GT-I9500 using xda premium
not-i said:
I got gestures working :laugh::good:
I will upload the files when I'm at work. Running late right now.
@majdinj I made the gesture apk visible in app drawer. Now you can open it to write on the gesture pad and it works. Only problem is that you may as well just open the app you want as it will take just as long, ha ha.
Next step is to try make the gesture pad come up with some command or gesture on home screen
Click to expand...
Click to collapse
Cool,, every minute is worth waiting,,
Thanks,,
So who is the genius now??!!
majdinj said:
Cool,, every minute is worth waiting,,
Thanks,,
So who is the genius now??!!
Click to expand...
Click to collapse
your still the man, ha ha
Wow impressive..
Thanks to majdinj (guide/tutorial master) and not-i(moding/porting master) for brought this amazing feature to our Note device.
You both are Genius guys.
Thanks again:thumbup:
With your colobration i hope Note 3 feature also would be able to port to our device when ir arrives.
Cheers
Sent from my GT-N7000 using xda premium
Ok I have uploaded the working Quick Command Gesture pad to the Sweet ROM thread. Not sure how it will go with other roms as it uses my SecSettings from Sweet ROM (LT9 firmware) (which would need my android policy.jar for all settings like ink effect to work).
@majdinj you could try it with your settings anyway and see how you go.
Available here
xxlta tried it on. but in the settings still fc.
asmanao said:
xxlta tried it on. but in the settings still fc.
Click to expand...
Click to collapse
You would probably need other files, jars etc which are modded for sweet rom I would guess
Sent from my Sweet ROM powered Note 2 via XDA Premium 4
thanks for the reply. I'll wait 'other developments
not-i said:
Ok I have uploaded the working Quick Command Gesture pad to the Sweet ROM thread. Not sure how it will go with other roms as it uses my SecSettings from Sweet ROM (LT9 firmware) (which would need my android policy.jar for all settings like ink effect to work).
@majdinj you could try it with your settings anyway and see how you go.
Available here
Click to expand...
Click to collapse
not-i said:
You would probably need other files, jars etc which are modded for sweet rom I would guess
Sent from my Sweet ROM powered Note 2 via XDA Premium 4
Click to expand...
Click to collapse
Thanks @not-i .. I have tried the files you uploaded and after struggling I still have fc with gesture command unfortunately with same error throwing by logcat.
Wild thinking: this gesture might need other lib(s) that is/are available in LT9 firmware (at least the one we confirm working) or SweetROM,,,???
Anyhow BIG thanks to you @not-i for your contributing in this thread..
I will update OP and put some note regarding gesture issue with old and LT9 firmware..
Other tests with other firmwares are required..
Until then, happy modding
Hi all, I am a newbie and this thread is about enabling the Light effect or Particle effect on Note 3 Kitkat LockScreen.
My Note 3 details:
Variant: SM-N9005,
ROM: Stock odexed ROM-rooted,
Firmware: N9005XXUGNG1,
Region: BTU.
Please check this post for Galaxy Note 8.0 Post-31
Thanks @Cheico --> updating for NB1 firmware.
Their might be other ways to implement it. but I am writing the steps which I have followed.
You Need:
1. Windows PC.
2. JRE installed.
3. Download the required tools from here. You can get the latest aapt.exe here, apktool.jar here, baksmali.jar and smali.jar files here
So here is the step by step guide on how to do it.
1. Copy framework folder (/system/framework) from your phone to C:\apktool\system\framework folder of your PC, and Keyguard.apk, Keyguard.odex files from your phone (/system/priv-app) to C:\apktool folder of your PC.
2. baksmali the Keyguard.odex present in C:\apktool folder using the command
Code:
[/B][B][COLOR="Red"]java -jar baksmali.jar -d C:\apktool\system\framework -x Keyguard.odex[/COLOR][/B]
Click to expand...
Click to collapse
-d path of directory where framework files are placed.-x target .odex file (in our case it's Keyguard.odex)3. Once command is completed, you will see a folder named out .
4. Navigate to C:\apktool\out\com\android\keyguard\sec, and open the file KeyguardEffectViewMain.smali.
5. Open the file and search for .line 254 , for NB1 firmware please search for .line 244
Code:
[/B][B]
.line 254 (.line 244 for NB1 firmware)
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
[COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]circle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR]
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
[/B]
Click to expand...
Click to collapse
6. Change the red line to, as shown below for getting Lens Flare Effect instead of Circle Effect.
Code:
[/B][B]
.line 254 (.line 244 for NB1 firmware)
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
[COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]lens[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR]
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
[/B]
Click to expand...
Click to collapse
7. For getting Particle effect, search for .line 253, or ( .line 243 for NB1 firmware ) and make the changes in the code as shown below, you just have to replace wallpaper with particle and circle with particle, as shown below for getting Particle Effect instead of Circle Effect.
Code:
[/B][B]
.line 253 (.line 243 for NB1 firmware)
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mBackgroundTypeMapping:Ljava/util/HashMap;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
[COLOR="red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;->[COLOR="Blue"]particle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;[/COLOR]
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 254 (.line 244 for NB1 firmware)
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
[COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]particle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR]
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
[/B]
Click to expand...
Click to collapse
8. Once changes are done, smali the out folder present in C:\apktool using the command
Code:
[/B][B][COLOR="Red"]java -jar smali.jar -o classes.dex out[/COLOR][/B]
Click to expand...
Click to collapse
-o the name of newly created .dex file.out is the folder name.9. Once you see the classes.dex file in the folder, then push this .dex file into Keyguard.apk file using the command
Code:
[/B][B][COLOR="Red"]aapt add Keyguard.apk classes.dex[/COLOR][/B]
Click to expand...
Click to collapse
10. After the command in Step 9, Size of apk file should increase, Now Zipalign the apk using the command.
Code:
[/B][B][COLOR="Red"]zipalign -fv 4 Keyguard.apk Keyguard_new.apk[/COLOR][/B]
Click to expand...
Click to collapse
11. Now you will see a new apk file named "Keyguard_new.apk", Copy the Keyguard_new.apk to your phone and rename it to Keyguard.apk, This is deodexed .apk file, and you can directly push this apk into your phone path /system/priv-app using RootExplorer and set the permission to rw-r--r--, and delete the Keyguard.odex file from the framework folder.
Restart the phone, and select unlock effect to none.
12. If you want to create the Keyguard.odex file from the Keyguard.apk file then their are few more steps, which involves Terminal Emulator, but this apk will work fine, please delete or remove the Keyguard.odex file from the system/priv-app folder and keep only Keyguard.apk, because this apk is deodexed and working fine for me.
Snapshots:
Lens Flare Effect
Particles Effect
Download Flashable zip for latest NI4 firmware from here by Stavr0s91i
Thanks @Stavr0s91i
See here for enabling various unlock effects on Galaxy Note 8.0 running 4.4.2 Kitkat.
Thanks @jazzespresso
P.S: Sound will not come as expected for Particle effect, Working Perfect for LensFlare Effect.
You can edit the sound files as per your wish in /system/media/audio/ui folder of your phone.
For enabling Ripple ink effect with fingers or without S-pen, check out here...
Hit THANKS button, If I helped You.
thanks a lot for your guide. Circle effect is working on N9000Q with stock XXUENG4 odexed rom but particle effect not working.
amk19 said:
Hi all, I am a newbie and this thread is about enabling the Light effect or Particle effect on Note 3 Kitkat LockScreen.
Click to expand...
Click to collapse
Do you know if the Particle effect would work on NB1?
Circle effect is default when you select "none" as unlock effect from Setting.
In order to get lens flare or particles effect you have to do the steps mentioned in OP.
This will work only when you are using normal wallpaper as background and not live wallpaper or live theme.
For me both particles and lens flare effect is working.
Hope someone makes a flashable zip if possible.
Graffiti Exploit said:
Hope someone makes a flashable zip if possible.
Click to expand...
Click to collapse
Sorry. I don't know how to make a flashable zip nor how to make an Xposed module.
I hope some dev can make an Xposed module and share.
chieco said:
Do you know if the Particle effect would work on NB1?
Click to expand...
Click to collapse
It should work for all the Note 3 firmware.
You can try. I am sure it will work.
Thanks
Lens flare is working great on my stock odexed PHE N9005XXUGNG1 rooted SM-N9005. :victory:
Particle effect not working. It seems that force close systemui.
{
"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 tried again. lens effect working perfect but particle efect give fc system ui. thanks for your help
hakan_710 said:
i tried again. lens effect working perfect but particle efect give fc system ui. thanks for your help
Click to expand...
Click to collapse
I am Sorry guys.
It's my mistake.
Thread updated.. Now it should work for particle effect as well..
Thanks..
P.S: Either Particle or Lens flare effect will work, but not both at the same time....
@djsonoman
@hakan_710
amk19 said:
I am Sorry guys.
It's my mistake.
Thread updated.. Now it should work for particle effect as well..
Thanks..
P.S: Either Particle or Lens flare effect will work, but not both at the same time....
@djsonoman
@hakan_710
Click to expand...
Click to collapse
it's working perfect now. Thank u so much bro. please look my attachment is this normal?
Seems awesome, but I got a question: is there a way to convert this mod into a flashable zip? It would make things so much easier...
amk19 said:
It should work for all the Note 3 firmware.
You can try. I am sure it will work.
Thanks
Click to expand...
Click to collapse
I can't get it to work! :crying:
Can it be that it doesn't work on NB1?
Please take a look @ my KeyguardEffectViewMain.smali the .line 253/.line 254 are totally different in mine!
Code:
.line 253
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mBackgroundTypeMapping:Ljava/util/HashMap;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;->ripple:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 254
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->none:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
I also only have the LockScreen Effects None/Watercolor/Ripple no Circle Effect! I really want the Particle Effect.
I've uploaded my KeyguardEffectViewMain.smali for u it would be nice if you could have a look at it.
Can't you just upload ur Keyguard.apk that's already have been edited?
Thanks a lot,:good:
chieco said:
I can't get it to work! :crying:
Can it be that it doesn't work on NB1?
Please take a look @ my KeyguardEffectViewMain.smali the .line 253/.line 254 are totally different in mine!
Code:
.line 253
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mBackgroundTypeMapping:Ljava/util/HashMap;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;->ripple:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 254
iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap;
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->none:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
I also only have the LockScreen Effects None/Watercolor/Ripple no Circle Effect! I really want the Particle Effect.
I've uploaded my KeyguardEffectViewMain.smali for u it would be nice if you could have a look at it.
Can't you just upload ur Keyguard.apk that's already have been edited?
Thanks a lot,:good:
Click to expand...
Click to collapse
Sure. I can do it for you.
Give some time...
Please find the attached file.
I have edited for both lens Flare Effect and Particles Effect.
You were right.
For NB1 firmware, we should search for .line 244 For getting lens Flare Effect and .line 243 For getting particle effect.
I have updated this information in first post.
Thank you @Cheico ...
hakan_710 said:
it's working perfect now. Thank u so much bro. please look my attachment is this normal?
Click to expand...
Click to collapse
That's normal buddy.
It's called Parallox effect.
posedatull said:
Seems awesome, but I got a question: is there a way to convert this mod into a flashable zip? It would make things so much easier...
Click to expand...
Click to collapse
I don't know how to create a flashable zip or an Xposed module.
amk19 said:
Sure. I can do it for you.
Give some time...
Please find the attached file.
I have edited for both lens Flare Effect and Particles Effect.
You were right.
For NB1 firmware, we should search for .line 244 For getting lens Flare Effect and .line 243 For getting particle effect.
I have updated this information in first post.
Thank you @Cheico ...
Click to expand...
Click to collapse
Thank you Very Much! Now it works and I'm really happy because I liked this Particle effect since I saw it for the first time on a S5. Same with the WaterColor effect it was the reason why I sold my S4 and got a Note 3 and now after seeing the Abstract tiles effect on the Note 4 I want that :laugh: I hope someone ports that for our Note 3. Someone mentioned that it's inclueded on the newest korean Firmware for the S5.
By the way ur first Post where u explain everything is just awesome and I think better then a flashable .zip! Because my Keyguard.apk is modded and a .zip would just mess things up and this way even people like me who don't have costum recovery can use this mod. And u provided everything that is needed and explained everything really well! I just opened the terminal and copy&pasted ur commands which only takes 1-2 minutes and I'm done!
But I would ask u something else. Is it possible to get rid of the zoom when I touch the screen? The Wallpaper and all ellements on the Screen zoom in if I touch the screen. Is that the Parallox effect that u mentioned earlier? I don't get a weird looking box or anything everything pops out a bit and I think on the S5 this doesn't happen.
Anyways Thank you very much again u are the Best.:good:
chieco said:
Thank you Very Much! Now it works and I'm really happy because I liked this Particle effect since I saw it for the first time on a S5. Same with the WaterColor effect it was the reason why I sold my S4 and got a Note 3 and now after seeing the Abstract tiles effect on the Note 4 I want that :laugh: I hope someone ports that for our Note 3. Someone mentioned that it's inclueded on the newest korean Firmware for the S5.
By the way ur first Post where u explain everything is just awesome and I think better then a flashable .zip! Because my Keyguard.apk is modded and a .zip would just mess things up and this way even people like me who don't have costum recovery can use this mod. And u provided everything that is needed and explained everything really well! I just opened the terminal and copy&pasted ur commands which only takes 1-2 minutes and I'm done!
But I would ask u something else. Is it possible to get rid of the zoom when I touch the screen? The Wallpaper and all ellements on the Screen zoom in if I touch the screen. Is that the Parallox effect that u mentioned earlier? I don't get a weird looking box or anything everything pops out a bit and I think on the S5 this doesn't happen.
Anyways Thank you very much again u are the Best.:good:
Click to expand...
Click to collapse
Thanks.
Yeah. That's the Parallox effect. And in Galaxy S5 that's optional. You can enable or disable the Parallox effect from S5 lockscreen settings....
But for Note 3, I didn't looked into smali files in details. So I don't know how to disable Parallox effect.
Anyway, when I get time surely I'll try to find out how to disable Parallox effect.
Happy to help you.
djsonoman said:
Lens flare is working great on my stock odexed PHE N9005XXUGNG1 rooted SM-N9005. :victory:
Particle effect not working. It seems that force close systemui.
Click to expand...
Click to collapse
Please check out the updated post, It should work now.
Would you upload your keyguard. Apk, (GNG1) ? Thanks
I am Pritish
again with New guide
How to port KK lockscreen TO GB using Droidbuster ICS Lockscreen source
{
"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"
}
This Should work on any GB device......
So Lets Start
Requirements:
1.Droidbuster's ics Lockscreen
2.apktool
3.Notepad++
4.Brain
1.First make ics lockscreen from this guide(note u dont need to change public ids in MultiWaveViewForSimulateICS.smali in that guide)
if u have did the the things from the above guide now u can continue to this guide
2.Decompile ur android.policy.jar
3.open smali\com\android\internal\policy\impl\SimulateICS_LockScreen.smali
& search for
Code:
MultiWaveViewForSimulateICS
Now replace the above with this
Code:
MultiWaveView
Replace untill all the "MultiWaveViewForSimulateICS" codes change to "MultiWaveView"[U can use Notepad++ to replace all at one time)
4.Decompile framework-res.apk & open res\vales\public.xml
Search for
id <public type="layout" name="lockscreen_greenorange"
copy the public id to another place
Search for
<public type="id" name="rl_multiWaveView"
copy the id to another place
(Note- remove 0 after 0x, eg;-if its 0x0102026d then it should be 0x102026d ,do this for all public ids)
5.Now again open smali\com\android\internal\policy\impl\SimulateICS_LockScreen.smali
Search for this line
Code:
.line 43
.local v0, mInflater:Landroid/view/LayoutInflater;
Below this u will find const v1, 0x10***** (***** are different according to ur Public ids as u have already changed that in Droidbuster guide)
Change the 0x10***** with the public id <public type="layout" name="lockscreen_greenorange" (that u have copied before)
Now Search for this line
Code:
.line 49
Below this u will find const v1, 0x10*****
change the 0x10***** with the public id <public type="id" name="rl_multiWaveView" (that u have copied before)
Now ur done ,u have succesfully Unlocked 4way Lockscreen (u can test it now on ur phone by recompiling & pushing android.policy.jar & framework-res.apk but if u directly want 3way LS then skip this step & proceed to next)
Converting the 4way Lockscreen to 3way
now its a xml part so values are varies with different Screen sizes
1.Goto decompiled framework-res folder
2.Download the sources from here & merge/replace with urs
3.Now recompile ur framework-res.apk
Again we have to change intent activity
1.So goto decompiled folder of android.policy.jar
Open smali\com\android\internal\policy\impl\MultiWaveView.smali
search for this
Code:
const-string v4, "com.android.mms"
const-string v5, "com.android.mms.ui.ConversationList"
Now change it to this
Code:
const-string v4, "com.google.android.googlequicksearchbox"
const-string v5, "com.google.android.googlequicksearchbox.SearchActivity"
U can change it ur desired app intent but i m adding google search as kitkat LS has a google search on LS
2.Now recompile ur android.policy.jar
3.Now push ur android.policy.jar & framework-res.apk to /system/framework/
It should work if u have did not any mistake.....
If it worked take a beer..... lol
Credits:
@Droidbuster for everything his sources,his guide etc.
@sssomnath474 for hdpi sources
& ofc me for this guide
If u like this guide then hit thanks
XDA:DevDB Information
KK LockScreen for GB (see above for details)
Contributors
pritish sahoo, Droidbuster
Version Information
Status: Stable
Created 2015-01-25
Last Updated 2015-01-25
[MOD]Make Android L like Lockscreen from 3way Lockscreen
[MOD]Make Android L like Lockscreen from 3way Lockscreen
1.First make 3way LockScreen from the above guide
2.Decompile framework-res.apk & goto decompiled folder
download sources from here & copy & replace with urs
Now Recompile ur framework-res.apk
Now we have edit ur android.policy.jar so that if we swipe to left in LS then it will give user a choice to open desired app & they can set them default too
3.So decompile android.policy.jar & goto decompiled folder
open smali\com\android\internal\policy\impl\MultiWaveView.smali
search for this
Code:
.line 464
below this u should find some thing like this
Code:
const-string v4, "com.android.mms"
const-string v5, "com.android.mms.ui.ConversationList"
invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
replace the above with this
Code:
new-instance v1, Landroid/content/Intent;
const-string v4, "android.intent.category.LAUNCHER"
invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
Finally it should look like this
.line 464
new-instance v1, Landroid/content/Intent;
const-string v4, "android.intent.category.LAUNCHER"
invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/StringV
.line 465
invoke-virtual {v2, v6}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 466
iget-object v4, p0, Lcom/android/internal/policy/impl/MultiWaveView;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-interface {v4, v2}, Lcom/android/internal/policy/impl/KeyguardScreenCallback;->isGotoUnlockscreen(Landroid/content/IntentV
.line 467
iget-object v4, p0, Lcom/android/internal/policy/impl/MultiWaveView;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-interface {v4}, Lcom/android/internal/policy/impl/KeyguardScreenCallback;->goToUnlockScreen()V
goto :goto_0
.line 428
switch_data_0
.packed-switch 0x1
switch_0
switch_2
switch_3
switch_1
.end packed-switch
.end method
Click to expand...
Click to collapse
Finally Recompile ur android.policy.jar & push both framework-res.apk & android.policy.jar to /system/framework.....
Battery charge text
reserved
---------- Post added at 07:08 AM ---------- Previous post was at 07:02 AM ----------
well done.
Now Gb user can enjoy 3 way kitkat lockscreen
.great i add reserved post for how to add battery charge text
nice guide.
keep it up :angel:
btw i already posted a guide how to add battery percentage permanently on lockscreen.
Please create A Guide lollipop lockscreen For Jb:crying:
Nice Thread
gamzekal said:
Nice Thread
Click to expand...
Click to collapse
thanks
veneetsingh said:
Please create A Guide lollipop lockscreen For Jb:crying:
Click to expand...
Click to collapse
need to talk with @Droidbuster for it
for real Lolipop Lockscreen features we need java sources.....
well i can mod ur layout to look like lolipop if u have 3way Lockscreen
pritish sahoo said:
need to talk with @Droidbuster for it
for real Lolipop Lockscreen features we need java sources.....
well i can mod ur layout to look like lolipop if u have 3way Lockscreen
Click to expand...
Click to collapse
thanks bro it is work on my jb device enjoying this lockscreen!!:good:
veneetsingh said:
thanks bro it is work on my jb device enjoying this lockscreen!!:good:
Click to expand...
Click to collapse
Screenshot plz
well in which device it worked
i will add to working devices list
pritish sahoo said:
Screenshot plz
well in which device it worked
i will add to working devices list
Click to expand...
Click to collapse
Karbonn A1+ duple
bro it's working but nothing run perfectly some time device automatically reboot and not working slide to Phone but Camera work!
any solution??
veneetsingh said:
Karbonn A1+ duple
bro it's working but nothing run perfectly some time device automatically reboot and not working slide to Phone but Camera work!
any solution??
Click to expand...
Click to collapse
Thats issue due to png problem as i know....
Well have u followed all the steps properly?
pritish sahoo said:
Thats issue due to png problem as i know....
Well have u followed all the steps properly?
Click to expand...
Click to collapse
yes i'm followed all steps i think this is Problem in my android.policy.jar..
take logcat
veneetsingh said:
yes i'm followed all steps i think this is Problem in my android.policy.jar..
Click to expand...
Click to collapse
take a logcat & attach here i will try to resolve ur problem
pritish sahoo said:
take a logcat & attach here i will try to resolve ur problem
Click to expand...
Click to collapse
how to take logcat??
veneetsingh said:
how to take logcat??
Click to expand...
Click to collapse
google it
pritish sahoo said:
google it
Click to expand...
Click to collapse
Please give me link??
is this mod work on JB 4.3 ?
devilmaycry2020 said:
is this mod work on JB 4.3 ?
Click to expand...
Click to collapse
not tested but u may give a try cause veenit singh said its worked on his JB phone
Lockscreen for jb + gb too
veneetsingh said:
Please create A Guide lollipop lockscreen For Jb:crying:
Click to expand...
Click to collapse
i am making