HeLP ! possibly bricked my G1 - G1 Android Development

fmlfmlfmlfmlfmlfmlfmlfmlfmlfml

Hello there, Im assuming you are on JFRC33 b/c you didnt specify so this will fix it if that's your case. Just a question. Did you use JFRC33 Lite or make your version of JF lite by removing system sounds? Reason for this is that just about every theme for RC33 1.42 requires system sounds to be removed.
Anyway to get back you will need to re-update to JFRC33 1.42. Your phone isnt bricked it's just out of 'system' memory. Once you reupdate to JF you should be good to go. When you decide to retry a theme I suggest you go into terminal emulator first and type these commands:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp -rf /system/media /sdcard
rm -rf /system/media
That will move your system sounds to your SD card and make room for the larger theme files. Hope this helps

..........

take you battery out.
and firgure out a way to put the update.zip for JF rc33 BACK ON YOUR SD CARD.
then reboot in recovery mode.
and alt-s that mutha sucka.

im confused.

e
If you're stuck, flash back to rc29 and re-root... even if you had root acess or not. Rc29 fixes all.

sino8r said:
If you're stuck, flash back to rc29 and re-root... even if you had root acess or not. Rc29 fixes all.
Click to expand...
Click to collapse
greatest advice ever
dont post useless info
if you need help ask for it
dont just say fml
post your steps and what happens when and where

Related

Deleting system sounds

Was just wondering if anyone has deleted ringtones, notification or alarms successfully? `ould love to get rid of them if possible. Tried making a copy of jf rc30, deleting them and amazon apk then installing but didn't work gave me error message.
i removed unused ringtones w/o any issues
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Hmmm, changing to read/write and trying to use Astro gave me "error deleting file"
Any other ideas?
Dharkaron said:
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Click to expand...
Click to collapse
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
stats555 said:
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
Click to expand...
Click to collapse
Word let me know if this works. I asked in another thread how to do it but no one answered. All I got was the "yes you can delete them" response
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Worked great thanks!
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
BlueBoar said:
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
Click to expand...
Click to collapse
Yeah i hear you on that, just a bunch of crap taking up space. I use mp3's for ringtones so no need to waste system space on them! I just learned how to use adb thank god!
Update - deleted most of the ringtones and 4 notifications, freed up 2mb's
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Sweet worked like a charm! Thanks a bunch
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Beast84 said:
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Click to expand...
Click to collapse
wow, thank you!
Cargo75 said:
wow, thank you!
Click to expand...
Click to collapse
No problem. Just figured I'd pass some of the knowledge these fine peeps here have passed on to me
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
In the future, you may what to do this through your PC to prevent carpel tunnel... You can download the Android SDK from here: http://developer.android.com/sdk/1.1_r1/index.html
Extract it to your drive. Navigate to that folder in a command prompt window then "tools". Once there you can run(make sure the G1 is plugged in the usb):
adb remount (remounts the system read/write)
adb shell (this drops you into the shell to interact with your phone)
cd /system/media/audio/
From there you should be able to follow the proceeding directions.
I went and did all this and even went the extra mile and pushed some of my custom mp3's to the file (about 3 meg worth). Is this going to cause problems with updating in the future?
You don't need to remount the system to read/write manually if it already has been done with DroidSans do you?
I usuall y do the mount through Terminal emulator.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
bam gone!
I tried to copy and after mounting I typed:
cd /system/media/audio/
ls
then got:
alarms
ringtons
notifications
ui
then I typed: cp /system/media/audio /sdcard
and got this message:
cp: omitting directory '/system/media/audio'
is it something small and dumb that I'm doing or are the files copied?

moving dalvik-cache to /cache ???

saw this over here...
http://andblogs.net/2009/05/quick-hack-save-tons-of-space/#more-1660
Quick Hack: Save Tons of Space
Posted on May 8th, 2009 in Android Hacking by Disconnect Tagged cupcake, customize, G1 & ADP1, hacking, howto, kernel, space
So I was looking at my phone, and under 1.5 my dalvik cache was 31 megs (!!!). Rather than move apps to SD (I use my sd card for other stuff, and my apps are only 15 megs anyway) I began thinking.. what else could I move? Aha!
Here are the directions for moving dalvik-cache to /cache, which is unused on these images anyway (it is only for OTA updates.)
There is no fancy installer or much support, and there may be bugs (I only just did this today.)
Its pretty easy. And, so far, works well for me This walkthrough isn’t going to be particularly handholding, but if you need more help try the comments.
Just boot up a capable recovery image (such as JF’s) and mount up /cache and /data.
view sourceprint?
1.# cd /cache
2.# mkdir dalvik-cache
3.# chown 1000 dalvik-cache
4.# chgrp 1000 dalvik-cache
5.# chmod 771 dalvik-cache
6.# cd /data
7.# mv dalvik-cache dalvik-cache-orig
8.# ln -s /cache/dalvik-cache dalvik-cache
The other thing you need is a new boot.img. This one is tuned for JF’s 1.5 adp1 image, and it may or may not work with anything else. Boot Image Cache to Cache JF1.5-ADP1 (71)
(All it does is create the /cache/dalvik-cache dir if it is missing and make sure the perms on /cache are 771 instead of 770.)
Tadah! If everything works, you can remove dalvik-cache-orig. If not, just flash the backup (you did take a backup, right?)
Enjoy!
(Big thanks to JF for helping with the boot image since I have no dev tools right now, and for testing it out for me too.)
any one try it yet? be nice to free up 70meg more on the phone...
Has anyone tried this?
I tried to follow it, but I dont know what to do with the boot.img.gz file.
I did everything else but I got an unbootable phone afterwards and was forced to do a wipe.
I'm running JF 1.5 ADP1 image.
Any help is welcome.
THanks
this is potentially dangerous. /cache may be cleared under many occasions, so if a modified init.rc is not used, you may have a loop on boot.
even if you have such init.rc file, it would be painful to boot after /cache is cleared.
the ultimate solution is to use haykuro's new spl.
M0E-lnx said:
Has anyone tried this?
I tried to follow it, but I dont know what to do with the boot.img.gz file.
I did everything else but I got an unbootable phone afterwards and was forced to do a wipe.
I'm running JF 1.5 ADP1 image.
Any help is welcome.
THanks
Click to expand...
Click to collapse
if you do not flash the modified boot.img file then you CANNOT move the stuff to /cache .. each time you boot it is mounted non-executable .. the modified boot.img makes it executable each time you boot .. if dalvik-cache cannot execute then your phone doesn't load
LucidREM said:
if you do not flash the modified boot.img file then you CANNOT move the stuff to /cache .. each time you boot it is mounted non-executable .. the modified boot.img makes it executable each time you boot .. if dalvik-cache cannot execute then your phone doesn't load
Click to expand...
Click to collapse
Is this the boot.img.gz linked in that howto up top?
If so, how do I go about flashing it?
I really need a solution. I do a lot of online radio streaming and my memory runs out quick. I'd really like to keep my jf 1.5 setup as I have become quite confortablle with it
M0E-lnx said:
Is this the boot.img.gz linked in that howto up top?
If so, how do I go about flashing it?
I really need a solution. I do a lot of online radio streaming and my memory runs out quick. I'd really like to keep my jf 1.5 setup as I have become quite confortablle with it
Click to expand...
Click to collapse
that boot.img.gz file is an archive .. extract the boot.img file out of it to the SD card and then it's something like:
flash_image boot /sdcard/boot.img
or something like that in Terminal .. and then just reboot
And is this done in just terminal or do I need to boot the recovery console?
M0E-lnx said:
And is this done in just terminal or do I need to boot the recovery console?
Click to expand...
Click to collapse
i can't even justify that line of questioning
LucidREM said:
i can't even justify that line of questioning
Click to expand...
Click to collapse
That is the most eloquent response of that nature I've ever seen. I wish I could +1 rep you for that
I gave it a shot, keep getting an error " cannont rename 'dalvik-cache': No such file or directory!
Using RA 1.2.3
ROM
prophetz said:
I gave it a shot, keep getting an error " cannont rename 'dalvik-cache': No such file or directory!
Using RA 1.2.3
Click to expand...
Click to collapse
what ROM are you using? if you already have some form of apps2SD running your dalvik-cache may already be moved .. or you may have mistyped something

HTC PDFviewer working on JF and Haykuro builds!

I"ve been whinging about this for awhile. A champion called strazzere has managed to patch the pdfviewer.apk. And has been tested on the JF build and Haykuro builds and also the latest SPL
Check it out his awesome work - http://strazzere.com/blog/?p=266
Original thread at apps forum - http://forum.xda-developers.com/showthread.php?t=506595&page=4
Instructions
1. Download referenced files
http://www.strazzere.com/android/libpdfreader.so
http://www.strazzere.com/android/FilePicker.apk
http://www.strazzere.com/android/PDFViewer.apk
2. Copy all files to your sdcard
3. Install the patched pdfviewer.apk either using your standard file explorer (Astro, Lina, etc) or using:
adb install /location_of_your_file/PDFviewer.apk
4. Copy the refenced files to the correct location, either adb shell or terminal emulator punch in:
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cp /sdcard/libpdfreader.so /system/lib
# cp /sdcard/FilePicker.apk /system/app
Enjoy =]
Problems and Fixes
--------------------
If you have any initial problems, try redownloading the files because they may be corrupted.
FilePicker does NOT need to be "installed (going through Linda/Astro file manager or adb install)" so to speak, just following the above steps and copying it to correct place is sufficient.
A JF complete image with Pdfviewer included:
savethechicken said:
if anyone wants it I have compiled JF1.5 with this Pdfviewer and the new Better Terminal (old one removed) app already installed you just have to ALT + S. I have tested it on my device and it works perfect. I didn't do anything special and am taking no credit for the ROM as I just copied the files into the right spots and resigned the .zip file.
I tested it twice... both times flashed without any problems
If you choose to use it just like any other ROM update.
Rename update.zip
boot into recovery
alt+s
home+back
**should not have to wipe**
PDFJF1.5.zip
Click to expand...
Click to collapse
Enjoy =]
Yeah, hey...does that come in a shiny noob edition?
You mean without using adb?
tr.slate said:
Yeah, hey...does that come in a shiny noob edition?
Click to expand...
Click to collapse
Follow the link and download the 3 files: libpdfreader.so, FilePicker.apk, PDFViewer.apk.
Open the terminal and enter the following:
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cp /sdcard/libpdfreader.so /system/lib
# cp /sdcard/FilePicker.apk /system/app
# reboot
When the phone restarts, use a file explorer of your choice to find and install PDFViewer.apk via package installer.
Gonna try this later
works great!
thanks!
glad you like it thanks for the rehash smurphete, and thank you for retaining the credits
thx for this.
Works great on jf's build, thanks for sharing.
Go Lakers!!!
strazzere...
AWESOME!!!!
works great thanks!!!
thanks alot
Thanks for the great I used download crutch and the second set of instructions using the terminal worked fine. Never undertood using adb when all can be done right from the phone no pc needed.
works great! thanks!
Awesome! Thanks guys!
Cool that he got it working on JF 1.5, but the HTC PDF viewer is so slow, RepliGo Reader on the Market render pages much faster.
I was using repligo before this came out...I think repligo and htc pdfviewer render pretty much the same speed. Biggest annoyance about repligo is that it renders one page at a time. Look at one lecture slide. Next page....wait....wait...wait....rendered...damn not the slide i want...maybe its page 5.....go to page 5.....wait...wait...wait....
Whereas pdfviewer renders multiple pages at a time. But repligo is completely pwns pdfviewer when you zoom in and out, no loading time at all.
And repligo costs $$$ && think of us poor souls in countries without paid apps...well legitimately anyways
Im sorry, did i miss something? the pdf viewer i pulled from either a haykuro build or one from thedudes a long time ago has been working fine on any build ive used. im on jf1.5 now and it works with no problems
Thanks for this, been wanting it. Works great.
There is yet another way to do this from your PC, maybe easier for some.
1. Download the files to your /sdk/tools folder.
2. At a command prompt enter the following commands:
a. adb remount
b. adb push libpdfreader.so /system/lib
c. adb push FilePicker.apk /system/app
d. adb push PDFViewer.apk /system/app
All done.
Thanks to all who contributed to this, it actually opened a pdf that I couldn't previously view on my phone!
Nice work on this. I messed around with the bytecode of this thing for hours trying to remove the calls into com.htc.protection but eventually got frustrated and gave up. Glad someone with more patience picked this up.
Anybody try it on an HTC 1.5 f/w?

LGL45C CWM/Roms

This Guide is For the Lgl45c On how To install Cwm And install two Roms
THIS IS ONLY FOR THE LGL45C NOT THE P690
Un-zip and place flash_image(no extension) on the root of your SDcard, along with LGL55C_recovery.img that you just downloaded.
View attachment files.zip
Then to install, in "terminal Emulator" on your phone, type:
su
mount -o remount, rw /system
cp /sdcard/flash_image /system/bin
cd /system/bin
chmod 777 flash_image
flash_image recovery /sdcard/LGL55C_recovery.img
reboot recovery
Do you happen to have a working ROM for this phone? I really need one BAD! I have CWM on the phone but my backup got corrupted and I have no working ROM on the phone right now. Can you help me out with one please?
Thanks for the files, I am going to try everything I can to get them to work with trying to get some sort of working ROM on this damn thing.
Regards,
rast4man
no news on this phone?
i dont know what went wrong but recovery didnt install right i guess. i can only get into emergency mode but cant flash i keep getting load dll error on kdz
error message in term em
first lgl45c works perfectly no problems getting recovery and roms installed. so i figured why not get a second phone for my son and root it the same way,for $20 why not. so......
1) i root with unlockroot pro again,all goes well. i check it and it is rooted.
2)i install a file explorer and term em. i also get cwm 6 because that is what i choose on first phone
3)i checked to make sure recovery image and flash image are named correctly, and put the on sdcard in the right spots.
4)i get su rights and try to get into /system/bin/ i get message "/system/: permission denied"
ive tried doing different ways of getting into just system and still get the same error message.
any help would be gratefully appreciated
again i did this on my first phone and it went flawlessly
Rom
Will this remove the stock rom? I cant find a stock rom for backup.
I can link the stock ROM to my Dropbox if you need it. Let me know.
Can you help me root my phone?
Sent from my vivo Xplay using XDA Free mobile app
I assume it is this phone? L45C?

can't remount /system as rw

I think I'm starting to go slightly insane here.
Can't for the life of me mount /system as rw, it's only ro.
Ways I've tried:
- using mount command in terminal emulator
- using rw remount button in total commander
- using adb shell to do the same thhing as terminal emulator
i have supersu and all of the above were granted superuser but still no luck
here's relevant part of console output, but it doesn't do anything.
Code:
D:\Downloads\adt-bundle-windows-x86_64-20131030\sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # mount
mount
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
[email protected]:/ # mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
the directory stays read-only.
the whole reason i'm trying to do this is so i can stick in a boot animation (link) into system/media ...is there an easier way? i've tried 3 different file explorers with super but they all fail because it's not rw.....
and adb cant push to it either because it's rw.......
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
rootSU said:
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
Click to expand...
Click to collapse
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
DryEagle said:
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
Click to expand...
Click to collapse
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
rootSU said:
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
Click to expand...
Click to collapse
thank you!! this solved it!
No worries
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

Categories

Resources