yashsingh1/xdaforums huggingface dataset:
[Nexus S Q&A, Help & Troubleshooting] TransientFukitsu:
Hi, I know this thread is old but I was having the same problem relocking my nexus 4 after installing stock Android 4.4.3 KitKat.

I'm using Nexus Root Toolkit, I don't know what tools you're using to lock your nexus S boblem ut this very easy to use it downloads the drivers and what ever you need to lock, unlock or flash stock and custom roms for any Nexus device.

So my problem was that I would launch OEM Lock on Nexus Root Toolkit and it would detect the device, reboot in Fastboot mode and it would proceed just fine but after saying "Launching TWRP.... something" it would reboot the phone and say to me "Waiting for device" untill it would time out.

I found out that when the program(NEXUS ROOT TOOLKIT) asked me to download a TWRP IMG files, I said no everytime because I didn't think I'd need it. So after trying 5 times, I allowed it to download it and i retryed to OEM Lock it and MAGIC!

Somewhere in the process of Locking the rom it is going to need the TWRP File so allowing the program to download it solved it for me.

I don't know if this will help you or if you still have the same phone, but if you do have use Nexus Root Toolkit and download all it asks and you'll be fine.

Good Luck.
[Nexus S Q&A, Help & Troubleshooting] positiveplus:
"waiting for device" forever when "fastboot oem unlock:

I have the same exact problem.

ADB works fine when the phone is up & running, so I am suspecting a driver compatibility problem when the phone is in "FASTBOOT MODE".

I tried to install the "Universal Naked Driver 0.73 (Compatible with Nexus 5, 4, 7, 10 and S)" but Windows 7 64-bit refuses to pick it up. I use the Device Manager method which shows (when the phone is in "FASTBOOT MODE"):

"Other Devices
> Android 1.0"

When the phone is up & running, Device Manager shows it as:

"Android USB Devices
> SAMSUNG Android Composite ADB Interface"

Any idea how to proceed from here?

-----

Update: After a day went by, I searched Google some more and found a thread that describes exactly my problem:

http://xdaforums.com/nexus-s/help/nexus-s-root-windows-requests-android-1-t878579

Which led me to:

http://xdaforums.com/nexus-s/general/guide-unlock-bootloader-nexus-s-t875580/post9861928#post9861928

Which led me to:

http://pdanet.co/a/

I am rushing to try this now...

-------

Success!
[Nexus S Q&A, Help & Troubleshooting] yati_i:
It helped. Thanks!
[Nexus S Q&A, Help & Troubleshooting] Raakib Zargar:
Well before trying to Relock the device see whether its connected or not. Type this command fastboot devices and hit enter see whether it shows some no. As in a reply if not that means the deivce isnt connected. If the device is connected type this command to relock your device fastboot oem lock and hit enter. Check on your device screen The Lock status will be changed to LOCKED. ;)

If Helped Click Thanks

---------- Post added at 03:30 PM ---------- Previous post was at 03:27 PM ----------

Well before trying to Relock the device see whether its connected or not. Type this command fastboot devices and hit enter see whether it shows some no. As in a reply if not that means the deivce isnt connected. If the device is connected type this command to relock your device fastboot oem lock and hit enter. Check on your device screen The Lock status will be changed to LOCKED. ;)

If Helped Click Thanks :p
[HTC One X] shenye:
I decided that the current icons in ROMs showing battery percentage were way too blurry as they are the qHD versions. I decided to use the Sense 4.0 stock icons to generate a new set. Here they are, these are just the icons and they should be pushed to /system/app/SystemUI.apk/res/drawable-xhdpi/
[HTC One X] D0GuKaN:
Oh they are amazing! I think all of the roms must use these icons. Thanks :)
[HTC One X] leventccc:
thanks very much!
[HTC One X] Werewolph:
Due to the tedious process of pushing one by one, I've made a .bat to do it for you.

http://dl.dropbox.com/u/73556022/battery_install.zip

Unzip the icons, put the .bat into the folder where you've got the icons located and run!
[HTC One X] bobsie41:
Sorry to be such a noob but can i replace these on my stock rooted 1.28 and, if so, can somebody explain to me the easiest way of doing it. :o
[HTC One X] Werewolph:
I don't see why not, It appears to have worked for me. Easiest way to do it is download the icons, unzip them, get the .bat I made and put that in the same folder as the icons, then run the .bat.

EDIT: After pushing them to the phone, it appears they haven't loaded. After pushing, I rebooted but I see no change to the battery status icon.

EDIT 2: Tried pushing just with the .zip, still no change to the stock battery icon.
[HTC One X] bobsie41:
Will this actual work by just replacing the icons?

ie From past experience on other devices, the battery will not display in 1% increments without further adjustments to the apk. :confused:
[HTC One X] hanserson1:
No, in most cases it wont!

Here is the complete working SystemUI.apk. It works only with a rooted rom (1.28.401.9).

Push it to /system/app/ (it is no update.zip!!!), restart the phone.

Do a backup first.

Cheers
[HTC One X] jotha:
Hmm, have you got also the 100 charging_animation icons, the full and the unknown icon? I'd make a complete working 100% battery mod out of them. Been looking for better quality stock icons since some time. The animation in your systemUI is from circle-battery mod.
[HTC One X] shenye:
look inside VillainROM 1.1.1. The apk for it is in VillainROM-1.1.1-endeavoru_unsigned.zip/extra/batt/app/SystemUI.apk
[HTC One X] jotha:
May I use them in a stand-alone battery% mod, fully credited ofc?
[HTC One X] shenye:
Go ahead.
[HTC One X] wavemeister:
The circular battery indicator that Irkan made for non rooted Desires works for non rooted One X :D
[HTC One X] Pim Haerkens:
Can you post a link to that circular battery indicator by Irkan :)
[HTC One X] Pjevser:
I downloaded the pics and the install bat.

But i get a error saying file or directory don't excist

And if i try and download the SystemUI.apk and push it i just get another error saying it "Read-only file system" Do i really have to root it first?
[HTC One X] baxadfrukt:
it is the same for me. I can't change permission in root explorer neither. Can not find the button "mount r / w". Yes, the phone is rooted. :mad:

edit: finally I solved it.
[HTC One X] KevinC4:
Nice work dude! I love you :D
[HTC One X] Dave©:
OR just get ZDBox?

Cheers.
[HTC One X] Fruktsallad:
Does this work on 1.29 roms?
[HTC One X] jotha:
You can download a mod with these icons for 1.29 on my thread http://xdaforums.com/showthread.php?t=1588789
[HTC One X] klarmacker:
Please do NOT use with any other base or stock rom.????
[HTC One X] mrakifa:
What did u do to solve it?
[HTC One X] JeepFreak:
So, what else needs to be changed within systemui.apk in order to get it to report 1% increments? I'm trying to make this work on the AT&T version.

Thanks!

Billy
[HTC One X] fpaz:
Hi, How did you manage to make it work? Everytime i push SystemUI.apk and then reboot, the status bar is missing. I think I followed all the steps correctly but still to avail.
[HTC One X] THEindian:
Hey, i wanted to add this to a rom on a different device. I know you have to resize this stuff for my phone, what do you have to change in systemUI.apk to make this worky? Thanks a bunch!
[HTC One X] blessup:
will this work on a stock rooted htc s one?
[HTC One X] Oran-nUxX:
hmmm, i cant get this working.

tell me if im doing it right.

i connect the phone while in recovery to the pc via usb.

then i run the bat with the icons. it's says its transfer okay, and when i reboot

it says Android is upgrading, but the icons wont set... still the stock icons...

can you guys give me the quick instructions?
[HTC One X] pauley:
Looking for same icons but without percentage

Hi I came across this thread via search looking for stock One X icons in 1% increments. You wouldn't happen to have these icons but without the percentage overlay would you? Thanks!
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sharp2G:
I have a flip case and was wondering what APP actually makes use of the close to lock and open to unlock feature similar to the iPad. I tried a few APPS and all of them have their flaws. Mostly 1) the proximity sensor is too sensitive and 2) it appears the light sensor on the note is horrible.

It'll be great if someone can give me some advice on this.

Thanks in advance! :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] Th3Aaron:
There no similar app like that unless u use the proximity sensor because the ipad uses magnet to lock and unlock the device which the galaxy note dont have

And also i found a app called smart screen off for android using proximity sensor close to what ur finding

But correct me if i am wrong :)
[Motorola Droid X2] Perpetual Void:
So I wrote a wall of text the erased it. I want to build an ICS ROM from scratch for the Droid X2. I know of some of the issues I face. One being AOSP and setting up USB.

Anyone know how I can set it up to work so I can build and test?

Yes I'm new, but I want to do this and I have to start somewhere.

I know I may be biting off more than I can chew, but I want to do this.

I would appreciate help in any form.
[Motorola Droid X2] thelowend:
Wouldn't be bad idea to check out the Atrix and/or Razr forums and see what they have going on.

This would be like eating an entire cookie cake in one bite and one swallow. However, we have one guy working on something similar so it isn't impossible. Just difficult.
[Motorola Droid X2] Perpetual Void:
I know that Motorola made a Razr that is for devs. They sell it to to consumers. So they have it good.

I do have another question. Since android is linux based isn't a ROM just pretty much the same thing as say KDE or GNOME? What are the major differences or are there any? To me android just seems like a GUI for the underlying linux kernel.

Stop me if I'm in the wrong forum now.
[Optimus One, P500, V General] gymfreak7855:
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome :DD
[Optimus One, P500, V General] alobo:
If you haven't already, I'd highly reccomend setting up a build environment and trying to sync the cm repos. Once you have the code, you can play around and see what you need from there, in terms of an IDE.
[Optimus One, P500, V General] gymfreak7855:
Fantastic, I shall get onto that right away.
[Optimus One, P500, V General] dnle71:
May the force be with you, bro!:D
[Optimus One, P500, V General] aspee:
Read some android books.you already know c++ and Java so you will become good dev.

For playing with code you need.

Ubuntu.

Notepad.

sdk & adb.

And this "good luck!"
[Optimus One, P500, V General] rishabh22:
Yeah! Actually even i am interested in learning.

I know c/c++. No java yet :(

I'll be finishing my exams on the 3rd of may and would have around 2 months of vacations to learn :D

So guidance would really be appreciated. Do we need a separate sdk for linux based os? I have sdk on windows, isnt that enough?

What is the advantage of using linux for android development? I have backtrack(ubuntu based) on vmware. Will it do?
[Optimus One, P500, V General] adfad666:
Essential Software:

Ubuntu 11.10 (dual boot not virtual machine, it's too slow)

Eclipse IDE with the Android plugins

Meld (for easy directory compares)

Mastery of the terminal especially git / repo commands

Github account

CyanogenMod gerrit account

Google Plus account

I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.

(I think .so means shared object, .ko means kernel object. Makes sense to me anyway :))

The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!

Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds ;))

The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually ;)

I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.

Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
[Optimus One, P500, V General] rishabh22:
Can't we practice on something less taxing than the the whole cyanogenmod, like maybe some prebuilt system apps?

I have allocated 2.9gb of ram and enough cpu to my vm for it to run smoothly :D so speed isn't really an issue here ;)

Will backtrack do or would ubuntu be better(backtrack is a network security related os based on ubuntu only)

And how important is java. I have two months of almost pure vacations(just have to make a project) so time wont be much of an issue and i'll anyway be doing java in a year or two at college so starting now wont be any harm.

BTW just curious why is g+ account an essentiality here? o.O

Edit

Oh and yeah ill be switching from win to linux and that IS going to be a pretty big problem :/

I don't even properly know what a kernel is and what it does.

Edit2

Iv added you to my circles adfad please add me.
[Optimus One, P500, V General] Lycan:
These guides could help! :)

http://xdaforums.com/showthread.php?t=1272270

http://xdaforums.com/showthread.php?t=667298
[Optimus One, P500, V General] ZatBaloo:
I'm starting learning too. I already know the android framework and java.

I have some problems when I try to compile for a device.

francesco@PackardBellbuntu:~/WORKING_DIRECTORY$ source build/envsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash

It doesn't include device/cm_device_lge_p500/vendorsetup.sh (I'm using androidmeda's sources) and if I run "lunch":

francesco@PackardBellbuntu:~/WORKING_DIRECTORY$ lunch

You're building on Linux

Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_maguro-userdebug
5. full_toro-userdebug
6. full_panda-eng
7. cm_anzu-userdebug
8. cm_captivatemtd-userdebug
9. cm_coconut-userdebug
10. cm_crespo-userdebug
11. cm_crespo4g-userdebug
12. cm_epicmtd-userdebug
13. cm_galaxysbmtd-userdebug
14. cm_galaxysmtd-userdebug
15. cm_galaxys2-userdebug
16. cm_haida-userdebug
17. cm_hallon-userdebug
18. cm_i777-userdebug
19. cm_iyokan-userdebug
20. cm_mango-userdebug
21. cm_maguro-userdebug
22. cm_p1-userdebug
23. cm_p1c-userdebug
24. cm_p3-userdebug
25. cm_p4-userdebug
26. cm_p4tmo-userdebug
27. cm_p4vzw-userdebug
28. cm_p4wifi-userdebug
29. cm_p5-userdebug
30. cm_p5wifi-userdebug
31. cm_p920-userdebug
32. cm_p970-userdebug
33. cm_p990-userdebug
34. cm_p999-userdebug
35. cm_pyramid-userdebug
36. cm_satsuma-userdebug
37. cm_shooter-userdebug
38. cm_shooteru-userdebug
39. cm_smb_a1011-userdebug
40. cm_smultron-userdebug
41. cm_tenderloin-userdebug
42. cm_tf101-userdebug
43. cm_tf201-userdebug
44. cm_toro-userdebug
45. cm_urushi-userdebug
46. cm_vibrantmtd-userdebug
47. cm_wingray-userdebug
48. cm_zeus-userdebug

Which would you like? [full-eng]

There isn't our phone.

I think it can't know I've added another device. Does anybody know how to solve this problem? I'm sure it's something pretty stupid...

P.S. I'm using Ubuntu 11.10

EDIT: Ok, I think I've done something wrong syncing androidmeda sources.

What I've done is:

francesco@PackardBellbuntu:~$ cd WORKING_DIRECTORY
francesco@PackardBellbuntu:~/WORKING_DIRECTORY$ repo init -u git://github.com/androidmeda/cm_device_lge_p500.git

repo initialized in /home/francesco/WORKING_DIRECTORY
francesco@PackardBellbuntu:~/WORKING_DIRECTORY$ repo sync
Fetching projects: 100% (248/248), done.
Syncing work tree: 100% (248/248), done.

I've done this for git://github.com/androidmeda/cm_vendor_lge_p500.git and git://github.com/androidmeda/lge-kernel-msm7x27.git too. I can't see them though.

Solved the problem. Cloned androidmeda's device folder into device/lge/p500

EDIT2: FINALLY COMPILING!

EDIT3:

make: *** Nessuna regola per generare l'obiettivo "device/lge/p500/init.p500.usb.rc

It's 'No rule to make target'. I don't know what to do, I can't even find that file, but I've got a file called init.thunderg.usb.rc

Solved renaming init.thunderg.usb.rc to init.p500.usb.rc. It's compiling now
[Optimus One, P500, V General] gymfreak7855:
Thanks man :) Your work has really inspired me and yes haha I am moving from windows all though I have had some experience with ubuntu before. It makes sense about the extensions. Thanks for your advice :) Will ask questions if I need to :D
[Optimus One, P500, V General] ZatBaloo:
I'm having problems compiling using make -j4

make -C kernel/lge/p500 O=/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=/home/francesco/WORKING_DIRECTORY/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- cyanogenmod_p500_defconfig
make[1]: ingresso nella directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make[1]: *** Nessuna regola per generare l'obiettivo "cyanogenmod_p500_defconfig". Arresto.
make[1]: uscita dalla directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make: *** [/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ/.config] Errore 2
make: *** Attesa per i processi non terminati....

'No rule to make target "cyanogenmod_p500_defconfig". Stop'

Any idea?

When I've used make -i I haven't had this problem

EDIT: Solved moving cyanogenmod_p500_defconfig in p500 folder

Ok, I'm trying to tidy up everything a bit. I've noticed there is a new github. I've seen this:

LG P500 ICS Setup

Copy/paste it WORKING_DIR/.repo/local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/lge/p500" name="p500/cm_device_lge_p500" remote="github" revision="master" />
<project path="vendor/lge/p500" name="p500/cm_vendor_lge_p500" remote="github" revision="master" />
<project path="kernel/lge/p500" name="p500/lge-kernel-msm7x27" remote="github" revision="android-ics-msm-2.6.35" />
</manifest>

I have no local_manifest.xml. Do I have to create it? Or do I have to add these three lines to manifest.xml (which is in .repo folder)? And do I have to add toolchain too?
[Optimus One, P500, V General] vlt96:
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)

And does it need to defragment, or is it safe just like that?:)
[Optimus One, P500, V General] rishabh22:
No idea, never tried.

If you understand anything: :p

http://en.wikipedia.org/wiki/Wubi_(Ubuntu)

Why dont you use vmware instead?

Now someone help me with this:

Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:

What can i do about it?
[Optimus One, P500, V General] vlt96:
VM got me an error when installing saying it is incompatible with win xp (I could install, but didn't wanna risk, windows is harder to recover than Android)
[Optimus One, P500, V General] rishabh22:
try using virtual box.

https://www.virtualbox.org/
[Optimus One, P500, V General] vlt96:
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
[Optimus One, P500, V General] ZatBaloo:
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.

BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4 :rolleyes:
[Optimus One, P500, V General] rishabh22:
huh? both vmware and virtual box arn't compatible with xp o.O

why the heck were u trying to install win7 video drivers on xp :D

And why dont you dual boot?

---------- Post added at 08:37 PM ---------- Previous post was at 08:34 PM ----------

if you have enough ram and a good enough processor there shouldnt be any problem in using a virtual machine. i use backtrack with 2.9/4gb ram and am able to use both windows7 and backtrack simultaneously without any problems/lag :D

I have an i5 2.3-2.9GHz
[Optimus One, P500, V General] ZatBaloo:
Sure it depends on what you want to compile. It was just a suggestion to compile faster. You probably won't notice lag, but it will take more to compile everything.
[Optimus One, P500, V General] vlt96:
I am asking about dual-boot because this is a family PC and my dad will get mad if it asks what OS every time, except that is fine for me :D
[Optimus One, P500, V General] rishabh22:
You can set the default os to win7 and the timer to 5sec. Then it wont bother anyone ;)
[Optimus One, P500, V General] ZatBaloo:
I don't understand what you mean with dual boot then...

When you boot it will simply asks to choose an OS, but you just have to select the one you want to boot and press enter. This is what dual boot is.
[Optimus One, P500, V General] rishabh22:
That os selection screen is the thing that causes problems with parents(they find it annoying :p). I had had this problem too when i had installed ubuntu for the first time on my pc :p.
[Optimus One, P500, V General] vlt96:
That exactly what I am talking about :D any way to disable the dual-boot screen or show it hidden for 5 secs or something (or expand the idea I saw above, not by u, the timer rishabh22 said)

Oh and dual-booting needs extra partition or any defragmentation or something? Just install, no risk?
[Optimus One, P500, V General] ZatBaloo:
Hmm... What about making default timer 0 seconds?
[Optimus One, P500, V General] vlt96:
Won't that disable dual-boot?
[Optimus One, P500, V General] vlt96:
hmm...

OK any danger, do I have to defragment or anything, partition, or just install and done?
[Optimus One, P500, V General] ZatBaloo:
I can't really help you here because I haven't used wubi.

Maybe you should defragment, Windows performance should be better.

Anyway, Ubuntu needs at least two partition (they can be logical partition) and a hard disk can only have four primary partitions. I don't know how your hard disk is partitioned, but remember that partitioning a hard disk is a bit dangerous, you could lose your data.
[Optimus One, P500, V General] rishabh22:
Whats the point of dual booting then :p

Looks like ur a noob at multibooting :D

Im currently using windows7, windows8 consumer prev, mac os x lion and ice cream sandwich on my lappy(through multi-booting) and backtrack on vmware workstation :cool:

Multibooting simply requires separate hard disk partitions(preferably primary) thats all. Defragmentation is only required if there is a lot of fragmentation on any drive(s). Oh and i have never tried using wubi but if you use a live cd/usb to install ubuntu, you will have to also install ubuntu's native bootloader(grub) which will replace the windows bootloader(and is very ugly :p)

This can be overcome by using easybcd(Use the non-commercial one, its free) to manage ur bootloader.:)

You can also use it to set the default os and set the timer for automatic loading.