Sorry about all the posts, and the "Thinking out loud". I am not really as good at Android Hacking as I was in the early days (and I was never that good in the first place) so I was really asking for help as I was trying to figure this out.|
I have come up with a way to fix the touchscreen sensitivity (lack of) on the stock Chuwi Hi12 Android ROM without permanent root (temporary root). This method survives a reboot.
I am telling how to do this, I an not telling you you should do this.
Note also that dm-verity is implemented on the factory Android. You may have to disable dm-verity to do alter system files. After you do this, you will no longer have dm-verity.
So what is dm-verity? Well, there is tons of stuff about it, but to make it really short, dm-verity is a way to make sure nothing has messed with system files. It essentially signs the /system partition.
It is possible that you could get infected with some future root-kit. Consider this a temporary fix only. Chuwi needs to fix this in an official build.
This is based on a post by jtrosky, and you will need (only) the second file <goodix_9111_cfg.zip> from his post a few posts up.
1. Install adb on you desktop computer. (Skip if you have adb installed, or are OK with getting it from a non-official source.
a. Go to https://developer.android.com/studio/index.html
b. Scroll to the bottom, "Get just the command line tools"
c. Install the appropriate tools for your platform
2. Use the SDK Manager (in the tools you just downloaded) to install only the Android SDK Platform-tools. un-check everything else. (It may want to update the SDK Manager itself also. You can leave that checked.)
3. On Windows, you need USB drivers. These are the same as doing anything with this tablet using a Windows host PC, and is not covered here. Other OS's do not need the drivers.
4. Download goodix_9111_cfg.zip from jtrosky's post a few posts previous. You do not need the fixgoodix.zip file.
5. Unzip goodix_9111_cfg.zip to get goodix_9111_cfg.bin
6. Connect your Tablet to the PC with the USB cable. ADB must be active.
It seems to me that adb is activated on the Chuwi stock ROM. If adb does not connect, you must enable USB Debugging in Settings >> Developer options).
If you do not see Developer options, Google how to enable it.
7. Push goodix_9111_cfg.bin to /data/ (Assumes goodix_9111_cfg.bin is in your current path.)
./adb push goodix_9111_cfg.bin /data/
8. Pull install-recovery.sh
./adb pull /system/bin/install-recovery.sh
You should have the file install-recovery.sh in your current directory.
9. Using a text editor on your host PC, add the following line to the end of install-recovery.sh. (on a separate line after the "fi".)
/system/bin/cat /data/goodix_9111_cfg.bin > /proc/gt9xx_config
Windows Warning: This file must be saved using UNIX line termination. Do not save using Windows/DOS line feeds. If install-recovery.sh is unreadable or corrupted, the tablet may not boot. It is strongly suggested that you keep a copy of the the un-modified build.prop. This should also allow you to replace it, and turn verity back on. If any file in /system is changed by a single byte, verity will fail.
General Warning: This is a hack. install-recovery.sh is run from the android init system at boot. The actual init files are over-written every boot, but /system is not, so sticking commands in install-recovery.sh is a very crude way to get them run on boot, and have it work every re-boot.
10. Remount the filesystem read/write. The tablet will need to be re-booted when you disable verity. See warning above. (adb still running as root)
./adb push install-recovery.sh /system/bin/
If the remount or the push still fails, you have to disable dm-verity:
--- Wait for reboot, then try the remount and push the file again.
11. Reboot to enjoy a better Touch Screen. Your Tablet is not rooted, but it is /slightly/ less secure. (You are no less secure than any other non-verity rom)
./adb reboot (or reboot using the power button)
If someone could try this on a stock ROM, and provide feedback, I would appreciate it.