Hello, all,
I have recently taken an interest in developing Android 2.1 ROMs. So far, my work on 2.1 has been going well, except I cannot seem to get Android Market to install. I have tried re-signing the apk file, but the result is the same.
Can someone help me out on this? This has probably been answered before, but I cannot find anything truly relevant to this question. Any help is greatly appreciated.
someone needs to close this thread before this flame war gets any bigger
tekgek said:
Hello, all,
I have recently taken an interest in developing Android 2.1 ROMs. So far, my work on 2.1 has been going well, except I cannot seem to get Android Market to install. I have tried re-signing the apk file, but the result is the same.
Can someone help me out on this? This has probably been answered before, but I cannot find anything truly relevant to this question. Any help is greatly appreciated.
Click to expand...
Click to collapse
Have you tried just pushing with adb? By development do you mean cooking or compiling your own?
Please be respectful of others ...
I taken the time to cleanup this thread and move to Q&A where it should have been. If someone has an answer post a reply; plans to respond using trolling tactics are ill-advised.
If the thread goes OT again, a moderator will be forced to close it and likely remove it ... would be nice if it didn't have to come to that.
Regards,
I am building this directly from AOSP, from scratch. Thanks to the mod for cleaning up the flame war, by the way
Oh, from AOSP. How are you adding them in? AOSP does NOT include the Google Apps by default, I'm not expert in ROM building but I am sure there are some .libs needed (I know GTalk requires some) and possibly need the other Google Apps as well.
And this is why I love this place . What you said about libraries and what carz12 said about adb helped a lot.
Here is what I knew:
AOSP does not include the Google Apps, including the market. The market is somewhat difficult to install to an aosp build, and I think needs to be resigned with another RSA key.
What the forum helped me figure out:
The advice about trying the adb shell gave me some help. When I tried to push the market app to the phone, I got this:
./adb install alpha-1-signed/system/app/Vending.apk
898 KB/s (1274068 bytes in 1.384s)
pkg: /data/local/tmp/Vending.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Click to expand...
Click to collapse
This tells me that I am missing some libraries. But I'm also missing some other stuff. I'll recompile from source, install the libraries, and report back after I flash this to the phone. Until then, if anyone thinks any of my conclusions are wrong, please tell me so I don't waste my time, or yours.
EDIT: For all of you who are currently viewing this thread, how many of you would like a very fast (possibly faster than OpenEclair), stable, no-frills Android 2.1 ROM? I would like your opinions, because this will give me a good idea of how many people would be interested in this kind of thing.
Tekgek
tekgek said:
And this is why I love this place . What you said about libraries and what carz12 said about adb helped a lot.
Here is what I knew:
AOSP does not include the Google Apps, including the market. The market is somewhat difficult to install to an aosp build, and I think needs to be resigned with another RSA key.
What the forum helped me figure out:
The advice about trying the adb shell gave me some help. When I tried to push the market app to the phone, I got this:
This tells me that I am missing some libraries. But I'm also missing some other stuff. I'll recompile from source, install the libraries, and report back after I flash this to the phone. Until then, if anyone thinks any of my conclusions are wrong, please tell me so I don't waste my time, or yours.
Tekgek
Click to expand...
Click to collapse
It's good to know that you are missing libraries
Your best bet is to compile your rom, and then compare it to a rom that already has the google apps included (WesGarner build, CSDI, etc...) and see what libs are missing from yours, add them in and then try again
I was having the same problem too. I am gonna try this too.
And ya besides the libraries, the aosp build doesn't include some of the framework files and permission files too, like the framework files relating to gtalk and google maps should be added as well to the system/framework folder and the permission files in system/etc/permissions relating to gtalk and maps should be added as well.
I tried with all the missing libraries but with no luck...there must be some other files tooo. Gonna continue on Thursday.
Did you try resigning the apk file?
Not really. I am gonna try that too. Got coll tomorrow so may be later tomorrow. By the way did you got the video working?? I tried pushing some libraries from supereclair. But not workin till date. it works in his build though.
College is more important than android, imho. whenever you get the chance .
I hope to get video working in the future, but not right now. My primary computer (the core i7 rig I use for all my computer work) needed an OS reinstall, so I have made no progress since my post on ADB. My fist priority is to get the basics working, then I'll work on the other issues, like video playback and the camera. However, as of right now, I am re-downloading the source, and hopefully building it in the very near future, expect an update tomorrow, and maybe even a finished product (keep in mind that this is ALPHA, so don't expect anything wonderful).
Alright, I got it... mostly. The market appears installed, now all I need to do is make it not crash. Whenever I select the market app, I get a white screen, and then the home screen. I'm also getting a force close on the gapps process. What am I doing wrong
How did you got market show up???
The gapps framework file is also missin in the /system/framework folder in AOSP build.
Did you tried pushing the missing file?
I downloaded openeclair, pulled all the apps that had the word google in them, resigned the the market with another key, integrated them into a rom package, flashed, and voila, the market appears. I also added in a couple framework files, but I think I'm still missing something. Do you know what the name of the file is? I'm not sure what or where it is.
tekgek said:
I downloaded openeclair, pulled all the apps that had the word google in them, resigned the the market with another key, integrated them into a rom package, flashed, and voila, the market appears. I also added in a couple framework files, but I think I'm still missing something. Do you know what the name of the file is? I'm not sure what or where it is.
Click to expand...
Click to collapse
ya its com.google.android.gtalkservice.jar
okay, added it in, still getting a force close on the gapps. Where to go now???
As i mentioned earlier there are some files missing in system/etc/permissions. Did u tried pushing those files.
All permission files are in place, all gapps are resigned. The framework is in place. The setup wizard i also resigned, which now crashes. If anyone has any suggestions please post them. I am at my wit's end here.
Hello!
I've downloaded the latest version of CyanogenMod 9 from android(dot)doshaska(dot)net/cm9
Because my phone is a bit damaged, I had to change the `init.mapphone_umts.rc` script in `/system/etc/2ndboot/ramdisk`
Here's my version (some things commented, some added): pastebin(dot)com/NZv307H9
About that "damage": some day (a few months ago), my phone just stopped working (bootloop); IIRC - it has had installed nadlabak's CM7.
After a few days, I've bring it back to life, but still sometimes (but rarely) weird things were happening: eg.I coudn't listen to the music, couldn't talk or had to restart it, because it just hanged.
Two days ago I thought to install a new version of Cyanogenmod into it.
CM10 didn't work at all (without modifications it was just hanging on Cyanogenmod's loading animation, and if I changed the `init.mapphone_umts.rc` (eg.just added a comment), it didn't start).
So I tried CM9; after changing the `init.mapphone(...)` script few times and manually running `mediaserver` using `adb` from my computer, it finally ran and opened the Android's launcher. Almost perfect.
I said `manually running mediaserver`, because it couldn't start automatically (`logcat` just displayed "Waiting for service media.audio_policy..." forever) and when I tried to add it into the `init.mapphone(...)` script, it didn't worked (there still were the "Waiting for service..." messages).
So, summing this long post:
- audio is not working (both: my music from SD card and those internal sounds in Android, like dialpad's sounds).
- `mediaserver` have to be run manually from `adb`
I've been trying to fix this for 2 days, but the only thing I did is just that the Android almost-successfully ran.
Here I also add a `AOL_main.ap.bin` log from that success run: pastebin(dot)com/bkFQ9GHg
BTW: I have a nandroid backup from that old Android version (before I upgraded it into CM9), and there the sound works (but eg.Google Play does not), so I have a double mess in my head :/
BTW 2: I know it's a bit difficult to help me (as you eg.cannot check some things by yourself and I write things a bit unclearly (I'm from Poland)), so if you need any logs or something, let me know and I'll upload it.
Ask around on the #milestone-modding irc channel. Maybe nadlabak and the others could help.
Ok, but how could I log there?
(I'm not good at IRC-things )
The easiest way is via THIS web-client.
Just type #milestone-modding to the Channels.
Ok, thanks
You should be more patient and stay logged to irc channel a bit longer while waiting for an answer .
The primary cause of your issue seems to be that the content of your phone's pds (or at least a part of it) has been deleted.
Did you intentionally deleted some files from /pds (or /config , which is just a symlink to /pds) in the past?
Do you have a back up of those files?
(Some of them - like e.g. /pds/bp_nvm/File_PDS_IMEI - are per phone specific [and signed] and can't be restored using the files from other devices.)
Hi
So I want to learn how to make Android apps in Android Atudio with Udacity's Android Fundamentals course. I have no knowledge or experience in app-development and very very veeeeerry basic programming knowledge. The problem is though that there are many error messages everywhere and I already searched on the internet a few times but have newer gotten a working answer to the problems I'm having. So I thought i could ask the people at the xda-forum for help
I am going to post the problems one after another (posting the next problem after the one before is fixed), because maybe with one answer multiple problems get fixed.
Also I completely reinstalled Android Studio just to be sure I didn't create any more problems myself.
The first problem is that there is an error message saying:
failed to find Build Tools revision and then the Version specified in the build.gradle
I know that I need to change the SDK versions in the build.gradle file but I cant find where you can look up the Build Tools Version currently installed. By the way I want to compile for android Marshmallow hoping that it also works for Android Lollipop if that helps in any way
I am thanking in advance to everyone trying to help me
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
ChahatGupta said:
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
Click to expand...
Click to collapse
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
DasMaennel said:
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
Click to expand...
Click to collapse
Thanks
I followed a lot tutorials but none of them worked out
Will try this one
Did you check on the Sdk manager whether you have the needed build tools installed?
I don't comprehend what the correct name is for s highlight this way, yet I will simply depict it.
I am utilizing android studio and I included some java classes from an alternate venture. Presently it says
"missing bundle articulation: whatever". Be that as it may, there is not alternative in the mistake popup to simply naturally include the missing bundle articulation. I know it appears to be lethargic to not sort it, but rather I get a kick out of the chance to do things rapidly.
At the point when there is a mistake this way, is there a route for android studio to naturally included the required lines of code like obscuration would?
For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:
change "Insert imports on paste" dropdown value to "All"
check "Add unambiguous imports on the fly" option
On a Mac, do the same thing in Android Studio -> Preferences
That way, as you type, or when you copy and paste, many imports will be added automatically. Those that aren't are ambiguous; put the cursor on the class, press alt+enter and select which version of the class you meant.
Hi there anyone!
This is my first post ever so I'm sorry if it's not the right place, but I really need help with this thing.
I used to have XPosed Framework running on my old Doogee DG550, and it was real fun. Now I got a Doogee F5 running Android 5.1 and I decided to put XPosed it too.
However, I'm finding it extremely difficult, as I got "stuck" while trying to follow the guide in this post.
I've installed the XPosed Installer just fine, I can see it in my apps, but of course it still says I need to install the Framework. So I downloaded the version mentioned in that post, which is xposed-v85-sdk22-arm64.zip and then the Official TWRP App I found on the PlayStore.
Then I simply tried to open the app and find the file while searching through my folders, but the app couldn't recognize it. So I tried extracting it in a folder and then pointing out the entire folder to the app, and this failed too. I tried opening every single folder within the .zip file, but yet no usable file was found.
Now I'm kinda stuck: I don't really know what I'm doing wrong, and as you might have already figured out I'm a real noob at this.
If any of you people can help, that would be great!
I have upgraded from Android Studio 1.0 to 3.3.
I was building and rebuilding and flashing my software to phone very effectively on 1.0 and now after upgrade after nearly two days of work I can still not get the basics (build Android app as far as java compile errors) working.
I appologise if my questions are not perfectly formed, I am beginning to get really tired and confused and I would be so grateful of a little latitude and some help to get back to where I was.
When I installed 3.3 it recommended that it uninstall the current version, which I agreed to it doing. So fresh start I guess.
Amongst other things...
After the install, my app would not build and kept asking for a newer version of gradle. I set in settings local gradle 4.10.1 and I set the gradle plug-in to 3.3.0 in the top level gradle file. I tried setting "use default gradle wrapper" and then setting these versions in "project structure" but they kept changing back again, so I used the other method just described. It then complained it couldn't find that plugin so I added repositories google and jcentre to that file. It then began to build but complained that a version of build tools could not be installed because the license had not been accepted. I clicked on the link provided and accepted the license, but the build tools would not install, no reason.
I could not find "sdk manager" menu item anywhere in AS menu structure. Don't know why. It used to be there in 1.0.
Thinking it's a brand new install as it said I go to OS start->all programs->Android sdk tools and launch sdk manager as administrator. I install the offending build tools version accepting the license.
I rebuild, same error.
I look where that sdk manager exe was and there is no license folder in that folder nor the one above.
I root around the folder structure and find a different sdk manager under prog files (x86)\Android\android-studio\sdk and a license folder in the folder above. I run that sdk manager and install the offending build tools version accepting the license.
I go back to Android studio and click rebuild project, nothing I mean literally nothing happens, clean, nothing, make, nothing! Nothing at all! I close AS and restart it (as administrator), exact same issue. This new issue really gives me very little to work with as there is no feed back at all. I'm beginning to regret upgrading AS as it is holding me back from coding now.
I have two questions:
1) Can anyone see a possible way out of my immediate problem and how to get my project at least attempting to build again and get at least as far as just compile errors.
2) Am I right in thinking that current version of AS is far from an out of the box experience even for the common default activities (build Android java project) and has a variety of unexpected anomolies OR a lot of settings whose defaults may very likely not be useful and need manually resetting? IF SO... Is it therefore recommended I do a couple of days reading maybe about the structure of "specifically" AS and it's dependant components and how to set them up and use them effectively? IF SO... what documents would one recommend, so as to make the most efficient use of time.
Apologies if this is not well formed. Hoping for some help.
Thanks.
@hardya
I have AS installed on linux so I can't help you much with windows. I can tell you that AS 3.3 works great and is much better than 1.0. Mind you, I've been using AS since it was in beta.
Try to create a new project. If the new project is created and builds without error, then you know AS is working correctly.
If the above doesn't work then I recommend you do a full uninstall of AS and then do a fresh install as follows.
Follow this AS uninstall guide:
https://stackoverflow.com/a/39953746
Then follow this guide to install AS:
https://developer.android.com/studio/install
Then try a new project as mentioned above. If the new project goes well, then you can proceed to import the project you was working on originally.
Thank you. I think there are possibly issues with this upgrade path. It was supposed to have uninstalled completely (said it was doing so) and installed 3.3 afresh. However when you open "AS" itself it opens with the existing project in place. It is not until you close that project that it suddenly closes AS, reopens AS and enters the first startup wizard to complete the remainder of the installation / configuration.
I think I am a step further on since then.
Thanks