Category : android-source

I am trying to generate CLion project for frameworks/rs aidegen frameworks/rs -l c Project has been generated and opened in CLion, but there are many errors. Some of them : (‘map’ file not found, Use of undeclared identifier ‘std’) And I can’t build this project from CLion: clang++: error: argument unused during compilation: ‘-Wa,–noexecstack’ [-Werror,-Wunused-command-line-argument] ..

Read more

When I read some C++ code in the Android aosp, I see some classes are declared with a PACKED keyword. For example, in <android_source_root>/art/runtime/image.h, a class ImageSection is declared this way: class PACKED(4) ImageSection { public: ImageSection() : offset_(0), size_(0) { } ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } ImageSection(const ImageSection& section) = ..

Read more

I would like to use a C++17 feature in an extended healthd that I am creating for a custom product. I have added the -std=gnu++17 line to hardware/interfaces/health/2.0/default/Android.bp: cc_defaults { name: "[email protected]_defaults", recovery_available: true, cflags: [ "-Wall", "-Werror", "-std=gnu++17", ], shared_libs: [ "libbase", The Android build completes successfully. Is C++17 safe to use in healthd? ..

Read more