I have run the following commands -
I cleaned up the existing build using command - make clean
source build/envsetup.sh OR . build/envsetup.sh
lunch full_crespo-userdebug
make -j4 (make fastboot adb)
adb reboot bootloader
fastboot -w flashall
I did these in my MAC OSX 10.9.1 and for the phone Nexus S (crespo). I have no clue why it is not generating the android-info.txt file. Every time I run fastboot command, it says it's missing. However, I have also set up the path ANDROID_PRODUCT_OUT in my .bash_profile file. Still no luck. Can anyone suggest anything?
Related
I have build the android-6.0.1_r45 system successful.But when I tried to flash it to nexus 5x, I found an error could not load boot.img.I checked my /generic fold,there is ramdisk.img,system.img and userdata.img. Where is the boot.img?
WHY it is not exist in my build version.
I used this "lunch aosp_arm-eng"
I found the answer.
"lunch aosp_arm-eng" refers to a complete build for the emulator,it is ONLY for emulator. And I want to falsh NEXUS 5X,so I MUST build with "aosp_bullhead-userdebug".OH,HOLYSHIT
I got the same error when I was ready to flash the Neuxs 5X in a new terminal.
$ fastboot flashall -w
error: could not load boot.img
Here's my solution, the key step is to run "lunch" cmd bofore you run "fastboot flashall -w". hope it helps.
$ cd android-7.1.1_r14/
$ lunch #select 21. aosp_bullhead-userdebug
$ cd out/target/product/bullhead
$ fastboot flashall -w
And I guess, we don't need to run lunch first when we just run fastboot flashall -w in the same terminal where we build the android system.
I built a recovery.img (using flo lunch setup) for my Nexus 7 device using AOSP source code. I can use it like:
$ adb reboot bootloader
$ fastboot boot recovery.img
However, when I unpack and re-pack the recovery.img file using abootimg utility (without making any modifications to ramdisk) and retry to boot using recovery.img, my Nexus 7 simply goes into Google splash screen loop. Device keeps rebooting after coming to splash screen.
For details, here are my steps:
$ ls
recovery.img
$ abootimg -x recovery.img
$ abootimg-unpack-initrd initrd.img
$ abootimg-pack-initrd myinitrd.img ./ramdisk
$ abootimg -u recovery.img -r myinitrd.img
Resulting updated recovery.img doesn't work as intended, even though its simply an unmodified copy of original recovery.img file.
I had the same problem some weeks ago, but with the boot image, not the recovery... The only solution I found to be working is to extract the initfs from the img file extracted from the device after being installed by using dd command:
dd if=/dev/block/mmcblk0pX of=/sdcard/recovery.img
(Where X is the number of your recovery partition)
You can find the number of your recovery partition by using:
ls -l /dev/block/platform/soc.0/7824900.sdhci/by-name
(Please, note this path may be device specific, but should be similar for all. This one worked for Sony Xperia X Compact device)
Then, the recovery.img file being extracted, you can now extract the initfs and repack again
I just installed the android SDK with eclipse, straight from google's webpage, but for some reason it won't run, even when I am in the correct directory. When I use 'ls' (crunchbang linux) it show's that the file is there, but when I try to run it, it returns no such file or directory. Any ideas?
type script in your command if you adb configured.
adb stop-server
adb start-server
adb devices
compile.bat:
set PATH=%PATH%;H:\Source\Program\sdk\tools;
set PATH=%PATH%;H:\Source\Program\sdk\platform-tools;
cd sdk\tools
emulator -avd emulator2
adb wait-for-device
cd sdk\platform-tools
adb install -r SP.apk
Here is my batch file to run a .apk into an emulator. It is from a CD, my adviser wants to run my app in his computer using my CD. My SDK folder is also in the CD and is the same directory with my compile.bat. Is my setting of path correct? Also there is an error when I test the compile.bat from the cd, it says too many files specified; only take APK file and verifier file.
The adb install command also become like this adb install -r SP.apk apk P.apk T_ROOTPROJECT_NAME-debug.apk. I only want to install SP.apk in the emulator.
When I run the commands in cmd, not in a batch file it is working.
Also I want to know how to enable the camera in my laptop to the emulator. My app requires the camera to run.
Can someone help me please? I am begging you. I need this tomorrow its for my graduation. Thank you.
I have been developing a project app to learn about android, I can upload my app to my htc desire on my desktop using linux ubuntu and eclipse, I have the same setup on my laptop but I cannot upload apps to my phone. When I try to install the app to the phone it shows up in avd manager as ??????? ????? Unknown, I've googled this and the general advice is to setup a script which I have tried but I get an error message saying path does not exist, when I try to kill the adb server it says no such command even though I am in root and can see the adb file in the sdk folder, I am completely lost here anyone help with this.....
Thanks in advance
Looks like you are running Linux on your laptop. Try these steps as your normal user:
If you haven't already set up the udev rules for your device, follow these steps:
1. sudo gedit /etc/udev/rules.d/51-android.rules
2. copy/paste this line into that rules file: SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
3. sudo service udev restart
Then, restart the adb server:
cd </path/to/your>/android-sdk/tools directory
sudo ./adb kill-server
sudo ./adb start-server
If it's not there already, you can add the /path/to/your/android-sdk/tools to your $PATH variable so you don't need to cd to the directory and also won't have to use the ./ to use the adb command.
You may need to unplug/replug the USB cable to your phone after you do all this.