When I enter the terminal and type either ./android (in the SDK folder) and when I type heimdall-frontend I get the error
Code:
[email protected]:~$ heimdall-frontend
(heimdall-frontend:3209): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(heimdall-frontend:3209): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(heimdall-frontend:3209): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(heimdall-frontend:3209): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
everything opens runs, just idk what this error is.
This is for ./android inside of SDK tools
Code:
[email protected]:~/SDK/tools$ ./android
(java:3666): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(java:3666): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(java:3666): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(java:3666): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
BUMP.............
I would like to help you out, but I have no idea.
It never did that before....
Related
This question was also asked in StackOverflow by me. (http://stackoverflow.com/questions/34547745/android-marshmallow-new-file-gives-permission-denied)
My apologies if this has been asked, but the only articles/threads for SELinux explained the policies and didn't have a procedure on Android, OR were not for Android.
Currently writing an app where content (in a small zip file) is downloaded from an external location and stored inside /data/data/package_name_removed/user1/, to be read later.
I currently have a zip file in that directory "Test.zip".
A try-catch loop containing:
Code:
//where filename is Test.zip
//and userDir = "user1"
//and sourceContext is passed from the base Activity calling this class that does not inherit Activity
Log.d("Target file is", sourceContext.getFilesDir()+"/"+userDir +"/"+ fileName);
File file = new File(sourceContext.getFilesDir()+"/"+userDir +"/"+ fileName);
ZipFile loadedFile = new ZipFile(file);
Doesn't seem to work in Marshmallow:
Code:
D/Target file is: /data/data/package_name_removed/files/user1/Test.zip
W/package_name_removed: type=1400 audit(0.0:11699): avc: denied { open } for name="Test.zip" dev="mmcblk0p29" ino=57426 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=file permissive=0
"avc" is a SELINUX error according to the documentation.
This is a Log.d of the IOException getMessage; I think this one's generated from the new File() statement:
Code:
D/Log_title_omitted: /data/data/package_name_removed/files/user1/Test.zip: open failed: EACCES (Permission denied)
I'm pretty sure I do not need READ/WRITE_EXTERNAL_STORAGE at this point as I'm in a directory that is the app's personal directory, which the app is supposed to have access to anyway.
I don't think I should change SELINUX to Permissive in order for this to work, I can't guarantee this flag is set on any other device but mine.
Any help here? Or is the procedure now to get write permissions to a location that isn't guaranteed to exist?
Answer found on StackOverflow:
Manually copying the file into the app's own data/data/package_name/ directory on a rooted device will not work if SELinux is "enforcing" - The app must own the file by "creating" it. Giving it r permissions across the board isn't enough.
No idea how this is for places requiring READ_EXTERNAL.
My solution involved creating a temporary http download service to pass the file along.
Hello,
i create a new project, so i have a "hello world" program which created. I run this program and i have a error.
Code:
Waiting for device.
Target device: Nexus_5_API_21_x86 [emulator-5554]
Uploading file
local path: ..\app-debug.apk
remote path: /data/local/tmp/com.example.user.rotationecran
Local path doesn't exist.
I don't have the file app-debug.apk in my folder's project
create debug-app in build tab on android studio
check that in manifest if your app is enabled for debugging
Unable to use Android Studio 4.1.
Error log attached.
you dont have adb installed
install it like:
Requirements :
1) Java SE Development Kit http://www.oracle.com/technetwork/ja...s-2133151.html
2) android-sdk-windows (Archive) https://developer.android.com/sdk/older_releases.html Procedure :
------------------
1) Install Java JDK in C:\Program Files
2) Extract android-sdk-windows in C:\
3) Go to desktop
4) Right_Click on My Computer
5) Left_Click on Properties
6) Left_Click on Advance System Settings
7) Left_Click on Environment Variables
8) (System Variables) Scroll down and select PATH option
9) Left_Click on Edit
10) Add New Path [C:\android-sdk-windows\tools]
11) Click ok
12) Run Command Prompt
13) Type adb and press enter Congrats you successfully installed adb in your pc
I am trying to compile some C++ source files into a native library using Android studio, NDK and Cmake, but upon building, I get the error:
Code:
A problem occurred configuring project ':mobile'.
> C:\Users\User\Documents\B3d\mobile\.externalNativeBuild\cmake\debug\armeabi-v7a\compile_commands.json
I went to the folder mentioned in the error and 'compile_commands.json' does not exist there. What could be the problem?
After upgrading gradle plugin, I get the error:
Code:
C:\Users\User\Documents\B3d\mobile\CMakeLists.txt : C/C++ debug|armeabi-v7a : Could not get version from cmake.dir path '"C:\Android\android-sdk\cmake\3.19.0"'.
I removed the quotes from cmake.dir path in local.properties and this error was gone, next I got another error:
Code:
exception while building Json $C:\Users\User\Documents\B3d\tv\.cxx\cmake\debug\armeabi-v7a\compile_commands.json (The system cannot find the file specified)
Hello guys.
How can i fix this?:
Plugin error: File '~\AppData\Roaming\Google\AndroidStudio2021.2\plugins\Kotlin\lib\kotlin-idea.jar' contains invalid plugin descriptor
It happens when i start android studio and open any project.
When i open any second project it doesnt.