Originariamente inviato da
Raspanduck
[quote name="lachisim" post=5936092]yes. Allora, molto semplicemente ho creato su ubuntu il file apx.c con questo file:
#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_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 insetad 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;
}
probabilmente è simile al tuo, pero' già all'inizio se ci fai caso sul tuo c'era solo "include" mentre su questo altre cose.
In più sul sito (che non so se posso mettere qui come link) dicono che, in caso di sistema a 32 bit bisogna sostituire:
If you are running 32 bit you should change in apx.c some lines, dond worry it easy
Try replacing
Code:
printf("uid: %#016lx\n", *(uint64_t*)data);
with
Code:
printf("uid: 0x%016llx\n", *(uint64_t*)data);
or
Code:
printf("uid: 0x%08X%08X\n", *((uint32_t*)data+1), *((uint32_t*)data+0));
Io ho preso il primo file e ho cominciato ad aggiungere man mano queste stringhe (una alla volta) fino a quando il sistema non ha tirato fuori un uid (CPUID) con 16 cifre subito dopo 0x.
A quel punto ho provato a inserire il 3.0.1 ed è andato tutto liscio.
Ora ho solo il problema che non trovo acer recovery, probabilmente potrò reperire un .apk. Va bene comunque ? E soprattutto cosa ci metto dopo ? che consigliate ? mi leggo bene i primi post che ci siamo !!! Grandiiiiiiiiiiii !!!!