[Q] How to make an app bulletproof? - Xperia SP Q&A, Help & Troubleshooting

Hey everybody,
I can't find a way to make an App really ram persistent...
I want to use Pie Control and most of the time it works really good. But sometimes Pie Control gets killed for example by chrome or some games...
And then I'm stuck with no buttons because to make pie control really useful I disabled the homebar in the buttom so I can use the full screen. Btw. it's really cool to have the full display
I did this by adding this line to the end of build.prop:
qemu.hw.mainkeys=1
just like "Ultimate Dynamic NavBar" does.
Found here:
http://forum.xda-developers.com/showthread.php?t=2270198
Already made Pie Control a System App and made a local.prop in /data with "sys.keep_app_1=jun.ace.piecontrol"
(found here: http://forum.xda-developers.com/showpost.php?p=31628598&postcount=24)
Does this method not work in Stock Rom .287 + Root + Locked Bootloader?
Perhaps I need a deodexed Rom for this?
I would really appreciate any help.
Raffi

Related

[Q] disable hardware buttons backlight

hi
is there any way to disable the led of the hardware buttons. i know where the buttons are. i dont need a light to find them. and it looks ugly when they light up. after i used them i always wait to touch the screen until they are off.
I think neldar knows the most about this since he has done the backlight notifications mod. It would be super to have an option in the recovery to disable backlight in the buttons. They are annoying at night when using Screen filter to dim the screen, buttons are very bright in contrast to the screen.
Agreed. I would love to be able to switch them off.
Yes this is true and really anoying!
At night they are much to bright. Would love a "disable" option, too.
Is it maybe possible to dimm the buttons, too?? This would really be awesome
ok, i'm not the only one who wants that leds switched off. but isn't there anyone who has an idea how to do that
Anyone figured this out yet?
i found an app in the market called“ leds hack“. it supports samsung vibrant, but it dont works on my phone. isnt it the us-name for the sgs? maybe the rom is the problem. i'm on darkys 9.3
i tryed to find the script that controls the backlight. here: stackoverflow.com/questions/4152053/android-turn-off-key-lights i found this info:
A: The keyboard backlight can be controlled via /sys/class/leds/ keyboard-backlight/brightness. It appears that it's a simple on-off control (echoing '0' turns it off, echoing '1' or higher turns it on). For some reason, the default system backlight control stuff seems to set this to "83", but I don't know why. I can't seem to see any difference between 83 and any other number. The file is readable by anyone, but only writable by root, so you'll need root access to the phone to manipulate it this way.
can anyone tell me where i can find the file on my phone...
Has anyone found the answer?
This is honestly something that I would even pay for if a dev wanted to create a little app or mod that could do this quickly and easily for those that are not confident to make these changes on their own.
No one? :/
magooo said:
/sys/class/leds/ keyboard-backlight/brightness
Click to expand...
Click to collapse
this doesnt exist on our android.
There is is /sys/devices/virtual/misc/melfas_touchkey/brightness
you can do
echo '1' > /sys/devices/virtual/misc/melfas_touchkey/brightness
to turn it on, but i have not found a way to turn it off permanently
Can some one bind this to light sensor? So that we can have it disabled during day and have it enabled at night??
how can i edit this files? i cant find an editor or something like that. i'd like to play around with this script?
joseph.carty said:
This is honestly something that I would even pay for if a dev wanted to create a little app or mod that could do this quickly and easily for those that are not confident to make these changes on their own.
Click to expand...
Click to collapse
I'd pay too
Please, It have to be so easy
magooo said:
A: The keyboard backlight can be controlled via /sys/class/leds/ keyboard-backlight/brightness
Click to expand...
Click to collapse
I don't have the folder /leds. What version of android do you have?
I found this. As a new user, I can't send links to the forum, I paste the important part:
Samsung GT-I9000
s3c-keypad
- scancode = 26 (confirmed with keylayout/s3c-keypad.kl)
/sys/class/backlight/s5p_bl/brightness
drivers/input/keyboard/s3c-keypad.c
drivers/video/backlight/backlight.c
- brightness and actual_brightness 's get/set method. (actual_brightness is read only)
drivers/video/samsung/s3cfb_tl2796.c
- Samsung's implementation. MIN_BL = 30. Lower than this == black out.
Could it be useful?
Thanks

[Q] Stunner 2.3.11 Issues with pie and performance control

I accidently posted this in the general thread instead of the Q/A thread. Can't seem to move it there. My sincere apologies.
I am trying to get Stunner 2, specificly pie controls and performance control, to fully work on my note.
Symptoms (on both 2.3.3 and 2.3.11):
- Pie control turned on but not showing. Tried about all combinations of pie control settings to get it to work.
- Performance control shows slider handles fixed to the far left, and cannot be moved.
- Superuser access notifications seem to be off at times (ie. showing 'Superuser granted to Theme Chooser' when i toggle Pie controls)
These symptoms occur directly after flashing the ROM and initial setup (no settings changed, no apps installed). I have also tried it while having extended desktop turned on as some suggested and tried multiple dpi settings.
I have tried to reflash the ROM multiple times, following instructions to the letter (this is my first post here but i'm a frequent visitor and have flashed probably over 50 ROMs on my note in the past). So full wipe, dalvik cache wipe, /system format etc.
Have been searching for a solution for hours now, have scanned the entire development thread, forum search, google, you name it... to no avail.
I loved stunner v1 back then and the vids showing off the pie controls make me Want it!
Any help with this would be greatly appreciated!
1) Pie control turned on but not showing. Tried about all combinations of pie control settings to get it to work.
2) Performance control shows slider handles fixed to the far left, and cannot be moved.
3) Superuser access notifications seem to be off at times (ie. showing 'Superuser granted to Theme Chooser' when i toggle Pie controls)
Answering you:
1) Did you try to slide your finger from out of the screen to the inside? Because i never had a single issue with Pie
2) doing some reading before posting and using search would help a lot, this is a known issue...
3) Install SuperSU? It has more features and it is more stable!
banenl said:
Symptoms (on both 2.3.3 and 2.3.11):
- Pie control turned on but not showing. Tried about all combinations of pie control settings to get it to work.
Click to expand...
Click to collapse
I have the same problem.
I must admit, it never crossed my mind to try PIE as I've never used it before and I was busy getting used to AOKP/CM10.1 having moved from TW JB.
Thought I would try it as you mentioned the problem and I can't get it to work either.
I am running on 240DPI, don't know if the DPI has anything to do with PIE functioning correctly.
I did think of looking for the app and wiping data and cache, but I can't find anything that looks like it is PIE.
Not the end of the world for me as I didn't intend to use it in the first place, but would be interesting to see how it works.
---------- Post added at 02:21 PM ---------- Previous post was at 02:09 PM ----------
Looks like it might be DPI related.
I am running on 240DPI, and this I haven't changed.
The default PIE settings didn't work for me, so I changed them to the following:
Trigger Size - Big (This is what makes it work!!)
Pie Gravity - Right (shouldn't matter, but I wanted it on the right)
Pie Size - Large (Gigantic is too big for comfortable one handed operation, with Small the info text is too small for me)
Pie Style - Default (default)
Pie Gap - Huge (default)
The other settings are personal preferences.
All working fine for me now.
EDIT: I have changed the Trigger Size from Huge to Big, as I had some problems with the trigger area overlapping with my on-screen keyboard, so bizarrely I couldn't press the P key on the keyboard. Setting the Trigger Size to Big has resolved this.
Had this problem too and was very frustrated with it. But thanks - changing trigger size to BIG makes it work!
Thanks lots!

[Q] Auto Low Profile Softkeys (SYSTEM_UI_FLAG_LOW_PROFILE)

So I've been scouring the internet looking for something I saw in a custom ROM for the N6 and I can't for the life of me remember which ROM it was and haven't been able to find any reference to any feature resembling this.
There was a ROM, don't recall if it was LP or MM that had the softkeys go into low-profile mode after a couple of seconds regardless of what app you were in (done at the root/kernel level is my guess). I've attempted to make a root app that will do this to no avail so far. Though I can get a stand alone app to do this rather well until of course I exit the app.
Is there a kernel or a mod out there that will do this system-wide?
I'd imagine I could just start a root-level process at boot that watches the UI thread for state changes to the visibility properties and waits 2 seconds then resets it to SYSTEM_UI_FLAG_LOW_PROFILE.
Thoughts on the easiest way to acquire or add this feature?
I know that Cataclysm ROM has this feature.
I just looked into it and it's almost what I'm looking for. Looking at the video and the source code all this does is programmatically change the alpha of the softkeys, it doesn't trigger SYSTEM_UI_FLAG_LOW_PROFILE which I've seen in another ROM. I also found that same mod in the eXistenZ Premium Rom for Sony Xperia. I've been working for two days on creating a mod myself no no avail. Very frustrating indeed.

What Xposed features will I miss out on if I 'upgrade' to a 7.x phone?

I have a Note 3 which I'm looking to make into my backup phone/dedicated GPS. It's currently on 4.4.2 and I would like to believe that, in the intervening major versions, many of the missing (obvious) OS features which made Xposed so necessary are now available as stock system options. Being familiar with the awful, pervasive anti-customization/pro-simplicity/for-dummies mobile development philosophy that now threatens even PC software, I'm afraid I'm probably wrong.
Ideally, of course, I'd want Xposed on my yet-to-be-determined 7.x phone, but if that isn't going to happen, I'd like to know if there are built-in options now to partially replace great Xposed modules like:
NotifyClean - In Android N, can I set rules to totally block specific notifications?
NeverSleep - Set certain applications to disable sleep mode when active?
Wanam Xposed - Theming options (assuming I go with a Samsung phone)?
Xposed LED Control - Different LED colors per notification type?
DoubleTapToSleep - Sleep without using a hard button?
BootManager
Network Speed Indicator
If someone familiar with Android N could comment on the list above, I'd be very grateful. I'd rather buy a 'new' older phone than get an S8 or similar and find (assuming there's even a root exploit) that my phone is crippled versus my nearly 4 years old Note 3.
Notifiyclean can be substituted by power notification controls, which I don't know if it comes with stock rom, but I know it's there for the rom I'm using.
Neversleep can be substituted by the caffeine toggle, if your rom has it. I believe you can also find it on the play store to use if it's not built-in.
Wanam Xposed, I haven't used in ages. Can't even remember what it does...
LED Control should be built-in, if not custom roms.
DoubleTapToSleep should be your kernel.
Bootmanager, I'm unsure... Maybe alternatives with root?
Network Speed Indicator can be done with apps or built-in from custom roms.
http://cloud.tapatalk.com/s/58fb86661071a/Screenshot_20170422-120817.png?
http://cloud.tapatalk.com/s/58fb867bf37d6/Screenshot_20170422-122512.png?
http://cloud.tapatalk.com/s/58fb868630b93/Screenshot_20170422-122601.png?
Sent from my Nexus 6P using Tapatalk
Thanks... It sounds like I should be able to get by without Xposed, though I don't know if I'll ever be able to install a custom ROM considering I will probably end up with an AT&T phone. I guess first I need to find a rootable phone.
Is there an alternative to App Settings module, to allow for per-app dpi settings without Xposed, because android n?
thktanuki said:
Is there an alternative to App Settings module, to allow for per-app dpi settings without Xposed, because android n?
Click to expand...
Click to collapse
My first idea was Tasker, but I am not sure if you can modify the dpi value with Tasker itself. I guess with the help of an appropriate plugin, you should be able to set the dpi on a per-app base.

Are you rooted and why?

Just as the title says I'm just asking those of you who are rooted and a quick brief explanation of why? Even those not rooted I would also encourage to Express your reasonings.
Personally I'm not rooted right now because I don't have TWRP and Google pay is iffy at the moment but I would love to root for substratum, adaway, and Viper sound mods.
Thanks guys.
Google Pay works with a simple fix in Termux app - no issues with it unless you use EdXposed.
I'm rooted for modding, theming, ability to install custom kernel, Button Mapper capabilities, Swift Backup, ability to fix device ambient EQ, ability to mod Active Edge, ability to use Lawnchair with QuickStep recents. mod accent colors to cool neon colors, iYTPB YouTube mod.. Substratum (not using currently but will be soon), ability to hide navbar.. the list goes on.
I'm rooted because this is a Google device with open source code and active development so modding and customizing my device is easy, fun, and I am able to see the changes being made without the blind guesswork and hackery involved in trying to develop for so many half-baked source release devices.
rooted so I can use;
- AdAway
- ViPER4Android
- EdXposed
As previously mentioned, Gpay is working fine.
And you don't "need" TWRP to root the P4XL.
sharpz811 said:
Just as the title says I'm just asking those of you who are rooted and a quick brief explanation of why? Even those not rooted I would also encourage to Express your reasonings.
Personally I'm not rooted right now because I don't have TWRP and Google pay is iffy at the moment but I would love to root for substratum, adaway, and Viper sound mods.
Thanks guys.
Click to expand...
Click to collapse
wrongway213 said:
Google Pay works with a simple fix in Termux app - no issues with it unless you use EdXposed.
I'm rooted for modding, theming, ability to install custom kernel, Button Mapper capabilities, Swift Backup, ability to fix device ambient EQ, ability to mod Active Edge, ability to use Lawnchair with QuickStep recents. mod accent colors to cool neon colors, iYTPB YouTube mod.. Substratum (not using currently but will be soon), ability to hide navbar.. the list goes on.
I'm rooted because this is a Google device with open source code and active development so modding and customizing my device is easy, fun, and I am able to see the changes being made without the blind guesswork and hackery involved in trying to develop for so many half-baked source release devices.
Click to expand...
Click to collapse
Thanks for your input guys but I'm a little confused through googling I see a magisk module that supposedly does all the necessary scripting in the background and then like mentioned here I see manually editing via termux. So I'm just wondering what is the exact procedure or is there a thread I can't seem to find with the exact instructions?
sharpz811 said:
Thanks for your input guys but I'm a little confused through googling I see a magisk module that supposedly does all the necessary scripting in the background and then like mentioned here I see manually editing via termux. So I'm just wondering what is the exact procedure or is there a thread I can't seem to find with the exact instructions?
Click to expand...
Click to collapse
I recommend this Termux fix, believe spaceman860 from DU is the first I saw using this but could be wrong, copying this from Telegram
Gpay fix v2
1. Install Termux app and open the app
2. Type pkg install sqlite hit enter and let it install.
3. Type su hit enter
4. Copy and paste this then hit enter
am force-stop /data/data/com.google.android.apps.walletnfcrel && chmod 777 /data/data/com.google.android.gms/databases/dg.db && /data/data/com.termux/files/usr/bin/sqlite3 /data/data/com.google.android.gms/databases/dg.db "update main set c='0' where a like '%attest%';" && chmod 444 /data/data/com.google.android.gms/databases/dg.db
5. Reboot
I'm rooted mainly so I can install a custom kernel. I always end up rooting for one small reason or another.
Because i can
Adaway for now.
I root for,
AdAway
YouTube Vanced
Active Edge Mod
Custom Fonts
Themes (Swift Installer and Substratum)
Viper4Android
Centre Clock Mod
Build prop edits (just to change volume steps, really)
Screen recorder with internal audio recording
iOS Emojis
Some Tasker stuff that requires root
Swift Backup
SD Maid Pro
Main feature is custom kernel... It can realy provide a boost
@rickysidhu_ can you give me a link to the screen recording app please?
un9a7y said:
@rickysidhu_ can you give me a link to the screen recording app please?
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.orpheusdroid.screenrecorder
- AdAway
- ViPER4Android
- EX Kernel
Yes, rooted.
Because I use:
Custom Kernels (battery saving)
BlackenedMod (battery saving)
AdAway (no ads!)
YouTube Vanced (YouTube without ads and other cool features!)
Custom Themes (just a better colour palate for OEM colours in styles)
Viper4Android (awesome sound on speakers/earphones)
Centre Clock Mod (purely aesthetic)
TiB (backing up and restoring apps)
I haven't rooted since the first pixel. Haven't needed to. Adguard premium does what I need along with YouTube vanced.
I'll never bother messing with my phones again.
Sent from my Google Pixel 4 XL using XDA Labs
I'm rocking a P3xl, but I rooted for...
Advanced Charging Control module - allows me to control how the battery is charged - (ie lower the max charge to 80% and other things that should increase overall battery life)
Active Edge Mod (mostly standard settings, but can squeeze to take a picture when the camera is open instead of having to press the shutter button on the screen. This really helps when trying to hold the phone with one hand).
Viper4Android
AdAway
YouTube Vanced
ExperimentalX kernel - great kernel and it has high brightness mode (HBM) support too. (Like the Pixel 4 series, the 3a series has a max brightness that is actually lower than the screen is capable of. HBM overrides this and truly maxes the brightness. It really helps when using the phone outside in bright sunlight).
With the Pixel 4 series, I think being able to map the Soli gestures for other things might be very interesting too.
FINGERFACE!!!!!! How can Google release a flagship model with no FP sensor before getting all the banking/security apps to support the Face-unlock API???
They don't call it the bleeding edge for nothing and something had to come first; there would never be support without need and there is no need until someone creates it. Realistically Google has used their power over the ecosystem to require support and it's going to be ubiquitous in the near future. For now, some of us have to bleed a little bit...
krabman said:
They don't call it the bleeding edge for nothing and something had to come first; there would never be support without need and there is no need until someone creates it. Realistically Google has used their power over the ecosystem to require support and it's going to be ubiquitous in the near future. For now, some of us have to bleed a little bit...
Click to expand...
Click to collapse
No need to bleed, just root and install EdXposed and Fingerface.
No longer feel the need to root. System is working just fine and I'm using DNS66 from f-Droid with AdAway hosts. It's working absolutely fine without rooting.
Sent from my Google Pixel 4 XL using XDA Labs

Categories

Resources