yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] theGanymedes:
Yeah, this solution doesn't work with my package because, as you guessed right, the installer cannot identify the solution. If you can alter the script, you can make it work. The installer does that in "scripts" folder inside the zip - you should edit "getinstall.sh" file. I think you'll know where to edit - I comment my work always.

If you can find the "flag" (a way to differentiate this solution), please post it here so I can add it perhaps.

I'm sorry if I'm being slow to react to this case: it's because this change requires all the packages to be altered, so...

About bash problem: it should be OK with the latest glibc - my terminal emulator work well, so, why not yours? :)
[Desire Android Development] theGanymedes:
I'm using a Gingerbread Sense Rom - Unofficial BravoS - but the project doesn't use any sense related stuff so it should work on any ROM theoretically...

If your wi-fi doesn't work, it might be because of a library clash - please try to make sure that your /data/lib folder doesn't have any files having same name with /system/lib; if there is, you may erase it.

If you don't know what I'm talking about, may you please send me the output of:

ls /system/lib/

Thanks
[Desire Android Development] Parastie:
I know what you're talking about, but this is quicker.

user@ics:/system/lib$ ls

bluez-plugin

drm

egl

hw

invoke_mock_media_player.so

libEGL.so

libETC1.so

libFFTEm.so

libGLESv1_CM.so

libGLESv2.so

libGLESv2_dbg.so

libOmxCore.so

libOmxVdec.so

libOmxVidEnc.so

libOpenMAXAL.so

libOpenSLES.so

libRS.so

libSR_AudioIn.so

libWnnEngDic.so

libWnnJpnDic.so

libandroid.so

libandroid_runtime.so

libandroid_servers.so

libaudioeffect_jni.so

libaudioflinger.so

libaudioutils.so

libbcc.so

libbcc.so.sha1

libbcinfo.so

libbinder.so

libbluedroid.so

libbluetooth.so

libbluetoothd.so

libbtio.so

libc.so

libc_malloc_debug_leak.so

libc_malloc_debug_qemu.so

libcamera.so

libcamera_client.so

libcameraservice.so

libchromium_net.so

libclcore.bc

libcrypto.so

libctest.so

libcutils.so

libdbus.so

libdefcontainer_jni.so

libdiskconfig.so

libdl.so

libdrm1.so

libdrm1_jni.so

libdrmframework.so

libdrmframework_jni.so

libdvm.so

libdvm_assert.so

libdvm_interp.so

libdvm_sv.so

libeffects.so

libemoji.so

libevervolv-androidterm3.so

libexif.so

libexpat.so

libext2_blkid.so

libext2_com_err.so

libext2_e2p.so

libext2_profile.so

libext2_uuid.so

libext2fs.so

libext4_utils.so

libfilterfw.so

libfilterpack_imageproc.so

libflint_engine_jni_api.so

libfrsdk.so

libgabi++.so

libglib.so

libgsl.so

libgui.so

libhardware.so

libhardware_legacy.so

libharfbuzz.so

libhtc_acoustic.so

libhtc_ril.so

libhtc_ril_wrapper.so

libicui18n.so

libicuuc.so

libinput.so

libiprouteutil.so

libjackpal-androidterm3.so

libjni_latinime.so

libjni_mosaic.so

libjnigraphics.so

libjpeg.so

liblog.so

libm.so

libmedia.so

libmedia_jni.so

libmediaplayerservice.so

libmm-omxcore.so

libmtp.so

libnativehelper.so

libncurses.so

libnetlink.so

libnetutils.so

libnfc_ndef.so

liboemcamera.so

libpagemap.so

libpicowrapper.so

libpixelflinger.so

libpng.so

libpower.so

libpowermanager.so

libreference-ril.so

libril.so

librpc.so

librs_jni.so

librtp_jni.so

libsampleplugin.so

libsensorservice.so

libsimplejni.so

libskia.so

libsonivox.so

libsoundpool.so

libspeexresampler.so

libspeexwrapper.so

libsqlite.so

libsqlite_jni.so

libsrec_jni.so

libssl.so

libstagefright.so

libstagefright_amrnb_common.so

libstagefright_avc_common.so

libstagefright_enc_common.so

libstagefright_foundation.so

libstagefright_omx.so

libstagefright_soft_aacdec.so

libstagefright_soft_amrdec.so

libstagefright_soft_g711dec.so

libstagefright_soft_h264dec.so

libstagefright_soft_mp3dec.so

libstagefright_soft_mpeg4dec.so

libstagefright_soft_vorbisdec.so

libstagefright_soft_vpxdec.so

libstagefright_yuv.so

libstagefrighthw.so

libstdc++.so

libstlport.so

libsurfaceflinger.so

libsurfaceflinger_client.so

libsystem_server.so

libsysutils.so

libthread_db.so

libttscompat.so

libttspico.so

libui.so

libusbhost.so

libutils.so

libvariablespeed.so

libvideochat_jni.so

libvideochat_stabilize.so

libvideoeditor_jni.so

libvideoeditorplayer.so

libvoicesearch.so

libvorbisidec.so

libwebcore.so

libwebrtc_audio_preprocessing.so

libwilhelm.so

libwnndict.so

libwpa_client.so

libz.so

modules

soundfx

user@ics:/system/lib$
[Desire Android Development] theGanymedes:
Weird.. Cross-checking with grep shows no direct matches - that is there is no file I distribute which clashes with system libs :S

Maybe I should install that ROM sometime to test - but that might take some time. sorry for that.
[Desire Android Development] Parastie:
No worries! Comes with the beta rom territory.
[Desire Android Development] cdesai:
Hey Ganymedes, wassup

Been wanting to try this on my tab for long

got a huge /data partition, and my kernel has /data/bin ; /data/sbin n /data/lib in paths

So i could just extract the glibc folder to /data - and then install dpkg n apt the same way - would it work?

or u do something else too?
[Desire Android Development] rikmer:
Would it be possible to identify a solution via a file in /system/etc/init.d?
[Desire Android Development] theGanymedes:
Well, if you can manage to write a regular expression or such to identify that, yeah, it's possible - it's a shell script (not Recovery script) so it allows many things.
[Desire Android Development] theGanymedes:
Well, it would work, but after installing GlibC, you should link /lib to /data/lib as well. If you have the paths, you don't need ramdisk modification.

Be careful though: since .zip file format doesn't support symbolical links, I do have a "links" file which keeps the necessary symbolical links. I do use this file, in recovery zip, to recreate the links after copying. Since you do installation manually, you need to do this manually as well.

Or, alternatively (if you have linux in your PC): you can download the glibc.deb file itself (it has symbolical links inside) and then push the files with adp to the device directly: it would only require the /lib -> /data/lib linkage then. You can download .dep package without apt using this link: http://bravo-apt.host.org/pool/main/g/glibc/glibc_2.14.1-3_armel.deb
[Desire Android Development] cdesai:
Ok, will do the link

And yea - i do have linux on my pc - how else would i be able to compile kernels n roms then?

so what i gonna do is - make a new kernel

link /data/lib to /lib

and then keep the files in place, just dpkg n apt - n then i could install the others - right?
[Desire Android Development] rikmer:
Wouldn't

...
if [ -e "/system/etc/init.d/40ad2sdx" ]; then	# AMARULLZ flag

linkto="/system/data"
...

suffice?
[Desire Android Development] theGanymedes:
Yeah, that'll do it - that algorithm uses a unique name for init.d script :)

don't forget to change "linkto" to where MTD data is mounted on system boot.
[Desire Android Development] theGanymedes:
You should also install their dependencies. I recommend you to install everything at the first page :)
[Desire Android Development] theGanymedes:
Attention everyone:

I just found a bug in Control scripts in Ncurses - which prevents Ncurses from being upgraded. I fixed it, so please apply the following fix:

in your /data/lib/dpkg/ncurses.posrm, /data/lib/dpkg/ncurses.prerm, /data/lib/dpkg/ncurses.preinst and /data/lib/dpkg/ncurses.postinst files

change the first line to "#!/system/xbin/busybox sh"

that'd do it, thanks.

Note: I already re-uploaded a dpkg with the changes applied. However, if you did install some other programs, reflashing dpkg package will make your dpkg "forget about" those packages, so you need to edit those files manually; or accept to reinstall those packages you installed :)
[Desire Android Development] theGanymedes:
Attention 2 everyone:

Please hold yourself from upgrading (with apt-get upgrade) now: apparently Ncurses library needs some modifications to make upgrade go smooth. I'll let you know when it's safe.

EDIT: Recovery zip's are fine.

EDIT2: It's fixed. Now you can run apt-get upgrade smoothly - please note that you must upgrade glibc with to the latest version in order

not to live any problems.

EDIT3: Upgrading the GlibC with APT causes it to crash it - so don't upgrade the GlibC with APT yet - I'll look for a solution for this.

EDIT4: Fixed it - it was apparently a bug with DPKG zip. Please download and flash the dpkg zip now - I upgraded it.
[Desire Android Development] Parastie:
You know, I tried this again and it's not killing the wifi entirely. It turns on, sees my network and just sits there saying 'obtaining IP adress'. Uninstall works.

BTW: you should change that one line in the uninstall script. "Reboot and unenjoy! "
[Desire Android Development] theGanymedes:
Well, this is a dev package after all; and I'm not Houdini - I cannot possibly know every configuration exists can I? :(

It doesn't obtain IP adress - it shows that it has some problems with DHCP apparently. But I really cannot see why my installation messes that - it works well with others - no one complained about Wifi problem before...

I guess ICS using a hack which doesn't exist in Gingerbread.

I'll work on it, once I have time to install that ROM and test, but it's going to take some time. sorry
[Desire Android Development] Parastie:
Just bringing it to your attention. For all we know, it could just be my phone or the ext-sd script. It makes no sense to me either, but if I figure out what's going on I'll let you know. I'm going to try this on another Android device running 2.3 later and see how it goes.

This is am awesome project, I'm really looking forward to trying it out as soon as I can. It opens up endless possibilities for our devices.
[Desire Android Development] theGanymedes:
Guys I have an announcement:

As you might have learned, I'm a uni student. And as you might have guessed, this project is taking so much time of mine.

Since I'm in some sort of financially crippled, I was thinking to make the incoming application (the tool for APT) to be restricted to make some income - that is allows full features to only donors of the project.

I know this sucks: being forced for something always sucks but I don't have anything else in my hand right now that'll convert to money - obviously I cannot sell my device, so..

Just to let you know. I think the app will be ready in one or two days.
[Desire Android Development] rikmer:
I altered your getinstall.sh by adding

...
elif [ -e "/system/etc/init.d/40ad2sdx" ]; then	# AMARULLZ flag to ad2sdx

linkto="/data"
...

to the section where it reads the flags for the different whaterever2something solutions and it appears to have worked and that I have a full glibc on the system now.

Is there any way to test if the package is working?

As I understand I cannot use the other packages yet because the scripts have to be altered accordingly.

In regards to your statement that your apt-get app will be semi-free I like to say that I really understand your motivation towards this decision.

You really did and do a lot of work to get this working!

This is much appreciated (to repeat myself again :) ) !!!

(by the way: I have a small problem. When using the glibc script it states that my device is not 'bravo' even if ro.product.device=bravo is set correctly in build.prop. It even states it correctly if I manually check for it by entering the line of your script into terminal emulator. Don't know what happens here.

To resolve this temporarily I just deleted the line where you check for it.

So no big issue ... just wanted you to know.)
[Desire Android Development] Parastie:
Success! Sort of...

I swapped ROMs from the CM9 beta to the Sandvold build of ICS and I've gotten the zips to install in recovery without error!

However, I can't get apt-get command to work. I get this error when I type apt-get update:

E: List directory /data/var/lib/apt/lists/partial is missing. - Acquire (2: No such file or directory

What am I missing? I've tried with and without su.
[Desire Android Development] rikmer:
Hmmm ... apparently something went wrong. I attached my recovery.log. Perhaps you can have a look at it if you find some time.
[Desire Android Development] theGanymedes:
Recovery zip's sometimes become problematic when creating empty directories - yours is that problem. Make that directory yourself please, and assign it's permissions as 755:

mkdir -p /data/var/lib/apt/lists/partial
chmod 755 /data/var/lib/apt/lists/partial
[Desire Android Development] theGanymedes:
I think you should set "linkto" to /sd-ext; because it's where MTD Data is mounted after your algorithm is activated - /data is where your sd-ext partition is mounted, so it makes the linkages wrong.

As a test way of functional install: after (editing and) flashing glibc; try to run "iconv --help" command - this program is shipped with glibc and if it works well, most probably others will as well.

Actually, why don't you edit your init.d script, so that it mounts MTD data to /system/data and makes a file /cache/log/data2sd.on file (an empty file will suffice)? this way the .deb packages will work as well- so you won't be obligated to edit everything yourself. Yours will be the algorithm you want, but will emulate Sibere's one - so everything will go smooth. This way you don't have to edit everything yourself.

About your device not being handled as Desire - that might be because of your recovery, or kernel - I don't know why. but as long as you know your device is a bravo, it's ok to remove that check :D
[Desire Android Development] rikmer:
I will try your recommendations and let you know. Thank you very much so far.
[Desire Android Development] Parastie:
Thanks!

Now i'm getting an error resolving host bravo-apt.host.org even though I can get to the website with the browser. Anyone have suggestions? :)
[Desire Android Development] theGanymedes:
try "curling" it first:

curl http://bravo-apt.host.org

if you can see output, I really don't know what mess causes your problem :) If you can't - it means your libcurl cannot establish connection; check if wget etc. is working as well..

What ROM are you using? Maybe your kernel is too old/new (I highly doubt it) for these stuff?
[Desire Android Development] theGanymedes:
I edited the Zip file as well - it will create the directory with a placeholder file inside ;)
[Desire Android Development] theGanymedes:
Well, guys:

DesirAPT is nearly complete. For the best experience, I recommend you to flash this package (it'll install some icons I picked for some packages):

http://bravo-apt.host.org/recovery/iconset_install.zip

You can edit images yourself too: in order to do that, you must change the image of the package available at /data/share/desirapt/icons folder (named the same with package name) with the png file (48x48) you wish.

From this day onward, I'll also publish images with packages too.

Also, I decided not to put "restriction" for DesirAPT for since it's nearly completed. But I still beg of you for your donations :)

I think I'll be able to publish the first beta tomorrow.

So, behave :) :P
[Desire Android Development] Parastie:
Wget works, curl does not. Right now I'm using Sandovold ICS beta 3.9 with kernal 2.6.38.8-Tiamat-ICS+drew@master)).

I'll redownload curl and apt and reflash.

EDIT:

That didn't work. I'm going to try to flash an older gingerbread ROM just to see if I can get any of this to work.
[Desire Android Development] rikmer:
SEMI-OFF TOPIC:

I wonder if anybody else has always problems with the whatever2something solutions. No difference what I try ... data2ext, data2sd, ad2sdx ... I always seem to have problems regarding stability or/and performance.

Can anybody tell me that he/she has no problems at all and how he/she managed to do so?

I ask in this thread because a solution of this kind is needed to use this project.
[Desire Android Development] francisdsa:
can we get some screenshots plz???
[Desire Android Development] Parastie:
I was thinking the same as I've only found amarullz to work really well, but with horrible performance.

I did find dark tremor script to work well and I liked the GUI.

Maybe it'd be possible to place the Linux libs in a folder on the SD card and link them to the system with a script similar to a2sd scripts? Then available space on data wouldn't be an issue. I guess performance would be a problem.
[Desire Android Development] theGanymedes:
I want to keep linux libraries from system as much as possible, because that might cause troubles (like library clashes etc.) but what we do right now is actually a version of what you say :)

About Curl: that might be (I highly suspect so) because of the kernel - apparently something changed on that side with GB roms.
[Desire Android Development] theGanymedes:
DesirAPT is ready!

I added the screenshots below the post.

For those who actually want to test it: Here Is the Link for DesirAPT! :)

Please note that this software is just a front-end for APT; so you still need apt and it's dependencies.

Due to Java, sometimes the commands may fail, try again and it'll do it.

I know it's not the most aesthetically pleasing application, but well, it's designed just to work for the time being :)
[Desire Android Development] peryndark:
Hey theGanymedes, can I install your zips on a Oxygen R2 HBOOT? :)

Sorry if the question has already been answered - I must've not noticed it. :C

EDIT: Allright, got it - it installs to /data :P
[Desire Android Development] Parastie:
New ICS builds are out with a new kernal. I'm going to try it and I'll report my findings.

EDIT:

Bootloop :(

Looks like ICS is still too new.
[Desire Android Development] theGanymedes:
I need the new kernel source to recompile everything, so that might take time. Sorry.
[Desire Android Development] theGanymedes:
No comments on DesirAPT? :/
[Desire Android Development] Parastie:
Pictures look good. :D

I'll try it out as soon as I can, probably next weekend.
[Desire Android Development] rikmer:
Haven't been here up to now.

Looks great! It will really ease the use of your project.

I can imagine that a lot of of ROMs will incorporate your work and am really looking forward to this time because it will eliminate my installation problems. So far I am still trying hard to get everything up and running on MildWild 3.0 with AD2SDX. Do not mistake this as criticism I am apparently to less proficient with all that stuff to get it work myself properly.

Good work!
[Desire Android Development] theGanymedes:
Consider all the troubles I've been thorough with this know: there was no one to guide me either :)

Well, I still think that you should "fake" your algorithm, cos otherwise you'll be in so much trouble..
[Desire Android Development] rikmer:
Talking about altering the script. I tried hard to do so but always failed with at least a bootloop. I tried adding mount --bind /sd-ext /system/data and whatnot. I am really at the end of my knowledge about linux and mounting things.

I know you are really really busy but can you please tell me how you would alter the script. I am going nuts with this :).

Perhaps if I see how you would do this I will have some more insight in the future.

I attached the original script to this post.
[Desire Android Development] rikmer:
Ups ... forgot the attachment.
[Desire Android Development] theGanymedes:
A2SDX Fix

You're really overthinking this: you don't need to mount anything yourself - mount is a strong tool that you shouldn't use so easily.

All you've to do is edit the script so that it makes the folders if they don't exist and then change the mount lines so that it makes the mounting to the /system/data rather than /sd-ext.

The fixed script is attached at the end of this post. Try that and then tell me the results (don't forget to reflash glibc after this - actually, I recommend you to boot the system once so that you can see that the system boots and runs) - I commented the places I made the editing, so you can cross-check it with the original to see what I've done (well, used Search&Replace option of the text editor mostly, but... :) )
[Desire Android Development] rikmer:
Thank you for your help and efforts but it doesn't seem to work. It is freezing again before the boot animation is starting.

I think that there is a problem at the beginning of the script. In the original script it reads:

#-- Unmount /sd-ext if it already mounted
busybox umount /sd-ext;

#-- Mount /data and move it to /sd-ext
busybox mount /data;
busybox mount --move /data /sd-ext;

As I understand in this part it mounts the data partition ("/data" /dev/block/mtdblock5), mounts the ext partition ("/sd-ext" /dev/block/mmcblk0p2) and moves all data from /data to /sd-ext .

The altered script tries to move the data from /data to the newly generated /system/data directory. But /system/data is not on /dev/block/mtdblock5 but somewhere on the /system partition. Is there enough space?

What I tried beforehand, with no positive result, was mounting /dev/block/mtdblock5 to /system/data. But I perhaps had a problem with the mount --move /data /system/data because it was already mounted.

Don't know if what I try to explain makes any sense.
[Desire Android Development] theGanymedes:
Mount --move doesn't actually move any data - it does move the mount point. You can think this as unmounting the /data and then remounting it to /system/data.

I still don't know why are you still trying this script: both sibere's and ownhere's scripts also move dalvik cache to mtd partition - so what this guy does is actually not something that's done for the first time. However, let's say that this is for learning purposes.

Try changing the "mount --move" line with "umount /data; mount /dev/block/mtdblock5 /system/data" and see if this works. (Don't forget to erase /system/data folder first in case it's not empty. The script will create a new one itself)

The thing about mounting is: you can mount something virtually anywhere on the tree. Which partition it is, doesn't matter. Apparently you need to read more man pages for the commands you use :)
[Desire Android Development] rikmer:
I don't use sibere's, nor ownhere's, solution because I had more stability issues with those so far.

I am a bit busy this week but perhaps I find time to try your suggestions in the evening.

If everything fails I perhaps will give ownhere another chance :).

Concerning man pages ... I feel you are right. I will have some more looks into the man-pages. :)

Thank you again.
[Desire Android Development] rikmer:
Yes, yes, YEAH!!!

Finally everything seems to work.

I am now using ownheres data2ext as amarullz ad2sdx also gave my stability issues. So far data2ext is really working great.

All your packages installed fine and I just tested DesireAPT by installing Enlightenment. There I got some errors. Am I supposed to choose internal memory or sd-ext as install path?

Also I cannot find LinuxInAndroid anymore.

Greatest of works!!! Thank you.

[EDIT] Just DONATED a bit for you to enjoy!
[Desire Android Development] theGanymedes:
Thanks for your donation. LinuxinAndroid should also available in about pages 30~.

Sometimes installation does fail for unknown reason. Try again a few times. It should be ok.

Internal or external is your choice, but I recommend external for it has more space
[Desire Android Development] rikmer:
Okay. Will try external installation.

Regarding LinuxInAndroid ... I did find the link but it was pointing nowhere.

---------- Post added at 04:02 PM ---------- Previous post was at 03:56 PM ----------

Same error with DesireAPT when installing Enlightenment. I think it shows some errors connected with dbus. Is a log file been generated?
[Desire Android Development] rikmer:
Tried to update via apt-get upgrade via terminal emulator and also got some errors. I attach the output.
[Desire Android Development] rikmer:
Did some more research and it seems that somehow, even if su, I don't have write-access to the system partition. Not in DesireAPT nor in terminal emulator. Interesting thing is if I use ES File Explorer I am able to add and remove files in the system partition.