gpt4 book ai didi

android - smali 函数 : Return an Integer

转载 作者:行者123 更新时间:2023-12-04 02:19:25 26 4
gpt4 key购买 nike

我知道如何从函数返回 TRUE bool 值:

.locals 1
const/4 v0, 0x1
return v0

现在我需要返回一个整数(10000 值)。怎么办?

最佳答案

下面的方法

public int return1000() {
int i = 1000;
return i;
}

smali 中看起来像这样

.method public return1000()I
.locals 1

.prologue
.line 278
const/16 v0, 0x3e8

.line 279
.local v0, "i":I
return v0
.end method

关于android - smali 函数 : Return an Integer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31999993/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com