AndLua+ English
173 subscribers
6 photos
9 links
➡️Only English💐
AndLua+ Tutorial
AndLua+ Function
AndLua+ Source codes
AndLua+ Videos
AndLua+ App's
keep_support
Download Telegram
Title :- Control the colors to Modify
import "android. graphics. PorterDuffColorFilter"
import "android. graphics. PorterDuff"

- Modify the button color
button. getBackground(). setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP))

- Modify the edit box color
edittext. getBackground(). setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP));

- Modify Switch color
switch. ThumbDrawable. setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP));
switch. TrackDrawable. setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP))

- Modify the ProgressBar color
progressbar. IndeterminateDrawable. setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP))

- Modify the SeekBar slider color
seekbar. ProgressDrawable. setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP))
- Modify the SeekBar slider color
seekbar. Thumb. setColorFilter(PorterDuffColorFilter(0xFFFB7299,PorterDuff. Mode. SRC_ATOP))
Title :- Modify the dialog button color
function DialogButtonFilter(dialog,button,WidgetColor)
if Build. VERSION. SDK_INT >= 21 then
import "android. graphics. PorterDuffColorFilter"
import "android. graphics. PorterDuff"
if button==1 then
dialog. getButton(dialog. BUTTON_POSITIVE). while settextcolor(WidgetColor)
elseif button==2 then
dialog. getButton(dialog. BUTTON_NEGATIVE). while settextcolor(WidgetColor)
elseif button==3 then
dialog. getButton(dialog. BUTTON_NEUTRAL). while settextcolor(WidgetColor)
end
end
end
- The first argument is the dialog variable
- The second parameter is 1, then modify the POSITIVE button color,is two modify the NEGATIVE button color,for the modified NEUTRAL button color
- The third parameter is to be modified into a color
💐💐💐💐💐💐💐💐💐💐💐
Attention All 😊
We are here to provide you English environment on AndLua ...
So share @AndLuaEN
And be a part of learning & knowledge's !!!
Thanks for Your support !!!
➡️ Soon more posts coming !!!
➡️ Soon video tutorial in English
➡️ Soon source codes free
➡️ All other developer are always welcome to contribute ! For Post here !!!
Just message me @anonymoushack3r and join as Admin
💐💐💐💐💐💐💐💐💐💐💐
There are lots of tutorial coming with full explanation in English so please share and be as good person in knowledge sharing !!!
🏆 Developers always welcome🥇
AndLua+ English pinned «💐💐💐💐💐💐💐💐💐💐💐 Attention All 😊 We are here to provide you English environment on AndLua ... So share @AndLuaEN And be a part of learning & knowledge's !!! Thanks for Your support !!! ➡️ Soon more posts coming !!! ➡️ Soon video tutorial in English ➡️ Soon source…»
Title :- Query All the local video
function QueryAllVideo()
import "android. provider. MediaStore"
cursor = activity. ContentResolver
mImageUri = MediaStore. Video. Media. EXTERNAL_CONTENT_URI;
mCursor = cursor. query(mImageUri,nil,nil,nil,MediaStore. Video. Media. DATE_TAKEN)
mCursor. moveToLast()
VideoTable={}
while mCursor. moveToPrevious() do
path = mCursor. getString(mCursor. getColumnIndex(MediaStore. Video. Media. DATA))
table. insert(VideoTable,tostring(path))
end
mCursor. close()
return VideoTable
end
--Returns a table
Title :- Query All the local pictures
function QueryAllImage()
import "android. provider. MediaStore"
cursor = activity. ContentResolver
mImageUri = MediaStore. Images. Media. EXTERNAL_CONTENT_URI;
mCursor = cursor. query(mImageUri,nil,nil,nil,MediaStore. Images. Media. DATE_TAKEN)
mCursor. moveToLast()
imageTable={}
while mCursor. moveToPrevious() do
path = mCursor. getString(mCursor. getColumnIndex(MediaStore. Images. Media. DATA))
table. insert(imageTable,tostring(path))
end
mCursor. close()
return imageTable
end
--Returns a table
Title :- Recursive Find File
function outPath(ret)
for i,p in pairs(luajava. astable(ret)) do
print(p)
end
end
function find(catalog,name)
local n=0
local t=os. clock()
local ret={}
require "import"
import "java. io. File"
import "java. lang. String"
function FindFile(catalog,name)
local name=tostring(name)
local ls=catalog. the listFiles() or File{}
for number=0,#ls-1 do
--local directory=tostring(ls[number])
local f=ls[number]
if f. isDirectory() then--if it is a folder then continue with the match
FindFile(f,name)
else--if file then
n=n+1
if n%1000==0 then
print(n,os. clock()-t)
end
local nm=f. Name
if string. find(nm,name) then
--thread(insert,directory)
table. insert(ret,tostring(f))
end
end
luajava. the clear(f)
end
end
FindFile(catalog,name)
call("outPath",ret)
end

import "java. io. File"

catalog=File("/sdcard/AndLua+")
name=". j? pn? g"
thread(find,catalog,name)
Title :- Get the phone built in storage path
Environment. getExternalStorageDirectory(). toString()
Title :- Get installed app's package name , version etc
function GetAppInfo(package name)
import "android. content. pm. PackageManager"
local pm = activity. getPackageManager();
local icon = pm. getApplicationInfo(tostring(packet name),0)
local icon = icon. loadIcon(pm);
local pkg = activity. getPackageManager(). getPackageInfo(package name, 0);
local application name = pkg. applicationInfo. loadLabel(activity. getPackageManager())
local version number = activity. getPackageManager(). getPackageInfo(package name, 0). versionName
local last update time = activity. getPackageManager(). getPackageInfo(package name, 0). lastUpdateTime
local cal = Calendar. getInstance();
cal. setTimeInMillis(last update time);
local last update time = cal. getTime(). toLocaleString()
return the package name,version number,last update time,icon,app name
end
AndLua+ English
Photo
AndLua English layout for help !
AndLua settings in English for setup !!!
Title :- package call for checking or opening game
if pcall(function() activity.getPackageManager().getPackageInfo("com.miHoYo.GenshinImpact",0) end) then ---package checking whether game has been installed or not
packageName="com.miHoYo.GenshinImpact", ---Set package name to check or open
import "android.content.pm.PackageManager" ---here we importing the game package name
manager = activity.getPackageManager()
open = manager.getLaunchIntentForPackage(packageName)
this.startActivity(open) ---Open that game
else
print(" genshin impact not found please install the game first before launching injecter ") ---print your message
activity.startActivity(Intent(Intent.ACTION_VIEW,Uri.parse("https://t.me/AndLuaEN"))) ---or download game via url
activity.newActivity("main1") ---open your desired layout activity page
activity.finish() ---finish current activity
os.exit() ----or fully exit app
end ---pcall function ends here (here pcall function means package calling )
🤘How to Hack lib based any Game's 🤘
...
🍎How to dump & Modify libil2cpp.so or libunity.so { for mod any Game's ) 🍎
...
:*:Tools Required :*:


(*) Il2cpp Dumper GUI

https://www.andnixsh.com/2018/07/il2cppdumper-gui-104-with-apk-extension.html?m=1

Note :: There Is An Non-GUI Version Available On Github. I Prefer GUI Its Easy To Use.


(*) Dns Spy

https://github.com/0xd4d/dnSpy/releases


(*) Hxd Hex Editor

https://mh-nexus.de/en/hxd

** You Can Use Any Hex Editor You Want To.


(*) 7zip Or Winrar

https://www.7-zip.org/


(*) Notepad ++

https://notepad-plus-plus.org/downloads


(*) Apk Easy Tool

https://forum.xda-developers.com/an...tool-apk-easy-tool-v1-02-windows-gui-t3333960


### Lets Start Modding ###

Step 1: First Download Any Game Apk.
( Im Using Subway Surfers Which Is The Easiest Game To Mod )
These Are Some Sites To Download Apk
apkpure.com
apkmonk.com
apkmirror.com


Step 2: ( We Need Three Files ) Open The Apk File With 7zip/winrar Goto And Extract


1. /lib/armeabi-v7a/libil2cpp.so
2. /assets/bin/Data/Managed/Metadata/global-metadata.dat
3. /assets/bin/Data/Resources/unity_builtin_extra


Create a new folder copy these three files.( Make a additional copy of libil2cpp.so )


Step 3: Open Il2cpp Dumper


-> In The Executable File Select the libil2cpp.so and In global-metadata.dat Select global-metadata.dat

-> Open the unity_builtin_extra file with Notepad++
You Will See Something like this in first line 2018.2.21f1 that's the unity version. Just Enter 2018.2 ( it's version no ) In The "Input unity version" Leave Everything As It Is.

+++ And Start Dumping.

( It Will Create a Dummy dll folder ( Which contains C# code in dll Files ) , Dump.cs [ You Can Open And Search For Functions Using Notepad ++ But Dns Spy is Recommended ]
Script.py for IDA. )

Note :: The Assembly-CSharp.dll Does not contain the Actual C# source code It Has only the function name and offset.


Step 4: We Need One dll File named Assembly-CSharp.dll

-> Open That File With Dns Spy.

-> Search For Functions Like get_coins, get_keys ( Every Game Has Different function so take time to search for it )
and double click on it.

-> You Will See Something Similar [ offset = "0*10C70B8" ] Just copy the offset ( 10C70B8 ) It Has 7bytes.

-> Open The libil2cpp.so file in HXD Hex editor

-> Then Press ctrl+g And Paste The Offset You Have Copied.

Note :: Dont Add Extra Or Remove Anything 1char = 1byte

Note :: For Modifying If it has 8 bytes replace with 8bytes.If not then it will start at different end or start positions and causes the library to break.


MVN R0, #0xB0000000
BX LR - Arm Assembly Code

Note :: You Can Use - armconvertor.com -
to convert from arm opcodes to hex code
( if you have some knowledge in assembly language ).


-> It will give the Hex code - 0B 02 E0 E3 1E FF 2F E1


{** MVN - Move Not
bx - branch and exchange instruction set
lr - holds the return address

#0*B00000000 -> This is the value for
(coins,money,gems,keys)

if we convert it to decimal the value is 2952790016 this is the amount of coins for our game. ** }

-> Then Paste The Hex Code From Where Your Pointer Is.
If it has 16bytes replace with 16bytes.

-> Then Save It.


Step 5: Copy the modified - libil2cpp.so - to the original apk using winrar/7zip


-> Sign The Apk Using Apk Easy Tool.

( Signing is not required for Devices patched by lucky patcher ).

Note :: If there is arm8 or x86 folder inside lib/ folder in apk, delete these folders it is not required.

That's It Done...

Hope This Helps.
Channel photo removed
Channel photo updated