[Q] Is it possible to patch files within System.ext2 - HD2 Android Q&A, Help & Troubleshooting and Genera

What I`m trying to do is change the bluetooth setup in darkstones FroyoV1 to the same as mattcfroyo. Basically that is the only build that works with my cars bluetooth kit every other one doesn`t work. However it tends to crash on me. I have read and extracted the bluetooth and brcm bluetooth services using explore2fs (I`m on Win 7) that gives me both .apk and .odex files, though FV1 only uses .apk files. Is there a way to patch them in? I did try to use Astro but it wouldn`t. I had a read through the development thread but it might as well have been written in Klingon.
Edit: Ok now I`m thinking I need to be using ADB from the SDK

I used root manager for this sort of operations. I am also interested in this bluetooth port you try to achieve. Could you please upload the files somewhere so I could try it myself.
Thanks and good luck
Sent from my HTC HD2 using TapaTalk

Fall Guy said:
Edit: Ok now I`m thinking I need to be using ADB from the SDK
Click to expand...
Click to collapse
Code:
adb install whatever.apk

Ok more tricky than I`d hoped.
Can`t just install over the top won`t let me, can`t install -r as certificates don`t match. Push doesn`t seem to do anything that I can tell but not sure enough about the directory setup to be sure I`m trying to push it to the right place. And there doesn`t seem to be a delete option.
http://www.megafileupload.com/en/file/257992/Bluetooth-zip.html
Link to extracted files as requested though there may be others needed as well

Related

adb pushing apn list

Can anyone tell me what I am doing wrong...
I am trying to push an apn list to my magic 32b (vodafone) and am using the following commands
adb devices
adb remount
adb push apns-conf.xml /system/etc
This is how i`ve seen to do it on these forums... and it pushes ok... but i never get any apns show up on my phone..
even after doing the reset to default thing.
What am i doing wrong?? does the file need to need to be somewhere else on the phone?? or called something different???
any help is appreciated
bump######
maybe try packaging it into an update.zip and updating it through recovery. that might work. some files wont let you just simply push stuff through.
you can try first to push it again through recovery. so reboot into recovery and try pushing it.
if dont work, try the update.zip method.
will try what you mentioned... but I have a feeling it wont work...
as cyanogenmod roms already have the file in them. Why does it not already show up some APNs if not mine.
Now trying again.
ok so tried pushing while in recovery mode, and no luck...
I have never put together an update.zip... so am wondering how i would go about it...
Does the zip need signing??? and how would i structure it to make certain the file goes to the right place??
Thanks for your help
Yep.. it needs to be signed.. I've re-searched this files to sign and they are a bit out there.. you may find some dead links, but there's always a good one.. But, tell me you, use a linux OS? Because what's out there is for linux, I don't even researched if there's something for windows!
i`m on windows :-(
wud luv to make the change to linux, but dont know enuf... and like my gaming to much!!
Cud anyone on a linux machine possibly put together an update.zip for me??
search in the dream's theme forum for stericson's easy auto sign app. works for windows.
I always push my apns-conf that way.
Just one thing: do you do it right after wiping, updating and rebooting? On the PIN screen at first boot, before the Android tutorial.
That's how I do it and it works fine for me.
RolSMcS said:
I always push my apns-conf that way.
Just one thing: do you do it right after wiping, updating and rebooting? On the PIN screen at first boot, before the Android tutorial.
That's how I do it and it works fine for me.
Click to expand...
Click to collapse
it wont work because the system doesnt read that file after first boot...apn list is loaded elsewhere in /data/data/
If ur going to do it that way u have wipe data after in recovery or delete the data/data/com.android.telephony watever folder and then reboot .....wiping data being easier
Sent from my EVO 4G using XDA App

Need Mac Beta Testers: Interface for Pushing Files

Hello,
I need beta testers running Mac OS X to test a new application.
This application is for people who are either uncomfortable or unwilling to use Terminal and ./adb for pushing files to their device.
This first beta version is just to test how it works on different computers. It pushes the file to the sdcard of the phone using ./adb. The only input needed from the user is to select the file.
Later releases will let the user choose which folder on the device to copy to, but the next release will probably just involve pushing .apk to the /system/app folder.
Please let me know the results.
http://derekcwilkinson.com/PushFile.zip
Beta 2:
http://derekcwilkinson.com/Push_File_Beta_2.zip
Change Log:
Added option to choose the location that the file is to be pushed to.
Added Recovery application
Added Reboot application.
Planned Updates:
Pull File - Ready
Device Backup - PM me if you know a good way to backup with ./adb (mine is taking too long)
Device Backup w/SD - PM me if you know a good way to backup with ./adb (mine is taking too long)
Install .apk - testing
Uninstall .apk - testing
Restore Backup - going to take awhile (need to get device backup working first)
Restore Backup w/SD - going to take awhile (need to get device backup working first)
Flash ROM - testing
is this an actual program or a script?
Works fine for me
mrchu001 said:
is this an actual program or a script?
Click to expand...
Click to collapse
It's a program that runs a script
It's just a test to see how it works, I will turn it into a more "real" application later.
I've updated it to Beta 2
I'm copied/pasted the android folder into /User/document but when i run "Push File With Location" show this error message -->
( iMac Snow Leopard v.10.6.3 build 10D573
@rainbow
same thing happening to me!
rainbow2112 said:
I'm copied/pasted the android folder into /User/document but when i run "Push File With Location" show this error message -->
( iMac Snow Leopard v.10.6.3 build 10D573
Click to expand...
Click to collapse
Hmm, strange, I haven't had any beta testers have this issue.
Is the phone connected with USB debugging?
derekwilkinson said:
Is the phone connected with USB debugging?
Click to expand...
Click to collapse
Yes, I have always flag on debugging USB mode.
rainbow2112 said:
Yes, I have always flag on debugging USB mode.
Click to expand...
Click to collapse
Try this, and tell me where the error comes up.
http://derekcwilkinson.com/PushFileSource.zip
derekwilkinson said:
Try this, and tell me where the error comes up.
http://derekcwilkinson.com/PushFileSource.zip
Click to expand...
Click to collapse
When run this, automator show this windows ...
rainbow2112 said:
When run this, automator show this windows ...
Click to expand...
Click to collapse
Ah, you're using a different language. That could be the problem. Is the folder path still /Documents/Android/SDK/tools on your computer?
Also, when you run it in Automator, where does the error occur?
derekwilkinson said:
Ah, you're using a different language. That could be the problem. Is the folder path still /Documents/Android/SDK/tools on your computer?
Also, when you run it in Automator, where does the error occur?
Click to expand...
Click to collapse
The folder path in my iMac is /Users/Rainbow/Documents/Android/SDK/tools
the error occur after a few seconds after click OK after choosing the file to be sent to MemoryCard
Okay, if it doesn't occur until then, that means it sees the device and android SDK. Is the SD card mounted on the computer? are you copying to /sdcard/ as the file path?
derekwilkinson said:
Okay, if it doesn't occur until then, that means it sees the device and android SDK. Is the SD card mounted on the computer? are you copying to /sdcard/ as the file path?
Click to expand...
Click to collapse
No, sdcard no is mounted.
i don't understand this_ " are you copying to /sdcard/ as the file path?" sorry
When that window pops up (the one in your screenshot) are you putting /sdcard/ in the text box?
im going to try your app out =]
excited.
Sick of windows..
I am so sick of using a windows computer to do anything on my Hero so as soon as I get home tomorrow I will be trying this out on my system. SL 10.6.4 and I will be so happy to do it..
404 File not found. I'd love to help test this - can someone please re-upload the zip?
Edited 1/16/11
I'm using root explorer so this isn't really necessary for me anymore.
cloudstrife7 said:
404 File not found. I'd love to help test this - can someone please re-upload the zip?
Edited 1/16/11
I'm using root explorer so this isn't really necessary for me anymore.
Click to expand...
Click to collapse
I'm a bit confused--PushFile is for pushing files from your Mac to phone (in other words, a computer-side application), while Root Explorer is a file manager for the phone (a phone side app), that, unless I've missed something, does not replicate the functionality that PushFile attempted to provide. Am I missing some cool new feature of Root Explorer that lets you easily transfer files from your Mac to your phone?

errors when using adb and CM6 on HTC aria

I wonder if other people are having these issues, story follows.
I was trying to install the updated ADW.launcher via the adb install command and was getting errors such as "/sbin/sh pm not found". This led to an investigation and it turns out that all the standard applications used to install stuff under android are in /system/bin BUT... The path in the CM6 rom does not have /system/bin in the PATH variable. The only path element as far as I can tell is /sbin. So the solution I came up with was to copy over all the tools from /system/bin to /sbin and this worked.
So here is the real question. How do I change the path on the android device? I have already tried export PATH=$PATH:/system/bin but this does not stick after I close the adb shell.
Update: oh great when you reboot the phone all the copied tools disappear and you have to do it all over again to install another file. Did not expect that one. This makes my need to change the path even more urgent.
Update2: I found it easier to just push the new file over top of the old one in /system/app. This will work for system apps and if I need to install other apps I can just load them from the sdcard.
Is there a reason you are not installing it from market? ADW is the default launcher in CM6, so the one from market is not the same, but they can coexist.
so the one from market is not the same, but they can coexist.
Click to expand...
Click to collapse
Yea I was not really sure about that so I felt it was safer to download the one for CM6. If that works I will do that in the future. I ended up just doing a push over the older version in /system/app, this worked fine.
Is there a reason this rom does not have /system/bin in its path? Is it to avoid toolbox?
anika200 said:
Yea I was not really sure about that so I felt it was safer to download the one for CM6. If that works I will do that in the future. I ended up just doing a push over the older version in /system/app, this worked fine.
Is there a reason this rom does not have /system/bin in its path? Is it to avoid toolbox?
Click to expand...
Click to collapse
It is in the path.
# echo $PATH
/sbin:/system/sbin:/system/bin:/system/xbin
#
Can you help me to change the path? Mine is only /sbin for some reason.
Normal export command did not work for me. Thanks
Maybe its baked into the boot.img? What about the init scripts? Any clues where to start? Maybe I will just flash on a new nightly, would that over write the existing path info?
Ok, I found some clues. A document on the android init scripts describes the path settings. I will poke around in there and see what I can muck up. http://www.netmite.com/android/mydroid/1.6/system/core/init/readme.txt
Sent from my Liberty using XDA App
Answered my own post.
To change the path you need to edit init.rc and add the correct path.
For some reason the nightly I was using had the wrong path in there and would not let me use adb install correctly. I would get an error back "/sbin pm not found". The adb installer was looking for a tiny program (a shell script really) named "pm" but it could not find it because pm is located in /system/bin which was not in the search path. Probably would have caused other problems too.
On a side note, why could I not get an answer to this simple question on a developement thread. Seems like rom creators/moders would know this second hand. Not complaining just makes me wonder.
Sounds a lot like a complaint to me.
I've been busy working on issues that are not isolated to a bad nightly, such as why we can't read telnos and contacts from the sim card.
/system/bin/sysinit gets pulled in from the cm6 repository, so things on nightlies are very fluid - I never know what to expect. Looking at my build, there is no way I could answer your question in any definitive way that would explain the discrepancy. Since I could not verify the problem, I deemed it a non-issue and moved on.
That did sound like a complaint, sorry. It was not really directed at you as I assume there is more than one developer on this site. I got it solved no problems. Maybe this will help someone else down the road. I have seen a few of these posts around and never saw a concrete answer.
I am surprised the phone ran so well with the path mangled so bad. I am also a little surprised that init.rc gets touched at all on a nightly cycle. One of those things I guess.
anika200 said:
I am also a little surprised that init.rc gets touched at all on a nightly cycle. One of those things I guess.
Click to expand...
Click to collapse
I was a little surprised as well.

VERY very long shot...

Hi all,
Love my HTC Desire so much i bought a Witstech A81E Android 2.2 Tablet. Which is pretty buggy to say the least though on the whole works well.
The one thing that is driving me crazy is a number of apps dont install with the logcat error:
"packagename.apk requires unavailable shared library com.google.android.maps"
Now from what i have read apparently this device does not come with Google Maps API so my question is how do i add it?
Can it be done? Do i need to modify a ROM to do it? can i push it via adb or apk?
A little help would be greatly appreciated.
It would need to have google apps installed to be able to access the libraries. Best bet is to find out if it has been rooted yet and try to install the proprietary applications they can't ship the device with.
appreciate the help mate. i've rooted the device though where can i find google maps api?
the unit already has google maps 5.0 installed but apparently doesnt have the API's.
Any idea what im looking for? will it be an APK or just some files i need to put in a system folder?
i think im over my head
additionally i have searched for any com.google.android.maps related data on my desire and have found the following:
/system/framework/com.google.android.maps.jar
/system/etc/permissions/com.google.android.maps.xml
/etc/permissions/com.google.android.maps.xml
/data/dalvik-cache/[email protected]@[email protected]
could it be as easy as copying this over to my tablet?
Ill try it out tonight.
If the application is installed correctly it should work because the api is stored in the data. Is the application on the tablet installed to the /system/ or /data/ partition. It might be looking for the data in /system/
not sure what you mean about where the application resides? you mean the app i am trying to install? The app i am trying to install is Tasker.
i have been doing some googling and saw someone else have the same problem and he managed to fix it:
When trying to install some apps, I would see this error message in logcat:
requires unavailable shared library com.google.android.maps
I had the Google Maps app installed and working, but that didn’t fix the issue. It turns out, I had to add two other files and restart the phone. I found those files in the google zip from Cyanogenmod. It took a little fiddling, but I was able to use these instructions to remount /system in write mode. First step was to take the following two files from the google apps zip (gapps-hdpi-20101114-signed.zip) and put them onto my sd card.
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Then to load them onto the phone, I opened the terminal emulator and ran:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /mnt/sdcard/com.google.android.maps.xml /system/etc/permissions/
cp /mnt/sdcard/com.google.android.maps.jar /system/framework/
Then after I rebooted the phone, I was able to install apps that depend on Google Maps. I can now check bus and train times, and do all kinds of other cool stuff with maps!
Click to expand...
Click to collapse
i simply used root explorer to copy it across though still not working. surely someone smarter than me can tell me what i am doing wrong.
is copying with root explorer essentially the same as above?
damn i could have sworn someone here would have been switched on enough to help me on this
oh well back to random googling for me.
Well did you try using terminal emulator? And do what he did? B/c that looks like a remount to system to me easy as pie just do what he did you can find the files with root explorer or do it on your pc doesnt really matter. You can Not achieve what he did just using root explorer you need terminal emulator!
Sage said:
damn i could have sworn someone here would have been switched on enough to help me on this
oh well back to random googling for me.
Click to expand...
Click to collapse
I don't know how much it will help (or if its 100 percent true) but I was just told recently that moving a file via root explorer is the same as pushing it via adb.
sent from gv1.5 on g2
^correct
Sent from Enrique Iglesias.
now i am confused. can i use root explorer or not? i used root explorer and then reset the correct permissions on the files though its still not working.
I take it i can get a terminal emulator that runs on the device itself yeah?
Ill try that next.
If that fails i am going to try my first attempt at cooking a ROM
Appreciate all the help!
no more love for Sage?
i dont know why its so hard..
I did try to cook the original ROM though unyaffs couldnt extract the img.
looks like i might have to boot up a Virtual nix box.. damn this is so much harder than it should be.

Cant install Cynagenmod 7

Someone please help me.
I already ahve a Rooted DHD. With clock mod receovery installed et.c.
(running Android HD)
but if anyone can tell me, I want to switch to Cynagenmod, Looks more good.
One there Wiki page, When installing the ADB.
http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK#Windows
Im stucked at the 11 and afterwards. I did everything like it, nothing happend, Plugged in the Mobile with the USB bugging mode and did everything what i can.
But it's not working out, please somebody help.
On my computer the SDK didn't install to c:/ by default; it landed in C:\Program Files\Android\android-sdk\platform-tools
You then have to change step 11 to:
In the "Variable values" section, add at the very end the location of the tools & package-tools folder, with a semicolon separating these two paths from the rest, e.g. C:\Program Files\Android\android-sdk-windows\platform-tools;C:\Program Files\Android\android-sdk-windows\tools.
Click to expand...
Click to collapse
And 12 becomes:
The Google USB Driver package only supports select devices out-of-the-box, we will be downloading a modified file that should provide support for all CyanogenMod supported devices:
Download the modified driver inf file: Download
Unzip the file & inside you will see android_winusb.inf. Copy this file to C:\Program Files\Android\android-sdk-windows\extras\google\usb_driver\ replacing the "stock" android_winusb.inf.
Click to expand...
Click to collapse
Dan
I don't get it...why would you need to install Android SDK and ADB drivers to just go from ARHD to Cyanogenmod7?
anetam said:
I don't get it...why would you need to install Android SDK and ADB drivers to just go from ARHD to Cyanogenmod7?
Click to expand...
Click to collapse
No idea, boot into recovery, and wipe data then install from zip, and job done
Hey can you provide an update with how CM7 compares to ARHD 6 as I think i'm getting tired of ARHD. I keep finding little things in ARHD that annoy me but don't want to go through flashing again for no reason, yet
Sent from my HTC Desire HD A9191 using XDA App

Categories

Resources