yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] xbdesign:
All i have done with uImage was uncompressing a part where i found a compression start.

I done this with:

// $uImage would be a uImage from Stock

pos=`grep -P -a -b -m 1 --only-matching $'\x1F\x8B\x08' $uImage | cut -f 1 -d :`

dd if=$uImage bs=1 skip=$pos | gunzip > /tmp/kernel.img

---------- Post added at 09:13 PM ---------- Previous post was at 08:53 PM ----------

I just tested a usb with one selfmade host usb cable.

But no luck. Whatever i try the mode is allways "b_idle" if no cable pluged in or host cable with usb-stick plugen in.

If i plug a usb-cable and connect it to PC it would change to "b_peripherial"
[Miscellaneous Android Development] TippyTurtle:
If you look at some of the nook color threads (if I remember right) there is some pin that needs to be wired in a certain way for otg to work automatically..which the nook color does not have. They work around this with a manual toggle in software (widget or something).

Either way it sounds like we need to get the kernel sorted out first.
[Miscellaneous Android Development] xbdesign:
I know that usb host cable have to have Pin Nr 4 (sense) connected to Pin Nr 5(GND)

So i soldered a switch between Nr4 and Nr5 so I can control it better.

I also found some pictures of Lenovo A1 where I can see that all 5 Pins on Board are soldered and have a connection.

I also tried to release a connection between Nr4 and Nr5 while initial boot (lenovo Logo) and afterwards connecting those pins at booting Animation but it did not help either.
[Miscellaneous Android Development] unplugged138:
there is the touch panel firmware :

115.com/file/clykyncr
[Miscellaneous Android Development] Sonz:
Hi,i broke my first A1 and disassambled it completly.

Would it be helpfull for someone of you Guys to have Hi-Res Images of the Mainboard to see the connections of some IO Pins or the CPU?

I could do some pictures around 23h CET.

Sonz
[Miscellaneous Android Development] bejay:
No, that seems about right.
[Miscellaneous Android Development] tovida:
Play store not showing all apps

I couldn't find a solution to my problem anywhere in the thread even though the issue is documented on David Artiss' tutorial. Because the device is modded many apps are not possible to be installed trough the market. In my case it is more than half of the apps I use. The only way I was able to get it is trough the backups in Titanium Backup from my phone which obviously is not a good idea - I won't be getting any updates, etc; also many new that I want to install and I am supposed to be able but I can't because Play Store does not allow me.

I saw in other threads modded version of play store which allow all apps to show on the device without device and country restrictions. I tried some of them on the a1 ideapad but non of them worked. Is there any chance the devs would create a modded version for our tablet too? Or maybe to make some changes in the build.prop file? I am just not sure what exactly should be changed...
[Miscellaneous Android Development] vwftw:
FTFY
[Miscellaneous Android Development] kurek007:
I never had any problem like this, but I have minimum apps on mine.

Make sure your "lcd.density "is 160.
[Miscellaneous Android Development] DroidZombie:
power off recovery option not working

I just came back to CM7 after a horrible experience trying to get ICS to work on my tablet.

On the version I used to be running (May 10) my power off recovery worked just fine and it would boot into clockworkmod. On the version I have now (June 17) the power off recovery just reboots the tablet without going into clockworkmod.

I can still get into recovery by the power vol- combination so it's not a huge problem just thought you guys should know.

The Goo.im and Clockworkmod programs also don't reboot into recovery, they just reboot the tablet.

On the plus side my sound quality is now fantastic, absolutely no crackling so far. The static I was getting was the only reason I wanted to go to ICS so now I'll be sticking with CM7 until you wonderful devs make an A1 CM9 that is as easy to install as CM7 and as stable.

Thanks guys
[Miscellaneous Android Development] dtdpul:
Thank you for the information.

I really want to try CM7, but with your confirmation, I m not sure why I have to move there then.
[Miscellaneous Android Development] purloiner:
+1 on all the above, back on cm7, ics too painful, had a big fight to get cm7 and external sd card back.

Was fun though :D
[Miscellaneous Android Development] kurek007:
It looks like ics modifies partitions cos is nothing wrong with last builds .

Had same problem when back from ics.

Try reflash stock mbr http://xdaforums.com/showpost.php?p=23471133&postcount=409.
[Miscellaneous Android Development] amjl2000:
Just upgraded to the latest nightly (06/20)... just put the music player on (without anything else yet), and agreed the playback is very good, though still get the odd crackle now and again.

One thing I did notice to start with that I was getting extreme crackle (100% of the time, drowning out the music at 1 bar volume) when the screen was off! turn screen on again, and crackle goes. How odd. This behaviour has now stopped. I think during the time it was occuring, the app was still discovering my music (iirc, this happened with a previous build).

I have connected to wifi (though not to google yet), which is something I reckon is affecting my audio quality, but still nothing when mildly browsing.

Update: just put on gapps, and the market is currently downloading all my apps, this is causing a lot of noise! So I reckon that my issue is grounding of some sort i.e. definitely a hardware issue. Will now look into what apps I have that constantly want internet access, and seek to remove them (have already taken last.fm which wants to scrobble my music).

Update: GPS is still very poor for me, I use GPSStatus, and now only sees 2 or 3 sats that drop out regularly. Before (2643) I would see 8-10 and get a firm fix very quickly. Is there a setting for signal sensitivity anywhere in the code? I seem to be the only one with this issue?

Actually, I think it is worse now than on previous CM7 builds I have tried... (even 0706, which is odd as little - if anything - has chnaged since then). Struggle to get even 1 sat showing up.
[Miscellaneous Android Development] amjl2000:
I have a question. The stock 2643 has a system/etc/gps/glconfig.xml file.

This is similar (it looks) to system/etc/gps.conf found in other android builds.

Why are neither of these to be found in this CM7 build? By all accounts they are the first point of call for improving GPS. I am very curious!

Also, system/lib/hw has a gps.omap4.so file in addition to an opam3 file. Is this new file necessary?
[Miscellaneous Android Development] bejay:
If you search the thread for gps.conf, I posted a link to creating one with the correct info.

I get a cold start in under 2min and a warm start in 30 sec now.
[Miscellaneous Android Development] gmarkall:
Good questions - I never included them as GPS seemed to work. Does adding glconfig.XML as the GPS.conf make it work better for you?
[Miscellaneous Android Development] amjl2000:
This? I guess so...

Firstly I tried copying in both the conf and the xml files into the locations as they are in the stock rom. This didn't work.

OK, so I made myself a gps.conf file and put it into system/etc/ as per the guide linked to above (note i removed the glconfig.xml), and this hasn't worked.

I then put the xml file in, and this didn't work.

(I did clear agps data and reboot between attempts btw)

graham, sorry i only mean that some of the information in each file looked similar, not the formatting, so can't replace one with the other

I am considering removing the gps.omap4.so file, and perhaps replacing the omap3 file with a stock copy. Is this OK to do?

just as an fyi, I have wifi usage off, because with that google maps finds me within a fraction of a second, but it's not gps data.
[Miscellaneous Android Development] milaq:
the glconfig is passed to the glgps vendor binary during init.

thus we shouldnt need a gps.conf as we initialize gps differently.

is there one on stock? if so, we could add the required file easily.

gps.omap4.so shouldnt be in there but it does no harm in any way. only bootloader/device ident filenames (a1_07, omap3,...) are called.

furthermore without wifi you cant utilize assisted gps (faster lock, glconfig, gps.conf, etc) at all.
[Miscellaneous Android Development] MadPriest:
but A1 has real GPS, not aGPS :eek:
[Miscellaneous Android Development] milaq:
lol,

you need an internet connection either way to contact the servers listed in the configs dude.
[Miscellaneous Android Development] MadPriest:
That's true

BUt you do not have to contact the servers in order to get fix

it might just take longer
[Miscellaneous Android Development] milaq:
we are talking about exactly that...improving gpsfix speed.
[Miscellaneous Android Development] amjl2000:
Isn't it a bit of both?

In terms of getting a fix in a maps app, then sure getting a fast fix is good.

But I'm using GPS Status (free app) which gives you an indication of satellites in the sky. Which aGPS can't do, right. And that's where my problem is, from having 8-9 sats, and a quick fix, to it sitting around for ages and barely seeing 2 now (in the same location), so it's not an aGPS issue, but I'm not exactly sure where aGPS stops and GPS starts, or the precise interaction between the two.

Will be playing later (after dinner) for a bit, see what I can do. Will also search for more gps related files in the stock rom.

:cyclops:
[Miscellaneous Android Development] MadPriest:
just to make it clear

A1 does NOT have aGPS module

it has BCM4751 from Broadcom, which is a regular (low-power) GPS module, not aGPS
[Miscellaneous Android Development] amjl2000:
so there's a difference between aGPS and A-GPS, one of which is using triangulation from mobile masts or something? and not connected to Wifi triangulation. That's where I'm getting confused probably.

Google Maps does find me very fast, though not very accurately, but it's not GPS that's doing it cos the dot in the target still blinks.
[Miscellaneous Android Development] MadPriest:
aGPS and A-GPS is the same

aGPS won't work without SIM (but will work with SIM without reception)

Google Maps finds you very fast not because they have huge database of Wi-Fi networks and their locations, and uses "wi-fi triangulation"
[Miscellaneous Android Development] milaq:
lol, connections are made either way. e.g. ntp, supl, etc

and just to make another thing clear:

if you are feeling this clever why arent/werent you helpful in developing stuff instead of beeing such a smartypants?
[Miscellaneous Android Development] MadPriest:
lol

there's a huge difference between being clever (or feeling one) and being able to develop smth
[Miscellaneous Android Development] milaq:
well,

try not to criticize people if you cant do it better (or at least propose a solution and beeing constructive).

posting here just to show knowledge isnt helpful, even worse with sciolism; this is a dev thread after all.

on a side note: graham and i have worked countless hours on the CM port and the OC kernel. and we demand nothing for it. we did that for free and in our spare time. but what we can expect is a little niceness of the community. and not criticism.

i will stop arguing now. if you feel like you need to be heard, please join the irc channel.
[Miscellaneous Android Development] amjl2000:
My investigations thus far.

The stock rom has the following:

system/etc/gps/glconfig.xml

system/etc/permissions/android.hardware.location.xml

system/bin/glgps

These files are not there in CM7.

However, I have found that there is a system/vendor, and within here is a /bin and a /gps folder with the GPS stuff in, fyi there's also a firmware dir containing bcm4329 (the 802.11. )

The files here look the same as the stock ones (no edits as far as i can tell though I didn't do a diff)

So the files exist, just not in the same place as stock. I guess you know this, unfortunately t doen't help my understanding of what is (or isn't) happening! I appreciate the words and wisdom :highfive:
[Miscellaneous Android Development] MadPriest:
did I criticize anyone?

I know it and I appreciate it

Using CM7 on my A1 I tried to contribute as much as I can providing Kernel messages for wi-fi issues

Again, if you see me criticizing anyone - please read my posts again
[Miscellaneous Android Development] digim:
Once you flash GAPPS, all these files will be in the folder and A-GPS will work quite fast.

But real GPS is still very slow or not working.
[Miscellaneous Android Development] amjl2000:
OK so maybe I'm barking up the wrong tree then? If the assisted (i.e. wifi) mode does work OK according to google maps, then it may be nothing to do with these files as they are primarily concerned with servers etc for data capture.

I, and a good few others, had issues with the stock roms previous to 2643 in that gps was unreliable [imprtant to note that not everyone had issues, so hardware difference?]. 2643 came and fixed gps for just about everyone (well, no mention of issues since then on the lenovo community). So could it be that the code given to us (i.e. you milaq and mr markall) was based on 2375 or 2525 (or whatever numbers they were) and not 2643. And if this is the case, can I find any other chip driver files in the 2643 zip that can be compared to those that are now in the CM7 build?

Just throwing ideas around, please tell me if I'm being crazy! :eek:
[Miscellaneous Android Development] milaq:
thanks, ill re-check that we are en-par with 2643 reg. the vendor blobs.

i'll revisit the gps stuff soon. maybe it'll have to wait until next week as i have to reflash stuff due to the fact that im trying to get cm9 working atm and have some exams coming up.
[Miscellaneous Android Development] cptbreecher:
thanks and status

I am using the latest build from 22 June for my Lenovo a1. I really want to thank all the devs working on this. I read you have an issue with the blue tooth, but I have successfully used it to send a contact to a Samsung android. Front and back cameras work for me, but I have not yet tried to record video yet. Just wanted Skype.

The main reason I wanted the mod over the stock was that there were several apps I could use before thestock OTA update that were not usable after. Now there is one. So this mod has been more stable than stock, as the stock FC'd on me when turning the wifi on and off, which I did to save power.

So great job and thanks!
[Miscellaneous Android Development] leejash:
No Password

Your link to the .img file requires a password to extract. Since I can't read Chinese can you provide the password?
[Miscellaneous Android Development] monkins:
Bricked A1 2Gb

Hi all, I've just tried to change from ICS slimdroid v4, to CM7.

First I put the clockwork mod on 5.0.2.7

2. modified boot loader fastboot

3. Installed cyanogenmod 7 from the 23.6.12 nightly build.

4. installed google apps

then when to reboot on cwm but now i just get black screen. o green poer charge thing, no nothing, if i plug it in to usb and try and turn on i just get the usb pluggin in noise come on then it makes the windows "d d der" noise as though it didnt install properly. any help would be appriciated

thanks

Chris
[Miscellaneous Android Development] jpisini:
I would try going back to cwm and wiping everything and reinstalling.
[Miscellaneous Android Development] -=bhf=-:
Well, going back is a little tricky.

For me, this way worked well with an european 16GB Tablet:

1 install stock rom ver 2525-row

2 in stock recovery do a factory reset

3 install clockwork mod flash version via update.zip onto a external sd card and boot into clockwork

4 install the stock-mbr.zip for your 2 Gig device

5 install cm7 and GApps

6 power down tab and eject external SD card

7 power on tab again and boot into CM7

8 skip setup and check for internal SD card

9 reboot tab into CM7 and setup your tab
[Miscellaneous Android Development] kurek007:
You are not first one who done that including myself. You have to boot from sd cars and every thing will be fine is not bricked :) Go a few pages back.
[Miscellaneous Android Development] digim:
To go back from ICS to CM7, you need first flash one of the official ROMs, such as 2643. Then you flash CM7.

Slim ICS is quite good and easy to flash back to other ROMs as CWM is still working.

That is my experience. It works perfect on my 2G version.
[Miscellaneous Android Development] nibiru887:
ICS slim problem

I have an issue with ICS slim v4. Access setting/ storage and an error pop up "Unfortunately, The setting has stopped." And another thing is I don't see the default browser and file explorer of this rom? Do you know why?
[Miscellaneous Android Development] amjl2000:
This is the CM7 Thread, not the ICS one, do a search for 'Lenovo A1 ICS' or similar :)
[Miscellaneous Android Development] nibiru887:
One more question: why there are so many CM7 updates? I see it is updated everyday and I don't know which is the best. Pls tell me what is the difference between CM7 updates. Is it the latest the best one?
[Miscellaneous Android Development] Stolz:
Those are automatic builds. They are created every night. Just pick the one with the most recent date.
[Miscellaneous Android Development] nibiru887:
I don't understand. why they are created so many and so often. Is this neccessary? Is there any main difference between them? I up two Cm7 roms and i see it the same.
[Miscellaneous Android Development] jpisini:
It is built automatically so most days there is no real change. Grab the latest and try it out.

https://github.com/gmarkall/android_device_ideapad_a1/commits/gingerbread

http://review.cyanogenmod.com/#/q/status:merged+branch:gingerbread,n,z
[Miscellaneous Android Development] rhay:
How can i recover my tab? Any detailed instructions that is easy to ubderstand? Thank you in advance
[Miscellaneous Android Development] jpisini:
What is wrong with your tab? Without more information we could make a bad situation worse. Please tell us what it is and or is not doing, along with what you were doing when it happened and we can help a lot more than just guessing.
[Miscellaneous Android Development] amjl2000:
Thanks milaq, no hurry.. plenty of more important things to focus on!

I had a check of the changes made in github,

https://github.com/gmarkall/android...mmit/1a9fd494d0e32e61740fa7dd40a01a5d75c635a9

And for the gps you did change the location for the gps stuff from system /etc and /bin to a /vendor dir. So it makes sense that the files I thought should be there actually weren't. Though I find it a bit odd that when gps is running I cannot access the files that I have copied in to the system dir (this may be just coincidence).

I tried looking for more info on the gps chip and its utilisation in other devices, most applicable was samsung galaxy phones, of which there have been issues also. I did try pulling a glgps from a dev thread on that, but broke gps on the stock rom! I lost the page, but somewhere was a mention that there is probably some underlying stuff that we don't have access to. If this is the case and Lenovo have supplied some dated black-box code (are these blobs? It's the first time I've heard of the term 'blob') then would you ever know?
[Miscellaneous Android Development] dawkon13:
USB host (USB mouse, keyboard) working o CM7???

If yes, which cm version it's better
[Miscellaneous Android Development] rhay:
I flashed it with the ics build and error out. I cant get to recovery. When i turn it on stuck in lenovo
[Miscellaneous Android Development] MadPriest:
search this thread for bootable sd, boot from it and flash the desired rom
[Miscellaneous Android Development] mihnutzu:
I have installed the latest nightly build then put the fix-mbr but the tablet cannot see my internal SD card (16GB model) I see 1.83 total space in Internal storage but for the rest /mnt/emmc and mnt/usbdisk total space is unavailable. Also when I try to open an app like Videos i get the " Sorry, your SD card is busy " . I have no external SD card plugged in. What should I do?
[Miscellaneous Android Development] jpisini:
When I had this issue I had to rewrite the mbr, install stock kernel, then flash CM7.
[Miscellaneous Android Development] thomas479:
Under settings>cyanogenMod>Apps>Use internal memory.

Check that, and reboot. If it is not working, please uncheck and reboot again.

Thomas
[Miscellaneous Android Development] harryvn:
i using may-7 build because battery life is good, i don't use tab in 2 days, it drain 2,3%. I love this ver. Any new build stable and battery good like this? please tell me. i tried newest build but battery drain so fast. sorry my english.
[Miscellaneous Android Development] jpisini:
I am using June 30th I am getting same type of battery life. Rock solid release no issues yet.
[Miscellaneous Android Development] harryvn:
i'll try. thanks!!!
[Miscellaneous Android Development] nibiru887:
Your battery is awesome! Mine left overnight drain nearly 10% for 8 hours.

Hard to believe with your drain: only drain 3% for 48 hours. Do anyone believe this?

How about June 30 version? Have anyone tried its battery life?
[Miscellaneous Android Development] jpisini:
I will try to get a screenshot later. I am at 81% at just shy of 1 day 8 hours. I used it about 2 to 2.5 hours since taking it off the charger.

It wont allow me to add a screenshot from my tabet.
[Miscellaneous Android Development] jpisini:
Here we go I emailed them to myself. This is after about 3.5 hours of real usage the rest is standby.
[Miscellaneous Android Development] nibiru887:
Really impressive. I am on July 02 version but the battery life is not so good as yours, espeacially it drains so much in stanby status, about 1% lost for 1h sleep.

Wait for more reviews on your version to come back to it. LOL
[Miscellaneous Android Development] akulp:
I still have the same problem. I lost about 8% in 8 hours.

Versions around february were much better with battry life.

------

One more question.

Is it possible to connect SD card reader on A1 over USB adapter?
[Miscellaneous Android Development] kurek007:
It's not possible yet. A1 doesn't support USB OTG.

Hope it will be fix soon :)
[Miscellaneous Android Development] AshwinBhanushali:
Android ICS on Lenovo Ideapad Error in making flashable zop

HI Gmarkall,

I am able to compile and run android ICS on emulator.

I am also able to compile the source code for Device Lenovo ideapad a107 using command make -j4.

I had downloaded the Device configuration for lenovo ideapad a1 from your github repository.https://github.com/gmarkall/android_device_ideapad_a1/tree/ics

But I want to create a flashable zip so I executed the command make -j4 otapackage. I am getting the following error.

File "./build/tools/releasetools/ota_from_target_files", line 846, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/ota_from_target_files", line 814, in main

WriteFullOTAPackage(input_zip, output_zip)

File "./build/tools/releasetools/ota_from_target_files", line 416, in WriteFullOTAPackage

MakeRecoveryPatch(output_zip, recovery_img, boot_img)

File "./build/tools/releasetools/ota_from_target_files", line 343, in MakeRecoveryPatch

recovery_type, recovery_device = common.GetTypeAndDevice("/recovery", OPTIONS.info_dict)

File "/home/ashwin/bin/12_APRIL_ANDROID/build/tools/releasetools/common.py", line 826, in GetTypeAndDevice

return PARTITION_TYPES[fstab[mount_point].fs_type], fstab[mount_point].device

KeyError: '/recovery'

Please guide me in this regards.

Thank You.
[Miscellaneous Android Development] harryvn:
battery life is reason i still use May-7 verstion :( . i was update my tab to ICS, but when i need to use tab, empty battery ===> back to CM7 May-7 version.