Friday, 3 December 2021

Root explorer Android 11 (API 30)

When I target api 30 and try to retrieve the list of files in the path "/data/data" (with root permissions), I only get the folder of my app, while with api 29 or lower I get all the files present.

How can I retrieve all files even with api 30?

Code used:

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.topjohnwu.superuser.Shell

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val result = Shell.su("ls -la /data/data").exec()
        Log.e("files", result.out.toString())
    }
}

I used this library for root: https://github.com/topjohnwu/libsu



from Root explorer Android 11 (API 30)

No comments:

Post a Comment