Related
Can't get rid of this error:
android.database.sqlite.SQLiteException: near "s": syntax error: , while compiling:
Select correct from answers where correct = 'Between the airplane's climb angle and the horizon.'
Obviously, it's finding the single quote in ( airplane's ) and considering that the end of the statement.
I've tried:
correct.replaceAll(" ' ", " ''' "); //replace 1 with 3
correct.replaceAll(" ' ", " '' "); // replace 1 with 2
correct.replaceAll(" ' ", " "); // replace 1 with space
(NOTE: the spaces are NOT in the code, I just did that to make it readable)
I have no idea what's going on, IMO, it should work. Maybe I need to try:
String single = "'"; // single '
String double = "''" // double ''
correct.replaceAll(single, double); // ????
Everything I"ve read about sqlite3 is to replace one with two....
TIA,
Roots
\'
\ is the escape character for most languages
so airplane's would be airplane\'s
Also, are you binding your queries with the "question mark" bind?
I'll try the escape and post back later. There are 1,000 rows in the database and I"m pulling a random subset of that, so it's not that often I get one of those situations.
I'm not sure what you mean by "binding with ?" Isn't that what you use for bind variable unknown at runtime? I know my bind variables and just use it in my dbquery. Please enlighten me...always happy to learn something new
Sample code...answerOne would contain the single quote that's killing me
Code:
Cursor c;
c = myDataBase.rawQuery("Select correct from answers where correct = '" + answerOne + "'", null);
if(c.moveToFirst())
answer = "1";
c.close();
binding with question marks should take care of escaping for you.
Basically the question mark is a place holder for a variable in the query.
What you are doing is manually creating the query string. This is considered bad practice these days especially with regards to security. Mostly because it opens up the DB to a SQL injection attack.
So instead of using the rawQuery just use query and you can put a ? in and android will substitute the value for you, all properly escaped:
Code:
String tableName = "answers";
String selectArgs = "correct=[COLOR="Red"]?[/COLOR]";
// if answerOne is string dont need String.valueOf
String[] selectVals = { String.valueOf ( answerOne ) };
String[] columnsProjection= new String[] {"correct" };
Cursor c = db.query(tableName, columnsProjection, selectArgs,selectVals,null);
So in that code the OS will replace the ? in selectArgs with the values in selectVals
This may seem like more writing at first but once you get in the habit it will be easy, reliable and more secure. It also allows you to bind multiple variables to mutiple question marks. It just binds then in the order it gets them.
so something like this:
Code:
String answerOne= "one";
String selectArgs = "correct=? AND age=? AND smiling=?";
String[] selectVals = { answerOne, "21", "yes" };
Ok, I'll try it. There are about 50 different queries in this program...for some reason I just decided to do a rawQuery on this one. I'll change it to "db.query(table name, new String[] {}....yada, yada).
Because, it just crashed and I decided to come back here and check for a solution.
Thank you very much!!!
Roots
Glad to be of help, just remember to hit the thanks booton ya Rooster
Still getting the error
Example: column is in table as text. Say it's equal to:
The driver's last name
Error comes back as "syntax error near 's' when compiling select correct from answers where correct = 'The driver's last name'
That single quote in driver's is killing my SQL.
Ok so I just bought an A500 on ebay, and I've done enough unbricking, unlocking, rooting, and flashing to be able to solve most issues I think. I'm 90% sure i can fix this thing too if i can figure out how to get the CPUID from it.
Problem is that it's stuck at the acer logo screen I've been reading about. I'm going through the EUUS tool and need to enter the CPUID which is where I'm stuck. (doing the full reflash through APX mode)
Is there any way to get the CPUID that I havent read about? Most seem to need a bootable tablet. (still reading too so I'll keep up to date)
I've got the serial number off the sd card flap, and I can pull the case open if it's somewhere on one of the boards (doubtful but I thought I'd ask)
update:
currently trying the unsoftbrick through AfterOTA 1.09, it's been on "[2/3] flashing recovery..." for a long time now.... Whenever I've done recovery flashes they never took more than a minute or two
found a possible solution to getting the CPUID and thus the way back into this poor devil here:
http://forum.xda-developers.com/showthread.php?t=1751978
Problem I'm coming up with is during the process of running the compiled script I get "Error: Faled to open device!"
It is a brand new computer, running linux Mint 14 x64
lsusb is showing the device as "0955:7820 NVidia Corp." so i know its being recognized even under APX mode
Pyr0ball said:
Problem I'm coming up with is during the process of running the compiled script I get "Error: Faled to open device!"
Click to expand...
Click to collapse
Are you running as root or have changed the device permissions so that your user are allowed to read/write to the device?
eppeP said:
Are you running as root or have changed the device permissions so that your user are allowed to read/write to the device?
Click to expand...
Click to collapse
I'm running as root (su)
Pyr0ball said:
I'm running as root (su)
Click to expand...
Click to collapse
In that case I don't have any direct ideas...
You can add
Code:
libusb_set_debug(ctx, 3);
between
Code:
libusb_init(&ctx);
and
Code:
dev_handle = libusb_open_device_with_vid_pid(ctx, 0x0955, 0x7820);
and see if that prints any usefull hints.
Otherwise you can try tracing using strace.
eppeP said:
In that case I don't have any direct ideas...
You can add
Code:
libusb_set_debug(ctx, 3);
between
Code:
libusb_init(&ctx);
and
Code:
dev_handle = libusb_open_device_with_vid_pid(ctx, 0x0955, 0x7820);
and see if that prints any usefull hints.
Otherwise you can try tracing using strace.
Click to expand...
Click to collapse
ok I'll give this a try and post the output in a bit
Pyr0ball said:
ok I'll give this a try and post the output in a bit
Click to expand...
Click to collapse
this is what im getting:
Segmentation fault (core dumped)
Just to be sure, this is the code I compiled:
Code:
#include <libusb-1.0/libusb.h>
#include <stdio.h>
#include <stdint.h>
int main(void)
{
unsigned char data[64];
int received_length;
int r = 1;
libusb_context* ctx = NULL;
libusb_set_debug(ctx, 3);
libusb_device_handle* dev_handle = NULL;
libusb_init(&ctx);
dev_handle = libusb_open_device_with_vid_pid(ctx, 0x0955, 0x7820);
if(dev_handle)
{
r = libusb_bulk_transfer(dev_handle, 0x81, data, sizeof(data), &received_length, 10000);
if (r == 0)
{
if(received_length == 8)
{
printf("uid: %#016lx\n", *(uint64_t*)data);
}
else
{
r = 1;
printf("Error: We got %d bytes of data instead of the 8 bytes we expected...\n", received_length);
}
}
else
{
printf("Error: USB read failed!\n");
}
libusb_release_interface(dev_handle, 0);
}
else
{
printf("Error: Failed to open device!\n");
}
libusb_exit(ctx);
return r;
}
Pyr0ball said:
this is what im getting:
Segmentation fault (core dumped)
Just to be sure, this is the code I compiled:
Click to expand...
Click to collapse
Yes, that is to be expected consiedring the change you made.
That is however not the change I told you to make, try to read the part where I described where to add libusb_set_debug line.
is this still alive??? i need help, stuck in the getting the cpuid stage
Hello,
As the title states, I'm receiving an error that says "Cannot convert from element type Object to Bluetooth Device. The following is the highlighted code:
Code:
if (pairedDevices.size() > 0) {
findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);//make title viewable
for (BluetoothDevice device : pairedDevices) {
mPairedDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress());
}
} else {
mPairedDevicesArrayAdapter.add("no devices paired");
}
I have a feeling it has something to do with java generics, but I'm not quite sure how to fix it. Would anyone be able to offer help?
Thanks
theBasher91 said:
Code:
for (BluetoothDevice device : pairedDevices)
Click to expand...
Click to collapse
Well I would suspect that pairedDevices is a list or array of type Object? Not sure as you dont post the actual error or line numbers... but cast within the for loop if this is the case
Code:
for (Object item : pairedDevices)
{
BluetoothDevice device = (BluetoothDevice) item;
}
Just a thought
Or, assuming that pairedDevices is an ArrayList or other type that implements the collections interface, you're best bet would be to ensure that it is parameterized correctly.
For example:
Code:
ArrayList<BluetoothDevice> = new ArrayList()<BluetoothDevice>
So I've build aosp in the past for nexus 10 but figured with some xda help we might be able to get this running.
device/samsung/manta/ revision="android-m-preview-2"
kernel is prebuilt and included in device tree
binaries are newest available Android 5.1.1 (LMY48T)
current problem I'm having is with Bluetooth
Code:
target thumb C: libbt-brcm_bta <= system/bt/bta/./dm/bta_dm_act.c
system/bt/bta/./dm/bta_dm_act.c: In function 'bta_dm_set_visibility':
system/bt/bta/./dm/bta_dm_act.c:542:5: warning: implicit declaration of function 'BTM_BleReadDiscoverability' [-Wimplicit-function-declaration]
UINT16 le_disc_mode = BTM_BleReadDiscoverability();
^
system/bt/bta/./dm/bta_dm_act.c:544:5: warning: implicit declaration of function 'BTM_BleReadConnectability' [-Wimplicit-function-declaration]
UINT16 le_conn_mode = BTM_BleReadConnectability();
^
system/bt/bta/./dm/bta_dm_act.c: In function 'bta_dm_remove_device':
system/bt/bta/./dm/bta_dm_act.c:669:85: error: 'tBTA_DM_PEER_DEVICE' has no member named 'transport'
btm_remove_acl( p_dev->bd_addr, bta_dm_cb.device_list.peer_device[i].transport);
^
In file included from system/bt/bta/../include/bt_target.h:1714:0,
from system/bt/bta/./dm/bta_dm_act.c:26:
system/bt/bta/./dm/bta_dm_act.c:671:71: error: 'tBTA_DM_PEER_DEVICE' has no member named 'transport'
bta_dm_cb.device_list.peer_device[i].transport);
^
system/bt/bta/../include/bt_trace.h:369:181: note: in definition of macro 'APPL_TRACE_DEBUG'
#define APPL_TRACE_DEBUG(...) {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, ##__VA_ARGS__);}
^
system/bt/bta/./dm/bta_dm_act.c:674:56: error: 'tBTA_DM_PEER_DEVICE' has no member named 'transport'
if(bta_dm_cb.device_list.peer_device[i].transport == BT_TRANSPORT_LE)
^
system/bt/bta/./dm/bta_dm_act.c:690:5: warning: implicit declaration of function 'BTM_ReadConnectedTransportAddress' [-Wimplicit-function-declaration]
if ((other_transport && (BTM_ReadConnectedTransportAddress(other_address, other_transport))) ||
^
system/bt/bta/./dm/bta_dm_act.c:701:82: error: 'tBTA_DM_PEER_DEVICE' has no member named 'transport'
btm_remove_acl(other_address,bta_dm_cb.device_list.peer_device[i].transport);
^
system/bt/bta/./dm/bta_dm_act.c: In function 'bta_dm_discover_device':
system/bt/bta/./dm/bta_dm_act.c:2318:52: error: 'tBTM_INQ_RESULTS' has no member named 'device_type'
&& (bta_dm_search_cb.p_btm_inq_info->results.device_type == BT_DEVICE_TYPE_BLE)
^
build/core/binary.mk:801: recipe for target 'out/target/product/manta/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/./dm/bta_dm_act.o' failed
make: *** [out/target/product/manta/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/./dm/bta_dm_act.o] Error 1
#### make failed to build some targets (22:50 (mm:ss)) ####
got past the bluetooth problem
looks like i needed to enable BLE
http://review.cyanogenmod.org/#/c/46447
now another problem but this shouldn't be as hard to deal with:
Code:
target thumb C: audio.primary.manta <= device/samsung/manta/audio/audio_hw.c
device/samsung/manta/audio/audio_hw.c:35:36: fatal error: videodev2_exynos_media.h: No such file or directory
#include <videodev2_exynos_media.h>
^
compilation terminated.
build/core/binary.mk:801: recipe for target 'out/target/product/manta/obj/SHARED_LIBRARIES/audio.primary.manta_intermediates/audio_hw.o' failed
make: *** [out/target/product/manta/obj/SHARED_LIBRARIES/audio.primary.manta_intermediates/audio_hw.o] Error 1
#### make failed to build some targets (01:52:41 (hh:mm:ss)) ####
fixed fatal error: videodev2_exynos_media.h
forgot to add hardware/samsung_slsi/exynos5
next problem
Code:
target thumb C++: libbubblelevel <= device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp
device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp: In member function 'int android::BubbleLevelImpl::init()':
device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp:55:24: error: 'getInstance' is not a member of 'android::SensorManager'
SensorManager& mgr(SensorManager::getInstance());
^
device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp: At global scope:
device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp:254:32: warning: unused parameter 'fd' [-Wunused-parameter]
static int sensor_callback(int fd, int events, void* data)
^
device/samsung/manta/bubblelevel/BubbleLevelImpl.cpp:254:40: warning: unused parameter 'events' [-Wunused-parameter]
static int sensor_callback(int fd, int events, void* data)
^
build/core/binary.mk:706: recipe for target 'out/target/product/manta/obj/SHARED_LIBRARIES/libbubblelevel_intermediates/BubbleLevelImpl.o' failed
make: *** [out/target/product/manta/obj/SHARED_LIBRARIES/libbubblelevel_intermediates/BubbleLevelImpl.o] Error 1
#### make failed to build some targets (09:30 (mm:ss)) ####
SensorManager
so 6.0 changed "getInstance" so I'm trying to update it but I'm not so good with cpp so having a hard time.
what I'm trying to change - https://android.googlesource.com/de...d-m-preview-2/bubblelevel/BubbleLevelImpl.cpp
Code:
SensorManager& mgr(SensorManager::getInstance());
Sensor const* const* sensorList;
SensorManager 5.1 - https://github.com/android/platform_frameworks_base/blob/lollipop-release/native/android/sensor.cpp
Code:
ASensorManager* ASensorManager_getInstance()
{
return &SensorManager::getInstance();
}
SensorManager 6.0 - https://github.com/android/platform...marshmallow-release/native/android/sensor.cpp
Code:
android::Mutex android::SensorManager::sLock;
std::map<String16, SensorManager*> android::SensorManager::sPackageInstances;
ASensorManager* ASensorManager_getInstance()
{
return ASensorManager_getInstanceForPackage(NULL);
}
ASensorManager* ASensorManager_getInstanceForPackage(const char* packageName)
{
if (packageName) {
return &SensorManager::getInstanceForPackage(String16(packageName));
} else {
return &SensorManager::getInstanceForPackage(String16());
}
}
Still Stuck...
using this I'm able to gets past the last error but I'm not sure if it functions correct.
Code:
SensorManager& mgr(SensorManager::getInstanceForPackage(String16()));
Sensor const* const* sensorList;
now I'm on this error
Code:
target SharedLib: libbubblelevel (out/target/product/manta/obj/SHARED_LIBRARIES/libbubblelevel_intermediates/LINKED/libbubblelevel.so)
frameworks/native/include/gui/SensorManager.h:102: error: undefined reference to 'android::SensorManager::sLock'
frameworks/native/include/gui/SensorManager.h:102: error: undefined reference to 'android::SensorManager::sPackageInstances'
collect2: error: ld returned 1 exit status
build/core/shared_library_internal.mk:80: recipe for target 'out/target/product/manta/obj/SHARED_LIBRARIES/libbubblelevel_intermediates/LINKED/libbubblelevel.so' failed
make: *** [out/target/product/manta/obj/SHARED_LIBRARIES/libbubblelevel_intermediates/LINKED/libbubblelevel.so] Error 1
#### make failed to build some targets (55 seconds) ####
You can do it!
Sent from my SM-G925P using Tapatalk
Could you report any fixes that you made?
Keep at it your doing great thx!
@NeoGman i am stuck with the switch from libstlport to libcxx. the hardware/samsung_slsi uses libstlport. I have corrected the makefile to use libcxx with am stuck with
hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/log.h:121:24: error: unable to find string literal operator 'operator""__VA_ARGS__'
_LOG_E(" *** ERROR: "__VA_ARGS__); \
^
Did you manage to solve that one ?
scanno said:
@NeoGman i am stuck with the switch from libstlport to libcxx. the hardware/samsung_slsi uses libstlport. I have corrected the makefile to use libcxx with am stuck with
hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/log.h:121:24: error: unable to find string literal operator 'operator""__VA_ARGS__'
_LOG_E(" *** ERROR: "__VA_ARGS__); \
^
Did you manage to solve that one ?
Click to expand...
Click to collapse
Are you using the android-m-preview-2 branch?
also looking at the diff has been helping me.
https://android.googlesource.com/pl...5/+/android-5.1.1_r24^1..android-m-preview-2/
and I'm still stuck were i was last post I'm not sure what to do :/ i cant find any other device that uses this bubble level SensorManager thing.
NeoGman said:
Are you using the android-m-preview-2 branch?
also looking at the diff has been helping me.
https://android.googlesource.com/pl...5/+/android-5.1.1_r24^1..android-m-preview-2/
and I'm still stuck were i was last post I'm not sure what to do :/ i cant find any other device that uses this bubble level SensorManager thing.
Click to expand...
Click to collapse
No I am using the 6.0.0_r1 branch and the samsung_slsi with the latest commits. I think I got past your error by adding an include to bubblelevel.
ISensorManager has more includes then lollipop, so I added that to bubblelevel.
Let you know what include I added. Not at my PC right now.
I have been working on this today too. I have the 6.0.0_r1 tag checked out and device/samsung/manta and harware/samsung_slsi are on m-preview-2. I also had to revert commit f5f584ee173faef40f226c6e0e8580a2ecbe079b in hardware/invensense. I got past the bubblelevel error with the following diff:
Code:
--- a/bubblelevel/BubbleLevelImpl.cpp
+++ b/bubblelevel/BubbleLevelImpl.cpp
@@ -21,6 +21,12 @@
#include <binder/IServiceManager.h>
#include "BubbleLevelImpl.h"
+using android::SensorManager;
+using android::String16;
+
+android::Mutex android::SensorManager::sLock;
+std::map<String16, SensorManager*> android::SensorManager::sPackageInstances;
+
namespace android {
static int sensor_callback(int fd, int events, void* data);
@@ -52,7 +58,7 @@ int BubbleLevelImpl::init()
return mInitStatus;
}
- SensorManager& mgr(SensorManager::getInstance());
+ SensorManager& mgr(SensorManager::getInstanceForPackage(String16()));
Sensor const* const* sensorList;
mNumSensors = mgr.getSensorList(&sensorList);
So now I am past that error, but just got a new ones. This is in hardware/samsung_slsi.
Code:
hardware/samsung_slsi/exynos5/libcamera2/ExynosCamera2.cpp:108:9: error: 'HAL_PIXEL_FORMAT_RAW_SENSOR' was not declared in this scope
HAL_PIXEL_FORMAT_RAW_SENSOR,
^
Code:
hardware/samsung_slsi/exynos5/gralloc/gralloc.cpp:155:14: error: 'HAL_PIXEL_FORMAT_sRGB_A_8888' was not declared in this scope
case HAL_PIXEL_FORMAT_sRGB_A_8888:
^
hardware/samsung_slsi/exynos5/gralloc/gralloc.cpp:156:14: error: 'HAL_PIXEL_FORMAT_sRGB_X_8888' was not declared in this scope
case HAL_PIXEL_FORMAT_sRGB_X_8888:
^
hardware/samsung_slsi/exynos5/gralloc/gralloc.cpp:163:14: error: 'HAL_PIXEL_FORMAT_RAW_SENSOR' was not declared in this scope
case HAL_PIXEL_FORMAT_RAW_SENSOR:
^
I haven't investigated those errors yet, just wanted to post how I fixed the bubblelevel error.
The diff that cuases the error is here:
https://android.googlesource.com/platform/hardware/qcom/display/+/9c043ca^!/
Right, I found that too. Here is the diff to eliminate those errors:
Code:
diff --git a/gralloc/gralloc.cpp b/gralloc/gralloc.cpp
index b5f269b..6ef3a45 100644
--- a/gralloc/gralloc.cpp
+++ b/gralloc/gralloc.cpp
@@ -152,15 +152,11 @@ static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage,
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_RGBX_8888:
case HAL_PIXEL_FORMAT_BGRA_8888:
- case HAL_PIXEL_FORMAT_sRGB_A_8888:
- case HAL_PIXEL_FORMAT_sRGB_X_8888:
- bpp = 4;
- break;
case HAL_PIXEL_FORMAT_RGB_888:
bpp = 3;
break;
case HAL_PIXEL_FORMAT_RGB_565:
- case HAL_PIXEL_FORMAT_RAW_SENSOR:
+ case HAL_PIXEL_FORMAT_RAW16:
bpp = 2;
break;
case HAL_PIXEL_FORMAT_BLOB:
diff --git a/libcamera2/ExynosCamera2.cpp b/libcamera2/ExynosCamera2.cpp
index 35bb9f5..e06f670 100644
--- a/libcamera2/ExynosCamera2.cpp
+++ b/libcamera2/ExynosCamera2.cpp
@@ -105,7 +105,7 @@ const nsecs_t Sensor::kFrameDurationRange[2] =
const uint8_t Sensor::kColorFilterArrangement = ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB;
const uint32_t kAvailableFormats[5] = {
- HAL_PIXEL_FORMAT_RAW_SENSOR,
+ HAL_PIXEL_FORMAT_RAW16,
HAL_PIXEL_FORMAT_BLOB,
HAL_PIXEL_FORMAT_RGBA_8888,
HAL_PIXEL_FORMAT_YV12,
Now I have another error with ExynosCameraHWInterface2:
Code:
hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp:6519:5: sorry, unimplemented: non-trivial designated initializers not supported
};
^
I suspect this has something to do with the struct format. https://android.googlesource.com/de...w-release/camera/QCamera2/HAL/QCamera2Hal.cpp is how the same HAL struct is initialized on the marshmallow-release branch for the Nexus 5, but I haven't figured out how fix ExynosCameraHWInterface2.cpp yet, simply adding a "." before the variables and changing the ":" to "=" doesn't work.
holtr94 said:
Now I have another error with ExynosCameraHWInterface2:
Code:
hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp:6519:5: sorry, unimplemented: non-trivial designated initializers not supported
};
^
I suspect this has something to do with the struct format. https://android.googlesource.com/de...w-release/camera/QCamera2/HAL/QCamera2Hal.cpp is how the same HAL struct is initialized on the marshmallow-release branch for the Nexus 5, but I haven't figured out how fix ExynosCameraHWInterface2.cpp yet, simply adding a "." before the variables and changing the ":" to "=" doesn't work.
Click to expand...
Click to collapse
i think this fixes it https://android.googlesource.com/pl...llow-release/modules/camera/CameraHAL.cpp#173
if that wasn't it here what mine looks like right now
Code:
extern "C" {
struct camera_module HAL_MODULE_INFO_SYM = {
common : {
.tag = HARDWARE_MODULE_TAG,
.module_api_version = CAMERA_MODULE_API_VERSION_2_0,
.hal_api_version = HARDWARE_HAL_API_VERSION,
.id = CAMERA_HARDWARE_MODULE_ID,
.name = "Exynos Camera HAL2",
.author = "Samsung Corporation",
.methods = &camera_module_methods,
.dso = NULL,
.reserved = {0},
},
.get_number_of_cameras = HAL2_getNumberOfCameras,
.get_camera_info = HAL2_getCameraInfo,
.set_callbacks = NULL,
.get_vendor_tag_ops = NULL,
.open_legacy = NULL,
.set_torch_mode = NULL,
.init = NULL,
.reserved = {0},
};
}
}; // namespace android
libmalicore.bc error
not sure what to do about this one search's don't yield much.
Code:
target Strip: libmalicore (out/target/product/manta/obj/lib/libmalicore.bc)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-strip:out/target/product/manta/symbols/system/vendor/lib/libmalicore.bc: File format not recognized
build/core/dynamic_binary.mk:113: recipe for target 'out/target/product/manta/obj/lib/libmalicore.bc' failed
make: *** [out/target/product/manta/obj/lib/libmalicore.bc] Error 1
#### make failed to build some targets (49 seconds) ####
NeoGman said:
not sure what to do about this one search's don't yield much.
Code:
target Strip: libmalicore (out/target/product/manta/obj/lib/libmalicore.bc)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-strip:out/target/product/manta/symbols/system/vendor/lib/libmalicore.bc: File format not recognized
build/core/dynamic_binary.mk:113: recipe for target 'out/target/product/manta/obj/lib/libmalicore.bc' failed
make: *** [out/target/product/manta/obj/lib/libmalicore.bc] Error 1
#### make failed to build some targets (49 seconds) ####
Click to expand...
Click to collapse
I was able to fix this by adding this below line #116 in vendor/samsung/manta/proprietary/Android.mk
Code:
LOCAL_STRIP_MODULE := false
The build successfully completed for me after that! I'm working on flashing it now.
EDIT: The build just loops on the Google logo. I'm going to investigate more tomorrow.
Make sure you boot in permissive mode. Selinux has changed also
Verstuurd vanaf mijn TF300T met Tapatalk
Good luck guys, hope you can deal with all these problems and give us something stable with M.
scanno said:
Make sure you boot in permissive mode. Selinux has changed also
Verstuurd vanaf mijn TF300T met Tapatalk
Click to expand...
Click to collapse
I'm not totally sure how to boot in permissive mode, I added this line to device/samsung/manta/BoardConfig.mk and rebuilt.
Code:
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
Is that the right way to boot permissive? It still looped on the Google logo anyways.
I've uploaded the img files I compiled, if anyone else wants to flash them with fastboot and mess around.
I'm learning how to manage data that I pull from DB (MYSQL) from this coding. I tried to figure out from free source coding but got stuck on this function, can anybody explain to me flow of this coding?
Code:
protected void onPostExecute(Void aVoid) {
name = names.split(":");
email = emails.split(":");
phone = phones.split(":");
combinedArray = combinedText.split(":");
listView.setAdapter(new ArrayAdapter<String>(RetrieveData.this,
android.R.layout.simple_list_item_1, combinedArray));
progressDialog.dismiss();
}
and when I tried to use this code, red line prompt out and saying that cannot resolved this constructor on if i change
Code:
listItems
to
Code:
names
variables on this
Code:
adapter=new ArrayAdapter<String>(this,
R.layout.list_item, R.id.txtitem, listItems);
I don't understand why I need to use 'split' to pull out the output on listview.