Coder Social home page Coder Social logo

Comments (11)

jamuir avatar jamuir commented on June 19, 2024 5

I deleted two files from the system image and Google Camera started to work (and the sony green-screen issue also went away!). This was suggested in the following XDA post:

https://forum.xda-developers.com/showpost.php?p=69843893&postcount=184

$ adb root
$ adb shell mount -o rw,remount /system
$ adb shell stop
$ adb shell rm /system/etc/permissions/com.google.android.camera.experimental2016.xml 
$ adb shell rm /system/framework/com.google.android.camera.experimental2016.jar
$ adb reboot

from treble_experimentations.

4PERTURE avatar 4PERTURE commented on June 19, 2024 1

I deleted two files from the system image and Google Camera started to work (and the sony green-screen issue also went away!). This was suggested in the following XDA post:

https://forum.xda-developers.com/showpost.php?p=69843893&postcount=184

$ adb root
$ adb shell mount -o rw,remount /system
$ adb shell stop
$ adb shell rm /system/etc/permissions/com.google.android.camera.experimental2016.xml 
$ adb shell rm /system/framework/com.google.android.camera.experimental2016.jar
$ adb reboot

Thanks for this. I was having this problem in a ROM and this did the trick.

from treble_experimentations.

jamuir avatar jamuir commented on June 19, 2024

it seems like Google Camera is looking for certain values in com.google.nexus.experimental2016.jar, but they are missing.

from treble_experimentations.

jamuir avatar jamuir commented on June 19, 2024

the jar itself may be fine. it is actually the native method nativeGetTagFromKeyLocal() that fails.

the key/string com.google.nexus.experimental2016.3a.hybrid_ae_enable comes from the jar:

$ adb pull /system/framework/com.google.android.camera.experimental2016.jar
/system/framework/com.google.android.camera.experimental2016.jar: 1 file pulled. 0.6 MB/s (2161 bytes in 0.003s)
$ unzip -p com.google.android.camera.experimental2016.jar | strings | grep hybrid
5com.google.nexus.experimental2016.3a.hybrid_ae_enable

Note that Google Camera still crashes in permissive-mode.

from treble_experimentations.

newyesor avatar newyesor commented on June 19, 2024

You use google camera version?

from treble_experimentations.

jamuir avatar jamuir commented on June 19, 2024

Yes, I am using Google Camera from OpenGApps in my GSI.

from treble_experimentations.

newyesor avatar newyesor commented on June 19, 2024

You can share file Google Camera from OpenGapps.

from treble_experimentations.

jamuir avatar jamuir commented on June 19, 2024

https://github.com/opengapps/arm64/tree/master/app/com.google.android.googlecamera

from treble_experimentations.

phhusson avatar phhusson commented on June 19, 2024

Should be fixed by phhusson/device_phh_treble@639dd35

from treble_experimentations.

saravanabalagi avatar saravanabalagi commented on June 19, 2024

@4PERTURE Hi, I am trying to do adb shell stop from terminal emulator as stop and that command blacks the phone out. I don't know what stop does, but I can't seem to delete /system/etc/permissions/com.google.android.camera.experimental2016.xml or /system/framework/com.google.android.camera.experimental2016.jar as it says device or resource busy. Any ideas?

from treble_experimentations.

saravanabalagi avatar saravanabalagi commented on June 19, 2024

Workaround: I rebooted the phone in recovery mode and deleted those two files. Gcam's working now

PS: But I would still want to know what stop does.

from treble_experimentations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.