My phone storage is negative?! - ZTE Axon 7 Questions & Answers

I'm using a2017u b27
Just found this problem few minutes ago:crying:
{
"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"
}
Do you guys have this problem too? And how to fix it.....

Try wiping your cache, that number looks to be wrong. Click on cached data and it'll give you the option.

cho9736 said:
I'm using a2017u b27
Just found this problem few minutes ago:crying:
Do you guys have this problem too? And how to fix it.....
Click to expand...
Click to collapse
Holy crap that's some serious integer overflow.

I'm experiencing the same problem
Screenshot attached.
The problem arose when I installed first official LOS and persist to the latest 0410.
The cache has been cleaned multiple times.
The funny thing is, that every file manager installed shows the correct size
Any solution to this?

This is just a bug in lineage os. It doesn't affect your actual storage space.
The problem happens I if you exceed 64 gb and if you boot the phone with a SD card. Remove the SD card, then boot the phone, once switched on check the storage the number should be right. Insert SD card once the phone is switched on.
Unfortunately restarting will reset the negative storage number.

hboa said:
I'm experiencing the same problem
Screenshot attached.
The problem arose when I installed first official LOS and persist to the latest 0410.
The cache has been cleaned multiple times.
The funny thing is, that every file manager installed shows the correct size
Any solution to this?
Click to expand...
Click to collapse
That is because you have MMC inserted while booting. This issue is commonly seen on Android devices running Android 7 nogaut.
If you have AOSP for Android 7 then modify the below file:
/frameworks/base/core/java/android/os/storage/StorageManager.java
Change the interchange the position of mmc and sda storage path
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/mmcblk0/size",
"/sys/block/sda/size"
};
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/sda/size",
"/sys/block/mmcblk0/size"
};

ronakpatel1311 said:
That is because you have MMC inserted while booting. This issue is commonly seen on Android devices running Android 7 nogaut.
If you have AOSP for Android 7 then modify the below file:
/frameworks/base/core/java/android/os/storage/StorageManager.java
Change the interchange the position of mmc and sda storage path
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/mmcblk0/size",
"/sys/block/sda/size"
};
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/sda/size",
"/sys/block/mmcblk0/size"
};
Click to expand...
Click to collapse
Isn't there any way to push this fix as a commit or whatever that is called? This has happened on every ROM I've used and it was a little weird having 8 gigs of internal storage

There is a fix for this I know because I pushed it to Candy quite a bit ago.. Could've sworn Los had merged it as well

ronakpatel1311 said:
That is because you have MMC inserted while booting. This issue is commonly seen on Android devices running Android 7 nogaut.
If you have AOSP for Android 7 then modify the below file:
/frameworks/base/core/java/android/os/storage/StorageManager.java
Change the interchange the position of mmc and sda storage path
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/mmcblk0/size",
"/sys/block/sda/size"
};
private static final String[] INTERNAL_STORAGE_SIZE_PATHS = {
"/sys/block/sda/size",
"/sys/block/mmcblk0/size"
};
Click to expand...
Click to collapse
I don't see /frameworks/ folder on my root directory......

i experienced the same problem after installing twrp, i solved it by wiping the internal storage (without reset)

Related

XDA and SMS programming

Hello,
I'm new in the wonderful world of XDA and Pocket PC 2002, and I would like to use SMS in a new application. Do you know how I could see example of source code using SMS API? Or do you have such example to help me?
Thanx
Gizmo
Precision
I forget something important : I'm using eMbedded Visual C++ 3.0!!
Thanx
Gizmo
All you have to do is include SMS.H in your code and linkt to SMS.LIB, see online documentation for more details. Below a simple function which takes a phone number in international format (+491715555555) and the message as parameters ...
Code:
BOOL SendSMS(LPCTSTR pszNumber, LPCTSTR pszMessage)
{
SMS_HANDLE hSMS;
HANDLE hGlobalReadSMSEvent;
HRESULT hResult;
hResult= SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_SEND, &hSMS, &hGlobalReadSMSEvent);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't open the SMS function"));
return FALSE;
}
SMS_ADDRESS smsaDestinationAddress;
smsaDestinationAddress.smsatAddressType= SMSAT_INTERNATIONAL;
wcscpy(smsaDestinationAddress.ptsAddress, pszNumber);
TEXT_PROVIDER_SPECIFIC_DATA tpsd;
tpsd.dwMessageOptions = PS_MESSAGE_OPTION_NONE;
tpsd.psMessageClass = PS_MESSAGE_CLASS3;
tpsd.psReplaceOption = PSRO_NONE;
hResult= SmsSendMessage(hSMS, NULL, &smsaDestinationAddress, NULL, (BYTE*)pszMessage,
wcslen(pszMessage)*sizeof(WCHAR), (BYTE*)(&tpsd), sizeof(tpsd), SMSDE_OPTIMAL, SMS_OPTION_DELIVERY_NONE, NULL);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't send the SMS"));
return FALSE;
}
hResult = SmsClose(hSMS);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't close the SMS function"));
return FALSE;
}
AfxMessageBox (_T("SMS has been send"));
return TRUE;
}
Thanx
Thanx! Thanx!
I made a big mistake : I forgot to link the SMS.LIB....
I'm a beginner!! (and I'm French : I'm sorry for the bad english language!)
Have a great week!
Gizmo
Hello,
Does anybody has a code example for receiving SMS messages?
I've trying to do so for two weeks, and I'm completely lost.
I've read in this site it can't be done with SmsReadMessage or SimReadMessage. Is it correct? What have I to do, using RIL? Or can I use POOM?
Any help would be very appreciated.
APallares
Have you seen tstril? It shows a good way of handling incoming SMSs.
It's here http://xda-developers.com/RIL/
Yes, I've took a look at tstrill. But this example only shows notifications on what's happening on the SMS channels. It has't any reference to the RIL_ReadMsg.
I've searched on the patent documentation, and I have found this help on the RIL_ReadMsg function:
HRESULT RIL_ReadMsg(HRIL hRil, DWORD dwIndex)
Reads a message from the current storage Location
Parameters:
hRil: handle to RIL instance returned by RIL_Initialize
dwIndex:
index of the message to be read
Comments:
Asynchronous. lpData points to an RILMESSAGEINFO structure
My question is: How do I access to lpData?
What I want to do is a function on a DLL like this (in pseudo-code):
BOOL WINAPI ReadSMSMessage(int numMens, LPTSTR Message){
RIL_Initialize
RIL_ReadMessage
RIL_DeInitialize
}
But, what I have to do to get access to "lpData"?
Thanks,
APallares
SMS.LIB
Have the sms.lib now. Normaly it's delivered with dthe EVC - but the 2 Versions I've got doesn't have it. Get them now by eMail
Maybee, this is the super-beginner-question - sorry
I'm searching for the SMS.lib and SMS.h . Working with MS EVC++ 3.0.
Every time, if I try to compile, I get the message, that the files couldn't been found.
Thougt to get them from the internet - but found them nowhere.
I'm happy about every tip (excluding "you're stupid" ;o)
Greetings from hannovre,
Andreas )
[/b]
Look in ProgramFiles / Windows CE Tools / WCE420 / PocketPC2002 / LIB / Armv4 / all your libraries should be stored there ... in ur code FILE VIEW , Source Files, right click and select add Files to Folder and add your lib
else just #inclde "<the full lib path>"
@nutitija
You are aware of the fact that this thread is more than two years old
{
"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"
}
Sascha
poor guy could still be waiting for an answer ....

[QUE]How to store Outlolk emails to MicroSD card ?

I have tried the following way, but it dosn't work!
for mails:
\HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = PropertyPath
Value Data = \SD Card\outlook Mail
for attachments:
Key Name = \HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = AttachPath
Value Data = \SD Card\Outlook Mail\Attachments
So how to do in WM6? Thanks!
---SoftBank X01HT with WM6 for Hermes LVSW Edition (2007-03-25)
joef said:
I have tried the following way, but it dosn't work!
for mails:
\HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = PropertyPath
Value Data = \SD Card\outlook Mail
for attachments:
Key Name = \HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = AttachPath
Value Data = \SD Card\Outlook Mail\Attachments
So how to do in WM6? Thanks!
---SoftBank X01HT with WM6 for Hermes LVSW Edition (2007-03-25)
Click to expand...
Click to collapse
What I do is:
In messaging select your email account.
then 'Menu', 'Tools', 'Options'
In the new window select 'Storage' (bottom right tab)
Select storage card tick box.
This works for me with AOL (IMAP4) and POP3 accounts but haven't tried for Outlook directly.
Here's a copy of what i posted in the wm6 subforum quite some time ago.
Thanks to all the great people who made this possible No problems so far.
A little note. For those who want to move the Mail Folders and Relative Attachments to the Storage Card, the Reg Key has changed (no... really ).
it is now to be found in HKLM\System\Inbox\Settings.
Example screen here (this settings works for me).
{
"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"
}
More "Tweaks" as soon as i find them
to ach2:
I know this option,it can only stoe to Ex_ROM.
to Cmdkewin:
It is working!!! Thank you very much!!!!!
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
joef said:
to ach2:
I know this option,it can only stoe to Ex_ROM.
to Cmdkewin:
It is working!!! Thank you very much!!!!!
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
Click to expand...
Click to collapse
Ok, I thought my solution might have been a bit obvious - at least you got your prob fixed and I learned something new also
joef said:
to ach2:
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
Click to expand...
Click to collapse
Up! Thanks!!

[Q] Delete data on SQLite

If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
{
"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"
}
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
junchronick said:
If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
Click to expand...
Click to collapse
So is the question " what is the command to remove information from the databases " ?
Assuming that you have already tried and met resistance... what is stopping you from have a "delete" button that actually ADDS a null value to to the key,name, and setting ?
I've never made it into a button like you are saying, but having null values replace the undesired has always worked well for me,
Hope that is helpful.
junchronick said:
If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
Click to expand...
Click to collapse
Your image doesn't show up so I assume its a list view where you will view all entries. In this case in the list view xml put a delete button, and in the activity you have to implement a custom adapter that listens for the button click (Google "custom simplecursoradapter"), and to delete the file it would be dbHelper.delete(Table, id, null) instead of dbHelper.add or dbHelper.query.
hope this helps

[Q] Note 3 (32gb) -> Repartition \Sytem partition : How ?

Hi Guys, I have problems with my \system partition, it's almost filled for 90% and I moved almost everything out of that partition by converting it to user apps...
My current Note 3 (32gb) config is:
/System : 2,21
/Data : 26,36
I want to use 1 gb from my /data partition to be part of my System partition so that I have 3,21gb and my data partition 25,36
I found these two articles for other samsung phones:
http://android.stackexchange.com/questions/79112/resize-system-partition-of-galaxy-s-2
http://forum.xda-developers.com/showthread.php?t=2765846
But I was wondering if there is some other way for the Note 3 ?
Help?
No ideas?
sebastienbo said:
No ideas?
Click to expand...
Click to collapse
Wrong forum. Q&A - here: http://forum.xda-developers.com/galaxy-note-3/help
On a side note...
DON'T GODDAMN PLAY WITH PARTITIONS ON A DEVICE YOU PAID 600$ FOR.
Do like normal people - a factory reset, a new ROM, easy squeazy peazy smooth fast stable phone.
Partitionning is not magic or sorcery
I do it all the time with devices of 2000+ euro
It's just that with android it's a bit new to me, but everybody that has used a pit file to flash their custom rom also has partitioned, so it's not really a biggie and it is done frequently.
In my case I have 650 apps and nothing is on the system partition but for some reason I still get up to 2gb of the system partition...
I therefore suspect that each app has maybe some cache or configuration that is anyway stored on the \system partition, or maybe it's the photo app , i know that the thumbnail cache can also grow enormously
Partitionning is not magic or sorcery
Maybe not but flashing PIT files is probably the easiest way to end up with a brick ,
Have a look at Philz Recover .
{
"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"
}
You could start by removing all the languages and csc's you don't need, also all tts files, etc.. i could easily have 900mb+ free in my system partition if i removed some more stuff i didn't need. For example i added the Samsung UK high quality tts voice files into my system partition, it was around 120mb.
Messing with your device's partition table is entirely unnecessary, and just asking for a brick. But hey, if you want to go for it, more power to you. Just don't come crying back here when you're left with a paperweight.

[Q] Why would Dropsync/Autosync/Onesync not be able to write to emulated/0?

I'm having a strange problem with Dropsync/Autosync/Onesync on my GS4 running the "Mostly Stock NG2 v1.3" ROM -- I patched it to allow writing to the external SD card, but for some reason, even though the sync apps show the external SD card as writable, they don't show the emulated/0 folder as being writable, and the apps don't create their application directories as they normally should -- as a result, even though they can write to the SD card, they can't sync because they can't write to the device to keep track of what has been synced. I contacted the developer but he wasn't able to help me, besides identifying the problem is on the device storage side of things rather than a SD card issue.
Nerva said:
I'm having a strange problem with Dropsync/Autosync/Onesync on my GS4 running the "Mostly Stock NG2 v1.3" ROM -- I patched it to allow writing to the external SD card, but for some reason, even though the sync apps show the external SD card as writable, they don't show the emulated/0 folder as being writable, and the apps don't create their application directories as they normally should -- as a result, even though they can write to the SD card, they can't sync because they can't write to the device to keep track of what has been synced. I contacted the developer but he wasn't able to help me, besides identifying the problem is on the device storage side of things rather than a SD card issue.
Click to expand...
Click to collapse
I suggest you try a different ROM. There are a lot of important things missing in that ROM. Dialer chooses don't work for one. Almost any other NG2 ROM has the SD Card fix.
{
"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"
}
Any recommendations? I used to run TriForceROM 5.4 -- I'd like to find something similar, with crapware removed, wifi hotspot added, etc. but not a complete overhaul that introduces new problems.
Nerva said:
Any recommendations? I used to run TriForceROM 5.4 -- I'd like to find something similar, with crapware removed, wifi hotspot added, etc. but not a complete overhaul that introduces new problems.
Click to expand...
Click to collapse
This is my ROM- http://forum.xda-developers.com/showthread.php?t=3086132
So far there are no problems other than the minor bugs listed in the OP.

Categories

Resources