Gmail: Disable Trackball Notifications without disabling Vibration - Nexus One General

Hi, is there a way to disable Gmail Trackball Notifications (led) without disabling Vibration in the phone ?, I am using CM 5.0.6, thanks

its possible with a a single .smali edit in gmail.apk
1. decompile with apktool,
2. comment out line 2483 in \com\google\android\gm\Utils.smali,
3. rebuild with apktool

alternatively you can use http://www.androidzoom.com/android_applications/tools/leds-hack-root-only_flid.html?nav=related

Related

Issue when trying to mod Mms.apk (BCM CM9 Rom)

Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
FrancisFuku said:
Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
Click to expand...
Click to collapse
I have the exact same problem! Did you find any solution?
I gave up but I've found a Mms.apk (from the latest CM9 source) which does include a option to not convert SMS into MMS (you have to change it in the settings of the app). But it is for the HTC One X, so I do not know if it works for other devices. I attach it so you can try.
Thank you
Sent from my HTC Desire CDMA using Tapatalk 2
The problem is that all apps must be signed to run on Android. Once you recompile your apk with apktool, you have to sign it with a release key (and optionally but recommended - run zipalign), before pushing it back to your phone.
The android developers guide has an excellent article on creating a set of release keys and using them to sign your apk (the apk just has to be signed with any key, it doesn't have to match the same key the original ROM authors used).

[GUIDE] FIX Theme Engine Bug on N9 (Alternative Method) [SystemUI not Themed]

First of all, this guide uses elements of another method, originally posted on G+ and YouTube (https://www.youtube.com/watch?v=MW1UsCyOidY) but for some reason, on the Nexus 9, this method does not always work. The below method will work 100% of the time on the Nexus 9.
Go into the Theme Engine, and apply the SYSTEM DEFAULT THEME
Open Play Store, and purchase and download SQLite Editor (paid app, have not found a free version that actually works with Root access) - https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor&hl=en
Open SQLite editor.
In the APP list (selected by default) tap on the Settings Storage entry that says com.android.providers.settings underneath it
Tap on settings.db
Tap on secure
Scroll all the way to the bottom of the list, and long press on themeConfig entry
Tap on DELETE ENTRY
Exit SQLite Editor and go into Settings
Select Apps, and then All
Find the Theme Engine, and tap on it
Select FORCE CLOSE and then CLEAR DATA and clear the Theme Engine's data
Reboot your Nexus 9
Apply whatever theme you would like, and enjoy everything being themed, that was not themed before
Prosper
Please let me know if this method did, or did not work for you. I have tried it on three different N9s that were all experiencing the Theme Engine bug, and it worked on all three.
Thanks for reading.

Collection of Guides & Mods & Links for Samsung Android 6.0.1

Collection of Guides & Mods & Links for Samsung Android 6.0.1
{
"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"
}
Code:
[COLOR="magenta"][B][U]Rules of Thread[/U]
1. Post only guides here which work 100% on a S6 or S6edge please
2. If you post a guide here than be sure its your own guide
3. If it is not your guide than please only link to that guide to original developer and show only the changes here we have to made
4. Keep your guide please up to date if something is wrong because i link in OP to your guide and dont rewrite
5. If it is not your guide give credits and write that the users have to thank in linked thread from original thread
6. Please add a english screenshot[/B][/COLOR]
CSC Mods
Working CSC Features MM 6.0.1
Fixes
How to fix a SystemUI.apk fc after flashing a bad SystemUI.apk and no SystemUI.apk helps
Overlapping Fix
Screen overlay permissions fix PROJECT GRACE
How to fix GooglePackageInstaller.apk for Overlay Permission on GraceProject
Fixes for Statusbaricons on white apps
First step here to change and add on smali for all other mods to work
How to add network traffic tint on light statusbars
How to add tint for center and left clock
SystemUi.apk mods
How to open app if click on statusbar clock
How to allow fingerprint unlock after a reboot
How To Colorized Lockscreen Owner Info
How to color buttons "NOTI. SETTINGS" and "CLEAR" for notifications
How to color battery percentage on StatusBar
6thGear Brightness panel customization
-additional here and here for grace
How to colorize every background on expanded view for "Project Grace"
How to enable Lockscreen rotation with toggle in RomControl V2
Network traffic indicator in status bar (or anywhere else) the 6thGear way compiled from (ACTUAL) source
-additional here
How to hide "Swipe screen to unlock" on lockscreen for MM.
6thGear Data Usage Preferences on the fly without observer and without CSC changes
How to add ROM Control toggles "Clock and date on lock screen" for MM
How to disable Headsup Notifications - MM
How to use 6thGear CustomBg as notification panel background
6thGear change notification bg shape and color on the fly, without observer
-additional here
How to hide the multi-user avatar with a toggle MM
Gear device info in notification panel
6htGear Carrier label preferences - as ADDITION to 6thGear device info mod
How to hide Brightness Slider panel
How to change the color of the Notification Panel Header Settings Divider
How to center clock which disappear on lockscreen
How to colorize QuickConnect and help Text beside in expanded view
How to colorize EDIT text in expanded view
How to change QuickPanel Toggles scrollable view from 5 to 20 (variable)
How to add Carrier label to statusbar with allignment and color options in romcontrol
How to add Service Provider ( Carrier Label ) to Status Bar
How to toggle Power Saving Mode Ongoing Notification
Mod/Guide Custom/Any image background for notification panel with RomControl
Adding CM Visualizer on TW MM
Guide for Battery Bar
How to color Data Usage text in Expanded view
"CLEAR" button to Power Saving Notification
How to add virtual lock, recent and home button to statusbar(with RomControl settings for on/off and position)
Opaque Status Bar Icons In Marshmallow (Remove Alpha Channel from status bar icons)
How to add virtual Lock button with RomControl Toggle
How to change number of toggles in a row with RomControl (optional on the fly)
How to switch data/wifi from right to left with a toggle
-additional the IDs here
How to add toggles color and background
-more toggles here
Signalcluster colors - Wifi, Signalbar, Data (LTE/3G), Notification icons (Volume, Bluetooth, etc)
Custom Carrier Label + Color on MM
Quickpanel Toggle on/off colors for Android MM
How to color Quickpanel toggle text, Wifi & Bluetooth connected and Help text on MM
How to colorize system and notification icons
Real time toggle between 3minit Battery Mod and Stock battery
How to Increase Lock Screen visible notifications in real time with toggle
Remove Low Battery Warning Notification
How to move signal icon to left wifi icon
How to move WiFi and Data icons to left side of statusbar
How to 6 toggles in a row (with integers.xml edit)
How to 6 toggles in a row (with smali edit)
How to add networkspeed seperate in/out with colorizer and switch on/off for RomControlApp(work also without)
Rounded recent panel view
How to integrate Gradient Statusbar
How to integrate potato clock
Next alarm on the lock screen
-additionell here
Remove gray statusbar when activated PowerSaveMode
Remove Unlock Help Text in Lockscreen
Rounded Notifications
How to add virtual lock button
Open all toggles in the Quickpanel swipe from the right side of the screen with toggle for RomControlApp(work also without)
Expanded view background colors with toggles
-Additional to this mod here to work better
Colorize Lockscreen Clock & Date in real time
-Additional to this mod here to inverse font look between Hours and Minutes
Colorize StatusBar Expanded Header Clock & Date in real time
How to add quicklauncher in recents app
-additionell for a switch here
Framework-res.apk and framework.jar mods
Power Menu Custom Background
SystemUI.apk and framework.jar mods
Dynamic Statusbar Gradient Android MM
How to add Toolbox and Multiwindow Toogles in SystemUI
Framework.jar mods
12 Apps in Toolbox
Bringing buttons "only once / always" to select when the task application "Open With."
How to all apps multiwindow
How to transform the permanent non-removable notification into Removable notification
-additional add a toggle to it here
Framework.jar + services.jar mods
Music/Volume Skip Mod for Android 6.0.x
InCallUI.apk mods
Disable EndCall Screen
Auto Call Record with Toggle in Rom Control
Services.jar mods
How to add AOD brightness slider to RomControl
Long Press BACK BUTTON to FORCE CLOSE current app
Howto remove confirm buttons in Reboot menue for shutoff and reboot
USB Plug/Unplug disable wake up
USB Plug/Unplug disable wake up with toggle in RomControl
Change Default Window Animation Scales to 0.5 or 0.25
Remove high volume warning for headphones
How to Advance Power Menu
Disable Signature Check & Installing Old App Versions Over Newer
How to hide (Power Menu) Emergency Button with a Toggle
Services.jar + Framework-res.apk mods in both files together
How to add Reboot Recovery to power menu With toggle
Add Screenshot and Screen Recorder in Power Menu with toggle
-additional here
How to add torch to power menu
Add MobileData and Standalone Mode to PowerMenu MM
Framework-res.apk mods
Change Fota Upgrade Screen to any color
How to Remove the Emergency Button When Pressing Power Button
PersonalPageService.apk mods
Private Mode Fix
SecSettings2.apk mods
Settings Dashboard Scaling for Android MM
Change device status custom to device status "Official"
How to hide QuickSettings Favorites
Guide to change the number of columns in settings via Rom Control
- additional edits here
How to Increase QuickSettings Maximum number and Dual setting in Secsettings2
Fix not working do not disturb time
How to re-enabled LED indicator settings
How to update older smali to work with Android 6.x in SecSettings
How to add logo and rom info to settings / about device
Enable Display Scaling in Settings
Enable TouchKey light duration in settings
Enable OutdoorMode
How to build 0.25x anmimation scale in developer options
Disable all the system applications in the standard application manager
Emergency mode" in "Settings/Lock screen and security
Add SuperSU Link into Settings
Add RomControl Link into Settings
Add Viper4Android Link into Settings
-update for Viper v2.5.0.5 here
Add Dolby, Adaway and Xposed Installer Link into Settings
SecSettings2.apk and framework.jar mods
How to add Toolbox Controller to Settings
SecMms_Epic_Common.apk mods
How to disable the SMS to MMS automatic convert
TouchWizHome_2016.apk
Scrolling wallpaper on TW launcher
How to enable Touchwiz Page Transition effects
Add page transition effect
TouchWizHome_2016.apk and services.jar
Gesture anywhere on Home screen: Double tap, Swipe Up, Swipe Down (15 actions)
SecSetupWizard2015.apk
Change Text in SetupWizzard for MM
Mods which dont match a category
GearUtils
Keyboard backlight duration only with RomControl app
Global context for android application - example on SystemUI
Whitepages /identify unsaved numbers
How to add a SettingsObserver to your Rom
6th gear how to add a global settings observer and apply it to PhoneStatusBar
6thGear Custom View for any app
​
XDA:DevDB Information
Collection of Guides & Mods & Links for Samsung Android 6.0.1, ROM for the Samsung Galaxy S6
Contributors
asc1977, edzamber
ROM OS Version: 6.0.x Marshmallow
Version Information
Status: Stable
Created 2016-04-01
Last Updated 2016-11-16
Useful Tools:
BatchApkTool from Bursoft. Klick here to Download
reserved
reserved
reserved
Nice thread @Mentalmuso @geiti94 @Manh_IT
ambasadii said:
Nice thread @Mentalmuso @geiti94 @Manh_IT
Click to expand...
Click to collapse
Added them too
Gesendet von meinem SM-G925F mit Tapatalk
Can't decompile & compile resource Android M apk with apktool 2.0.3 ! , any idea ?
https://github.com/iBotPeaches/Apktool/issues/1131
Did you try oldest version apktool v2.0.0 for example ?
@grzegorz354
With version of apktool did you use to decompile / recompile systemui MM ?
Manh_IT said:
Can't decompile & compile resource Android M apk with apktool 2.0.3 ! , any idea ?
https://github.com/iBotPeaches/Apktool/issues/1131
Click to expand...
Click to collapse
Apktool2.0.0 works but not 100%
You can decompile and recompile but fc
But with 7zip you can copy changed files to original apk and work
ambasadii said:
Did you try oldest version apktool v2.0.0 for example ?
@grzegorz354
With version of apktool did you use to decompile / recompile systemui MM ?
Click to expand...
Click to collapse
Gesendet von meinem SM-G925F mit Tapatalk
Manh_IT said:
Can't decompile & compile resource Android M apk with apktool 2.0.3 ! , any idea ?
https://github.com/iBotPeaches/Apktool/issues/1131
Click to expand...
Click to collapse
Use apktool v2.0.0 for install framework & dec/recompile frameworks/ but with apks u will faced issues with .9.qmg ..
thereassaad said:
Use apktool v2.0.0 for install framework & dec/recompile frameworks/ but with apks u will faced issues with .9.qmg ..
Click to expand...
Click to collapse
Right. That why i mentio es that way above your post which work
Gesendet von meinem SM-G925F mit Tapatalk
@thereassaad
I add you to allowed members
Gesendet von meinem SM-G925F mit Tapatalk
asc1977 said:
@thereassaad
I add you to allowed members
Gesendet von meinem SM-G925F mit Tapatalk
Click to expand...
Click to collapse
Thanks mate but no need it i just try to help as i can [emoji4]
asc1977 said:
Right. That why i mentio es that way above your post which work
Gesendet von meinem SM-G925F mit Tapatalk
Click to expand...
Click to collapse
[emoji14] i know as i 1st trying with this on the 1st mm out & this what i got ..
& u can edit all framework/ folder & dec/rec without any issues..
Manh_IT said:
Can't decompile & compile resource Android M apk with apktool 2.0.3 ! , any idea ?
https://github.com/iBotPeaches/Apktool/issues/1131
Click to expand...
Click to collapse
you cant decompile all apks like smusic or smartmanager. a trick that i use is recompile framework-res with apktool 2.0.0 and then recompile it and install it on 2.0.3
@asc1977,
Happy to be allowed here
Let's build[emoji14]
About Apktool, i add this info :
For 9.qmg it needed to inject files manually from original apk to recompiled one with 7zip, and this just to Apktool will be full compatible with theses new drawable formats.
I see this in SystemUi, SecSettings2 for now. Surely more apk need this injection.
Hey guys, Thanks for adding me. The issue when building a rom where wifi wouldn't work after flash has been fixed by edgar. He pointed to init.sec.boot.sh inside the etc folder. I simply changed permissions on this file using a root explorer and wifi works again. That simple. I havent tried it yet but im assuming adding this line to updater-script will do the job.
set_metadata("/system/etc/init.se.boot.sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
--->
Mentalmuso said:
Hey guys, Thanks for adding me. The issue when building a rom where wifi wouldn't work after flash has been fixed by edgar. He pointed to init.sec.boot.sh inside the etc folder. I simply changed permissions on this file using a root explorer and wifi works again. That simple. I havent tried it yet but im assuming adding this line to updater-script will do the job.
set_metadata("/system/etc/init.se.boot.sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
--->
Click to expand...
Click to collapse
Does it working after Reboot ?
Because sometimes system files permissions revert back by itselves.
With init.d script it force perms like this
#!/system/bin/sh
chmod 0755 /system/etc/init.se.boot.sh
edzamber said:
Does it working after Reboot ?
Because sometimes system files permissions revert back by itself.
With init.d script it force perms like this
#!/system/bin/sh
chmod 0755 /system/etc/init.se.boot.sh
Click to expand...
Click to collapse
You know, I didn't even check I will now.. Though superr has fixed it in his kitchen also, and doing it in root explorer was just proof of concept.
Edit. Yes it works through a reboot. I built a ROM using set_metadata in superr kitchen 1.34 and it's all working great now too. Build away fellas
Sent from my SM-G920F using Tapatalk
Mentalmuso said:
You know, I didn't even check I will now.. Though superr has fixed it in his kitchen also, and doing it in root explorer was just proof of concept.
Edit. Yes it works through a reboot. I built a ROM using set_metadata in superr kitchen 1.34 and it's all working great now too. Build away fellas
Sent from my SM-G920F using Tapatalk
Click to expand...
Click to collapse
Great [emoji3]
I start my build with SuperR this evening on 3DPAD firmware.
For deodex do you use Oat2dex or Smali/Baksmali method with set_metadata ?

seconds in the status clock

The rom I'm using is Resurrection remix and there's no option to display seconds in the status bar clock. I have read some things and tried the "xmoreintime" Xposed module but still no luck as it hasn't been updated for a while and it has no effect. I can append seconds to the date with a custom Java format but the seconds don't update unless I turn the screen off and on. Will I have to decompile and recompile the systemui if not where can I edit the clock format to add seconds? Must I decompile the apk or can I just edit the systemui XML files in the shared preferences folder?
Solved. :good: The Xposed module: flat style bar indicators seems to work. But if there's an easy way to do this without Xposed as I like to use as little modules as I can, then I'd like to hear.

Pure Nexus + Dynamic Navbar?

Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
MrCreel said:
Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
Click to expand...
Click to collapse
Hello... Either use the mentioned app or do the changes in your framework. But you'll likely have to do it for every updates as the developer often makes change in the framework. Maybe you could maybe kindly make a request to the developer?!
Good luck...
MrCreel said:
Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
Click to expand...
Click to collapse
Just follow this 2 guides...
https://forum.xda-developers.com/nexus-6/general/guide-dynamic-nav-bar-android-l-m-n-t3515080
https://forum.xda-developers.com/android/apps-games/guide-enable-pixel-launcher-round-icon-t3536267
Basically you have to edit the framework-res.apk, obviously you have to be rooted, install the requirements on the second link, here I'll summarize the steps I follow, but if you have any doubt read and follow the 2 guides, the second one to decompile and compile the apk and the first one indicates the lines you have to change and the files in which you find them.
List of tools that we need
1. JDK, download it here http://www.oracle.com/technetwork/ja...sp-138363.html
2. Apktool, download it here https://ibotpeaches.github.io/Apktool/
3. Root Explorer
4. Text Editor
STEP 1 - Get the firmware-res.apk
First you need your own device firmware-res.apk, it is located here \Root\System\framework\
STEP 2 - Copy firmware-res.apk to the same folder with Apktool.jar
I recommend locate it on folder easy to located like desktop folder
STEP 3 - Decompile firmware-res.apk
Open CMD on your folder (on windows use [shift + right click -> open command window here]) that firmware-res.apk and Apktool.jar located and run this command
java -jar apktool.jar d framework-res.apk
STEP 4 - Open styles.xml and change values
Navigate to res, values, and open styles.xml with your text editor of choice (located at \framework-res\res\values\styles.xml)
Search for "navigationBar". There will be three instances of it. You only have to change the last two. Change "@colorBlack" to "?colorPrimaryDark" and save your changes
STEP 6 - Open colors.xml and change values
Navigate to res, values, and open colors.xml with your text editor of choice (located at \framework-res\res\values\colors.xml)
Open colors.xml and search for "input_method_navigation_guard". Change "ff000000" to "00000000" and save the file. If you don't change this, the navigation bar will turn black when you open the keyboard
STEP 7 - Compile your framework-res.apk
Code:
java -jar apktool.jar b framework-res -c
STEP 8 - Replace old firmware-res.apk with the new one
Copy your new compiled firmware-res.apk in framework-res\dist to your Android Device \Root\System\framework\. It is recommended to backup the default framework.res-apk first
Note: It is recommended to copy it from recovery, but you can also copy it directy via root explorer but your device will restart instantly
I do not take credit for this guide, do thank the op's if you find it useful.
Also is not perfect as a custom integration but it's something.

Categories

Resources