Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyBytesVE committed Jul 18, 2022
1 parent de312de commit 6c7c47c
Show file tree
Hide file tree
Showing 12 changed files with 532 additions and 2 deletions.
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/sbin/sh

#################
# Initialization
#################

umask 022

# echo before loading util_functions
ui_print() { echo "$1"; }

require_new_magisk() {
ui_print "*******************************"
ui_print " Please install Magisk v20.4+! "
ui_print "*******************************"
exit 1
}

#########################
# Load util_functions.sh
#########################

OUTFD=$2
ZIPFILE=$3

mount /data 2>/dev/null

[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk

install_module
exit 0
1 change: 1 addition & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# 36DPI-NavBar-Mod-Miui-10-11-12
Reduce el tamaño de la barra de navegación a 36 DPI, maximizando el espacio en pantalla disponible. Compatible sólo con Miui 10-11-12
# 36 DPI NavBar para Miui 10-11-12

---
## Vista rápida
- Reduce el tamaño de la barra de navegación a 36 DPI, maximizando el espacio en pantalla disponible.

## Compatibilidad
- Android superior a la versión 8 (Puede funcionar en versiones antiguas, no está probado).
- Magisk superior a versión 20.4
- Ha sido probado en ROMs Miui 10-11-12, no se garantiza el funcionamiento en otras versiones.
- No es compatible con ninguna otra capa (OOs, Pixel, etc). SOLO con Miui.

---
## Créditos
- [@topjohnwu](https://github.com/topjohnwu) / Magisk - Magisk Module Template
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---

##Registro de cambios:

-1.0
Versión inicial, compatible con Android 8 y superiores
Probado en Android Miui 10-11-12
7 changes: 7 additions & 0 deletions common/post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/system/bin/sh
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/...
# This will make your scripts compatible even if Magisk change its mount point in the future
MODDIR=${0%/*}

# This script will be executed in post-fs-data mode
# More info in the main Magisk thread
7 changes: 7 additions & 0 deletions common/service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/system/bin/sh
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/...
# This will make your scripts compatible even if Magisk change its mount point in the future
MODDIR=${0%/*}

# This script will be executed in late_start service mode
# More info in the main Magisk thread
3 changes: 3 additions & 0 deletions common/system.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file will be read by resetprop
# Example: Change dpi
# ro.sf.lcd_density=320
108 changes: 108 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
##########################################################################################
#
# Magisk Module Template Config Script
# by topjohnwu
#
##########################################################################################
##########################################################################################
#
# Instructions:
#
# 1. Place your files into system folder (delete the placeholder file)
# 2. Fill in your module's info into module.prop
# 3. Configure the settings in this file (config.sh)
# 4. If you need boot scripts, add them into common/post-fs-data.sh or common/service.sh
# 5. Add your additional or modified system properties into common/system.prop
#
##########################################################################################

##########################################################################################
# Configs
##########################################################################################

# Set to true if you need to enable Magic Mount
# Most mods would like it to be enabled
AUTOMOUNT=true

# Set to true if you need to load system.prop
PROPFILE=false

# Set to true if you need post-fs-data script
POSTFSDATA=false

# Set to true if you need late_start service script
LATESTARTSERVICE=false

##########################################################################################
# Installation Message
##########################################################################################

# Set what you want to show when installing your mod

print_modname() {
ui_print " Copiando Archivos..."
sleep 1
ui_print " ========================="
ui_print " * SystemLess Resize *"
ui_print " * NavBar 36 DPI *"
ui_print " * For Miui 10-11-12 *"
ui_print " ========================="

sleep 1
ui_print "Ordenando la casa..."
sleep 1
ui_print "Todo terminado, reinicie su dispositivo..."
}

##########################################################################################
# Replace list
##########################################################################################

# List all directories you want to directly replace in the system
# Check the documentations for more info about how Magic Mount works, and why you need this

# This is an example
REPLACE="
/system/app/Youtube
/system/priv-app/SystemUI
/system/priv-app/Settings
/system/framework
"

# Construct your own list here, it will override the example above
# !DO NOT! remove this if you don't need to replace anything, leave it empty as it is now
REPLACE="
"

##########################################################################################
# Permissions
##########################################################################################

set_permissions() {
# Only some special files require specific permissions
# The default permissions should be good enough for most cases

# Here are some examples for the set_perm functions:

# set_perm_recursive <dirname> <owner> <group> <dirpermission> <filepermission> <contexts> (default: u:object_r:system_file:s0)
# set_perm_recursive $MODPATH/system/lib 0 0 0755 0644

# set_perm <filename> <owner> <group> <permission> <contexts> (default: u:object_r:system_file:s0)
# set_perm $MODPATH/system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0
# set_perm $MODPATH/system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0
# set_perm $MODPATH/system/lib/libart.so 0 0 0644

# The following is default permissions, DO NOT remove
set_perm_recursive $MODPATH 0 0 0755 0644
}

##########################################################################################
# Custom Functions
##########################################################################################

# This file (config.sh) will be sourced by the main flash script after util_functions.sh
# If you need custom logic, please add them here as functions, and call these functions in
# update-binary. Refrain from adding code directly into update-binary, as it will make it
# difficult for you to migrate your modules to newer template versions.
# Make update-binary as clean as possible, try to only do function calls in it.

6 changes: 6 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.8.6",
"versionCode": 186,
"zipUrl": "https://github.com/gloeyisk/universal-gms-doze/releases/download/v1.8.6/gms_v1.8.6.zip",
"changelog": "https://raw.githubusercontent.com/gloeyisk/universal-gms-doze/master/changelog.md"
}
6 changes: 6 additions & 0 deletions module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id=NavBar_Resize_Miui10-11-12
name=36DPI NavBar para Miui
version=v1.0
versionCode=1
author=CrazyBytesVE
description=Barra de Navegación reducida a 36DPI, compatible con Android 8 y superiores. Probado en ROMs Miui 10-11-12.
Binary file added system/media/theme/default/framework-res
Binary file not shown.

0 comments on commit 6c7c47c

Please sign in to comment.