[APP] gcc 4.3.5 port to Android - Android Software Development

Hello,
I've managed to cross-compile the gcc compiler suite + uClibc http://buildroot.uclibc.org/ for Android - allowing compiling directly on the devices themselves instead of cross compiling externally.
However, I wonder if there is demand for things like this maybe I should focus my efforts on something more interesting.
gcc itself is big, but having binaries dynamically linked means that almost any Linux source code running (and using less space) on the phone as long as it is (along with its libraries) compilable against ucLibc.
Below two screen shots:
1. compiling the hello world in C (stored on the sdcard), but the executable is created on the /system partition since sdcard is mounted with noexec by vold. Also, you can see that it has dependencies to the ucLibc library (which is also copied on the phone).
{
"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"
}
2. readelf ran directly on the phone:
Please comment - and if feedback is positive - it I will try to create an installer for it. For now it needs about 50Mb on the /system partition - so it is big - only for newer phones - and write a tutorial on how to use it.
I have tested it on Sony Arc as well as Samsung S5570 (but I had to make room on /system partition for it by removing all big apks from /system/app like GMail.apk, Maps.apk and so on).
Thanks!

Looks really good, I would love to compile native Linux software for Android devices!
Sent from my HTC Flyer P512 using XDA

How about posting an update.zip
And you can do one thing
If system doesnt have x mb free (use a script), install it to /data/lib, and make symlinks in /system for that (due to the paths)
Sent from my GT-P1000 using XDA

@cdesai - that's a good idea!
My issue is that people prefer UI apps instead of command line and so on ... (at least according to my downloads ...) so I will see what I can do.
Meanwhile, another sneak preview!
MySql 5.1 on Android:

Ehm, sorry I don't know much about this.
Does it mean we can now run compiled C programms??
Sent from my Galaxy Nexus using Tapatalk 2

Well, from the technically correct point of view - we are already running compiled C programs.
What this will help with is compiling ourselves new programs on the phone itself and execute them (instead of the more common way, compiling them on a PC and just copying the executable onto the phone).

you got any ideas if any compatible repos exist to work with this?

Installer would be really awesome

Good job man~ please keep working on it

Damn sense eats all my system memory,no free space
Typed in a hurry from my Htc Explorer

@viulian - this is a great initiative. This was made available for iOS by the initial jailbreakers . If you can make a installer with GCC uclibc and make that would let us e bring in more linux based apps. Kudos to you.

It's so cool, where can I download & try it ?

This is some good work you've got going on......
One of my (many ) devices is a Archos G9 series, which is a device built on TI OMAP 4x range of processors. It comes with a non standard bootloader and recovery mode and has a "Special Developer Edition" Dual Boot Option, I mention this as they also use buildroot and uclibc as their base and as you mention in your blog post, they have a "bunch of Linux tools" all of which are dynamically linked back the uclibc.
You can check out their Gitorious Repo's:
http://gitorious.org/archos/archos-gpl-gen9
http://gitorious.org/archos/archos-gpl-gen9-kernel-ics
Hopefully that is of some interest/use to you.
Also, Just thinking aloud here but I wonder what It would take to "go to other way" and create a full native android toolchain which is linked against bionic, which after all is "just another libc" (he says flippantly )
There is also Ubuntu for Arm which I'm guessing have they own native set of binaries available and I believe it uses eglibc as their libc.
Gotta say one thing, You can't knock FOSS for choice.
I'm thinking the bionic dependent toolchain could be an interesting project in a masochistic sort of way. I might do some preliminary analysis on that one!
Hack On.

Unix commands and utilities
trevd said:
Also, Just thinking aloud here but I wonder what It would take to "go to other way" and create a full native android toolchain which is linked against bionic, which after all is "just another libc" (he says flippantly )
There is also Ubuntu for Arm which I'm guessing have they own native set of binaries available and I believe it uses eglibc as their libc.
Gotta say one thing, You can't knock FOSS for choice.
Click to expand...
Click to collapse
Yes, there are many ways to go with this, and I think that it is a worthy topic for exploration.
I am a new Android user. I got my device because I was curious about Android and wanted to check it out. It seems that the "Linux" that it is based on is extremely stripped-down, and although I understand that is normal for embedded systems and was necessary to develop an operating systems for smartphones of a few years ago, I'm worried that in the future, it will be more of a problem than a solution. It is already exactly that for me. I have a 10" tablet, not a dinky little phone, and I want to do things with it I normally do on my desktop Linux system. I have been running into many problems. For example, I tried to run a bash script I commonly use, and discovered that dc in my busyBox does not recognize the 'q' command (for quitting the program!), and also can't handle spaces between commands. That is just sick. I don't know if that is normal for busybox, or it is specific to the version distributed with my tablet (which is a very cheap model).
Many very basic Unix commands and programs I have used since 1981 are simply missing, or don't work as I expect. For me, this is not Linux or Unix.
It is clear that in order to have a usable Linux base system, just to use a bash shell, I need to have a more standard implementation of the basic shell commands and utilities.
The original versions of Unix from Bell Labs (1970s) came with all of those, including a C compiler, and fit in less than 20 MB. In 1991, I had a 386 PC with only a 40 MB hard drive running Interactive UNIX System V with C compiler. There is no excuse at this point for not including a decent port of the Unix shells, commands, and utilities.
For now, I'm looking into the Mentor Graphics Sourcery Tools (formerly CodeSourcery) and Android NDK for cross-compiling on LInux and then loading into the device using adb. I hope I can find to cross-compile at least a few things. If anyone is interested in doing this kind of thing, let me know.

Definitely a step in the right direction. Let us know when you have a version of gcc for Android that we can test.

+100000000
This is very exciting!! I have a long list of programs for which I have been waiting and waiting to try something like this...
Care to share your beta?
BTW, there is a similar thing going on here:
http://rwiki.sciviews.org/doku.php?id=getting-started:installation:android

Yes!
I'm on board, here. I spent some time working with the NDK, and found it to be an unacceptable pain in the rear. I'm not worried about this tool chain being "big", we're a bit beyond that now with tablets and the like.
I bought a nexus7, to mostly (or as completely as possible) replace my oldish acer aspire one netbook. I think I'm probably not alone!
Please either release an installer (understand if you don't have time) or just drop the info on what work you've done, as you might find someone else to help.
Thanks! Great work.

great Pioneering effort
viulian said:
Hello,
However, I wonder if there is demand for things like this
Click to expand...
Click to collapse
Thanks for the cross compile. your pioneering efforts will prove usefull to devs who think differently. I hope that the day comes sooner when a cm11 or cm12 (my dream of next dream) compiles and gives out a rom inside the phone or tablet itself instead getting cross compiled in a pc.
Oh god When is google going to think properly.
atleast you are thinking in right direction. dual core and quad core devices will be the norm of the day 1.5 yrs down the lane.
so please keep up your enthuisiasm and gcc versions compiled in android itself for the days to come. This is a true service indeed. thanks once more
:good:

Ej guys I've done the same as the op.
If you want I can post a update.zip or a app which also includes full GCC 5.3.0 running a arm-unknown-linux-gnueabi target which is also android.

Thargorsson said:
Ej guys I've done the same as the op.
If you want I can post a update.zip or a app which also includes full GCC 5.3.0 running a arm-unknown-linux-gnueabi target which is also android.
Click to expand...
Click to collapse
What's up bud. Remember me ha. Send one my way.

Related

MoDaCo - Automatic Application Update Check (AppToDate)

Paul over at MoDaCo is starting to get some interest in a new application he's developing - basically it involves developers providing some XML with their installer that ties in with some similar XML on the applications' download page on their web server.
When a new version is released, the XML on the download page is updated, "AppToDate" will check the download server and you'll be able to see that a new version is available.......
AstraWare, Developer One and SK-Tools have already expressed an interest in making their software work with "AppToDate".......what are you waiting for!?!?!
I'll stop babbling, this is what Paul posted over at MoDaCo "AppToDate"
I have a dream! OK, so it's not quite as ground breaking as some other dreams of our time, but it's a dream none the less. It goes something like this...
I have a whole bunch of software on my device. Probably 15 apps at least. I also write software, which is downloaded by a fair few people, both commercial and free. I like to ensure that my software on my device is up to date with the latest versions, and it's a right pain in the ****. Not only that, I'd like my end users to have the latest versions installed to get the best possible experience... and to facilitate that I have to write a custom update checker into each of my applications. Fine for big apps, not great for quickly rustled up apps or tweaks.
But there could be another way.
{
"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"
}
What if you could have an application that lived on the device, that wasn't tied to any one application or vendor, that could check for updates for everything installed on your device? IMHO, that would be awesome. A dream. For such an approach to work, you'd need a few things...
Someone to write the update application, and to develop it. A community project perhaps?
The update application MUST be FREE for end users and developers
The update application MUST be easy for developers to plug in to
The application needs to be used by end users!
Freeware developers need to use the application!
Commercial developers need to use the application!
Now here comes the audience participation part - if you are a user, would you like to see such an application? If you are a developer - either freeware or commercial - would you like - and would you use - such an application? Make your voice heard here, and if there's an appetite for this, let's make it happen! I'll be updating this topic to list developers who would like to be involved.
Oh, I forgot to mention... I've basically written the update application! It's simple, has plenty of scope for future development, can update itself (of course) and in order to be used by a 3rd party, just needs an XML file dropped into the updater directory from your install CAB, and a current version XML on your server!
Beautiful! The response to this topic will determine how much time I spend on getting it production ready
P
Click to expand...
Click to collapse
Lend your support to this - with all the updates for various applications flying around, it's an almost impossible task to know if you're running the latest and greatest version - hopefully it will grow into a REALLY useful tool.
Thanks for listening
Mark.
This would also work well for new versions of everyone's favorite rom's....
Mark Crouch said:
Paul over at MoDaCo is starting to get some interest in a new application he's developing - basically it involves developers providing some XML with their installer that ties in with some similar XML on the applications' download page on their web server.
When a new version is released, the XML on the download page is updated, "AppToDate" will check the download server and you'll be able to see that a new version is available.......
AstraWare, Developer One and SK-Tools have already expressed an interest in making their software work with "AppToDate".......what are you waiting for!?!?!
I'll stop babbling, this is what Paul posted over at MoDaCo "AppToDate"
Lend your support to this - with all the updates for various applications flying around, it's an almost impossible task to know if you're running the latest and greatest version - hopefully it will grow into a REALLY useful tool.
Thanks for listening
Mark.
Click to expand...
Click to collapse
Beta version suitable for app developers, ROM chefs and 'cabbers' now at http://apptodate.modaco.com
Free of course for developers AND end users, and I know at least a couple of chefs who are planning to cook it into the ROM (I'll be offering an OEM package early next week to supplement the existing CAB).
Come on over and get involved, let's get everyone supporting this!
P
Great work modaco..will look at it
WMWifiRouter will support this with the next release.
I have now releaed a version with the necessary configs to enable ROM update notifications.
ROM chefs: please contact me if you have any questions re: cooking into the ROM and notifying your users of updates!
Note that via the stats mechanism, you can watch how many people are checking for updates on your ROM!
P
Hey modaco..im cooking my ROM so i would like to use your wonderful app in it..kindly PM me the instructions or post it here..i would also like u tell me how to integrate stats mechansim
Check your PM!
P
Sounds like a great idea, but one slight problem I have with it is: if the app is not hosted on it's own website, what can be done?
I haven't had time to dig any deeper than reading this, although I'm now going to look at the "Official site" and see what info I can get.
All you need to be able to host is 1 XML file somewhere!
P
Now... How can I get this into a ROM?
- Get the CAB from here: http://www.modaco.com/content/AppToDate/267096/Download-AppToDate/
- Extract the AppToDate.exe
- Put AppToDate.exe in \Windows
- Create your ROM XML file (see below)
- Use initflashfiles to put your XML file in \Application Data\AppToDate
- Host your ROM file online in the URL you put in the XML
When you update your ROM, simply increment the version number in the online XML, and people will see the notification!
When you have this done, let me know and i'll give you your stats URL!
Here's what the XML (e.g. l3v5y.rom.1.xml) will look like:
Code:
<application>
<name>l3v5y's ROM</name>
<version>1.0</version>
<description>You are using the first release ROM version. Keep checking back for updates!</description>
<versionurl>http://www.mysite.com/apptodate/l3v5y.rom.xml</versionurl>
</application>
And when you have an update available, change the online version to:
Code:
<application>
<name>l3v5y's ROM</name>
<version>1.1</version>
<description>Current ROM version is available from http://www.mysite.com, and includes the following changes over v1.0....</description>
<versionurl>http://www.mysite.com/apptodate/l3v5y.rom.xml</versionurl>
</application>
Remember when building your ROM to grab apptodate as late as possible, as there are regular updates atm (altho, when you put it in ROM, it will still auto update itself anyway!)
Remember to load up your XML in IE on your PC to check it's correctly formed.
P
If you have CAB extensions to your ROM of course, it's a great way to keep those up to date for users too (and again, get some stats)
P
Just making sure the exe didn't need to Go somewhere special, I can get xmls to work thanks to UC provisioning! Does the updater itself need an XML ( could unpack the cab and see but it's too late for that timewise) ?
Who wants to host some xmls? Or maybe I should just get a site...
I'll see to that stuff tomorrow, or is that today?
Thanks for the standard and I hope it gets used lots 'cause it'll save me a lot of time!
Quick question: does the checking/downloading system work with FTP or just HTTP?
Just to remind you..anchillus was also working on a project related to Windows Updating..but i dnt know what happened to it....
AppToDate doesn't need it's own XML.
I imagine HTTP only is the best bet.
Get yourself a free account here and you'll be sorted: http://www.zymic.com/free-web-hosting/
P
Here's anichillus' post:
http://www.anichillus.net/index.php?topic=33.msg%msg_id%
Which isn't really related per se. I like his idea tho, that would be cool!
P
Thats some mighty fine marketing! And the "conformation" e-mail has crashed outlook...

[APP] BuildProp Editor/Viewer - community project [1.33] - for android [1.6 - 4.0.3]

XDA-community!
NEWS: The app is open source: https://github.com/daOwl/build.prop-editor
I want to share my latest application with you: BuildProp Editor
root and busybox required​
What is this tool used for?
This tool allows you to modify your build.prop file easily on your device. It makes editing easy and you don't have to take care about remounting stuff or read/write permissions. It also features descriptions which contain information about the property. A great tool for both: beginners and advanced users. It can be used to test a variety of properties on your device or even tweak it, but be warned: You've to know what you're doing! If the phone doesn't boot after a reboot, the initial backup of your device can be found at: /data/data/de.bwulfert.buildpropedit/build.prop
Why do you call it a community project?
Because I need your help. I want to create a documentation which contains every property and every meaning used by the android ecosystem. This is also my first real android project so instead of yelling the hell out of me, post some constructive feedback .
Descriptors / the motivation for developing this app / little details
I've created this application because, obviously, I want to edit my build.prop file in a easy, non adb push / maybe remount, way. So I've decided to create this application which does these steps for you (remounting, backup your file, etc.) - you just have to download & install it, getting prompt to create a backup of your current build.prop file (it's just button clicking, nothing else) and you are good to go son! Hint: You actually have to create an initial backup otherwise the application closes it self. I'll add a neat "view" or "read" mode later but for the security of all our phones I think its the best deal for now.
After working on it for a while I noticed the big range of properties a build.prop file could contain - and which my knowledge doesn't. So I decided to create these descriptors which consists of:
description - meaning of the property, what is it used for
recommended values - alpha numerical values - e.g.: 0,1 or 180, 190, 200, 210 or dd-mm-yyyy, mm-dd-yyyy
keyboard layouts - textual values - e.g.: NumBlock, CharacterInput or FileDialog (the FileDialog isn't implementet yet)
An example of an existing descriptor:
Code:
<PropertyDescription>
<KeyName>ro.com.android.dataroaming</KeyName>
<Description>Enables data-roaming by default in the build.</Description>
<KeyboardLayout>CharacterInput</KeyboardLayout>
<Values>
<Default>true</Default>
<Value>false</Value>
<Value>true</Value>
</Values>
</PropertyDescription>
Of course I'm not able to describe all the properties by myself so I've spend some time searching on the net and came up with an amount of 24 descriptions. This isn't that much but a good start. Thats the point where I need help from anybody who's interested: If you want to contribute to this little project, you can contact me and sending me your descriptors (which are just plain-text xml files) - I'll merge them into the project. You can also help by translate this application into your language (english is still welcome, I am german) or donate a small amount.
Contact
For questions or chats, here are my contacts. You're also welcome to follow me on twitter.
E-Mail: [email protected]
E-Mail: [email protected]
Twitter: https://twitter.com/android_owl
TODO
This project isn't finished in detail. Everything should work exquisit and fine but this are the steps I'm still thinking about:
Batchmode - adding little text snippets which consists of properties to your build.prop file. (Great for lazy people like me)
A (web) application to make it easier to contribute descriptions
Preferences - I got a lot of feedback for these, I'll add these in the next update
Screenshots
Download
You can download the application from Google play via link or qr-code
{
"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"
}
BuildProp Editor
Update
Here is my bundle of descriptions. If you want to add a description you can take a look into the file. You can also look at the scheme.
description_bundle.xml
[APP] BuildProp Editor - community project [1.0 BETA]
Changelog
Version 1.0b
Initial release
Version 1.1b
UI redesign
Increased performance
Increased compatibility with other roms
Version 1.2
Added viewmode (for unrooted phones)
Added HC and ICS compatibility
Added an introduction
Increased usability
Fixed some typos</string>
Version 1.3
Fixed su-problem on several roms
Changed app icon
Removed debug logs
Real good work. Works without a problem.
Sent from my Blade using XDA app
Love the idea, there is other great apps that already do this. Here is the best one i found and i use, keep up the good work
http://forum.sdx-developers.com/?topic=18572.0
https://play.google.com/store/apps/details?id=com.joeykrim.buildpropeditor
Sent from my PG06100 using Tapatalk
Good job, maybe I can help you with the "looks"
one_love_420 said:
Love the idea, there is other great apps that already do this. Here is the best one i found and i use, keep up the good work
Click to expand...
Click to collapse
There are quite a few apps which are able to do that but not with descriptions.
android_owl said:
There are quite a few apps which are able to do that but not with descriptions.
Click to expand...
Click to collapse
True, joeykrim does have a section in his app with "common tweaks" as seen in attatched screen shot. I do love your idea with the description though, makes up for a lot of questions that could arise with such app.
Sent from my PG06100 using Tapatalk
ngh55 said:
Good job, maybe I can help you with the "looks"
Click to expand...
Click to collapse
That would be a great thing! I'm allready implementing custom widgets (TextViews, ListItems for example), but I'd to ask for icons. Simple pictograms which match with a white (!) background
WolfBreak
Hi there, I was hoping could trying your app.
First time I run your app, it asked permission and of course i allowed it.
But your app show this message
"No root access is given!...."
that's strange cause my X10 using Wolfbreak with prerooted. And app like Titanium, ScreenshotER, etc works perfectly.
Maybe you can help me what should I do?
epinion said:
Hi there, I was hoping could trying your app.
First time I run your app, it asked permission and of course i allowed it.
But your app show this message
"No root access is given!...."
that's strange cause my X10 using Wolfbreak with prerooted. And app like Titanium, ScreenshotER, etc works perfectly.
Maybe you can help me what should I do?
Click to expand...
Click to collapse
Thank you for your reply, I'm going to search for a solution.
Genius! Thanks man!
I can help you with the really pretty ui part
Sent from my VS910 4G using xda premium
[APP] BuildProp Editor - community project [1.1 BETA [Update]]
Update
Hey xda!
Today I've released the new version of my tool. The update contains a complete UI redesign in a lite/silver grey style. I've also worked on the ShellCommunication to increase the compatibility with other roms (works well on cm7 and MIUI).
Nevertheless I've uploaded my descriptionbundle. If you want to add a description you can take a look into the file. You can also look at the scheme.
description_bundle.xml
Version 1.1b
UI redesign
Increased performance
Increased compatibility with other roms
Hello XDA,
another great Update of my build.prop editor. Thats the biggest update for now and I think, that this app isn't in beta anymore.
Version 1.2
Added viewmode (for unrooted phones)
Added HC and ICS compatibility
Added an introduction
Increased usability
Fixed some typos
Screenshots
My next step will be a batchmode. You can create a single text file which includes properties. These files can be integrated into the build.prop file. This allows to share stacks of properties for example helping somebody with a problematic build.prop. This also allows to share sets of tweaks for users, without to overwrite their own file. It should be selectable which property is going to be overwritten and which not.
Get your Editor / Viewer here!
A very usefull & handy tool for developers. Thank you very much
I need an icon!
DJoptimus-One said:
A very usefull & handy tool for developers. Thank you very much
Click to expand...
Click to collapse
Thank you sir! I've still got a bit to do but it's pretty functional and tested for now.
I also want everybody on the board here to ask if someone wants to create a proper icon for this app? I'm not really great on this (simple icons are okay but proper stuff is not my job). So, if somebody is interested, please contact me. The one who'll design an pretty icon for me gets marked in the credits
This tool looks awesome. Can't wait to see it get developed more.
oh yeah nice tool rated and thanked!
same issue here, no root permissions granted in htc explorer, hope you solve it soon
jaggyjags said:
same issue here, no root permissions granted in htc explorer, hope you solve it soon
Click to expand...
Click to collapse
Edit: Allright, I'm looking for a fix in your rom.

Oppo Find 5 Root with CASUAL

Introduction
Here's a one-click root method for the Oppo Find 5. You can find source here: https://code.google.com/p/android-casual/source/browse/#svn/trunk/GUI/src/SCRIPTS
The way this works is it will reboot your device into fastboot, boot a kernel, inject root and SuperSU(available on Android Market), set permissions, test itself and let you know if it passed or failed.
CASUAL also provides an unroot option to remove root permissions. This can also be done from within SuperSu.
Instructions
Open CASUAL with JAVA. Do you have Java?
Select which script you want (root or recovery_
Click the do-it button
All scripts in CASUAL are automated. Simply click the button and it will "do it". If you are a windows user, please ensure you are using proper drivers.
{
"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"
}
Download
For nightly builds, click here: http://goo.im/devs/AdamOutler/OppoFind5
Credits
Thanks to Justin Case for whippin' up a unsecure kernel before I could do it.
TWRP comes from kamma's thread here http://forum.xda-developers.com/showthread.php?t=2147999
About CASUAL
CASUAL stands for Cross-platform ADB Scripting, Univeral Android Loader. CASUAL jar files are a wrapper for the CASUAL scripting language. CASUAL allows rapid and accurate deployment of hacks and exploits. CASUAL allows for automatic updating of its scripts via pushes to the SVN server at android-casual.googlecode.com. While I expect no problems at all, if at any time a serious problem is detected with the script, i can flip a kill switch to shut CASUAL downand you will be brought to a support page.... most likely here. This is intended to add a level of security so that you know this will be safe.
Thank you very much. I will check it in few days
Edit: And, for sure, if it works, you will have a beer
Thanks a lot Adam. Will try this today.
Thank you for the script. I will try it in soon days, when I will receive my Oppo Find 5 32GB. The device is still in Guangzhou Good that I am in China :angel:
Nice,now to get it....
Could you please confirm it will work in any Oppo Find 5? Or only in Oppo Find 5 with international firmware?
j2002 said:
Could you please confirm it will work in any Oppo Find 5? Or only in Oppo Find 5 with international firmware?
Click to expand...
Click to collapse
It should work with all, unless there is some sort of locked down version.
I've read you have Chinese version. Is that right? If so, what about Gapps? Does them run with no problem?
j2002 said:
I've read you have Chinese version. Is that right? If so, what about Gapps? Does them run with no problem?
Click to expand...
Click to collapse
Yes.
thanks for your hard work
but i have a problem:
I startet ubuntu from a CD and installed the libusb.
But there is no way the "Hack Pack" could recognize the x909.
USB-Debugging is on.
I also tried it in windows. I installed the adb driver for my x909 but the "Hack Pack" cannot recognize it either.
Do know where there could be a failure?
Thanks
Wow,
Bought the phone last Friday @ ebay.com , [ getting it in about a week or so..]
and now there is root ! :silly:
Thanks for this Adam, I really appreciate it
Any plans for it's own forum?
BTW. How much did you spend on this thing, and from where? I'd like to get one as well... (If they release the sources, that is.)
E:V:A said:
Any plans for it's own forum?
BTW. How much did you spend on this thing, and from where? I'd like to get one as well... (If they release the sources, that is.)
Click to expand...
Click to collapse
In China, 2998 and 3298 yuans. Add reseller comission, sending, taxes....
Anyway, there will be an international version comercialized by Oppo in some weeks (prize unknown right now)
gissuf said:
thanks for your hard work
but i have a problem:
I startet ubuntu from a CD and installed the libusb.
But there is no way the "Hack Pack" could recognize the x909.
USB-Debugging is on.
I also tried it in windows. I installed the adb driver for my x909 but the "Hack Pack" cannot recognize it either.
Do know where there could be a failure?
Thanks
Click to expand...
Click to collapse
There may be an update which you need. I applied a manual update last week which made ADB work properly with all previous versions of ADB. You also need drivers. I don't know which ones yet.
think I'm going to wait for the Int'l launch before getting it... probably no warranty for those chinese versions bought on ebay(and ebay/chinese resellers - >$600... oppousa.com website says $500)
might want to put th emodel number (x909), helps for searching
@those who have the device, how is it? most youtube videos/reviews have the beta version of the phone, or are just walking advertisements, wondering how good the final retail version is
EDIT: some (full fledged) reviews that I can find
http://www.phonearena.com/reviews/Oppo-Find-5-Review_id3237
http://www.ringhk.com/report2.php?id=6274 (chinese)
http://www.ringhk.com/news2.php?id=6233 (chinese)
http://www.gsmarena.com/oppo_find_5-review-880.php (english)
E:V:A said:
Any plans for it's own forum?
BTW. How much did you spend on this thing, and from where? I'd like to get one as well... (If they release the sources, that is.)
Click to expand...
Click to collapse
http://www.xda-developers.com/android/oppo-find-5-unboxed-the-xda-way-xda-developer-tv/
maybe xda will support it...
I'm hunting at oppo's chinese forums... apparently for their previous phones, they have an active community for updates / new ROMs(albeit mostly chinese/non-english speaking)
------
for me, I want a camera that rivals my Amaze 4G's
(from that chinese site), http://www.ringhk.com/editor/oppo/20130201_oppo_find5_pic01.jpg
vs iphone 5's http://www.flickr.com/photos/eggrollboy/8360138868/
http://www.flickr.com/photos/eggrollboy/8360137002/
https://plus.google.com/photos/1092...17/5818877942541990626?banner=pwa&gpsrc=pwrd1
AdamOutler said:
There may be an update which you need. I applied a manual update last week which made ADB work properly with all previous versions of ADB. You also need drivers. I don't know which ones yet.
Click to expand...
Click to collapse
Thanks for your response.
Do you mean an update for the phone? Where did you get it?
Or an update for the computer? The installation of ubuntu is completly fresh. I just added the libusb and java to run the "Hack Pack".
Did ubuntu immediately recognize your Oppo Find 5 with only libusb installed additionally? Or what software do i need furthermore?
I would like to use the Gapps but if i install the play store from an apk, it just force closes all the time. (like every other gapp)
Greetings
International firmware released:
http://www.oppoforums.com/threads/find-5-beta-firmware-x909en_13_130206.563/#post-10744
I suppose, CASUAL also works with it, right?
EDIT :actually, info better posted on a separate thread (as this thread is for rooting the phone)
http://forum.xda-developers.com/showpost.php?p=37684053&postcount=32
Solution?
gissuf said:
Thanks for your response.
Do you mean an update for the phone? Where did you get it?
Or an update for the computer? The installation of ubuntu is completly fresh. I just added the libusb and java to run the "Hack Pack".
Did ubuntu immediately recognize your Oppo Find 5 with only libusb installed additionally? Or what software do i need furthermore?
I would like to use the Gapps but if i install the play store from an apk, it just force closes all the time. (like every other gapp)
Greetings
Click to expand...
Click to collapse
hey gissuf. do you have any solution yet? i have the same problem.
i got my x909 two days ago. realised that gapps are not working. so looking for root. found Adams hack pack and got excited. so first thanks to adam.. but i also cannot connect my phone to the computer. usb debugging is set. and i downloaded the drivers from the oppo site. was able to install them. also the pc suit of oppo recognize my phone. but the hack pack doesnt.
anyone out there can help us?
thanks a lot.
chris
Just try the internationl firmware. There should be gapps already included (or?).

[Guide] Genymotion | Android On PC (formerly known as AndroVM).

Hi there!
Thanks SAMANTHA for featuring the guide on XDAortal
​
Ever thought of running Android on PC? Trying out apps and playing with it?
Genymotion, provides the best Android virtual environment out there and runs Android 4.1
So let’s start installing it.
This guide will help you installing Genymotion !
Note:-
This tutorial is based on Windows 7 HP 64bit
Know how to use your PC. I do NOT teach PC 101. Don't ask for clarification of this process – it is dirt simple if you are competent (- attn1).
[*]Specs of the system used. (Full details in Signature)
Intel Core i7 3610QM
nVidia GT 650M 2 GB DDR3
8 GB RAM​
You'll need the following: -
Virtual Box
Genymotion app
Assuming you got Virtual box installed and is functional, Follow the guide.
Album link of the folowing pictures​
Installation
{
"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"
}
Starting up the app for first time after installation.
You'll need to log in to download the virtual device
After logging in, select the virtual device or variant you want to try out.
Just hit next.
Wait for it to get downloaded.
Select the virtual device you just downloaded and hit start/play.
Playing around
You'll be greeted with this lockscreen.
#Just for thread's sake .
Features
You can configure battery level.
You can even set the coordinates/ configure GPS.
It comes Pre-rooted
You can even set custom resolution..
ADB
ADB can be used for various purposes like copying a file to VM, installing apps, debugging, etc.
You'll need the following files :-
ADB
You'll need to connect to VM. VM's IP is 192.168.56.101 (is customizable). Use the following command to connect.
Connect
Code:
adb connect 192.168.56.101
or
Code:
adb start-server
adb connect 192.168.56.101
Basic Functions
ADB push (sends files to your VM) --
Code:
adb push example.apk /sdcard/example.apk
ADB pull (Receives files from your VM) --
Code:
adb pull /system/app/example.apk example.apk
ADB install (installs application) --
Code:
adb install example.apk
Note:- The files pushed / pulled / apk installed should be in the directory of the ADB folder or else you may have to write the whole location of the file.
Issues.
The issues I faced are as follows :-
Flickering issue (Maybe due to nVidia GPU.) It's fine now.
For info check this out.
Thanks for reading folks!
Regards
Pratyush (pratyush997)
Google Plus
UPDATE! ​
FOR PLAY STORE (GAPPS) this
Will games like Temple Run / Blood Brothers be functioning in future updates?
The performance is amazing btw.
HockeyZ39 said:
Will games like Temple Run / Blood Brothers be functioning in future updates?
The performance is amazing btw.
Click to expand...
Click to collapse
It should. But at the moment it crashes due to lack of support.
Yeah Performance is awesome.
I got 91k Pts in Antutu in Previous AndroVM builds.
Thank its really smooth performance is there any jb already made VM ?
Sent from my Galaxy Nexus using xda premium
JimmyMX said:
Thank its really smooth performance is there any jb already made VM ?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Even this one needs VM, AndroVM.
Added stuff about ADB
pratyush997 said:
It should. But at the moment it crashes due to lack of support.
Yeah Performance is awesome.
I got 91k Pts in Antutu in Previous AndroVM builds.
Click to expand...
Click to collapse
I saw a post on AndroVM not to long ago saying that similar games were working on a test build. So should we see this support pretty soon?
HockeyZ39 said:
I saw a post on AndroVM not to long ago saying that similar games were working on a test build. So should we see this support pretty soon?
Click to expand...
Click to collapse
I think you read this Link
Where does Genymotion save the download? Can not find how to define the download dir in options.
Ok, found it, in c drive AppData, that is bad as I keep all my download to non-ssd drive.
Is there a way to run a custom ROM this way?
Thank you for the excellent guide!!
jdelano said:
Is there a way to run a custom ROM this way?
Thank you for the excellent guide!!
Click to expand...
Click to collapse
Can this be ported to Ubuntu systems?
moocow1452 said:
Can this be ported to Ubuntu systems?
Click to expand...
Click to collapse
both virtualbox and genymotion have versions for linux.
so it probably would work using the proper install versions.
Forgive my ignorance but what do I need to do here?
adb says: "unable to connect"
This is really awesome.
Pinch to zoom doesn't seem to be working on my win8 tablet. Something I'm doing wrong...or not supported?
rwingvr6 said:
Forgive my ignorance but what do I need to do here?
Click to expand...
Click to collapse
Hi !
Your path ( way ) where was installed Android SDK on your PC !
- also do not check Proxy !
Good luck !
surdu_petru said:
Hi !
Your path ( way ) where was installed Android SDK on your PC !
- also do not check Proxy !
Good luck !
Click to expand...
Click to collapse
I tried that but nothing happens. Oh well, I guess I got in over my head on this.
Unable to load Native Library (JNI)
Great work. It works great. Thanks for your work.
Is there a way to install gapps or at least the playstore? If so can someone help this newb out with a step by step process.

Building CM11/LineageOS 11 from latest sources

I'm pretty sure that I'll get little help on it, but I'll give it a try.
So, I want to use 4.4 KitKat on my HD2, but the only ROM available for now is NexusHD2-4.4 by tytung and others. It's based on 2.6 kernel, has built-in GAPPS and some missing settings, like the setting to turn on screenshot button in power menu. There actually was a ROM based on more clean codebase and 3.0 kernel, but all the links are dead.
The point is - I want to build my own CM11, or LineageOS 11 if I'll use the latest cm-11.0 branch from LineageOS team, without any built-in Google apps and with a 3.0 kernel. But as far as I know, literally no one made even a short guide on how to build a ROM for HD2 - the only guides I've found are about installing the already built ROM. It's a shame that nobody made these kind of guides, although the device had very big community back in the golden days.
Honestly - I'm no expert in building Android ROMs. My last attempt was building LineageOS 14.1 for Samsung Galaxy Core Prime VE SM-G361H/DS that eventually was unsuccessful - and I don't even remember why it was so. But I see that in case of HD2 the ROM should be adapted to it, because literally all Android NAND ROMs on the device have AROMA installer that provides choice between RMNET for MAGLDR and PPP for both MAGLDR and cLK and other minor things. So I'm concerned that I will need to make some modifications to ROM code to make it work like already built CM11. I can be wrong, but forgive me please, because I haven't used this device for a while, and also haven't built any ROMs for any of my devices in a while.
Also I have very little info about the device tree of HD2, especially for 4.4, but I guess that's because of my zero experience. If you can help me, you can point me to the tree, kernel and other things that are crucial when building the ROM.
So, the question is - are there any recommendations that I may follow while configuring the build? What Linux distribution should I use to build the ROM (Google recommends Ubuntu 12.04 LTS, but I can try to do it either on Ubuntu 22.04 LTS or on Arch Linux)? And what are the other obstacles that may occur while building the ROM for such an old and very, very unsupported device that I may need to overcome?
(By the way, sorry for my English, it's not my native lang, but I think you've got the point)
So, I have succesfully compiled clean LineageOS 11 for HD2 using Arch Linux and Ubuntu 12.04 in Docker container, but I think the ROM should be adapted to use on that strange device, for example NativeSD install ability is not implemented yet.
My talents lie elsewhere, but I'd be really happy to find a basic ROM that enables me to log into Google to access Google Play and download apps from there.
Can't be too advanced as the HT2 just won't cope, but it seems with the ROMS available at the moment either you can either log into Google or access wifi/data, you cannot do both.
grayme said:
a basic ROM that enables me to log into Google to access Google Play and download apps from there.
Click to expand...
Click to collapse
For me the main goal is kinda different - I want a KitKat rom that has 3.0 kernel, compiled from the latest CM11 sources available (from LineageOS team) and without any GAPPS, because I see that they really slow down the system even on Jelly Bean ROMs. I don't give any promises anyway, but I can try to insert GAPPS somehow and adapt them to be installable on HD2.
By the way, here's the link to absolutely raw and unfinished ROM, without any adaptations to HD2, just right after the compilation process: MEGA
It still needs a lot to do, because as I see now, it's built for NAND-only installation, uses ppp and not adapted to use with MAGLDR and NativeSD in any way:
Spoiler
{
"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"
}
I wonder — why are there three different initrds for all three installation types. I'll experiment later with it, maybe I'll be really lucky and be really able to start this ROM on the device
So, I've analyzed some things, added some lines to initrd and rewrote updater-script - no luck at all. I wish I could make it bootable by any means
SuperHipster said:
I wonder — why are there three different initrds for all three installation types. I'll experiment later with it, maybe I'll be really lucky and be really able to start this ROM on the device
Click to expand...
Click to collapse
Because the fstab is in initrd and i already made data on ext ramdisk i will try to get this to boot this evening.
Any logs or sources?
J0SH1X said:
Because the fstab is in initrd and i already made data on ext ramdisk i will try to get this to boot this evening.
Any logs or sources?
Click to expand...
Click to collapse
I remember that I built it using this kernel and this tree. Unfortunately I have no logs whatsoever, because I was forced to wipe the HDD where all the sources and modifications (there were a little of them) were. And also I've got not so much time right now, I guess I'll be back when I have less problems in my personal life.

Categories

Resources