[Dev][How To] Remove SMS log from Call log - Android Software Development

Hello Guys....
I'm with a New Guide which helps u to remove the ANNOYING SMS log fromm Call log....
So here we go ^_^
Baksmali the LogsProvider.apk And navigate to
Code:
com\sec\android\provider\logsprovider
Open the "LogsProvider.smali" And find the following code
Code:
sget-object v0, Lcom/sec/android/provider/logsprovider/LogsProvider;->sURIMatcher:Landroid/content/UriMatcher;
const-string v1, "logs"
const-string v1, "sms"
const/16 v2, 0x9
invoke-virtual {v0, v3, v1, v2}, Landroid/content/UriMatcher;->addURI(Ljava/lang/String;Ljava/lang/String;I)V
Delete the whole code and compile it back....
U r now free from those pestering SMS logs in call logs
Credits:
Homam Ageel
And Me
Note: This method is only applicable for Samsung Based GB ROM's...

Might wanna add a note stating this is only for Samsung ROMs
Sent from my GT-P1000 using XDA

cdesai said:
Might wanna add a note stating this is only for Samsung ROMs
Sent from my GT-P1000 using XDA
Click to expand...
Click to collapse
Oops... yeah.. Thanks for the INFO

Thanks man
Sent from my GT-S5670 using xda premium

Would this work for the s3 as well?

Well just confirmed that it does....
Be forewarned, if you're not very computer savvy do a lot of research before attempting to replace or edit system files rather than getting stuck in the middle.
This is my first Android phone and my first mod and it took me like 12 hours between finding the files, deodexing/root access/ proper jars and frameworks/smali/zipalining/terminal/permissions/file signatures....The works! Well it's complicated. Maybe I'll write a guide one day.

sentry07 said:
Would this work for the s3 as well?
Click to expand...
Click to collapse
Oh yes it would.... Sorry for the late reply... Didnt get this thread reply in my feed
Sent from my GT-S5670 using XDA

favorites tab log
Is there a way to stop call and sms logs in favorites tab?

Related

[Q] Can someone mod a rom for me? please :)

can anyone mod a ACS rom for me so it can say "Stevie" in the lock screen and notification bar? instead of acs
http://forum.xda-developers.com/showthread.php?t=976194
bump.......
there's a couple problems with this. What theme are you using. If your using a theme your gonna have to contact that dev and ask him. If your just using the rom I'm the man to talk to.
if I do this for you then others are going to want it done then it will be time consuming. And I won't be able to work in my other projects. However I wrote a how-to on changing the sprint branding. You can always follow those instructions.
If I have some free time I may try to fit this in.
Sent from my SPH-D700 using Tapatalk
steviee7 said:
bump.......
Click to expand...
Click to collapse
you need to give the thread some time so people can see it. If no response in 24 hours then bump it. Not in the same time or in a matter of minutes. We don't live on the internet
Sent from my SPH-D700 using Tapatalk
sorry bout that... yes im just running the rom itself no theme or anything
steviee7 said:
sorry bout that... yes im just running the rom itself no theme or anything
Click to expand...
Click to collapse
I either suggest trying it your self or wait to see if I have time to do it
Sent from my SPH-D700 using Tapatalk
i tried it the other day but i messed up and i think i would rather wait for whenever you have time to mod it im in no rush i just thought it would be cool
just keep trying until you get it to work, you will feel awesome and you may learn a thing or two about android. there are a pretty limited number of ways to mess up such a small change so just do a little reading and you'll figure it out.
amirite said:
just keep trying until you get it to work, you will feel awesome and you may learn a thing or two about android. there are a pretty limited number of ways to mess up such a small change so just do a little reading and you'll figure it out.
Click to expand...
Click to collapse
+1 to this. I recently started using a theme that I wanted tweaked in one little way. I posted something in the thread and got no response and so started screwing around with it myself. It took a while (and multiple screw ups) but I eventually got it to do what I wanted. However, I learned a ton in the process that made me come up with new and improved ways I might screw up... I mean improve... my phone.
By the way, I think the key to doing this with confidence is doing a full "nandroid" backup (i.e. a backup in clockwork). As long as you do this before messing with anything on the phone, you can pretty much always restore the backup and be right where you were. I got myself stuck a couple times and this saved me.
dr_gibberish said:
+1 to this. I recently started using a theme that I wanted tweaked in one little way. I posted something in the thread and got no response and so started screwing around with it myself. It took a while (and multiple screw ups) but I eventually got it to do what I wanted. However, I learned a ton in the process that made me come up with new and improved ways I might screw up... I mean improve... my phone.
By the way, I think the key to doing this with confidence is doing a full "nandroid" backup (i.e. a backup in clockwork). As long as you do this before messing with anything on the phone, you can pretty much always restore the backup and be right where you were. I got myself stuck a couple times and this saved me.
Click to expand...
Click to collapse
When I'm working on mods I zip up the files I edited so I can flash and test the mod. I also create a 2nd zip with the same files but un modified. So if the modified zip breaks things I flash the un modified zip
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
However I wrote a how-to on changing the sprint branding. You can always follow those instructions.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Where is this located?
BWFBezerk said:
Where is this located?
Click to expand...
Click to collapse
Strings.xml after you decompile framework-res.apk zz_roaming text you'll see it probably says acs already. Pull the framework res.apk decompile in apk manager, then navigate to projects/framework-res.apk/res/values/strings.xml. Scroll down towards the bottom and search for zz_roaming_. Note in apk manager when you recompile and it asks is this a system app choose y. Then it asks to preserve signature as well as files choose yes thenin apk manager you'll now have a keep folder. Delete the file named resources.arsc and then goto place here for modding folder. You'll see unsigned-framework-res.apk in there rename that to framework-res.
Sent from my SPH-D700 using Tapatalk
dreamsforgotten said:
Strings.xml after you decompile framework-res.apk zz_roaming text you'll see it probably says acs already. Pull the framework res.apk decompile in apk manager, then navigate to projects/framework-res.apk/res/values/strings.xml. Scroll down towards the bottom and search for zz_roaming_. Note in apk manager when you recompile and it asks is this a system app choose y. Then it asks to preserve signature as well as files choose yes thenin apk manager you'll now have a keep folder. Delete the file named resources.arsc and then goto place here for modding folder. You'll see unsigned-framework-res.apk in there rename that to framework-res.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
should have just linked him to my thread. Give me a minute and I'll dig it up
Sent from my SPH-D700 using Tapatalk
http://forum.xda-developers.com/showthread.php?t=872222
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
http://forum.xda-developers.com/showthread.php?t=872222
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
You right forgot all about it!
Lmao miss read that question thought he asked where the name was located seems he wanted the thread
Sent from my SPH-D700 using Tapatalk
well i tried to do it myself again... using your guide and when i try to install the new rom it says installation aborted!
Just push the framework-res.apk file... installation aborted is a problem with your updater-script
Sent from my SPH-D700 using XDA App
chris41g said:
Just push the framework-res.apk file... installation aborted is a problem with your updater-script
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Either push it using adb or root explorer. Or use update script from another theme but leaving the file structure the same
Sent from my SPH-D700 using Tapatalk
chris41g said:
Just push the framework-res.apk file... installation aborted is a problem with your updater-script
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
yeah... i dont know how to do that...
steviee7 said:
yeah... i dont know how to do that...
Click to expand...
Click to collapse
Turn usb debugging on in settings applications development. Hook your usb cable open a command prompt and in the terminal cd to the directory with the modded framework and type adb push framework-res.apk system/framework/ and then hit enter. This requires you have the android sdk installed and the tools in your path if u you have trouble with that then get a theme that works on your rom open the theme with a zip program and delete everything inside the system folder except the folder framework. Next open the framework folder and delete both framework-res.apk and twframework.apk. Next drag and drop your framework-res.apk into that framework folder close the zip and flash
Sent from my SPH-D700 using Tapatalk

[Q]how to add permissions to app

i have created custom rom and added few app from my side but they all force close when try to open them.I know i have to add permission to them but i dont know how or were and what to do
can anyone point me to the right direction
i will be very thankful
I'm pretty sure by "created" you mean kanged, not that I care. Just be careful. People around these parts can be. . . touchy.
Are you doing this in ROM kitchen, or what? It adds the lines in updater-script to set permissions for all the /system/app and /data/app files, so I'm guessing no.
The line for data/app would be:
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
estallings15 said:
I'm pretty sure by "created" you mean kanged, not that I care. Just be careful. People around these parts can be. . . touchy.
Are you doing this in ROM kitchen, or what? It adds the lines in updater-script to set permissions for all the /system/app and /data/app files, so I'm guessing no.
The line for data/app would be:
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
Click to expand...
Click to collapse
okey thanks
i think i was just modifying one of the miui for myself
yaa in rom kitchen
sorry if some people dont like what i said i was just looking for help
thanks for telling me that and helping me out
The apps don't force-close if you just add them. It means you added incompatible apps, like ones that require some framework that doesn't exist in MIUI.
Jack_R1 said:
The apps don't force-close if you just add them. It means you added incompatible apps, like ones that require some framework that doesn't exist in MIUI.
Click to expand...
Click to collapse
i dont know much about many topics yaa but i have added some new apps in the .zip they all got installed and were shown but when i try to open them they force close
What apps?
estallings15 said:
What apps?
Click to expand...
Click to collapse
some generally needed apps like engadget,chaton,xda,etc
some small games
and it was miui rom
gsminhas said:
some generally needed apps like engadget,chaton,xda,etc
some small games
and it was miui rom
Click to expand...
Click to collapse
You can also manually set perms through root explorer by holding down on the app and click "permissions"
Thanks
But I want to know how to add permissions while creating. Zup
Sent from my HTC Glacier using xda premium
Thanks
But I want to know how to add permissions while creating. Zip
Sent from my HTC Glacier using xda premium
I already told you how. That line i posted earlier should be in your updater-script. It will set the permissions in the data/app folder. That's where you should be putting your apks. When you have the rom on your phone click on the apk's in question with a root file explorer and compare the permissions and owners to an apk in the same folder that works. If they are identical then your problem lies elsewhere. If they are different, match them up and see if they will run properly. If that is the case, start comparing your updater-script to those of other ROM's and see where you went wrong.
estallings15 said:
I already told you how. That line i posted earlier should be in your updater-script. It will set the permissions in the data/app folder. That's where you should be putting your apks. When you have the rom on your phone click on the apk's in question with a root file explorer and compare the permissions and owners to an apk in the same folder that works. If they are identical then your problem lies elsewhere. If they are different, match them up and see if they will run properly. If that is the case, start comparing your updater-script to those of other ROM's and see where you went wrong.
Click to expand...
Click to collapse
Thanks very very very much I will try it tonight thanks again
Sent from my HTC Glacier using xda premium
You're welcome. Don't forget the thanks button. I need street cred. Don't want to be like Vanilla Ice.
Yeah, I just mentioned Vanilla Ice. Its obviously way too early....
estallings15 said:
You're welcome. Don't forget the thanks button. I need street cred. Don't want to be like Vanilla Ice.
Yeah, I just mentioned Vanilla Ice. Its obviously way too early....
Click to expand...
Click to collapse
I already hit the thanks I think twice and I am still jobless or else I would have donated u .......... Vanilla ice ............ What's that lol
Sent from my HTC Glacier using xda premium
gsminhas said:
I already hit the thanks I think twice and I am still jobless or else I would have donated u .......... Vanilla ice ............ What's that lol
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
Lol. Thanks buddy. I'll even thank you back. Let us know if you work it out.
estallings15 said:
Lol. Thanks buddy. I'll even thank you back. Let us know if you work it out.
Click to expand...
Click to collapse
I will surely tell u and thanks for the thanks lol
Sent from my HTC Glacier using xda premium

Touchwiz spell check mod jb,ics

as many of u know. touchwiz roms dont include spell checking
(the red line underneath miss spelled words like found on nokiia,blacknerry,iphone and cm based roms)
i think i came across a fix for this,
the files that has 2 be changed are the following 2.
Secsettings.apk & framework2.jar
--or you can backup your device and replace the 2 files with files attached in 2nd post
--or you can flash the zip file in 2nd post (please backup and confirm if it works on your device
as member iT iS Me states he did the following
iT iS Me said:
For me Spell Checking option is very important and I like using it in CM roms. However, our NOTE is more productive with Stock roms. I searched a lot to find a way to enable the option. Unfortunately, there was no 100% clear guidance but I could manage to get it. Thanks to everyone helped.
You need to decompile Secsettings.apk & framework2.jar.
In SecSettings, open the file "res\xml\language_settings.xml" and look for:
Code:
<PreferenceScreen android:title="@string/phone_language" android:key="phone_language" android:fragment="com.android.settings.LocalePicker" />
add new line and paste the following:
Code:
<com.android.settings.inputmethod.SpellCheckersPreference android:title="@string/spellcheckers_settings_title" android:key="spellcheckers_settings" />
In framework2.jar, open the file "smali\android\widget\TextView.smali" and look for:
Code:
.method public isSuggestionsEnabled()Z
.locals 1
.prologue
.line 8464
[COLOR="Red"][B]const/4 v0, 0x0[/B][/COLOR]
return v0
.end method
Change the highlighted to:
Code:
.method public isSuggestionsEnabled()Z
.locals 1
.prologue
.line 8464
[COLOR="Red"][B] const/4 v0, 0x1[/B][/COLOR]
return v0
.end method
That is all and enjoy.
NOTE: It works with Google Keyboard or alternatives.
Click to expand...
Click to collapse
--or you can backup your device and replace the 2 files with files attached in 2nd post
--or you can flash the zip file in 2nd post (please backup and confirm if it works on your device)
2nd post reserved for uploads
https://dl.dropbox.com/u/32170931/SpellCheckTest.zip <- flashable zip
I tried this on my Galaxy Note 10.1 running stock UK ma5 ROM, it kind of worked in some apps, red underline appeared, but I lost access to my "settings" panel and it also installed something called mobihotspot(?) Which I was unable to remove.
when u say u lost access to settings panel, does it mean it force closes when u open it, or doesnt it appear anymore? ur gonna have to take ur original note10.1 files and edit them urself. not use the files i supplied here?
Any ideas if this solution works also on the Galaxy S 4?
Jiiins said:
Any ideas if this solution works also on the Galaxy S 4?
Click to expand...
Click to collapse
Try it.
Sent from my Samsung Galaxy SVII using Tapatalk 6 Beta
Do I need active internet connection for this?
Sent from my GT-N7000 using Tapatalk 4 Beta
What rom and device are these files in the zip from?
can it be safely rooted for unexperienced user ?
wolverin99 said:
can it be safely rooted for unexperienced user ?
Click to expand...
Click to collapse
Very simple. Just go the the PhilZ kernel thread and follow the instructions very closely.
Sent from my Samsung Galaxy SVII using Tapatalk 6 Beta
Jiiins said:
Any ideas if this solution works also on the Galaxy S 4?
Click to expand...
Click to collapse
I did not try the flashable file, but doing this manually worked on my VZW Galaxy S4 running JellyBeans build 6 (deodexed ROM).
*Edit*
This also adds spell checking to chrome's address bar, and presumably other text fields that do not normally have it. For me, that is only a minor annoyance and is greatly outweighed by the addition of spell check. Just an FYI.
dropbox link is not working
Dear many thanks for your important subject please please please provide me with zip file to flash it as i tried to do manually but it did't work
Thanks regards,
spell checker on note 3 sm-n9005
can you help me to get the same file on note 3
primitive.A said:
2nd post reserved for uploads
https://dl.dropbox.com/u/32170931/SpellCheckTest.zip <- flashable zip
Click to expand...
Click to collapse
does anyone still have these files!!! I would really like to have my spell check back! I miss that about my Razr.
I am now on the Verizon S4.
The drop box link does not work and I cant seem to find the raw files either!
swc2001 said:
does anyone still have these files!!! I would really like to have my spell check back! I miss that about my Razr.
I am now on the Verizon S4.
The drop box link does not work and I cant seem to find the raw files either!
Click to expand...
Click to collapse
bump!!
Anybody there!?!
Sent from my SCH-I545 using Tapatalk
swc2001 said:
Anybody there!?!
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
You need to do the mod for yourself. Every rom is different. You could also look for a rom that the developer included it in his rom.
athlonxp2300 said:
You need to do the mod for yourself. Every rom is different. You could also look for a rom that the developer included it in his rom.
Click to expand...
Click to collapse
Well I am not sure how to do the mod. and the zip files are not there. I only use stock rooted because it works 100%
swc2001 said:
Well I am not sure how to do the mod. and the zip files are not there. I only use stock rooted because it works 100%
Click to expand...
Click to collapse
The mod only works on deodexed roms. You have to copy the required files from that rom, decompile, edit then recompile. Then copy the files back over the originals.
swc2001 said:
Well I am not sure how to do the mod. and the zip files are not there. I only use stock rooted because it works 100%
Click to expand...
Click to collapse
Did you try to read the OP?
Sent from Nexus 5 on Slimkat

[Guide] [How-to] Replace Recents with Menu & LongPress Home for Recent Apps

[Guide How-to] Replace Recents with Menu & LongPress Home for Recents
This guide is for the Galaxy S5 and should work on all variants.
Keylayout edits:
system/usr/keylayout/Generic.kl
Change key 254 from APP_SWITCH to MENU
key 254 MENU
system/usr/keylayout/gpio-keys.kl
Do the same to key 254
key 254 MENU
Now Recent Apps capacitive key is Menu (single-press) and Search (long-press).
However, we have now lost access to recent apps via a hardware key.
How-to map Recent Apps to Long-press Home
android.policy.jar edits
smali/com/android/internal/policy/PhoneWindowManager.smali
.method private handleLongPressOnHome()V
Search for and delete the line in RED.
Code:
iget v2, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLongPressOnHomeBehavior:I
if-eqz v2, :cond_0
iput-boolean v5, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeConsumed:Z
const/4 v2, 0x0
invoke-virtual {p0, v2, v4, v4}, Lcom/android/internal/policy/impl/PhoneWindowManager;->performHapticFeedbackLw(Landroid/view/WindowManagerPolicy$WindowState;IZ)Z
iget v2, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLongPressOnHomeBehavior:I
[COLOR="Red"] if-ne v2, v5, :cond_6
[/COLOR]
invoke-direct {p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->toggleRecentApps()V
Thanks for all of the work you guys are doing for this phone, really appreciate it.
Can this be made into a flashable zip or just wait for a rom to be incorporated with this?
jbadboy2007 said:
Can this be made into a flashable zip or just wait for a rom to be incorporated with this?
Click to expand...
Click to collapse
This mod is actually being implemented into the newest release of R.D.D.T ND2 v1.1 according to the changelog in that thread and is currently being tested by sleshepic. TDunham is posting the guide here for other developers and users to be able to recreate his steps and avoid any pitfalls he may have encountered. He did post the mod files in another thread for a specific ROM build, but that tells me the mod is not universal and likely needs to be built on top of a custom ROM.
if you'd like to give the mod a shot yourself though, here's a great guide for breaking into the world of editing smali files and it's really thorough:
http://forum.xda-developers.com/showthread.php?t=2193735
If you succeed let us know!
I wish I could express how freaking long I spent digging around in phonewindowmanager trying to figure out ho to do this. I did figure out the menu button, that was almost too easy...sheesh, thanks for helping man, ill make sure to edit my thread asking for help with this to include a link to this!
Hey bro, kinda confused by the reverse for long pressing for the Search function.
A point in the right direction would be awesome. I'm on sleshepic latest ND2 1.1 of course.
Appreciate the work man, thx
Sent from my SM-G900P using Tapatalk
reverepats said:
Hey bro, kinda confused by the reverse for long pressing for the Search function.
A point in the right direction would be awesome. I'm on sleshepic latest ND2 1.1 of course.
Appreciate the work man, thx
Sent from my SM-G900P using Tapatalk
Click to expand...
Click to collapse
To revert change just change the key 254 in both highlighted files back to APP_SWITCH instead of MENU using a text editor in root explorer:
Keylayout edits:
system/usr/keylayout/Generic.kl
Change key 254 from to MENU from APP_SWITCH
system/usr/keylayout/gpio-keys.kl
same edit
key 254 APP_SWITCH
tdunham said:
To revert change just change the key 254 in both highlighted files back to APP_SWITCH instead of MENU using a text editor in root explorer:
Keylayout edits:
system/usr/keylayout/Generic.kl
Change key 254 from to MENU from APP_SWITCH
system/usr/keylayout/gpio-keys.kl
same edit
key 254 APP_SWITCH
Click to expand...
Click to collapse
Well at first, I did just that. Used RE to change key 254 in both files, but only the recent hardware key went back to stock. Then I took the original files from the 1.0 zip, but that didn't revert the home button long press either. I saw your post in the rom thread, before I posted here.
Sorry to be a pain
Sent from my SM-G900P using Tapatalk
reverepats said:
Well at first, I did just that. Used RE to change key 254 in both files, but only the recent hardware key went back to stock. Then I took the original files from the 1.0 zip, but that didn't revert the home button long press either. I saw your post in the rom thread, before I posted here.
Sorry to be a pain
Click to expand...
Click to collapse
No, that edit requires decompiling android.policy.jar and putting the line back in from that part of the guide I posted above. In the rom you're running, I added recent apps shortcut to the pulldown also.
tdunham said:
No, that edit requires decompiling android.policy.jar and putting the line back in from that part of the guide I posted above. In the rom you're running, I added recent apps shortcut to the pulldown also.
Click to expand...
Click to collapse
Ahh OK, I must have just read the OP wrong. Sorry to bother man, i appreciate it!
Sent from my SM-G900P using Tapatalk
reverepats said:
Ahh OK, I must have just read the OP wrong. Sorry to bother man, i appreciate it!
Sent from my SM-G900P using Tapatalk
Click to expand...
Click to collapse
I have a feeling you'll be giving back in a manner that this is no pain at all :good:
Happy Friday y'all
Sent from My Venum'd S5
I always wonder, how they find all this kind of stuff
eloko said:
I always wonder, how they find all this kind of stuff
Click to expand...
Click to collapse
Experience, logcat, and a little bit of luck
Is there a way to swap the short and long press of just the recent/menu to menu/recent without changing the home button?
Sent from my Rooted Sprint GS5 SM-G900P
KaptainRandom said:
Is there a way to swap the short and long press of just the recent/menu to menu/recent without changing the home button?
Click to expand...
Click to collapse
Yes, the modification is two part. The keylayout edits are just for the capacitive key and the android.policy.jar edit is for the home key. Just don't do the android.policy edit.
It is stated that way in the OP as well I think.
Sorry to be a bother...
Clarification... I is confused...
The OP says it changes the recent button from recent/menu to menu/search...
I don't want menu/search...
I want menu/recent.
Sent from my Rooted Sprint GS5 SM-G900P
deleted
KaptainRandom said:
Sorry to be a bother...
Clarification... I is confused...
The OP says it changes the recent button from recent/menu to menu/search...
I don't want menu/search...
I want menu/recent.
Click to expand...
Click to collapse
You ever get this figured out? I am trying to figure out a way to do the same...
Never mind...Finally found the answer that seemed to do the trick.
Also make the following change in Generic.kl:
key 127 MENU -> key 127 APP_SWITCH
Thanks for the mod guys. I was wondering if I wanted to change the recent/menu button to back and the back to the menu/recent. Would this be simple?
nova0387 said:
Thanks for the mod guys. I was wondering if I wanted to change the recent/menu button to back and the back to the menu/recent. Would this be simple?
Click to expand...
Click to collapse
I'm not sure. Doing it from the keylayout file I wrote about in the OP you can try swapping the Back (default key is 158 btw) with recent or menu but I'm not really sure how it would work out. However, you can't edit the longpress function because those are hard coded in smali so that's why I said I'm not sure what would happen.
And when I mean SWAP, I mean just swapping the names. Leave the key values right where they are.

[Guide] How to bring real Recent Cardstack to your ROM

Hy I'm noobs want to share little guide for you are...
this guide is how to bring recent cardstack to youre ROM... Ok lets to mod.
First Big Thanks to :​
1. Muhammad Bagus Prasetyo (My best friend which first person who can bring cardstack on Samsung Core 2).
2. Lollifox ROM and Paranoid ROM for file comparation.
Click to expand...
Click to collapse
NOTE :​
1. If you get FC use LOGCAT to know the error and fix by youre self.
2. I'm try this on Stock touchwiz Kitkat 4.4.2 (My device use Spreadrum Shark (sc8830) Chipset)
3. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when Im use Navbar
4. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when any moddification in android.policy.jar which contain navbar modding.
5. In my heart and my mind Navbar not critical uses so I'M AVOID THE FC WHEN USE NAVBAR AND I'M NOT USE NAVBAR.
6. CONCLUSION : If youre want to fix FC when use Navbar , please compare again with Lollifox ROM file.
7. I DON'T KNOW WILL WORK ON ANOTHER OS BUT JUST TRY IT.
Click to expand...
Click to collapse
BUG : NOT AVAILABLE CLEAR ALL RECENT.
Requirepment :
1. Brain
2. Apktool
3. A cup of tea or cofee
STEP 1 :
1. Decompile Framework-res.apk then marger file on attachment.
2. add this on string.xml
HTML:
<string name="setting_confirmation_ask_me_later">Ask later</string>
<string name="setting_confirmation_yes">Yes</string>
<string name="setting_confirmation_no">No</string>
3. recompile and decompile again to get id public
4. open res/value/public.xml and dont close it.
Click to expand...
Click to collapse
STEP 2 :
1. Decompile framework.jar
2. marger file on attached to Landroid/content/pm/HERE
3. recompile again
STEP 3 :
1. Decompile framework2.jar
2. marger gifview.smali TO Landroid/widget/HERE
3. marger file which have name SettingConfirmationHelper...... TO Landroid/util/HERE
4. Change id public in SettingConfirmationHelper.smali with your id public on framework-res.apk/res/value/public.xml (7 ids which MUST changed)
Code:
- 0x01040bcb ----> <public type="string" name="setting_confirmation_yes" id="0x01040bcb" />
- 0x01040bca ----> <public type="string" name="setting_confirmation_ask_me_later" id="0x01040bca" />
- 0x01040bcc ----> <public type="string" name="setting_confirmation_no" id="0x01040bcc" />
- 0x0109014b (on smali have 2 id like this) ----> <public type="layout" name="setting_confirmation_dialog" id="0x0109014b" />
- 0x01020473 ----> <public type="id" name="setting_confirmation_dialog_visual_hint" id="0x01020473" />
- 0x01020474 ----> <public type="id" name="setting_confirmation_dialog_visual_gif" id="0x01020474" />
5. recompile again
STEP 4 :
1. Decompile SystemUI.apk and merger/replace folder file from me in drawable and drawable-hdpi
2. Delete all file on folder smali\com\android\systemui\recent\ DELETE ALL
3. Merger file which in folder recent in attachment file to smali\com\android\systemui\recent\HERE
4. Merger file which in folder sands in attachment file to smali\com\android\systemui\HERE
5. Merger file in folder Layout to Layout folder ... If exist on youre folder REPLACE IT.
6. Merger file in folder Layout-land to Layout-land folder ... If exist on youre folder REPLACE IT.
7. Change all file status_bar_recent_panel.xml and status_bar_recent_item in youre layout folder with file in folder Layout from ME.
8. Change all file status_bar_recent_panel.xml and status_bar_recent_item from folder Layout-land if you see to youre folder which have name contain land.
9. add this to string.xml
HTML:
<string name="status_bar_recents_card_stack_title">Recents card stack view</string>
<string name="status_bar_recents_card_stack_message">Would you like to enable recents card stack view?</string>
<string name="navbar_recents_clear_all_title">Clear all</string>
<string name="navbar_recents_clear_all_message">Would you like the recents button to clear all apps?</string>
<string name="floating_mode_blacklisted_app">The current app is blacklisted as it may not work as expected in floating mode</string>
<string name="status_bar_recent_floating_item_title">Floating mode</string>
10. add this to values/dimen.xml
HTML:
<dimen name="status_bar_recents_card_margin">15.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_height">50.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_label_size">16.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_icon_size">30.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_icon_margin">13.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_sep">9.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_margin">18.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_size">14.0dip</dimen>
11. add this to values/ids.xml
HTML:
<item type="id" name="floating_mode_blacklisted_app">false</item>
<item type="id" name="app_top_colored_bar">false</item>
<item type="id" name="app_floating">false</item>
<item type="id" name="app_kill">false</item>
<item type="id" name="app_thumbnail_border">false</item>
<item type="id" name="recent_launch_floating">false</item>
add this to values/color.xml
HTML:
<color name="status_bar_recents_app_bar_color">#ffdcdcdc</color>
<color name="status_bar_recents_app_label_color_dark">#e0181818</color>
<color name="status_bar_recents_app_label_color_light">#e0ffffff</color>
12. recompile and decompile again.
13. Go to smali\com\android\systemui\recent\HERE ... change the ids on smalis ... Because contain a lot off id so Im give my id public off my SystemUI and my Framework... use it to compere ids. Compare in this smali :
--> RecentTasksLoader.smali
--> RecentsVerticalScrollView.smali
--> RecentsPanelView.smali
--> RecentsHorizontalScrollView.smali
--> RecentsCardStackView.smali
--> RecentsActivity.smali
--> Recents.smali
--> FadedEdgeDrawHelper.smali
14. open basestatusbar in Lcom/android/systemui/statusbar/BaseStatusBar.smali
--> add this under # instance fields
Code:
.field protected mImmersiveModeStyle:I
--> search .method public toggleRecentApps()V
change whole method with this :
-->
Code:
.method public toggleRecentApps()V
.locals 2
const/16 v0, 0x3fc
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;
invoke-virtual {v1, v0}, Landroid/os/Handler;->removeMessages(I)V
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;
invoke-virtual {v1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
return-void
.end method
--> next search .method protected toggleRecentsActivity()V
change whole method with this :
-->
Code:
.method protected toggleRecentsActivity()V
.locals 4
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;
if-eqz v0, :cond_0
iget-boolean v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mBlockRecents:Z
if-nez v0, :cond_0
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mDisplay:Landroid/view/Display;
iget v2, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mLayoutDirection:I
invoke-virtual {p0}, Lcom/android/systemui/statusbar/BaseStatusBar;->getStatusBarView()Landroid/view/View;
move-result-object v3
iget p0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mImmersiveModeStyle:I
invoke-interface {v0, v1, v2, v3, p0}, Lcom/android/systemui/RecentsComponent;->toggleRecents(Landroid/view/Display;ILandroid/view/View;I)V
:cond_0
return-void
.end method
15. go to Lcom/android/systemui/ replace RecentsComponent.smali with my RecentsComponent.smali which Im attachment.
16. All done ... RECOMPILE all edited apk and jar ... AND DONT FORGET TO SIGN THE APK FILE.
17. Put All editted file to flashable.zip and flash it....
Click to expand...
Click to collapse
I has been attached all file and the guide in xml type. Download in attached file.
I'm from Indonesian specially from Central Java and I'm bad in English so I'm so sorry for my bad English in whole text in this guide .
I'm only need a little Credit if you use this guide. Thank you!
AND PLEASE SEARCH ALL ID ON SMALI AND COMPARE/CHANGE WITH YOURE ID...SEARCH ONE BY ONE ON ALL SMALI IN "RECENT" FOLDER... BE CAREFUL FOR ALL ID's ​
DON'T FORGET TO HIT THANKS BUTTON IF YOU LIKE MY WORK AND HELP YOU :good: ​
For Video Recent Cardstact from this guide Go HERE YOUTUBE​
Thanks bro.. U help me a lot..
Darkstar085 said:
Thanks bro.. U help me a lot..
Click to expand...
Click to collapse
Youre welcome sir... ... if it help you dont forget to hit thanks button
I never forgot to do that
Darkstar085 said:
I never forgot to do that
Click to expand...
Click to collapse
Thank you sir... if you get problem post here ... if i can help i will help you
Ya sure.. By2way Your English is not bad at all
Darkstar085 said:
Ya sure.. By2way Your English is not bad at all
Click to expand...
Click to collapse
Wkwkwk thank you sir ... but on test i get C :'D
Ih24n said:
Wkwkwk thank you sir ... but on test i get C :'D
Click to expand...
Click to collapse
C is not bad..
Is it work on Android 4.3, CM10.2 ?
Timeral said:
Is it work on Android 4.3, CM10.2 ?
Click to expand...
Click to collapse
I dont know work in JB or not . because im only tested on KK only.... You can try work or bot on JB.
Ih24n said:
I dont know work in JB or not . because im only tested on KK only.... You can try work or bot on JB.
Click to expand...
Click to collapse
but on android4.3, there is not a framework2.jar in framework,so i don't know how to deal with it.
Timeral said:
but on android4.3, there is not a framework2.jar in framework,so i don't know how to deal with it.
Click to expand...
Click to collapse
Use framework.jar ... When you see instruction to pus/merger fuke to framework2.jar ... Just pus to framework.jar when you use JB(4.3) and lower
Help?
I have done this guide, all IDs are changed. But I my status bar's gone. I checked logcat but it only show systemui crash (by something in com/android/systemui/statusbar/phone/PhoneStatusBar.smali)
SonnySimon said:
I have done this guide, all IDs are changed. But I my status bar's gone. I checked logcat but it only show systemui crash (by something in com/android/systemui/statusbar/phone/PhoneStatusBar.smali)
Click to expand...
Click to collapse
Please give the full logcat... I will helped if i can... Because this guide not tested on JellyBean OS.
when i decompile my framework.jar i find no smali files my framework.jar is also pretty small in size also in SystemUI decompile i see no smali files only others like xmls .. what should i do ?
asser19 said:
when i decompile my framework.jar i find no smali files my framework.jar is also pretty small in size also in SystemUI decompile i see no smali files only others like xmls .. what should i do ?
Click to expand...
Click to collapse
Are you with deodexed ROM ???
my rom is odexed I think cause I find some of system files end with apk and also .odex format .. Help please :3
---------- Post added at 08:41 AM ---------- Previous post was at 08:38 AM ----------
it's a stock rom too .. EMUI 2.3 Lite Huawei Y625-U32 .. No Mods But TWRP Rec ..
Do you think it will works on gb devices?
来自搭载Android 2.3 GingerBread的华为Y220-T10
asser19 said:
my rom is odexed I think cause I find some of system files end with apk and also .odex format .. Help please :3
---------- Post added at 08:41 AM ---------- Previous post was at 08:38 AM ----------
it's a stock rom too .. EMUI 2.3 Lite Huawei Y625-U32 .. No Mods But TWRP Rec ..
Click to expand...
Click to collapse
For deodex only .
zhaozihanzzh said:
Do you think it will works on gb devices?
来自搭载Android 2.3 GingerBread的华为Y220-T10
Click to expand...
Click to collapse
In another version os not tested sir... But you can try. And also compare from original ui pusyfap and paranoid sir..... I am trying on jb but found error null pointer...

Categories

Resources