darth But if you put 17 into mouse app will it toggle?
- Flip Phones
Alcatel TCL Flip 2 (T408DL)
darth did this work for anyone else?
maybe neutronscott did something that didn't work, but solved half the issue and this is the second half.
lgexalter1 perfect. Maybe try again darth?
Now about the mouse: try changing the package name of listlauncher to the package name of the browser. Launch it and does the mouse appear? How about if you click on an app?
i think that's how it works on the etalk. The mouse has some advantages over the virresh Like dragging, but doesn't have scroll and cant click the top or bottom of the screen.
Let me know if this works!
lgexalter1 I tried again still isnt working for me. What exactly did you do?
Has anyone pulled super and reflashed it? I have pulled it and used lpunpack to get system.img and am trying to modify the system but I was wondering if it would flash back on to the phone ok? Is there anything I need to make sure of before I flash it back?
lgexalter1 What about the one that was in the update zip?
darth Sounds like there is no point because we can remove system apps. I am not sure what's causing your issues maybe try a factory reset.
darth not working for me. I flash your lk image, reboot, adb shell, su, mount, rm, reboot and Chromium is still there. What am I doing wrong?
I'm not sure. Here is the mmc utility I was using: https://scottn.us/downloads/mmc
Does it show only groups 0-1 as power-on write protection?
Gflip6_TF:/data/local/tmp # ./mmc writeprotect user get /dev/block/mmcblk0
Write Protect Group size in blocks/bytes: 16384/8388608
Write Protect Groups 0-1 (Blocks 0-32767), Power-on Write Protection
Write Protect Groups 2-924 (Blocks 32768-15155199), No Write Protection
Write Protect Groups 925-925 (Blocks 15155200-15171583), Permanent Write Protection
Write Protect Groups 926-931 (Blocks 15171584-15269887), No Write Protection
How well does voice access Click?
i am thinking of try options for mouse
- Edit virreshs app to use the same clicking Method as voice access. I don't know how to do this but i would Take a shot if i have time.
- With root maybe we can make the mouse click with adb input tap. But i don't think root is a good idea in a kosher firmware. Maybe something that uses the same trick as ladb. But that seems far off.
lgexalter1 I haven't had any luck with SP Flash Tool. Here's just enough info to flash super I think.
https://gist.githubusercontent.com/neutronscott/ffeb0b690f98000c1fb86bc97870f63b/raw/mouse.sh
If you get SP Tools to download let me know how
neutronscott are you using default download agent?
darth Yes its strange that button mapper wont detect the extra keys. I have another app (key event display) which I used to test the buttons id number and it also wont detect the extra keys.
Looks like framework will need some patching. These keys are hardcoded in services.jar PhoneWindowManager interceptKeyBeforeQueueing()
Biden2020prez we also want to remove fm Radio and maybe hotspot.
Did one of these versions have an FmRadio App? Can I get a copy? I do see fm radio driver.
My T408DL does not have an FM radio app.
Seems like not. In general we like to remove Radio, That's why i mentioned it.
I Did not actually check.
can someone please try naming an app package name org.chromium.chrome and see if a cursor enters the app automatically?
neutronscott This is what I get:
Gflip6_TF:/data/local/tmp # ./mmc writeprotect user get /dev/block/mmcblk0
Write Protect Group size in blocks/bytes: 16384/8388608
Write Protect Groups 0-1 (Blocks 0-32767), Power-on Write Protection
Write Protect Groups 2-924 (Blocks 32768-15155199), No Write Protection
Write Protect Groups 925-925 (Blocks 15155200-15171583), Permanent Write Protection
Write Protect Groups 926-931 (Blocks 15171584-15269887), No Write Protection
Does Anyone know how to implement microg?
a couple of points i noticed. number 1 - there is no need to rename/resign apps. ALL apps are installable.
number 2, running adb shell settings --user 0 put system keyboard_pointer_enable 1 does enable a mouse but pressing the power button cancels it. have no idea how to get this to stay.
lgexalter1 So if anyone has any ideas how to permanently disable avb/dm-verity please share!
Could you briefly say what method you used? I manually edited my system_root on-device which should be equivalent. I just now booted to recovery and did a factory reset. The device came up and after enabling adb again things look good. I believe I did these hoping to fix my recovery boot-loops - it did not, but I'm sure fixes this problem:
fastboot --disable-verity --disable-verification vbmeta vbmeta.bin
fastboot --disable-verity --disable-verification vbmeta_system vbmeta_system.bin
fastboot --disable-verity --disable-verification vbmeta_vendor vbmeta_vendor.bin
Retrieved the partitions in adb shell su with dd.
Biden2020prez Does Anyone know how to implement microg?
I can try it. I used MagiskGapps but this looks suitable.
NEC wow nice. perhaps we can just make our own button trigger that sets this. I'd like to modify the services.jar. I extracted the class files with dex2jar but haven't had success putting it back together. I'd just replace the hardcoded * key to this I think.
neutronscott bit above my level. i'm just following the conversation and enjoying the benefits!
NEC Your contribution is great. How did you find this setting?
It seems lk doesn't need hacked. I found this in /vendor/bin/write_protect:
echo -n "DISABLE_POWP" | dd of=/dev/block/platform/bootdevice/by-name/oembin seek=30720 bs=1 conv=notrunc
I was just waiting on super to flash (I broke it) and looking in vendor.img for "prot" to see about network unlock stuff and there it was.
EDIT: Tested and working. I'm removing my modified lk since this is better.
neutronscott I think you can maybe network unlock form protect1, but don't know how. You can email of if you are interested about that.
Anyone know a way to restrict all app installation to a special signing key?
lgexalter1 So far I only flashed stock super.img with fastboot and did in-place edits. No issues after wiping though.
Here is a quick shell script to enable/disable mouse by following logcat output. Since the messages are the same for keyUp and keyDown it ignores the stream for 2 seconds. If you don't set a quick dial then it should be fine to steal this key.
https://gist.github.com/neutronscott/ffeb0b690f98000c1fb86bc97870f63b#file-mouse-sh
Certainly not for production use but for now while messing with apps..
neutronscott would that disable multimedia messaging. Is there a way without root?
i am curious because it would be great to distribute kosher firmware with mouse without root Or adb.
Edit: whoops i didn't read the last part of your post.
@NEC crazy good find!
Biden2020prez Is there a way without root?
Ideally we edit services.jar to assign this to a key and put that in super/system.
does removing root brings back the apk restrictions?
EnriqueMcquade does removing root brings back the apk restrictions?
Only necessary to install them. Should be able to revert boot.img after they are installed.
Edit: oh want to install apk without root? Hmm. Would need modified super to fix the prop file maybe
neutronscott one second ... How will we allow apps in kosher firmware?
neutronscott When I reflash my stock boot.img all of my apps that I installed are still there. And it does block any new installations.
Biden2020prez Just trying to anticipate @EnriqueMcquade question - if you wanted to distribute a ROM with a Kosher App store but not Magisk, you could set the endurance property in vendor.img's build.prop.
Biden2020prez edited the script to use the quick dial button, since it can be set to deactivated anyway. I didn't look at all the keys much beforehand, obviously.
lgexalter1 oh, I moved things around in my gist and thought I edited the post. Must not have hit save: https://gist.github.com/neutronscott/ffeb0b690f98000c1fb86bc97870f63b#file-mouse-sh
lgexalter1 It should toggle, don't hold it.
neutronscott i run this script straight through adb? do i need anything else set first?
NEC yes it's just ran in an adb shell for now. it just helps automate the setting you found. no other settings needed. finding how to intercept the intercepted keys is on my TODO so it can be an included service.
Anyone Know whether the phone supports usb otg?
i downloaded a setedit app which allows me to change values and use the mouse from there. however, i'm sure there's an easier way....
I spent several hours making a Linux input event remapper to find out the virtual pointer doesn't work when I'm rewriting events from the "gpio input". The other input is the mtk-kpd. It controls the QuickDial, Power, and Volume keys. So best I can do is takeover the Quick Dial key still but at least it's not using a pipe to logcat (which can crash).
If anyone would like to try the binary: ./grab /dev/input/event1
cc9e4ec38991d72d55099fd92e27fe06 https://scottn.us/downloads/grab
If you run it on /dev/input/event2 it will rewrite the * key, so favorites should not popup. But you'll notice the virtual pointer doesn't work either.
edit: might seem flaky because it toggles an internal variable so if you end the pointer with POWER the next button press will still set it off, which makes it feel broken. Work in progress..
neutronscott thanks For all the time and effort!
neutronscott how do i run this in adb shell it keeps giving me errors
NEC i haven't tried this so i cant answer your question but i am curious: how did you find this adb command in the first place?
Biden2020prez to be honest i was really just going through the settings list and noticed the pointer which i thought might be interesting to toggle with.
Biden2020prez it should but what device did you want to work? I have enough pieces to compile kernel modules if needed.
lgexalter1 i'm not really the most initiated guy at all. i ran adb shell and tried to attach the file, then tried to run each line independently, neither of which worked. (line 4 returned an error "while is not a recognized command" or something like that.
i'm sure i'm missing something obvious and probably sound very foolish at that, but i'd love to get a little knowledge how to do the simple things around here.
lgexalter1 got it. thanks! will try this later!
lgexalter1 Why am I getting /system/bin/sh: ./mouse.sh: can't execute: Permission denied? It probably has to do with the same reason I cant modify anything in system even though I removed write protection and did mount -o remount,rw /? Is there any step that Im missing to be able to modify system?
lgexalter1 My bad I posted the wrong error (I got that one before I made it executable...) My error Im getting is /system/bin/sh: ./mouse.sh: No such file or directory
