Q&A for [APP] Linux-on-Android project (Complete Linux Installer)
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [APP] Linux-on-Android project (Complete Linux Installer). If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
+1 Like Tweet Rate Thread Add Poll [Q] Android 4.4.2 i9506 "Complete Linux Inst
"Complate Linux Installer" program after I installed the "ubuntu image", "BusyBox", "terminal emulator" and "vnc" I've installed.
The phone has root;
But "Complate Linux Installer" from the image, in the image whenever you start with the error I'm having. If you have information or who will be able to direct; I'm waiting for help.
"Checking loop device... MISSING
Creating loop device... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[130]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied FAİLED
Error: UNABLE TO CREATE LOOP DEVİCE!
1 [email protected]:/stoage/extSdCard/ubuntu #"
you should type 'su' on the first to get the root permission.
Sent from my A0001 using XDA Free mobile app
busyboX permission denied
Hi,
i have this problem
[email protected]:/ $
[email protected]:/ $ cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
[email protected]:/storage/emulated/legacy/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[81]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/storage/emulated/legacy/ubuntu #
the app have permission root. I have reinstalling busybox from launch, but not work.
i have change permission in folder data/data/com.zpwebsites.linuxonandroid/files/ in 0777, but not work.
thanks
damooo90 said:
Hi,
i have this problem
[email protected]:/ $
[email protected]:/ $ cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
[email protected]:/storage/emulated/legacy/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[81]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/storage/emulated/legacy/ubuntu #
the app have permission root. I have reinstalling busybox from launch, but not work.
i have change permission in folder data/data/com.zpwebsites.linuxonandroid/files/ in 0777, but not work.
thanks
Click to expand...
Click to collapse
you don't get the permission .if you get the '$' will be turn into '#'
Sent from my A0001 using XDA Free mobile app
Linux on Android
Hi,
when I start Linux on the App "Linux on Android" i see the folling Error Message "/root/init.sh: line 133 [: ==: unary operator expected". I can't not start the VNC Connection. Whout I con Do?
Thanks for request, Stefan Harbich
I can not run..
How to run on Xiaomi Mi4, It's have internal rom don't have sd card..
makgun said:
I had tried your bootscript.sh but it doesn't work again.
Full log with terminal is
"[email protected]:/ $
[email protected]:/ $ su
/data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh
/data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh
ox chroot /data/local/mnt /root/init.sh <
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
Start VNC server? (y/n)
y
/root/init.sh: line 110: [: ==: unary operator expected
Start SSH server? (y/n)
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
* Starting OpenBSD Secure Shell server sshd ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
[ OK ]
If connecting from a different machine on the same network as the android device use the address below:
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
eth0: error fetching interface information: Device not foundSave settings as defaults? (y/n) (You can always change it later in the app)
y
Config saved to /root/cfg/linux.config
To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
[email protected]:/# "
Click to expand...
Click to collapse
This is happening becuase of SU, chainfire's uses it's own shell.
Clockworkmod SU, defaults back to /, so the cd made before su command cause script to fail. On newer android ChainsDD doesn't work.
App needs to be updated to do su before cd for CWM, and or run su with these options
for Chainfire's "su -p -s /system/bin/sh"
Great app guys. My only issue besides a black screen I've been battling with vnc..is when I download a distro and attempt to open to zip I get "bad file size" and a series of numbers. The only one that didn't do that to me was the small version ofdebian. It anyone has the large or small version of either ubuntu id appreciate a link. And yes I've tried redownloading multiple times.
The torrents have no seeders and the sound forge site always gives be a bad download.
Also if anyone has a good vnc alternative id love to hear about it
nowucmenowudont3 said:
Great app guys. My only issue besides a black screen I've been battling with vnc..is when I download a distro and attempt to open to zip I get "bad file size" and a series of numbers. The only one that didn't do that to me was the small version ofdebian. It anyone has the large or small version of either ubuntu id appreciate a link. And yes I've tried redownloading multiple times.
The torrents have no seeders and the sound forge site always gives be a bad download.
Also if anyone has a good vnc alternative id love to hear about it
Click to expand...
Click to collapse
The torrents seem to have no seeders, I would download from sourceforge, try the 12.04 imgs they seem to work for the bigger imgs. Can always update them to 13 or 14.
need help
i got this app /terminal / vnc/ images and im sure my kernel support loop devices but when i press 'start linux" button it just opens terminal but nothing happens and i dont have any clue what to do (i tried kali and ubuntu images)
(sorry for my bad english)
Hello world,
So I recently tried this Complete Linux Installer. I did all the steps as I should but when I click "Launch" it only opens Terminal Emulator and nothing happens.
So I decided to run the commands manually. It says:
MD5 file found, use to check .img file? (y/n)
n
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Device or resource busy
Error: Unable to mount the loop device!
Or:
bootscript.sh /sdcard/ubuntu/ubuntu-13.10.LARGE.ext4.img <
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... md5sum: can't open 'ubuntu-13.10.LARGE.ext4.img': No such file or directory
FAILED!
Error: Checksum failed! The image is corrupted!
Does anybody know what is wrong?
Edit:
Got it working now. Big thanks to developers
Problem with launching linux.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Everything what Complete Linux Installer do,is this. And its different of that, what it should do. This result I got everytimes when I want to start linux. Know anybody what with this?
Blank screen
I've got a blank screen in the VNC Client. Everything seems to be running fine though. I tried running Debian.
@GrandMarshall I did have the same issue, but pressing enter with my tablet's keyboard seems to do the trick =)
Problem in Ubuntu Chrome and Mozilla...
It seem that i can open it with connection... but chrome didn't showing the pages even loaded. And the built-in mozilla always crashes...
How can i update , or install some apps or browser in Ubuntu 12 in ? Or How to paste some file and manually install it via Terminal Emulator?
Pls help guys.. thanks a lot in advance for those who will help me
-noob
---------- Post added at 01:11 PM ---------- Previous post was at 12:19 PM ----------
Mozilla always crashes : , help to install or paste the application file to ubuntu dorectory ...
VNC Connection Refused
I've been trying to install Kali Linux on my Samsung Galaxy S3 GT-i9300, but the VNC connection does not seem to work for me. I've tried reinstalling everything several times. I've done everything after the book.
Each time I try to connect this error comes up.
VNC connection failed!
failed to connect to localhost/127.0.0.1 (port 5900):
connect failed: ECONNREFUSED (Connection refused)
I dont have any idea what to do now.
installation of wn722n wifi adapter
Hey I'm trying to connect an external wifi adapter (tp-link wn722n). It shows in lsusb but when I run iwconfig it Returns no wireless extention. Tried to download ath9k and install but now it returns kenral-headers not installed. Now when I'm Trying to install kenral headers (apt-get install linux-headers) it returns wit various options. Which one do I choose? Am I missing something ? Please help.
Got Kali running
I got Ubuntu 13.10 small running as well as kali ext4 the extracted 4 GB in size version
ubuntu runs almost out of the box
for kali I have edited a few file. i'm just gonne post a few but if you want to know what is edited I got some time to sum it up
bootscript.sh version 7.9 added some lines and fixed personal external sdcard
/home/kalilinux/.vnc/xstartup changed desktop start command
/home/kalilinux/.config/lxpanel/LXDE/ copied content from /usr/share/lxpanel/profile/default/* or /usr/share/lxpanel/profile/two_panels/* on the picture I used two_panels profile obviously
/etc/timezone for bash time
/etc/localtime for X time
kalilinux.ext4.img on a linux desktop mounted the image and edited /root/init.sh fixed typo in first boot part. so the image on the site is by default not good I could share mine if anyone is interested
/root/init.sh fixed permissions on the external sdcard as well as added symlinks from the home directory to the manualy added mounts
fixed apt-get key problem so everything is working just have to update the apt-get key sollution to the edited image that would make it complete
lines edited in bootscript.sh and /root/init.sh depend on each other
so not too much and I prefer Kali over ubuntu
s1.postimg.org/qbd8fa84f/kalilinux.png
as seen here got 1.4Gb free space
s12.postimg.org/hzarrjq31/kalilinux1.png
sorry no working links cause I never post stuff http the above lines to see the images
---------- Post added at 03:01 PM ---------- Previous post was at 02:46 PM ----------
HDFord said:
I've been trying to install Kali Linux on my Samsung Galaxy S3 GT-i9300, but the VNC connection does not seem to work for me. I've tried reinstalling everything several times. I've done everything after the book.
Each time I try to connect this error comes up.
VNC connection failed!
failed to connect to localhost/127.0.0.1 (port 5900):
connect failed: ECONNREFUSED (Connection refused)
I dont have any idea what to do now.
Click to expand...
Click to collapse
on your device after startup and having root try :/ # getenforce
this should output "Enforcing or Permissive" you want Permissive and if you have Enforcing change it with :/ # setenforce 0
Enforcing being 1
Permissive being 0
Exit the linux enviroment and reload the image again
if you can now login with VNC on your android device localhost on port 5900
if this worked add " setenforce 0 " without quotes on the first empty line available of your bootscript.sh
and add " setenforce 1 " on the last line of the bootscript.sh
Let me know how you get on
unset LD_PRELOAD
If you get ERROR: ld.so: object 'libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
add " unset LD_PRELOAD " without quotes on the first empty line of your bootscript.sh
Hi,
How may I make ubuntu play sounds through my Zenfone 6's audio system?
thanks!
Pedro
Related
Hello, maybe here someone will help me
I'm writing a file manager app and I want to allow it for browsing with root permissions.
All I have so far is creation of a Process object using Runtime.exec("su"). Then I get output stream from it and write "ls" command. And here goes the question. How to read the output of the "ls"? Getting the input stream from the process gives me stdout of the "su" which is useless.
glodos said:
Hello, maybe here someone will help me
I'm writing a file manager app and I want to allow it for browsing with root permissions.
All I have so far is creation of a Process object using Runtime.exec("su"). Then I get output stream from it and write "ls" command. And here goes the question. How to read the output of the "ls"? Getting the input stream from the process gives me stdout of the "su" which is useless.
Click to expand...
Click to collapse
Use the -c option of su:
Code:
su -c 'ls -l /system/'
I think I'm closer, but still it doesn't work
I have this:
Code:
p = Runtime.getRuntime().exec("/system/bin/su -c 'ls -d -1 "+directory.getAbsolutePath()+"/*'");
So the command for a directory /data will be:
Code:
/system/bin/su -c 'ls -d -1 /data/*'
But it gives me:
Code:
W/su (13979): request rejected (0->0 'ls)
I have tried putting the command's parts into array but then system asks for su permission on every command. For ex. ls /data needs permission and ls /system needs another permission beacuse the command is different.
Not much I can think of to do about that. I had a similar issue once upon a time and I dealt with it by using a script that read its commands from a data file. I'd write the datafile to my program's designated directory (no special permissions required), then run a single command with su and that script would read the datafile to know what to do, otherwise, I had a ****load of su requests bothering the user.
You've got a point there, but making it work with a file manager, where the commands are related to user interaction would be very difficult. Anyway I will put it into my consideration.
I wonder how all these root explorers are made but none of the developers, which I asked so far, were so kind to give me some tips
glodos said:
You've got a point there, but making it work with a file manager, where the commands are related to user interaction would be very difficult. Anyway I will put it into my consideration.
I wonder how all these root explorers are made but none of the developers, which I asked so far, were so kind to give me some tips
Click to expand...
Click to collapse
Well, I suppose you could keep a process open to a shell with root permissions and once open, keep input and output pipes routed to it and send and receive commands as needed.
Gene Poole said:
Well, I suppose you could keep a process open to a shell with root permissions and once open, keep input and output pipes routed to it and send and receive commands as needed.
Click to expand...
Click to collapse
Well, that's what I've tried to do, but as I mentioned in the first post, output pipe gives me stdout of the su process which doesn't write any output (but "ls" does).
glodos said:
Well, that's what I've tried to do, but as I mentioned in the first post, output pipe gives me stdout of the su process which doesn't write any output (but "ls" does).
Click to expand...
Click to collapse
No, I don't think you're following me. Just run su -c 'sh' and it should run a shell and keep it open. From there, you create an input stream, output stream and possibly an error stream, then write commands like "ls -l /system\n" (the \n triggers the shell to execute it) to the output stream, then read the results form the input stream. You keep doing this as needed and when you're done just send "exit\n".
Oh, I understand now. I'll try it ASAP.
Edit:
It works now, but I have problems with stopping the loop. Here is my piece of code:
Code:
String[] cmd = new String[]{"su", "-c", "/system/bin/sh"};
console = Runtime.getRuntime().exec(cmd);
BufferedWriter stdin = new BufferedWriter(new OutputStreamWriter(console.getOutputStream()));
stdin.write("ls -d -1 "+directory.getAbsolutePath()+"/*\n");
BufferedReader stdout = new BufferedReader(new InputStreamReader(console.getInputStream()));
String read;
data1 = new String();
while((read=stdout.readLine())!=null){
data1+=read + "\n";
}
The problem is, that it hangs at some point on invocation of "stdout.readLine()". I have read that it waits for some data to come and it will never be null.
Furthermore if my ls command returns nothing (which can happen) it always hangs forever on readLine().
Anyway I'll try to do something with this. Maybe there is a workaround and reading will not block.
Thank you for your effort, it was really helpful.
glodos said:
The problem is, that it hangs at some point on invocation of "stdout.readLine()". I have read that it waits for some data to come and it will never be null.
Furthermore if my ls command returns nothing (which can happen) it always hangs forever on readLine().
Anyway I'll try to do something with this. Maybe there is a workaround and reading will not block.
Thank you for your effort, it was really helpful.
Click to expand...
Click to collapse
Sorry to ressurect such an old thread. I'd been having the same problem with reads blocking using BufferedReader, InputStream and other variants. Turns out BufferedReader has a ready() method which indicates whether a read() will block. This code works for me:
Code:
String outputStr;
BufferedReader reader = new BufferedReader(new InputStreamReader(suProcess.getInputStream()));
while (reader.ready()) {
outputStr += reader.readLine();
}
Hope it helps someone from the repeating the same frustrations. Heck I hope it helps me in the future in case I forget this
Hi all,
I'm trying to embed an ssh server to the app I'm developing. Hopefully the server start correctly (it is implemented using the apache mina library).
The problem is that when I try to login using putty on my desktop computer, I get this error:
Code:
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: can't find tty fd
/system/bin/sh: warning: won't have full job control
I've already tried with root permissions, but I get the same error.
What am I doing wrong ? Thanks for the help !
So I'm currently building an AOSP Marshmallow based ROM (Chroma) to my Android One device (sprout).
I've modified the sepolicy to make RIL works, etc.
But I have one thing, adb doesn't seem to work properly. I have to sudo adb shell to get to adb. And if I do it on Windows, I will get straight to root user in phone's shell (# instead of $).
Here is my device tree:
https://github.com/kclkcl/android_device_google_sprout-common
As you can see there is an adbd.te file in sepolicy folder. I could not successfully build the ROM with this file, if I delete this, the build will go fine and complete.
Here is the error:
Code:
evice/google/sprout-common/sepolicy/adbd.te:2:ERROR 'unknown type auditd_log' at token ';' on line 14045:
#line 1 "device/google/sprout-common/sepolicy/adbd.te"
allow adbd auditd_log:dir getattr;
checkpolicy: error(s) encountered while parsing configuration
make: *** [out/target/product/sprout8/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
I wonder what's wrong with my sepolicy, and why I couldn't build with that adbd.te file there. Do I need that policy to be able to use adb normally?
As you can see in the picture, when I type adb devices, it list my device, but it says no permission
http://imgur.com/LMqwldc
Hi, I have a Hikey 970 development board. When I tried to build system image for the device, some strange error occurred and I have no idea of what is going on. I am pretty new to AOSP and kernel, so I hope someone can help me, Thanks!
I followed procedures in Android source website to set up the environment, and after I finish downloading the AOSP source code for Hikey 970, i used
(1) source ./build/envsetup.sh
(2) lunch hikey970-userdebug
(3) make systemimage -j32
to build system image. However, error occurred as follow:
[ 60% 34434/56804] //frameworks/base/core/res:framework-res aapt2 link
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages
out/soong/host/linux-x86/bin/aapt2 link -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk --private-symbols com.android.internal --no-auto-version --no-static-lib-packages --manifest out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/manifest_fixer/AndroidManifest.xml -A frameworks/base/core/res/assets --min-sdk-version Q --target-sdk-version Q --version-code 27 --version-name Q --product emulator -c en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el_GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_CA,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO,nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh_HK,zh_TW,am_ET,hi_IN,en_US,af_ZA,am_ET,ar_EG,ar_XB,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK,de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es_ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_ES,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT,iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo_LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_MM,nb_NO,ne_NP,nl_NL,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA --java out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R --proguard out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options --output-text-symbols out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/res.list -R @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/overlay.list && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -C out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R -D out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R &&out/soong/host/linux-x86/bin/extract_jar_packages -i out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages --prefix '--extra-packages '
out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/drawable-hd_common/aapt2/frameworks/base/core/res/res/drawable-hdpi_progressbar_indeterminate_holo8.png.flat: error: failed to open.
error: failed parsing input.
20:08:20 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
I couldn't find an answer to this error. Any help will be appreciated, thanks!
Hi, I have a Hikey 970 development board. When I tried to build system image for the device, some strange error occurred and I have no idea of what is going on. I am pretty new to AOSP and kernel, so I hope someone can help me, Thanks!
I followed procedures in Android source website to set up the environment, and after I finish downloading the AOSP source code for Hikey 970, i used
(1) source ./build/envsetup.sh
(2) lunch hikey970-userdebug
(3) make systemimage -j32
to build system image. However, error occurred as follow:
[ 60% 34434/56804] //frameworks/base/core/res:framework-res aapt2 link
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages
out/soong/host/linux-x86/bin/aapt2 link -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk --private-symbols com.android.internal --no-auto-version --no-static-lib-packages --manifest out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/manifest_fixer/AndroidManifest.xml -A frameworks/base/core/res/assets --min-sdk-version Q --target-sdk-version Q --version-code 27 --version-name Q --product emulator -c en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el _GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_C A,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO, nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh _HK,zh_TW,am_ET,hi_IN,en_US,af_ZA,am_ET,ar_EG,ar_X B,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK, de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es _ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_E S,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT, iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo _LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_M M,nb_NO,ne_NP,nl_NL,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO, ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_ SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK ,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA --java out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R --proguard out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options --output-text-symbols out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/res.list -R @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/overlay.list && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -C out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R -D out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R &&out/soong/host/linux-x86/bin/extract_jar_packages -i out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages --prefix '--extra-packages '
out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/drawable-hd_common/aapt2/frameworks/base/core/res/res/drawable-hdpi_progressbar_indeterminate_holo8.png.flat: error: failed to open.
error: failed parsing input.
20:08:20 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
I couldn't find an answer to this error. Any help will be appreciated, thanks!