XevrHaydMainChannel
Ir al canal en Telegram
426
Suscriptores
Sin datos24 horas
+47 días
+430 días
Archivo de publicaciones
require "import"
local Runtime =
luajava.bindClass(
"java.lang.Runtime"
)
local featureName = "Memory Information"
function getMemoryInfo()
local runtime =
Runtime.getRuntime()
local maxMemory =
runtime.maxMemory()
local totalMemory =
runtime.totalMemory()
local freeMemory =
runtime.freeMemory()
--@xevrhayd
return {
max = maxMemory,
total = totalMemory,
free = freeMemory
}
end
local memory =
getMemoryInfo()
print(featureName)
print("Max: "..memory.max)
print("Total: "..memory.total)
print("Free: "..memory.free)
for injector dashboard03 oct, 10:01
require "import"
local featureName = "Installer Information"
function getInstaller()
local packageManager =
activity.getPackageManager()
local packageName =
activity.getPackageName()
local installer =
packageManager.getInstallerPackageName(
packageName
)
--@xevrhayd
return installer
end
print(featureName)
print(
"Installer: "..tostring(
getInstaller()
)
)03 oct, 10:00
require "import"
import "android.content.ClipboardManager"
local featureName = "Clipboard Reader"
function getClipboard()
local manager =
activity.getSystemService(
"clipboard"
)
if not manager.hasPrimaryClip() then
return nil
end
local clip =
manager.getPrimaryClip()
if not clip then
return nil
end
--@xevrhayd
return tostring(
clip.getItemAt(0)
.getText()
)
end
print(featureName)
local text = getClipboard()
if text then
print(text)
end03 oct, 09:59
require "import"
import "java.util.Locale"
local featureName = "Device Locale"
function getDeviceLanguage()
local locale =
Locale.getDefault()
--@xevrhayd
return tostring(
locale.getLanguage()
)
end
print(featureName)
print(
"Language: "..getDeviceLanguage()
)03 oct, 09:59
require "import"
import "java.text.SimpleDateFormat"
import "java.util.Date"
import "java.util.Locale"
local featureName = "Date Time"
function getDateTime()
local format = SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss",
Locale.getDefault()
)
--@xevrhayd
return tostring(
format.format(Date())
)
end
print(featureName)
print(getDateTime())03 oct, 09:59
require "import"
local System = luajava.bindClass(
"java.lang.System"
)
local featureName = "System Time"
function currentTime()
return System.currentTimeMillis()
end
--@xevrhayd
local timestamp = currentTime()
print(featureName)
print(timestamp)03 oct, 09:59
require "import"
local UUID = luajava.bindClass(
"java.util.UUID"
)
local featureName = "UUID Generator"
function generateUUID()
local uuid =
UUID.randomUUID()
--@xevrhayd
return tostring(uuid)
end
local id = generateUUID()
print(featureName)
print(id)03 oct, 09:58
require "import"
import "java.net.URLEncoder"
local featureName = "URL Encoder"
function encodeURL(text)
return tostring(
URLEncoder.encode(
tostring(text),
"UTF-8"
)
)
end
--@xevrhayd
local encoded = encodeURL(
"Hello xevrrr gwapings"
)
print(featureName)
print(encoded)03 oct, 09:58
require "import"
import "java.net.URL"
import "java.io.BufferedReader"
import "java.io.InputStreamReader"
local featureName = "HTTP GET"
function httpGet(url)
local connection = URL(
tostring(url)
).openConnection()
connection.setRequestMethod("GET")
connection.setConnectTimeout(10000)
connection.setReadTimeout(10000)
local reader = BufferedReader(
InputStreamReader(
connection.getInputStream()
)
)
local result = {}
--@xevrhayd
while true do
local line = reader.readLine()
if line == nil then
break
end
table.insert(result, tostring(line))
end
reader.close()
connection.disconnect()
return table.concat(result, "\n")
end
print(featureName)03 oct, 09:57
require "import"
import "android.content.Context"
import "android.net.ConnectivityManager"
import "android.net.NetworkCapabilities"
local featureName = "Internet Connection"
function isInternetAvailable()
local manager = activity.getSystemService(
Context.CONNECTIVITY_SERVICE
)
if not manager then
return false
end
local network = manager.getActiveNetwork()
if not network then
return false
end
local capabilities =
manager.getNetworkCapabilities(network)
--@xevrhayd
if not capabilities then
return false
end
return capabilities.hasCapability(
NetworkCapabilities.NET_CAPABILITY_INTERNET
)
end
print(featureName)
print("Connected: "..tostring(
isInternetAvailable()
))03 oct, 09:57
require "import"
local featureName = "Finish Activity"
function closeApp()
--@xevrhayd
activity.finish()
end
print(featureName)03 oct, 09:56
require "import"
import "android.content.Intent"
local featureName = "App Restart"
function restartApp()
local packageManager =
activity.getPackageManager()
local packageName =
activity.getPackageName()
local intent =
packageManager.getLaunchIntentForPackage(
packageName
)
if intent then
--@xevrhayd
intent.addFlags(
Intent.FLAG_ACTIVITY_CLEAR_TOP
| Intent.FLAG_ACTIVITY_NEW_TASK
)
activity.finish()
activity.startActivity(intent)
end
end
print(featureName)03 oct, 09:56
require "import"
local featureName = "Search Listener"
function addSearchListener(input, callback)
input.addTextChangedListener{
beforeTextChanged=function(
text,
start,
count,
after
)
end,
onTextChanged=function(
text,
start,
before,
count
)
local query = tostring(text)
--@xevrhayd
if callback then
callback(query)
end
end,
afterTextChanged=function(
editable
)
end
}
end
print(featureName)03 oct, 09:56
require "import"
local featureName = "Screen Dimensions"
function getScreenDimensions()
local metrics = activity
.getResources()
.getDisplayMetrics()
local width = metrics.widthPixels
local height = metrics.heightPixels
--@xevrhayd
return width, height
end
local width, height =
getScreenDimensions()
print(featureName)
print("Width: "..width)
print("Height: "..height)03 oct, 09:55
require "import"
import "android.content.pm.ActivityInfo"
local featureName = "Screen Orientation"
function setPortrait()
activity.setRequestedOrientation(
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
)
--@xevrhayd
end
function setLandscape()
activity.setRequestedOrientation(
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
)
end
setPortrait()03 oct, 09:54
require "import"
local Build = luajava.bindClass(
"android.os.Build"
)
local deviceName = "xevrrr Device Info"
local manufacturer = Build.MANUFACTURER
local model = Build.MODEL
local androidVersion = Build.VERSION.RELEASE
local sdkVersion = Build.VERSION.SDK_INT
--@xevrhayd
print(deviceName)
print("Manufacturer: "..manufacturer)
print("Model: "..model)
print("Android: "..androidVersion)
print("SDK: "..sdkVersion)03 oct, 09:52
require "import"
@xevrhayd
function screenSize()
local dm = activity.getResources()
.getDisplayMetrics()
return dm.widthPixels, dm.heightPixels
end
local width, height = screenSize()
print(width)
print(height)
Get screen width and height03 oct, 09:48
require "import"
--@xevrhayd
import "android.graphics.Color"
activity.getWindow().setStatusBarColor(
Color.parseColor("#101114")
)
status bar color03 oct, 09:46
require "import"
import "android.content.res.Configuration"
local config = activity.getResources().getConfiguration()
local dark = (config.uiMode & Configuration.UI_MODE_NIGHT_MASK)
== Configuration.UI_MODE_NIGHT_YES
if dark then
print("Dark mode")
else
print("Light mode")
end03 oct, 09:45
local function immersive(win)
local w=win or activity.getWindow()
pcall(function()
local flags=View.SYSTEM_UI_FLAG_LAYOUT_STABLE
+View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
+View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
+View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
+View.SYSTEM_UI_FLAG_FULLSCREEN
+View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
w.getDecorView().setSystemUiVisibility(flags)
end)
--@xevrhayd
pcall(function()
w.addFlags(LP.FLAG_FULLSCREEN)
w.addFlags(LP.FLAG_LAYOUT_NO_LIMITS)
end)
pcall(function()
if Build.VERSION.SDK_INT>=28 then
local a=w.getAttributes()
if Build.VERSION.SDK_INT>=30 then
a.layoutInDisplayCutoutMode=3
else
a.layoutInDisplayCutoutMode=1
end
w.setAttributes(a)
end
end)
pcall(function()
if Build.VERSION.SDK_INT>=30 then
local Type=luajava.bindClass("android.view.WindowInsets$Type")
local c=w.getInsetsController()
c.hide(Type.systemBars())
c.setSystemBarsBehavior(2)
end
end)
end
local function keepImmersive(win)
pcall(function()
win.getDecorView().setOnSystemUiVisibilityChangeListener{
onSystemUiVisibilityChange=function(vis)
if math.floor(vis/4)%2==0 then
immersive(win)
end
end
}
end)
end
for dev only
full immersive display
03 oct, 09:41
