uz
Feedback

Firibgarlarga uchmang! Telemetrio bunday kanallarni topadi va belgilaydi πŸ‘‰ Belgini koβ€˜rmoqchi boβ€˜lsangiz, obuna boβ€˜ling

XevrHaydMainChannel

XevrHaydMainChannel

Kanalga Telegram’da oβ€˜tish

t.me/@HYDCHANNEL

Ko'proq ko'rsatish
Mamlakat belgilanmaganToif belgilanmagan
435
Obunachilar
+224 soatlar
+97 kun
+1330 kun
Postlar arxiv
hanue daw
03 Okt, 10:51

Kosing gawlo Kosing bawsa
03 Okt, 10:21

require "import"

local featureName = "ScreenDensity"

local metrics = activity.getResources()
  .getDisplayMetrics()

local density = metrics.density
local dpi = metrics.densityDpi

Toast.makeText(
  activity,
  "Density: " .. tostring(density) ..
  "\nDPI: " .. tostring(dpi),
  Toast.LENGTH_LONG
).show()

--@xevrhayd
03 Okt, 10:04

require "import"

import "android.os.Build"

local featureName = "AndroidVersion"

local version = Build.VERSION.RELEASE
local sdk = Build.VERSION.SDK_INT

Toast.makeText(
  activity,
  "Android " .. version .. " | SDK " .. sdk,
  Toast.LENGTH_LONG
).show()

--@xevrhayd
03 Okt, 10:04

require "import"

import "android.os.Build"

local featureName = "DeviceModel"

local manufacturer = Build.MANUFACTURER
local model = Build.MODEL

local deviceName = manufacturer .. " " .. model

Toast.makeText(
  activity,
  deviceName,
  Toast.LENGTH_SHORT
).show()

--@xevrhayd
03 Okt, 10:03

require "import"

import "android.content.Intent"
import "android.content.IntentFilter"
import "android.os.BatteryManager"

local featureName = "ChargingState"

local intent = activity.registerReceiver(
  nil,
  IntentFilter(Intent.ACTION_BATTERY_CHANGED)
)

local status = intent.getIntExtra(
  BatteryManager.EXTRA_STATUS,
  -1
)

local charging =
  status == BatteryManager.BATTERY_STATUS_CHARGING or
  status == BatteryManager.BATTERY_STATUS_FULL

Toast.makeText(
  activity,
  charging and "Device is charging" or "Device is not charging",
  Toast.LENGTH_SHORT
).show()

--@xevrhayd
03 Okt, 10:03

require "import"

import "android.content.Intent"
import "android.content.IntentFilter"
import "android.os.BatteryManager"

local featureName = "BatteryLevel"

local intent = activity.registerReceiver(
  nil,
  IntentFilter(Intent.ACTION_BATTERY_CHANGED)
)

local level = intent.getIntExtra(
  BatteryManager.EXTRA_LEVEL,
  -1
)

local scale = intent.getIntExtra(
  BatteryManager.EXTRA_SCALE,
  -1
)

local battery = math.floor((level / scale) * 100)

Toast.makeText(
  activity,
  "Battery: " .. battery .. "%",
  Toast.LENGTH_SHORT
).show()

--@xevrhayd
03 Okt, 10:03

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 dashboard
03 Okt, 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 Okt, 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)
end
03 Okt, 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 Okt, 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 Okt, 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 Okt, 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 Okt, 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 Okt, 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 Okt, 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 Okt, 09:57

require "import"

local featureName = "Finish Activity"

function closeApp()
  --@xevrhayd

  activity.finish()
end

print(featureName)
03 Okt, 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 Okt, 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 Okt, 09:56