Change cyanogenmod profiles via adb or shell? - Samsung Epic 4G Touch

Just what the subject asks. How can I shift profiles in cyanogenmod via shell. I want to add a crontab entry to automate it to set night mode at night. I know there are other ways to do this (like tasker) but I want to keep it simple and not install another app for such a small thing. Thanks.

No one? I can write a script. I just need to know what database to update and/or how to have cm change it.

I moved on and started using llama instead.

Related

[N2E] Knowledge Base

This Thread is outdated!
I will update it soon!
Thanks for your understanding
Hello everybody,
as there is no sub-forum for the new nook simple touch (help to get one),
all information are split on several posts in the nook color forum.
I want to create a central thread which list all the knowledge and work that is already done.
The most solutions are NOT my work!
I will link to the post and add the author,
please thank them for their work.
Basics
Update
There is an update for the nook touch!
(not recommended for now)
Checkout the discussion: Nook STR update 1.0.1
Screen Refresh
To avoid ghosting you can easily refresh the screen by pressing the n button twice (open and close default launcher).
Hidden back "button"
You can easily go back by swiping in the middle of the topbar from right to left.
(You may need this in stock apps / settings, after getting root you get 2 buttons for menu and back on this area)
Hidden Browser
you can access a browser by typing in an url into the searchbox,
but the browser doesn't work well...
liliputing.com nook touch browser (no root)
Backup
Backup/Restore N2E by jocala
Windows HowTo is on the second post
Factory Reset / Recovery
[TOOL] nookRestore { Nook Touch - Factory restore | recovery } by ros87
B&N - nook Support
Rooting:
Please take the time and get a backup of your nook!
nookdevs.com NookTouch Rooting (linux, mac, windows)
JesusFreak of nookdevs make all this possible!
Here you can find his original guide.
TouchNooter (linux, mac, windows)
GabrialDestruir said:
Enables ADB via uRamdisk
Installs su and Superuser.apk
Installs Busybox
Installs Button Savior
Installs Go Launcher
Installs NookColor Tools (To Enable Non-Market Installs)
Installs Gapps (Gmail, Market, Youtube, Others)
Click to expand...
Click to collapse
Root & Setup Script Kit (windows only)
xboxexpert said:
Full Superuser Access
Updates are permanently blocked!
Unknown sources Enabled (install non-Market applications)
adb debugging is active [mostly for developers]
Ability to replace the Authors ****ty pictures
Ability to remap the left buttons to Menu & Back
Market Installed & Working! Login to YouTube with your GMAIL!
Software Included:
AdFree (Block those nasty ad's) [Wi-Fi needed]
Button Savior (Displays Softkeys)
gTab simi Clock (really awesome clock for your desktop)
Kindle (read your Kindle books on Nook, lol) [Wi-Fi needed]
LauncherPro (default launcher instead of Nook base launcher)
Superuser (provides a list of applications that use superuser access)
Click to expand...
Click to collapse
Advanced:
(need root)
adb
WiFi
by default you can only use wifi to connect to your nook!
Please consider that anyone in your network can connect to your nook!
This is a serious security problem!
mycr0ft modified the uRamdisk to disable adb over wifi by default! (not tested)
Code:
adb connect [I]NOOK-IP[/I]
USB
xor_ uploaded a uramdisk with adb usb enabled
and traycold has found drivers for windows (thanks to cceerrtt)
xboxexpert modified the adb usb driver to work with the n2e. (not tested yet!)
[GUIDE] ADB Workshop and Guide for everyone
Remapping Hardware Buttons
n Button
[MOD+APP][11Oct11] Configurable "n", "reading now", "RecentDialog" + Activity Picker!
XorZone said:
Features of mod
* Will return stock android go to home by short press of "n" button and recent apps dialog on long press (Configurable)
* All B&N quicknav buttons configurable, it even loads apps icons (after reboot)
* Reading now" button configurable
* NOTE: Installation of the jars w/o conf will have stock B&N effect + recent apps
Features of application
* Implements Activity Picker, so any app (i.e. Launcher Pro) can use "Shourtcuts" dialog that B&N removed.
* Configuration UI for above mod
* (In future) Configuration UI for page buttons
Click to expand...
Click to collapse
Page-Turn Buttons
The main thread is from xboxexpert,
the user aruangra shows how to map the keys to volume up/down so you can use it for scrolling in some applications
Softbutton
Softbuttons can add little buttons to your user interface which simulate the normal android buttons (Home, Back, etc.),
Button Savior is working very well.
OMGWTF_BBQ modded it for the eInk Display.
Market & gapps
If you have already rooted and want to enable the market by yourself you can use the tutorial on nookdevs from the nook color. GabrialDestruir have tested this and confirmend its working.
Additionally i have written down some steps to activate it by using resources of the touchnooter script.
GabrialDestruir updated his script, i dont know if my tutorial still works
AFTER you get the market working you can
update the market and gapps
or, just update the market.
This will fix the market search too
Language / Locale Settings
If you live outside of the USA and managed to get a nook,
there are a few steps to customize the system to your locale / regional enviroment.
To change the system language and the keyboard you can look here:
customize language
Timezone and 24:00 Clock can be set on the default settings menu
(On first-start-setup you can only choose US-Timezones)
Landscape / Screen Rotation
[APP] Orientation Switch by XorZone
on LauncherPro you have to enable Auto-Rotation (thanks to densets)
AdHoc WiFi
If you want to connect to an AdHoc WiFi you can checkout a fix for the nook color:
[FIX] AdHoc Wifi support on the NC! thanks to markmc87 & jago25_98
Misc:
Wallpapers
OMGWTF_BBQ made some nice wallpapers
The Wallpaper from the Video by OMGWTF_BBQ
Michael.Rose made a pencil sketch of it
Videos
XDA-User OMGWTF_BBQ upload a Nook2 Root Tour on youtube
JesusFreak's proof his working root with Angry Birds on Nook Touch
The Nook Touch has a Web Browser - No Root Required!
Gizmo - Nook Simple Touch Reader
B&N The All-New NOOK Guided Tour
App info
✔ Kindle, Kobo, txtr, Aldiko, Moon+, FBReader
ryanpl write together a list of supported apps
OMGWTF_BBQ Root Tour Video
You can try all other apps for Android 2.1
NOT WORKING:
xda-developers (some threads shows a blank page)
Pulse News (crash after initial screen)
(version from nook color market is working)
Skype (freeze on login screen)
Tricorder (system freeze)
Hardware/Software specs
Icehawk78 posted some system information on request.
stock-kernel:
MystaWright said:
VERSION = 2 | PATCHLEVEL = 66 | SUBLEVEL = 29
(2.6.29-omap1)
Click to expand...
Click to collapse
Links:
New Nook 2 eInk Reader Announced! Available for Preorder
Nook Touch Root Guide is OUT.
[REQUEST] B&N Nook Simple Touch forum
[N2E] Nook 2nd Edition Touch - Root
[N2E] Nook 2nd Edition Touch - Development
[N2E] TouchNooter 1.6.24
[NST] Root/Market & Setup Script Kit
[N2E] Nook Touch - App Support for Hardware Buttons
[N2E] Recovery & Source for Nook Touch
[N2E] Nook Touch n-button mapping
[N2E] modified framework.jar
Backup/Restore N2E
[NC]/[N2E] Warning!
Nook STR update 1.0.1
[APP] Orientation Switch
[MOD+APP][11Oct11] Configurable "n", "reading now", "RecentDialog" + Activity Picker!
[TOOL] nookRestore { Nook Touch - Factory restore | recovery }
[N2E] Nook ADB over USB on linux.
Nook Touch kernel hacking
[FIX] AdHoc Wifi support on the NC!
[Q] [POLL] Do we need NST specific launcher? If Y - how should it look like?
nookdevs.com NookTouch Rooting
ReviewHorizon.com Root Guide
Mike Cane's xBlog - Nook Touch Rooting: June 27th News
IRC: #nookdevs @freenode
B&N All-New NOOK Porduct Website
B&N nook Support
THANKS TO ALL OF YOU!
If i forget something or got something wrong, please feel free to complete this thread!
... reserved ...
First
Sent from my SPH-D700 using XDA App
What's the consensus as to the best launcher to use...
I currently use ADW, which seems to work ok. Biggest complaint is I can't see the text on the settings menus...
I prefer a white backgounnd. So ADW seems to be an only option. I am using ADW EX.
updated the fist post,
thanks to DenisTheMenace for the info about adb usb drivers,
the mod/person who made this stickie,
and again all of you
Xhorder said:
What's the consensus as to the best launcher to use...
I currently use ADW, which seems to work ok. Biggest complaint is I can't see the text on the settings menus...
Click to expand...
Click to collapse
iam using ADW too,
i like it more than Go Launcher or LauncherPro
but when i tried them i recognized some empty settings menus too,
so i dont think its the launcher that shows the settings menus without text...
rev0l said:
so i dont think its the launcher that shows the settings menus without text...
Click to expand...
Click to collapse
It's not without test, the test is white on white background, that's why we don't see anything.
I got pulse to work, I used the pulse from the nook apps shop.
mkenney12 wrote me a pm.
he wants that everybody consider the consequences of using a rooted nook touch.
its definitely a point that everyone has to keep on mind!
rmkenney12 said:
Hi,
I'm not sure who to send this to in the xda-dev
community, but noticed that you were maintaining
the KB articles for the Nook Touch root. I tried
posting to the touchnooter dev thread, but I don't
have the requisite 10 messages, so I couldn't even
thank them.
I've been able to root my N2E with the
touchnooter root: the most recent 1.6.24. I'm
extremely happy with the results, but am having a
major concern that doesn't appear to be getting
proper coverage in that or other roots. (I initially
tried the noogie root with lesser results).
<Rant On>
IE, adb wireless/wifi access.
Nobody seems to be expounding on the fact that
it's an enormous freaking barn-door-size gaping
hole in the security of the N2E(or doing anything
to eliminate it). You yourself mention it in
passing in your KB article, but only give it a single
line.
Essentially, once these things are rooted, they
are -enormously- vulnerable if they are taken out
into the public, either at a Barnes&Noble store,
or at any other hotspot. All it takes is for a hacker
sitting there at that hotspot with a laptop, scanning
all of the IP's in that subnet for IP's that respond
to the adb port, and they can do a simple
#adb install MyFavBotController.apk
or somesuch thing. If adb pukes on them(IE, it's a
non-rooted Nook), then they just keep scanning.
Unless you're sharp and see the notification tab
popping up, you may never notice it. They can
install any freaking thing they want on your Nook.
Evetually you've got hundreds or thousands of
infected Nooks running bots, or some other fun
little thing(s) implanted on them.
Everybody seems to be incredibly happy about how
easy it makes their experimentation, and all of the
root developers seem to be focused on making sure
that adb wireless is enabled, either in the startup
scripting or even in the uRamdisk as with the
touchnooter root.
Sure, you can install the adbWireless app from the
market, and it will turn off adbWireless, but:
a) when you initially run the adbWireless app, it
doesn't even properly report that the adb wifi
function is on. It reports it as off, even though
it's actually still responding to adb connects.
So now you have to remember to turn it on,
and then back off. That does work(for a little
while).
b) it's not permanent with some roots, like the
touchnooter. I disable adb wifi with the
adbWireless app, it's off, and everything is nice
and safe? if I put my N2E through a power
cycle, guess what. It's been turned right back
on again. That's completely whacked.
1) For one thing, as an older person I may
forget to use adbWireless to keep turning
adb wifi off after power-cycles. Over and
over and over again.
2) Even if you remember, there's a window of
access during power-up that's about 30-60
seconds long before you'll be able to run
adbWireless to shut things down. A hacker
could do a lot of damage to your Nook in
that time.
3) I have heard rumors of Nooks turning
turning themselves back on after being
powered off. So now you could be in a
hotspot, your Nook could turn itself on in
your knapsack without you even knowing,
and the hacker sitting there has all the
time in the world to beat on your poor little
Nook.
It's BONEHEADED. adb Wifi should NOT EVER be
automatically turned on by the bootstrap. NEVER.
If developers of these roots want to make it easy for
the users or other devs using them, then simply
bundle the adbWireless application along with
SuperUser, Yahoo, and the other apk's they've
included in their root distro's.
Let the -users- decide when and where it's safe for
them to use adb Wifi. Devels are NOT doing them a
service by forcing adb Wifi on them, or encouraging
them to use it under dangerous circumstances.
</Rant Off>
Sorry, but I have a rooted Nook that I'd like to take
outside the confines of my home. Unfortunately,
I don't dare to now. So yah, I'm feeling cranky :-(
rev0l. -please- pass this on to any developers
you might have contacts with.
Thank you!
= Glucosaurus
Click to expand...
Click to collapse
i dont know if someone can disable the access over adb by default...
may you can use apps like tasker or automate it to disable wifi when your accesspoint is not in range or start the adbwifi app while connecting to a public wifi.
Xhorder said:
What's the consensus as to the best launcher to use...
I currently use ADW, which seems to work ok. Biggest complaint is I can't see the text on the settings menus...
Click to expand...
Click to collapse
I love Zeam.
I think that the best way to avoid the wireless adb security hole would be to enable adb over usb and disable adb wireless if it is possible.
I have read on irc someone (maybe JesusFreke) saying that we just have to do something like modifying adb or doing something else (I don't remember very well)
I'm also trying to find out how to adb with usb. In particular I'm looking to get my N2E to connect to my iPhone running MyWi 4.0. I've read that the nookdevs Ad-Hoc_WiFi wpa_supplicant file for the NC will work with the N2E, but I haven't found a way to connect with USB and I'm too scared to try it over wifi in case it goes wrong and I won't be able to connect with adb over wifi to fix it. Any help would be much appreciated.
Edit :
Managed to get ad-hoc wifi working by pushing the fixed wpa_supplicant.adhocfix file to the /system/bin/ folder with adb over wifi.
Then, I switched the wifi off on the N2E and opened terminal emulator and did the following :
Code:
su
adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
mount
cd /system/bin
mv wpa_supplicant wpa_supplicant.old */make backup of original wpa_supplicant file/*
mv wpa_supplicant.adhocfix wpa_supplicant
chmod 755 /system/bin/wpa_supplicant
exit
I am now able to connect to my iPhone's MyWi hotspot.
For security when connecting to a public hotspot, I have installed the ttxapps wifi adb app from the android market and turned off adb over wifi, meaning I can toggle it on only when I wish to connect on my home network.
does anyone have system restore image?
another pm from a user that cant post
J.Harmon said:
I figured out how to get a full factory "re-image" of my nook touch.
I followed the instructions for the nook color here:
Method two: Set the Boot counter to 8 by typing
http://nookdevs.com/Flash_back_to_clean_stock_ROM
I rooted my nook touch using touchnooter. Loaded up the amazon app store and played around for a while. But I found after I rooted the nook that the nook store didn't work any more. So i wanted to get back to factory state. I then installed the wireless adb app. I logged in to my nook using my linux pc and followed the above directions. After the re-image you have to do a data reset by going in and restoring to factory settings in the nook itself.
As soon as I gave the reboot command it started the re-image as seen in this link:
https://lh3.googleusercontent.com/-p...2E_Restore.JPG
I'm sending you this message because I'm a "noob" and can't post in the developer forums. So if you wouldn't mind reposting for the others to use.
Click to expand...
Click to collapse
Was anybody else able to get to "Restoring Factory Image..." dialog?
It happened to me after 20+ resets, I was just searching for bricked N2E solution and kept on pressing the button... I would like to know how to replicate this again
i tried it with the 8 times boot failure method, it brings up the factroy reset screen, but it does not the reall factory reset, root and some other stuff were still n the nook after this "factory reset" don't know..
and don't tried (or even read) the method from the pm...
too busy at the moment :/
Inspired by rmkenney12 (and rev0l), I updated the uRamdisk file from TouchNooter 1.6.24 so that adb over wi-fi does not run at boot.
Disclaimer: Don't try this unless you know how to restore your nook in case it does not work.
To install the new uRamdisk:
Unzip the attached file somewhere, then...
Code:
adb connect <nook>
adb shell mkdir /cache/boot
adb shell mount -o rw -t vfat /dev/block/mmcblk0p1 /cache/boot
adb push <path>/uRamdisk /cache/boot
adb reboot
Cross your fingers and hope it works.
You will also want to download an app to turn adb on and off. Search market for 'wifi adb'.
P.S. Does anyone know specifically what needs to be changed in the uRamdisk to enable adb over usb?
This guide isn't working for me. It says that after you create a noogie sd card, just pop it in, start the nook and it will mount the 7 partitions....
What 7 partitions? They never show for me. When I start the nook with the card inside it mounts the "boot" partition which is 64.8 out of 74.7 megabytes.
That's it. That's all I see. Inside of this partition are the files that were contained in the noogie image.
ibex333 said:
This guide isn't working for me. It says that after you create a noogie sd card, just pop it in, start the nook and it will mount the 7 partitions....
What 7 partitions? They never show for me. When I start the nook with the card inside it mounts the "boot" partition which is 64.8 out of 74.7 megabytes.
That's it. That's all I see. Inside of this partition are the files that were contained in the noogie image.
Click to expand...
Click to collapse
wrong thread?
which guide do you mean?
anyway, i don't know if windows can recognize all partitions...
download a live cd linux and try again
Ok... This is on windows 7. I dont know how to use Linux.
I am trying to root the Nook STR and using the guide provided here. It just gets stuck at the rooted forever screen, and the rest is as described in previous post.

[Q] HTC Vision - How do I enable just wifi access point but not routing?

So, I have had an HTC Vision running CM7 and have been using it as JUST a wifi access point (no routing or DHCP provided by the Vision itself, just the WAP). I could tell you a very long and boring story about why I need it this way but here's the bottom line -- I'd like to know the actual command line (either through adb shell or terminal directly on the device) to configure and enable just the master mode access point functionality with encryption.
I found a starting point on Antoine Amarilli's blog - Android from the Command Line -- not allowed to post links yet or I would -- but two things:
1) it doesn't appear to cover encryption.
2) It requires getting and using an add'l binary (ultra_bcm_config) which is simple enough but slightly puzzling since obviously the phone can do all of this already with just what's in the CM7 ROM.
So I'd just like a little more understanding, control, and insight to be able to script the WAP setup myself instead of being beholden to the built-in tether toggle -- which occasionally fails to work though it's easily fixed with a reboot of the phone.
Guidance? Thanks!

Need Help: Unblocking/Rooting of Remote Control JR 28x (Android 4.0.3)

hi Guys,
i have some questions here and i seriously need your help.
I'm a RC-Model enthusiast and i own a Remote Control Transmitter manufactured by JR Japan.
This RC Transmitter is operated by an Android System (4.0.3).
http://www.jrpropo.com/english/propo/28x/
Unfortunately JR Japan has gone bancrupcy and so the production and support for the 28x is gone and no further development will be done.
The mayor point is:
I'd like to hack this thing... meaning first:
- get root access
- do a full rom backup
- install SuperSu App or anything else like that
- activate Bluetooth (disabled by factory)
- reverse engenieer the apps any modify them if possible. every app seems to control some registers on another board (main RF-Board). so for example there is an app called "subtrim". With this app you can modify the neutral pulse which is send to the receiver via the RF board.
- so i got adb access and shell already and tried some things.
- can install various apps and download the installed apps
but without root everything else is worthless.
so the speciality is:
there seems to be a Texas Instruments Board inside. I researched this one AM335X-EVM-SK (http://processors.wiki.ti.com/index.php/AM335X_EVM-SK_Android_Devkit_Guide) --> system info
On this Board/the Components Android 4.0.3 is runnig.
I Figured out that there isn't a normal bootloader because you can't boot into bootloader via ADB Shell.
I'm scared about using the "standard" root apps/methods, because i think the special Mainboard and Booting method isn't compatible to anything else compareable in the "Mobile-World".
--> soloution?
--> what further infos do we need?
another thing is the bluetooth activation
if you enter the following comands @ via ADB Shell, you can try to get Bluetooth enabled - but there isn't an option to click "yes" on the display, when the system asks for the permission to enable BT. only some display thatr bluetooth can be enabled, but nothing else happens. Normal BT activiation isn't in the settings menu!
Code:
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
Code:
adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISCOVERABLE
so i think bluetooth is inactivated somewhere deep inside the kernel. and without root access .... you know what i mean.
if i install the superSu ap, it doesn't work because the device isn't rooted.
it would be very great if someone can help me and tell me what things we can do, to hack this thing.
I'm not a developer (yet) but i have some serious interest to get inside and learn how the things work here.
Thank you so far guys
regards

Realme X2 & Tasker

Hi All,
Anybody using Tasker on Redmi X2 - Recently migrated from MIUI and facing lot of iffuce in the is color OS 6..1- Want to check for similar mind people
bino_mat said:
Hi All,
Anybody using Tasker on Redmi X2 - Recently migrated from MIUI and facing lot of iffuce in the is color OS 6..1- Want to check for similar mind people
Click to expand...
Click to collapse
Tasker is running fine on my X2 EU version. No problems up to now
Note4Addict said:
Tasker is running fine on my X2 EU version. No problems up to now
Click to expand...
Click to collapse
That is is interesting !! - 2 problems I encountered are
1.Tasker toasts are working only with in Tasker context - I mean if open the tasker and a do a flash message ,it flashes the message- But when on a normal working (Tasker is in background) - no toast message appears.
2.Even if I enable all of the permission,when Tasker tries to switch on the WIfi with in Tasker context as window popes out asking Tasker want to switch on Wifi - Allow or Prohibit -
If Tasker is in background,this window can't appear and nothing happens.
Finally ,I went to Developer options,Disabled the permission monitoring(last option) s- that this started working
Can you please confirm on these 2 points?
Confirm that! I had exactly the same problem with wifi on/wifi off and had to disable permission monitoring to get it working. It was the same for the initial adb permission command you need to get Tasker up and running. Unfortunately, at the moment I haven't got the chance to look into it but from version 5.9.2 Tasker has the new adb wifi commands which give it almost root like power. Perhaps one of these would be able to overcome the permission monitoring problem so that we can keep it active. Try it if you can, I would be very interested to hear if you managed to get that working.
Note4Addict said:
Confirm that! I had exactly the same problem with wifi on/wifi off and had to disable permission monitoring to get it working. It was the same for the initial adb permission command you need to get Tasker up and running. Unfortunately, at the moment I haven't got the chance to look into it but from version 5.9.2 Tasker has the new adb wifi commands which give it almost root like power. Perhaps one of these would be able to overcome the permission monitoring problem so that we can keep it active. Try it if you can, I would be very interested to hear if you managed to get that working.
Click to expand...
Click to collapse
Sorry I didn't get some part of your message _"It was the same for the initial adb permission command you need to get Tasker up and running" - Can you pl elaborate?
" Try it if you can..." - it means the ADB wifi commands ?I couldn't locate any permission disabling commands with adb wifi.
One good news is that I tried out Tasker in Android 10- COlor OS 7 and I see that Toast functionality is working in that
bino_mat said:
Sorry I didn't get some part of your message _"It was the same for the initial adb permission command you need to get Tasker up and running" - Can you pl elaborate?
" Try it if you can..." - it means the ADB wifi commands ?I couldn't locate any permission disabling commands with adb wifi.
One good news is that I tried out Tasker in Android 10- COlor OS 7 and I see that Toast functionality is working in that
Click to expand...
Click to collapse
Good news that Tasker works well in Color OS 7 which will get around March it seems. Regarding the initial ADB permission, I meant the message you get when you first install Tasker on a non-rooted device. In that case you need to execute a specific permission command via ADB to get Tasker up and running correctly.
What I meant with "Try if you can..." is that If you have the opportunity you may want to check if perhaps one of the new ADB wifi commands would be capable of setting wifi on and off despite permission monitor being active instead of disabled as we're doing now. Hope that will work so we can keep permission monitor active.
Guess ,it is more of Color OS issue , with the battery saved enabled,Tasker is missing the Alarm - I did a simple experiment of logging of BAttery level to a file in every 10 minutes.
If I look at the file now ,either the logging is not continuous or stopped after sleeping for one or hour or so !!! -- But this is not the case with MIUI - It's sharp on time with battery saver or not.
More importantly one thing I noticed is that when battery saver is on ,you can't lock the application in memory - Flip side , with battery saver on ,if I invoke recents and clear the memory ,evrything will be wiped and even when battery saver is off,the applications which you want to be in memory in normal condition will not be there!!!
Bluetooth problems with Android 10:
With my Realme X2 and Realme Ui 1.0 (Android 10) i can not start Bluetooth because my smartphone always asks with an popup for an permission ("Tasker needs the following permission: set Bluetooth on/off"). My desktop links give me the error code "action bluetooth failed".
How can i disable this popup asking for an permission? Or can i made tasker to click on yes itself?

How to run bootscript on BlackView P10000 Pro?

Hi
I'm trying to run this command on boot:
Code:
settings put secure sysui_keyguard_left "com.devuni.flashlight/com.devuni.flashlight.MainActivity"
However, I cant find a way to make it run at boot. App Init.D can execute it on demand (sometimes works), but never at boot. Kernel Auditor is not working as well (nothing happens).
Please, what else can I try to make it work on Oreo 8.1 stock ROM, rooted with Magisk?
Thanks in advance!
-Or at least, is there an app to create 1x1 widget to execute this script?
-Is there any way to change icon of the shortcut? This one shows only white circle as an icon. However, same app had normal icon, while set as shortcut on alternative lockscreen app... Or is this not possible?
Please, I have this issue since month, and I cant push it trough. It is last issue with my new phone, but I am afraid I will fight it for maybe months more! Unless I will get some help maybe...

Categories

Resources