yashsingh1/xdaforums huggingface dataset:
[HTC Aria Android Development] munjeni:
Something is wrong in forum with attachments, all is 404 not found... we need to report that to moderators!

Dimon2242, cache and userdata (I found algorithm for changing sizes for system and cache but steps is 16,32,48,64...etc or 0x10,0x20,0x30...etc), but userdata no reguire these steps, so its reason why I added "corection table" in order to prevent wrong patch... so you can add "check table" in your app to check if "block size" is ok. Just for idea, I done it like:

$chk = array();
for ($i=0; $i<0xfff; $i+=16) {
$chk[] = $i;
}

if (!in_array($sys_blocks, $chk)) {
info(" FAIL!\n\n");
echo "\n\n" . $sys_blocks . " blocks for system? Sorry it's not compatible! Pick one value from table for syatem:\n\n";
}
[HTC Aria Android Development] dimon2242:
Then rebuild the calculator, I forgot to release a release :-) and create mirror
[HTC Aria Android Development] munjeni:
Found how blocks require Froyo stock rom, its easy to find with command df

adb shell df
/dev: 149556K total, 0K used, 149556K available (block size 4096)
/mnt/asec: 149556K total, 0K used, 149556K available (block size 4096)
/system: 231424K total, 224312K used, 7112K available (block size 4096)
/data: 232576K total, 86016K used, 146560K available (block size 4096)
/cache: 12288K total, 1160K used, 11128K available (block size 4096)
/mnt/sdcard: 7126924K total, 875172K used, 6251752K available (block size 4096)
/mnt/secure/asec: 7126924K total, 875172K used, 6251752K available (block size 4

So froyo runing in my phone reguire for system minimal:

231424Kb - 7112Kb + (lets give 2mb free space... 2*1024)kb = 226360kb

convert it to bytes = 226360 * 1024 = 231792640 bytes

convert it to blocks = 231792640 / 131072 = ~1768 blocks for system partition

So generating hboot will be something like: hboot_cust 1768 ...etc...etc Maximaly minimising system and cache partition will increase a lot of userdata partition space... and thats only reason why I created this tool!
[HTC Aria Android Development] dimon2242:
Compile new hboot calculator, link in this post http://xdaforums.com/showpost.php?p=28190345&postcount=37

Add this in first post!

P.S. I'm not very good at programming, on this I can not add!
[HTC Aria Android Development] tebuddy:
I hate to be *that* noob, but what are the advantages over the hboot I would be running on my phone now?
[HTC Aria Android Development] munjeni:
Yur answer is in post 42 :)
[HTC Aria Android Development] DanGeorges:
I'm guessing that that post means something, but because I'm not a developer, I can only guess.

A simple explanation would really help (e.g., "increases usable space on device from X mb to Y mb").
[HTC Aria Android Development] munjeni:
As I say in post 42...

... so that mean:

this tool is for creating custom partitions sizes. For exmple, default hboot have ~250mb system, 40mb Cache and all remaining space is for userdata, so thats not needed for example cm9, but you can decrease system space and cache space by this tool, for example cm9 rom need minimal 220mb space for system and minimal 5mb for cache, so when you decrease system+cache you have automaticaly more remaining space for userdata (more space for market applications)... I think its clear now?
[HTC Aria Android Development] drumist:
Using the tool can give you in the ballpark of 50 to 65 MB of extra space for storing downloaded applications when using CM9 (probably less for non-Cyanogenmod ROMs).

However if you are using an apps2sd solution (like S2E or something else), then that wouldn't matter too much since you've already got a lot more space available on the SD card for applications. Still, the SD card is slower than internal memory, so if 50 extra megabytes is enough to allow you to fit all your applications to internal memory, then you could completely stop using an apps2sd solution and regain a little bit of speed.
[HTC Aria Android Development] DanGeorges:
This is very clear - and makes a lot of sense.

I'm currently trying the CM 7.2 ROM with S2E, but would really like to run most apps from the phone itself.

Have you tried this yet?

Dan

---------- Post added at 06:17 PM ---------- Previous post was at 06:01 PM ----------

Once (hopefully last) question before I try this:

If I just boot my phone into Recovery and flash the images (I use Android Flasher), will my ROM and everything remain intact, or will this essentially wipe the device?

In other words, will I need to restore from backup or is this just like flashing a boot image or something like that?

Thanks!
[HTC Aria Android Development] drumist:
I'll let munjeni answer your questions since I don't know, but I *believe* that if you do this, any previous Nandroid backups will be unusable (since the partition sizes don't match), and you will have to do a clean install of a ROM.

I have no idea if using Android Flasher to install the HBOOT will work correctly with the Aria or not.
[HTC Aria Android Development] munjeni:
If you have backup it will working for sure ! Sizes is not problem, only problem is if you make system partition without enought space needed for that rom that you using (will not boot), so before you calculate new partition sizes use adb shell and command df to see how your system partition have size and how remaining space have, than use calculator and calculate new partition and make sure to give ~2mb or more for free space...

In post 42 I explained simple step to get/calculate right size for system partition, so read that carefully and you will create right space for sure
[HTC Aria Android Development] dimon2242:
Add to first post my calculator for just get values with autocorrect values sum

For Windows:

Version 4 http://d-h.st/yjE

For Linux

Verison 4 http://d-h.st/HFP
[HTC Aria Android Development] munjeni:
Added calculator...
[HTC Aria Android Development] DanGeorges:
Thanks for this information.

How, other than Android Flasher, would I load the img files?

Are you thinking via ADB?
[HTC Aria Android Development] munjeni:
Yes, with adb, for example reboot to recovery and perform next commands:

Or by fastboot:

Or if you have allready installed revolutionary:

Its not true! You can restore backups normally !!!
[HTC Aria Android Development] DanGeorges:
Worked great!

It didn't affect the installed ROM or any user information/apps/etc. - it just changed the partition space.

I now have 60 MB additional space (from 185 to 245 MB total available).

Thanks!
[HTC Aria Android Development] :
This is what I get while running CM7.2 on an AT&T HTC Aria:

$ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 145.5M 32.0K 145.5M 0% /dev
tmpfs 145.5M 0 145.5M 0% /mnt/asec
tmpfs 145.5M 0 145.5M 0% /mnt/obb
tmpfs 8.0M 0 8.0M 0% /app-cache
/dev/block/mtdblock3 240.0M 128.6M 111.4M 54% /system
/dev/block/mtdblock5 185.1M 140.8M 44.3M 76% /data
/dev/block/mtdblock4 40.0M 1.1M 38.9M 3% /cache
/dev/block/mmcblk0p2 457.4M 8.0M 424.9M 2% /sd-ext
/dev/block/mtdblock5 185.1M 140.8M 44.3M 76% /cache/download
/dev/block/vold/179:1
7.0G 2.4G 4.6G 34% /mnt/sdcard
df: /mnt/secure/asec: Permission denied
/dev/block/dm-0 6.1M 4.1M 2.0M 68% /mnt/asec/net.flixster.android-1

It seems like there is a lot of wasted space.
[HTC Aria Android Development] DanGeorges:
So what are the Aria's default System, Cache, and Userdata values in MB?

It looks like:

System: 240

Cache: 40

Userdata: 185

Here are my values after this update:

Filesystem Size Used Available Use% Mounted on

tmpfs 145.5M 44.0K 145.5M 0% /dev

tmpfs 145.5M 0 145.5M 0% /mnt/asec

tmpfs 145.5M 0 145.5M 0% /mnt/obb

tmpfs 8.0M 0 8.0M 0% /app-cache

/dev/block/mtdblock3 156.0M 107.6M 48.4M 69% /system

/dev/block/mtdblock5 245.1M 143.4M 101.7M 59% /data

/dev/block/mtdblock4 64.0M 1.1M 62.9M 2% /cache

/dev/block/mmcblk0p2 1.8G 235.1M 1.5G 14% /sd-ext

/dev/block/mmcblk0p2 1.8G 235.1M 1.5G 14% /data/app

/dev/block/mmcblk0p2 1.8G 235.1M 1.5G 14% /data/app-private

/dev/block/mmcblk0p2 1.8G 235.1M 1.5G 14% /data/dalvik-cache

/dev/block/mmcblk0p2 1.8G 235.1M 1.5G 14% /cache/download
[HTC Aria Android Development] :
On the Aria, if you already have revolutionary installed, why do you need to flash the downgrader? I thought that was only for Gratias because they had a newer hboot that wasn't compatible with the revolutionary flasher.
[HTC Aria Android Development] munjeni:
...because you can not flash Liberty_custom.img while revolutionary is in your phone, only after flashing Liberty_downrade.img you can flash every hboot!

Warning:

With liberty_downgrade.img you can flash every hboot, so do not flash hboot from other phones because your phone will be hard bricked!!!

Yes! :) Its reason for this tool! So you can decrease system partition to (240-111+2)mb and increase userdata +~109mb more :) + decrease cache to 10mb and its +30mb more, so 109+30+current_userdata_space(185mb) = 324mb :)
[HTC Aria Android Development] :
I don't understand why you wrote to "decrease system partition to 242mb". It seems like it should be reduced to something like 130mb. Am I misunderstanding you?

Update: I went with a 140mb system, 10mb cache setup. I believe the numbers ending up being "1120 80 2521". That gives me this:

$ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 145.5M 32.0K 145.5M 0% /dev
tmpfs 145.5M 0 145.5M 0% /mnt/asec
tmpfs 145.5M 0 145.5M 0% /mnt/obb
tmpfs 8.0M 0 8.0M 0% /app-cache
/dev/block/mtdblock3 140.0M 128.2M 11.8M 92% /system
/dev/block/mtdblock5 315.1M 141.4M 173.7M 45% /data
/dev/block/mtdblock4 10.0M 1.1M 8.9M 11% /cache
/dev/block/mmcblk0p2 457.4M 8.0M 424.9M 2% /sd-ext
/dev/block/mtdblock5 315.1M 141.4M 173.7M 45% /cache/download
/dev/block/vold/179:1
7.0G 2.4G 4.6G 34% /mnt/sdcard
df: /mnt/secure/asec: Permission denied
/dev/block/dm-0 6.1M 4.1M 2.0M 68% /mnt/asec/net.flixster.android-1

I didn't need to reflash CM7, everything has just magically continued to work after the partitions were resized.
[HTC Aria Android Development] DanGeorges:
Have you noticed any performance lag with the smaller cache? I know I did when it was less than 35 mb.
[HTC Aria Android Development] :
I haven't used it much yet but it's only showing 1.1mb used. What apps gave you problems?

There's so much free space now that it wouldn't kill me to bump it back up if I had to.
[HTC Aria Android Development] DanGeorges:
It was in the reboot process - the home screen took quite a bit longer to display my widgets and such.

Now it's fine using your settings. 315 MB free. Wow! Before this, it was 185 MB.
[HTC Aria Android Development] :
Now that you mention it, yes, I did notice that it took longer for the widgets to display after rebooting. That's caused by the cache being too low?

I just rebooted again to test. It took about 40 secs to get to the lock screen and another 45 secs for the phone to login to Google's servers (turning the wifi meter blue). At that point I unlocked the phone and my widgets were loaded. On the whole, that seems equivalent to how it was before. Unless there is another problem, I'm satisfied with it now.

But because I was so low on space in the past, I quit installing non-essential apps like Facebook and Google+. Maybe once I start reinstalling these the lower cache will start to cause problems.

EDIT: I've reinstalled a bunch of apps and run them. Everything I'm running seems to cache data to the SD card. My /cache partition still shows 1.1mb used.
[HTC Aria Android Development] munjeni:
Sorry, my fault, I thinked (240-111+2)mb

I think its because new partition layout and not reinstalled rom cause that! Try to backup all your data and restore backup after hboot upgrade!
[HTC Aria Android Development] munjeni:
What you think about Desire C sense 4 rom :) ??? Is it will be possible runing on 450mb system and userdata on sdcard ??
[HTC Aria Android Development] zhuoyang:
well, since Desire C is ARMv7 someone will have to recompile all the lib to ARMv6 and it is very very hard.
[HTC Aria Android Development] DanGeorges:
OK. I'm stuck (again).

I tried to reload the stock HTC ROM, and now I'm stuck at the HTC black screen with four warning signs in each corner.

I tried the HTC bootloader unlock, but it didn't work.

Oddly, I can get to recovery by using Android Flasher. but the phone won't boot or get back to the bootloader or recovery menus on its own.

Any ideas?

Update:

Now I see (when I unplug the device) that it's S-On again (after trying to update it with HTC software.

Now I think I'm screwed...

Thanks!
[HTC Aria Android Development] zhuoyang:
EDIT:Sorry! wrong thread
[HTC Aria Android Development] DanGeorges:
No problem!

Any ideas anyway?
[HTC Aria Android Development] munjeni:
Your phone is stuck on ruu uptade but I think you can comunicate with your phone by fastboot or at least by linux screen! First try to send any command to phone by fastboot, for example fastboot oem ? ... If nothing happen try:

If you have linux machine try to make connection with your phone with linux screen:

sudo modprobe -r qcserial
sudo modprobe -r usbserial
lsusb (to see what is product and vendor id)
sudo modprobe usbserial product=0xproductfromlsusbyouseen vendor=0xvendoryouseenfromlsusb
screen -L /dev/ttyUSB0

than enter h and press enter to see whats happen, if you see a lot of commands I think you can perform task 28 and task 29 without problem... did you tried to send any fastboot command to your phone?
[HTC Aria Android Development] DanGeorges:
I'll try this in my linux box.

On my Windows machine, I was able to perform task 28, but not 29
[HTC Aria Android Development] gm_vel:
Guys please help me to creat liberty_custom.img....

when am trying to generate liberty_custom.img, in fastboot am getting error....

please help to create liberty_custom.img....

i have attached the cmds..... what i did....

please help me to fix it...

help me how to do this custom partition in fastboot.... i have allready installed revolutionary.. running on CM9 munjeni....
[HTC Aria Android Development] munjeni:
You can not type generate because comand is not recognised... type hboot_cus instead of generate... for exampe:

hboot_cus 1249 512 1960
[HTC Aria Android Development] gm_vel:
YES GOT IT

hboot_cus 1760 80 1881 this is what i got....

thank you very much munjeni for the help.... now i got 235MB user data....

mine running on CM9 09.Jul.2012: latest version...

could you please tell me this iis what our CM9 will get as 235mb as user... but others getting 300+ MB as user memory??? but i can't!!!! can you please tell me the difference....

once again thank you very much for a find of help.....
[HTC Aria Android Development] munjeni:
Its not true because nand and ram is two diferent things!
[HTC Aria Android Development] cHarley04:
munjeni, I have 44mb free in System running ICS, but want to allow extra System space for Jelly Bean. Do you know how much more System space is required for JB?

Thanks
[HTC Aria Android Development] munjeni:
For cm10 now system space is not enought, its 240mb and free MB is 0, so I think 245mb will be needed for new beta 2 cm10!
[HTC Aria Android Development] munjeni:
New hboot_cus app is out... added htcdev hboot_1.03 patched to s-off... enjoy :)
[HTC Aria Android Development] bjoswald:
Is it possible to upgrade hboot only with this tool? Call me crazy but I like to have the latest!
[HTC Aria Android Development] bjoswald:
1.02
[HTC Aria Android Development] munjeni:
All in one is there, just generate hboot_downgrade to install new 1.03 s-off, if you want back older hboot just install hboot_downgrade again than any other again...etc
[HTC Aria Android Development] cHarley04:
Be Careful When Reducing the System Partition Size

First a little background. I'm running CM9 with S2E on one of my Aria's with about 150 apps and Dalvik is on the SD-ext4 partition. My System partition shows 44MB free after a reboot.

I have not yet tried to reduce my System partition size using the info in this thread.

From what I see when going to the Play Store for app updates, these updates require System partition space for the download/install process. It's only after the updates are complete and the Aria is rebooted, that S2E then frees up the System partition again.

While attempting to install 11 app updates today (with 44MB System free), I got out of memory errors after the first 7 updates, and had to reboot to free up System space to complete the rest of the updates.

So, I don't see how reducing the System partition by 40MB is going to work out well. Am I missing something here?
[HTC Aria Android Development] drumist:
That's not correct. Android will never modify the system partition itself, even if there are outdated apps installed to the system partition. For example, say you have an old version of Gmail on the system partition (that was installed as part of the Gapps zip). When the app is updated via the Play Store, the updated version is saved to the data partition and the ROM knows to ignore the version still sitting on the system partition since it's out of date. But the old version is still there. You neither gain or lose any space on the system partition. If your phone is telling you the system partition free space is changing, it's lying to you.

Even though you've configured S2E to store applications and dalvik cache to the SD card instead of the data partition where both of them usually reside, there are still several things that get saved to the data partition -- namely, application data (login credentials, application settings, text messages, phone call records, basically every "setting" you've changed on the phone as well as various things that certain applications are allowed to save there) and download cache. So the reason you are getting out of space errors is STILL because the data partition is too small, even after all the stuff you moved away from it.

What I recommend that you do:

1) Move download cache to SD card if S2E lets you. This shouldn't cause any negative hit to performance, and I think that is where the Play Store will save apps while it's downloading them (hence why you have the problem when downloading a bunch of updates at once before they are actually installed to the ext partition).

2) Check that none of your 150 applications are using an exorbitant amount of application data space. Normally it's understood that apps should only place small amounts of important data there, and if an app needs more space, it should use the SD card. However not all apps are designed well, and there are some apps out there that will happily eat up all your application data space. You can see how much data a particular app is using from the system settings > application settings. You can clear the data for a particular app from there.

Hope this helps explain what's going on (and why moving ~40MB from system to data partition would still be helpful for your configuration).
[HTC Aria Android Development] cHarley04:
OK thanks, I'll give that a try.

edit: My mistake, my Data and System partitions were both at 44MB free and I confused the two.

Thanks again
[HTC Aria Android Development] munjeni:
New hboot_cus is out... changelog: all fastboot commands enabled in version 1.03.0000 ...enjoy :)
[HTC Aria Android Development] lokodoe:
WARNING : This is a *very* noob question.

How to check the type of hboot i have? I checked it's hboot_6.02.1002 Is this correct?
[HTC Aria Android Development] munjeni:
Yes you can install over 6.02 :)
[T-Mobile, Samsung Galaxy SIII] itsomaryo:
like the title says after i get it unlocked would it work just like a t-mobile gs3? or do they have different hardware
[T-Mobile, Samsung Galaxy SIII] joshnichols189:
Different radios. It does not support AWS on T-Mobile.

Also use search next time.
[T-Mobile, Samsung Galaxy SIII] Five10legacy:
There is a hack for the T-mobile Version So you can use it on At&t But I do not know of one for At&t. Here is the link to the directions on how to do that if you want to switch to t-mobile.

http://galaxys3root.com/t-mobile-ga...obile-galaxy-s3-and-use-on-att-and-worldwide/
[T-Mobile, Samsung Galaxy SIII] elesbb:
If they're in the refarmed area where they are using 1900MHz then yes it will work . But you're right, if they used search they would know this already.
[T-Mobile, Samsung Galaxy SIII] Don_Perrignon:
Yes it will work, but not on HSPA+.
[T-Mobile, Samsung Galaxy SIII] elesbb:
Not true. If they live where they did the re farming to the 1900 frequency then it will get h+
[T-Mobile, Samsung Galaxy SIII] Don_Perrignon:
So, mostly, no.
[AT&T, Rogers HTC One X, Telstra One XL] kyleallen5000:
I've read a few tutorials so far that run through the rooting and unlocking process for the HOX. But they all generally refer to upgrading to 1.85. I have avoided this thus far because I knew it would remove my root. I havent unlocked because none of the XL roms have intersted me yet.

My question is: Now I am considering unlocking and and flashing a custom rom (I can do this easy enough), do I need (or why is it recomended) to upgrade to RUU 1.85 first?
[AT&T, Rogers HTC One X, Telstra One XL] gunnyman:
no. It's no longer to upgrade to 1.85. Just unlock your bootloader, flash a recovery, and then flash the rom of your choice. When new ROMS first started coming out, boot.img had to be in place first, but it was discovered that boot.img can now be flashed along with the ROM so updating to a "base" is no longer needed.
[AT&T, Rogers HTC One X, Telstra One XL] kyleallen5000:
Just wanted to say thank you, I browse this site quite religiously but rarely ever post. I see your name pop up quite a bit. Just taking the time to say thanks :)
[AT&T, Rogers HTC One X, Telstra One XL] gunnyman:
You're welcome. I have no life :D
[Samsung Galaxy Nexus] mr.megi:
My phone doesnt connect to the pc and it doesn charge with the charger either. But when I turn it off it charges. Or if I tun it off and turn it on while its connect to the pc.

I didnt have this porblem before.

Im now back to stock 4.0.4

Any ideas ?

Im about to sell it and Im freaking out.
[Samsung Galaxy Nexus] bungsana:
Hey,

I know this thread is ancient, but I was wondering if you found out what is causing this in your phone as I just started having the exact same problems as you.

Background info:

1 - I had no issues what so ever with the phone.

2 - I went snowboarding and I dropped my phone (stupid for many reasons I know) in the snow and I literally ran over it.

3 - That same day, my girlfriend spilled some beer on it (only a little, and it did not bath in it).

4 - The phone stayed on and worked correctly with no problem all day that day.

5 - I plugged in the phone to charge (while still one) and it does not charge, nor does it have the "thunderbolt" icon to show charging.

6 - I powered off. The phone shows the "thunderbolt" in white and proceeds to charge.

7 - Went to friends to watch superbowl. Borrowed his Galaxy SIII charger to charge. Does not charge while one. Also, does not charge powered off either (although the thunderbolt does show up while in the powered off state).

8 - Went home, and phone charged while powered off and using it's normal AC charger.

9 - Plugged into PC via USB cable, and does not charge powered on, nor off. PC states that the USB plugged in is faulty and is damaged (doesn't connect).

Any solutions/insights? Or is the hardware permanently damaged?

Thanks.

---------- Post added at 12:29 PM ---------- Previous post was at 12:20 PM ----------

Ugh, nevermind, I found it:

http://xdaforums.com/showthread.php?t=1599747&highlight=doesn+t+charge&page=4

I lifted the pins up some using an exacto knife. The bugger charges now, but my PC still says that the USB device is malfunctioning. Still, the bigger issue of charging is now taken care of.