mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: parts: Load jni lib on apply on boot
This commit is contained in:
parent
9432418ba0
commit
cd97190144
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class BootReceiver : BroadcastReceiver() {
|
|||
val mSharedPreferences = p0?.let { PreferenceManager.getDefaultSharedPreferences(it) }
|
||||
if (p1 != null && mSharedPreferences != null) {
|
||||
if (p1.action == Intent.ACTION_BOOT_COMPLETED){
|
||||
System.loadLibrary("samsungparts_jni")
|
||||
// Battery
|
||||
Battery.chargeSysfs = if (mSharedPreferences
|
||||
.getBoolean(BatteryFragment.PREF_CHARGE, true)) 0 else 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue