yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Mr.FREE_Bird:
Hello, first of all, thanks for your work!

But I have a problem, a couple of days ago I tested the Magisk module and it worked perfectly. But that was an older release. Now with the latest release after flashing the Synapse app doesn't get installed at all. All other needed files do seem to be installed properly. So I extracted the ZIP package to be able to install the Synapse app manually but I get the message "unable to parse the package". Isn't android 6.0 supported anymore by the Synapse app? Could that be the problem?

My device is the LG G4 h815, running the Stock ROM (Android MM 6.0) and I'm using the latest Magisk Beta.

I hope I've provided all needed information.
[Android Software Development] yarpiin:
Hmmm interesting will look into it i have raised target sdk when recompiled apk after theming it might be a case will recompile it with lower sdk and re upload zips
[Android Software Development] yarpiin:
Have checked both zips and Synapse installs fine,

will redo only apk and we will see what will happen
[Android Software Development] Mr.FREE_Bird:
Aha, that's what I thought.

Thanks for your fast response, I'll test it when you have recompiled the apk and give you feedback :good:
[Android Software Development] yarpiin:
It just suprise me as i have compiled it with target sdk25 and min19 while lollipop is 21 so should work :/ maybe you had a bad download ?

Download this one and try

https://drive.google.com/file/d/0B9XnD1sL1y-KZUNIZnFBRnZETlk/view?usp=drivesdk
[Android Software Development] Mr.FREE_Bird:
Hmmmm strange, I'll give it a try!
[Android Software Development] yarpiin:
one more question have you uninstalled all previois versions of synapse ?
[Android Software Development] Mr.FREE_Bird:
Yes, I've installed the Magiks module on a completely fresh, clean untouched Stock ROM.
[Android Software Development] yarpiin:
are you using magisk beta 13 ? if yes try with 12 first

edit: it shouldnt make any difference but try and also i assuming​ that you used TWRP
[Android Software Development] Mr.FREE_Bird:
It indeed shouldn't make any difference but I'll give it a try..

Yup, I do use TWRP.

Oh and I just tried installing the apk you linked me but I instantly get the message "App not installed."
[Android Software Development] yarpiin:
Ok thanx i will redo apk with a lower sdk after work and we shall see, in meantime you can use one original one from google play
[Android Software Development] Mr.FREE_Bird:
Alright, thanks for your help!

(can't give you a thanks right now because I've reached the 8 thanks per day limit)
[Android Software Development] yarpiin:
No prob you are welcome :)
[Android Software Development] yarpiin:
ok try this one freshly compiled

https://drive.google.com/file/d/0B9XnD1sL1y-KRF9YSm9uY0JHTnM/view?usp=drivesdk
[Android Software Development] Mr.FREE_Bird:
Tried it and nope... Still the same problem. Have no clue about what could be wrong. But still thanks for your efforts.
[Android Software Development] yarpiin:
Hmmm

I will try to use different resourcess and we will see
[Android Software Development] Mr.FREE_Bird:
Yeahh... the weird thing is, is that the Magisk module is working just fine on my Nexus 5 running a Nougat based Custom ROM. Might be a problem with the LG Stock ROM on my LG G4, maybe it has some modifications that prevent it to install and work properly :confused:. Just tell me if I can help you by testing :good:
[Android Software Development] yarpiin:
this one should work

https://drive.google.com/file/d/0B9XnD1sL1y-KcXVBSFdtWHpaaGc/view?usp=drivesdk
[Android Software Development] yung40oz84:
I would imagine this doesn't work on pixel XL? I tried it and there was no system app of synapse. I then manually added it to system but it had no uci support at that point.
[Android Software Development] yarpiin:
it does work , flash ukm and if synapse doesnt show extract it from zip and install.

if uci message apear close synapse remove it from background and re open should work fine , if still presist check that uci file in system/xbin have a correct permissions 755 set permisions and force close synapse and clear synapse data and re launch will work

edit

new zips to be uploaded soon

Edit 2 do not install extracted app , after flash when synapse doesnt appear go to system/app/Synapse and set 644 permissions to Synapse.apk and reboot
[Android Software Development] yarpiin:
NOW i know what was wrong , in some cases when flashing magisk module it doesnt set correct permissions to Synapse ( yet havent worked out why it seem like it depends from rom ) anyway to make Synapse working corectly after flashing module do not try to install extracted apk but go to system/app/synapse and set permissions 644 to Synapse.apk and launch it, it will appear in your apk drawer after or jist reboot
[Android Software Development] Mr.FREE_Bird:
Aha! Will try that tomorrow, because I've clean installed the Stock ROM again. So all the time Synapse was already present in the system but without the needed permissions... That makes alot of sense. Thanks again! :good:
[Android Software Development] yarpiin:
Hi All,

Updated Synapse and Magisk Module Online !!!

- fixed gpu sliders not showing on msm8996 devices

- fixed synapse permissions ( i hope ;) ) - it has been tested on 3 devices and after flashing module synapse was in app drawer

added basic UKM problem solving in 2 post

enjoy
[Android Software Development] néonaloj:
Hi Yarpiin, and thanks for your hard work!!

But... I still do have the "no uci support" issue. I tried point 1), also point 2) but here I have another problem, that is that terminal says : "permission denied"... (see screenshots). I even tried to type "su" before, without luck.

And least, at point 3), how do I allow permission 755???

Thanks again for your help!

Edit : phone is Oneplus 5, stock rom/stock kernel, rooted with TWRP and Magisk v13 (I also tried to install the Magisk module, without any luck too...)
[Android Software Development] yarpiin:
First you must be rooted then type in terminal su [enter] and accept root request after that type my commands , also use any file manager with root privileges to go to xbin and just long press uci and it should be option to change permissions

Edit your permissions should look like rwx rx rx if im right
[Android Software Development] jbradford328:
No uci support...possibly misconfigured uci file?

I still get 'no uci support' after following the tips you've provided as well.

I can't get UKM to work :confused:

PHONE

Verizon HTC 10 -

S-Off

psuedo-LOCKED (bootloader)

MagiskSU, Magisk 12.0

The only changes that will actually persist are through modifying uci file permissions in:

/magisk/ukm/system/xbin/uci

Which is the same as (I assume):

/system/xbin/uci

After I changed the uci file permissions to 755 (rwx rx rx) with group and owner being root (using Solid Explorer), the commands suggested:

root#: uci [OR] ./uci [OR] uci reset

Throws many errors, mostly related to (I think) the uci file's defined UKM path (below)

I looked at the uci file in the Magisk system location

root#: pwd
>> /magisk/ukm/system/xbin
root#: cat uci

...found:

UKM = /data/UKM

....which implies remaining failures, ie busybox not found

BB = $UKM/busybox

So, should UKM be defined as

UKM = /magisk/ukm/system/xbin/

(?) and then busybox needs to be pointed to the right place as well... but am I on the right track?

I can provide a log or screen shot, just let me know what you need.

u0_a199@htc_pmewl:/ $ cd magisk/ukm/system/xbin
u0_a199@htc_pmewl:/magisk/ukm/system/xbin $ su
root@htc_pmewl:/magisk/ukm/system/xbin # uci
sh: /data/UKM/device/.device.sh: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: can't create /sdcard/Synapse/UKM/last_kernel: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
sh: DebugPVS: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: can't create /data/UKM/debug/pvs_bin: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
sh: DebugSPEED: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
/system/xbin/uci[51]: can't create /data/UKM/debug/speed_bin: No such file or directory
/system/xbin/uci[51]: can't create /data/UKM/debug/last_kmsg: No such file or directory
/system/xbin/uci[51]: can't create /data/UKM/config.json: No such file or directory
/system/xbin/uci[51]: /data/UKM/busybox: not found
root@htc_pmewl:/magisk/ukm/system/xbin #
[Android Software Development] yarpiin:
Edit

In terminal when typing uci procedure you dont change any paths

Uci in folder magisk/UKM/system/xbin must have permissions 755

Busybox inside data/UKM needs to have 755 permissions

Bisybox have to be installed from google play - stercision is the best

If all from above are correct it will work
[Android Software Development] néonaloj:
Thanks

But as I said, I do have root acces of course. I did type "su" & accept the root request, but the commands didn't work.

It's in the screenshot I posted above, it says "can't execute : permission denied"!

About the permissions to change, I can't change the permissions, look at the screenshot at the bottom, any help would be appreciated! Thanks.
[Android Software Development] yarpiin:
You have to mount system as read write partition so you can change permissions ( you on Stock rom) it was same story on op3 that's it was mounted as read only ( i do use FX File Explorer you can remont File systems verry easy.

Edit have you installed busybox?
[Android Software Development] jbradford328:
clarification

OK, since this is a Magisk module, I won't be able to alter any 'real' system files, instead, I must work with the Magisk system files (magisk/UKM/system/xbin/*)

Is this a correct assumption?

It is my understanding that the purpose of Magisk is to systemlessly make changes to the system. This is achieved by (this is my simplified understanding) 'making a copy' of the system partition, linking the important bits (keeping those read-only) and only allowing the modification of the copied system partition instead of the write-protected system partition, thus keeping the stock system partition untouched.

Is this a correct assumption?

With that limitation in mind, how am I supposed to make file permissions changes to the 'real system' without breaking Magisk?

Note: Magisk comes with the option to install busybox, and I'm assuming that it is a systemless busybox.

Also, this is the part of the UCI file that I believe to be the culprit.

#!/system/bin/sh

UKM=/data/UKM;
BB=$UKM/busybox;
DEVICE=`sh $UKM/device/.device.sh`;

I don't have a /data/UKM directory anywhere

Magisk busybox is located here:

/data/magisk/busybox

My /root/system/xbin is linked to Magisk system partition
[Android Software Development] yarpiin:
UKM directory is placed in data directory on your device only uci part is placed into virtual magisk system.partition as this is only one part that goes into system

Edit

Check does UKM exist in data directory on your normal file system

Regardless of Magisk module or not with root privoleges you can modify any file permissions on read / wrote mointed file.system
[Android Software Development] jbradford328:
I get that, and I've found a solution, but can't implement it.

This is what would get UKM working, but I can't get the UCI changes to save...

#!/system/bin/sh

UKM=/magisk/ukm;
BB=/data/magisk/busybox;
DEVICE=`sh $UKM/device/.device.sh`;

Those are the correct paths (for my device) ,now, how would I go about getting the UCI file edited and saved?

When I run the terminal uci command, all errors refer to non existent paths and files (see the output a couple post up)
[Android Software Development] yarpiin:
See screenshots thats how it supose to look like paths are correct and not device specific .

ukm folder is inside your file system data/UKM

uci is located in magisk/ukm/system/xbin

Check does your UKM exist on data folder and what recovery you have used to flash module ?

Also i can change uci permissions as i like

Also terminal commands are executed without navigating to uci folder simply jist type su - uci - uci reset- uci
[Android Software Development] néonaloj:
I eventually got to the stage of read write mounted uci file (see screenshot)

But, the commands in terminal still don't work, "permissions denied"...

Edit, yes for busybox...
[Android Software Development] yarpiin:
Ur permissions must be like here

Also cany u confirm that UKM folder exist in data ?
[Android Software Development] néonaloj:
Thanks again for your help !

So I now finally CAN enter Synapse without the "no support uci" issue.

But I've got another problem, that is : "Device not supported" error. See screenshot below. Thanks !
[Android Software Development] yarpiin:
I dont know what you did but , you did your own thing .

Device is not supported as you have added old ukm didnt you ?

That comes out when ukm files are from original thread where just 5 devices have been supported
[Android Software Development] néonaloj:
Indeed, I forgot to mention that -as it didn't work with yours- I tried the old version [MENTION=5658634]apb_axel[/MENTION].

So I flashed the Uninstaller zip, followed by your UKM version again. And now, I only got FC of Synapse... It attempts to open, I can see the "loading page", then the pop-up saying Synapse was granted root acces, & there it FC.

I tried to erase data of the app, did the uci thing again in terminal, with no more luck. Any input?

Thanks!
[Android Software Development] yarpiin:
The orginal ukm support just 5 devices if im right what would i do .

If you flash second tiime magisk module it will remove anything related to ukm module clean up everything remove system/app/synapse then go to data and remove UKM folder . Make sure that you cleaned all and flash synapse module once more. (Not the one from magisk repo only one from op )

Then check for UKM folder in data on your file system and does uci have correct permissions
[Android Software Development] ed.jeremy:
yarpiin

Thanks, great job.

On Mi Mix i don't see Voltage tab. Are this functional implemented?

Thanks again.
[Android Software Development] ch3mn3y:
If it is implemented in kernel, the tab should be visible.
[Android Software Development] yarpiin:
Secondly device to device varies a bit you can check with ur kernel developer if its support voltage control if yes just post paths and values and i will add it
[Android Software Development] Xaviertool:
I have the same problem. Device not supported. I leave my settings in the attachment.

Note: Is the file with Magisk only if you are using Magisk as Superuser? Or is it to install both together (UKM + Magisk)?
[Android Software Development] white7561:
Does this work with kernel that supports synapse? Thanks :)
[Android Software Development] kozgel:
Working Fine on note 4 exynos
[Android Software Development] Magz Heaven:
Please support ZUK Z2 PLUS
[Android Software Development] white7561:
Are u using custom kernel? Or stock? Can you post some screenshots? Thanks
[Android Software Development] kozgel:
I am on custom rom dn7 boom v4 and it working but in the synapse settings when i try to change anything it succes but then it return orijinal settings so i decide to unistall it
[Android Software Development] Primokorn:
I was also a UKM user a few years ago so thanks for this reborn version.

A couple remarks on my OP3T:

• sRGB isn't available (on/off toggle button) → /sys/class/graphics/fb0/srgb I guess

• the indicator of the vibration strengh displays the right value (3596 = 100%) but it doesn't really make sense (it should be from 0 to 100% - idk how KA did it) → /sys/class/timed_output/vibrator/vtg_level
[Android Software Development] yarpiin:
See 9th post with my to do statment (will move it to second post after work ) post regarding to kcal toggle , second vibrator strenght values a real valuse from vibrator strengt file as for now havent figured out how to make calculations transfered to synapse with correct values 0-100% you have to use correct script to convert it and to synapse must be able to display it and that is limmited but i will try my best
[Android Software Development] yarpiin:
It should work with any kernel
[Android Software Development] DirkStorck:
Hi the kernel that I am using already supports Synapse. Does it make sense to flash the zip anyway? Thank you
[Android Software Development] yarpiin:
It wont do any harm , but if dev made any changes to suit his own kernel there is no reason
[Android Software Development] phoberus:
Are there any advantages compared to Kernel Adiutor mod? more settings?
[Android Software Development] DirkStorck:
Ok, than I will leave it that way! Thanks!
[Android Software Development] denyo81:
Not working on asus zenfone 2 ze551ml.
[Android Software Development] yarpiin:
More details please
[Android Software Development] Ranomez:
An interesting/dumb question: can this work for any type of SOC or just the popular ones (Snapdragon, Exynos, etc)?

The reason I am asking is cause I actually really like Synapse and would love to have it working on some devices with less used/less popular SOC (Rockchip/Allwinner/Amlogic/OMAP) although I am still using a stock kernel on some of those devices so would probably not get many options to tweak.

I did want to actually test and see for myself but unfortunately at the moment I have those devices either discharged or not with me all so until they charge I might just find out it would be a waste of time even trying.

On another note I also have a few devices with older versions of android and for some reason I remember using Synapse on android 4.0 in the past, has the minimum android version changed for the app to 4.2 or am I just dreaming?

If in the past Synapse did work on 4.0 and I am not dreaming (although I probably am) would this work with an older version of it from before support was removed?
[Android Software Development] yarpiin:
I cant confirm it and cant deny indeed it has been working with jellybean devices and base is untouched but i dont have any device that runs android lower than kitkat so cant confirm , as i said before from box it should work for any device but im not familiar a lot with rockchip cpus and others so untill you wont try it we wont know
[Android Software Development] yarpiin:
Advatage is more likley in development side , difference is that ukm lets kernel dev add anything to ukm without asking app dev to add all you need is notepad and some knowledge while KA is a closed app that come with support for things from stock and kernel devs depend on KA Creators to add requested thing
[Android Software Development] Ranomez:
Tested on a Rockchip device, get "JSON configuration parsing failure".
[Android Software Development] Magz Heaven:
Im new to this. Is ZUK Z2 PLUS supported?

El Psy Congroo
[Android Software Development] yarpiin:
Can you force close synapse , clear synapse data then open terminal and type (after each command enter )

su

uci

uci reset

uci

And make a screenshot of outcome and post ease if any errors will apear in termial
[Android Software Development] yarpiin:
What magisk version ?

edit have you flashet ukm from this thread or from old one ?
[Android Software Development] Xaviertool:
I still do not use Magisk. I use SuperSU. So I would like to know which of the two zip files I need to install?
[Android Software Development] yarpiin:
if you dont use magisk flash UKM.UNI.zip standard one
[Android Software Development] Xaviertool:
Thank you. At the moment I still can not test, because I'm out of the house ... :)

But as soon as I do the tests, I come here to post the result.
[Android Software Development] Hardyan:
I have asus ZenFone 2 zE551 ml 1.8 GHZ 4Gb ram 16 rom stock 4.21.40.327_20170519 , root, magisk 13.1 and twpr 3.1.1 .

The flash ukm.zip y dont support uci .... Change of permission how tutorial but no star u Km.

Any anwers for x86 terminals
[Android Software Development] yarpiin:
is it intel device ?

have you got busybox on board (no toybox support by now and no eta )
[Android Software Development] nutcasev1.5:
Yes. Atom 3560.
[Android Software Development] yarpiin:
I know that there was an issue with it and Intel.

Make sure you have a busybox installed.

Then check for uci file present in system/xbin and have 755 permissions.

Also check does UKM folder exist in data folder

If everything is where should be with correct permissions and you get uci problem in synapse then do as described in 3rd post. Make sure that you have terminal working and force closed synapse and cleared data
[Android Software Development] Hardyan:
Hi , I have installed busybox Erickson .

I changed permission Uci file en xbin but cause problems with calls.

Pd : is neccesary install module magisk for correct star or only zip ukm.
[Android Software Development] yarpiin:
UKM has notthing to do with calls - it must be something else

you have to use either magisk (doesnt work with magisk above 12) or UKM but not both at the time
[Android Software Development] Brokeliner:
wil it work on Umidigi C Nte?
[Android Software Development] yarpiin:
flash and see :)
[Android Software Development] hanurak:
cant remove synapse !! uninstall the module but still there!

anyway thanx for your incredible work man :good:
[Android Software Development] yarpiin:
synapse is installed as a system app so you have to options to remove it :

1st go to system/app and remove Synapse folder

Second use sys app remover from google play
[Android Software Development] mrQQ:
hello,

i installed this with magisk, it is enabled, but I cannot find any app to run. How do I use it?
[Android Software Development] yarpiin:
what magisk version ? magisk module for now doesnt support magisk above 12

go to data/app find folder Synapse inside it should be synapse apk change permissions to 644
[Android Software Development] yarpiin:
Hi all,

Updated UKM and UKM Magisk are online!!!

- added manual core online / offline toggles for msm8996 devices ( msm8996 dont support native hotplugging therfore all cores are online most of the time( exept of thermal control when they might be offlined). We can offline any anytime if we want manualy - it might save some juice )

- fixed State Notifier not visible in some cases

- UKM magisk module fixed (mainly permissions) and updated to a latest template

enjoy
[Android Software Development] teribilis:
Heya !

I just switched to Magisk (13.3) and your Kernel Manager. I'm on Hammerhead with Darkrom (Lineage 14.1) and blu_spark 135.

Two questions :

- What is the advantage of installing the Magisk Module on top of your zip from TWRP ?

- I can't see the Voltage Tab in Synapse but can see them on Trickster or Kernel Adiutor what can I do to add it?

Thanks :)
[Android Software Development] yarpiin:
Advantage of magisk over standard one is minimal. Magisk doesnt copy uci into system while standard zip does . thats it , no more differences.

if you post your sysfs dump i will add them with and update ( or paths and toggle values)
[Android Software Development] teribilis:
Okay so no reason to keep both the standard and Magisk module then.

How can I do a Sysfs dump ?
[Android Software Development] yarpiin:
you flash just one, not both at the time. Just post paths for your voltage control they and i will find the rest

edit

it might be ukm config not creating voltage control
[Android Software Development] néonaloj:
Hi [MENTION=5288056]yarpiin[/MENTION] ,

I still do have an issue.

I'm on OP5, with multirom installed. Synapse is working great on custom roms, but have a new problem on OOS stock (root). That is : "JSON configuration parsing failure"...

I did the UCI thing in Terminal, the permission of UCI folder is set to 755.

If you've any idea, I'd be greatful, see attached screenshots.

Thanks!!
[Android Software Development] yarpiin:
force close synapse and wipe synapse data , what was the output in terminal ?
[Android Software Development] yarpiin:
support for newer devices will be limmited as i dont own one :( ,

Wanted to get one but cant do :/