Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
No se puede abrir un nodo de dispositivo después de setenforce 0

Estoy tratando de obtener algunos datos de un archivo de dispositivo en la ruta /dev/graphics/fb0 en servicio, tengo permiso de root y ejecuto el comando chmod 777 , luego recibí un error de "permiso denegado".
Luego ejecuté: setenforce 0 , y el error desaparece, pero el tamaño del archivo sigue siendo cero

 RandomAccessFile raf = new RandomAccessFile("/dev/graphics/fb0", "rw"); FileChannel fc = raf.getChannel(); logText.setText(raf.length() + " "); // length is 0 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.PRIVATE, 0, 1024 * 1920 * 4); raf.close(); FileInputStream fileInputStream = new FileInputStream("/dev/graphics/fb0"); logText.setText(fileInputStream.available() + " "); // available is still 0
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Se supone que no debes hacer una lectura normal en framebuffer AFAIK.

Deberá usar la ioctl sys para leer/escribir en él. Vea algunos ejemplos:

https://android.googlesource.com/platform/system/extras/+/donut-release/tests/framebuffer/fb_test.c

http://betteros.org/tut/graphics1.php

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!