yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] durancharles27:
I'll see what I can do.
[Android Software/Hacking General [Developers Only]] Bingley:
Many MANY thanks! I have adb etc all working now, I'm just not sure which resources etc are needed for the decompile. I have SPTools flashable images or my rom but I can't find any further apks concerning settings.apk.

If no luck I'll begin proper reading into classes.dex and decompiling etc. OP's guide is great, once I'm fully file-sourced :)
[Android Software/Hacking General [Developers Only]] durancharles27:
Can you upload your ENTIRE framework folder (system/framework) in a zip file, I really need that too.
[Android Software/Hacking General [Developers Only]] Ticklefish:
Yes you can. I've decompiled and recompiled loads of odexed apks in my time.

What you can't do is do any smali editing.

When I tried decompiling this settings.apk, I got an error saying that another framework needed to be installed, not just framework-res.apk.

Bingley, you need to have a look in your system/framework folder on your phone for any other apk with "res" in the title. I'm guessing that Lenovo have made their own.

If you find one, pull it, install it, then try decompiling again.
[Android Software/Hacking General [Developers Only]] durancharles27:
You're right XD must've confused it with resource.arsc
[Android Software/Hacking General [Developers Only]] Bingley:
https://www.dropbox.com/sh/xe04h3r0fg5s52p/-qAEjdB3GF My entire Framework folder. I've looked, only framework-res, lenovo-res, and mediatek-res apks there, or even system-wide. No more lenovo*.apks, either. Some classes.dex but browser etc but none for settings.

If no luck - and I guess not from what you've said - no worries, I'll open up my image files and learn a bit more and try to get past this step - and allow the tread to get back on topic!

Thanks so much for trying :)
[Android Software/Hacking General [Developers Only]] Ticklefish:
'lenovo-res' and 'mediatek-res' eh? Those'll be framework files you've got there!

Pull 'lenovo-res.apk', install it and try decompiling your Settings.apk.

I wouldn't have thought you'd need your 'mediatek-res.apk' but if you still have problems, there's no harm in installing that as well.

'Framework' files contain resources which other apks need to decompile. On a stock, Google rom, you only need 'framework-res.apk'. But on oem roms like Sense, Touchwiz, Xperia or whatever Lenovo call their stuff, you sometimes need an extra file.

Don't worry, it does make sense.

Honest.. ;)
[Android Software/Hacking General [Developers Only]] durancharles27:
Thanks for the framework, I've now decompiled your Settings.apk XD
[Android Software/Hacking General [Developers Only]] durancharles27:
Try this newSettings.apk rename it to Settings.apk and push it in your system/apps and see what happens.
[Android Software/Hacking General [Developers Only]] Bingley:
Cheers, just tried but settings don't open when selected/clicked. It's half the size of the original settings.apk, I'd that normal for de and recompiling.

I've sliced my index finger open this morning so typing is slow(!) But I'm reading everything and have some starter articles Pocketed fit tonight and I'll have a go my self tomorrow!
[Android Software/Hacking General [Developers Only]] Ticklefish:
Half the size? That's normally the resources.arsc being compressed differently..

I can take a look at this again if you like. I don't want to seem like I'm trying to hijack the thread though...
[Android Software/Hacking General [Developers Only]] durancharles27:
I don't mind, it's not like I own this forum. :)
[Android Software/Hacking General [Developers Only]] durancharles27:
Sorry about that finger.

Try this 123Settings.apk rename it to Settings.apk and push it to your system/app folder and rw-r-r

I think this should work now (cringe)

lol wait no attachments.
[Android Software/Hacking General [Developers Only]] durancharles27:
there:

http://www.mediafire.com/download/ppdctj488u8p7u8/123Settings.apk

Come back and tell me if it worked
[Android Software/Hacking General [Developers Only]] Bingley:
No luck. Wiped dalvik, too. Replacing with original opens right up, back to 123 version with our without bout settings don't load. I'll try tomorrow! A big thanks for your time and patience with me :)
[Android Software/Hacking General [Developers Only]] durancharles27:
OH....I'll look into it.

By the way, there seems to be a prebuilt User settings fragment in the settings_headers and the ic_settings_multiuser.png/s are already there. So that it seems that I'm overlapping the codes.

Is there by any chance that your tablet already has a restricted profiles feature. And that's a Lenovo S5000 right? Doesn't that have a 4.3 update? If not it's in the About phone in Settings.
[Android Software/Hacking General [Developers Only]] slipsystem:
you can enable checkbox and content rating by modifying settings. at this point in time i am not sure how to actualy get it to ask for a password but I will have a look into it.

there is no point at the moment as it wont do anything only allow you to check the box. but it will not create a password.

decompile Settings.

apktool if framework-res.apk
apktool if lge-res.apk
apktool d LGSettings3_2.apk

open LGSettings3_2\res\xml\user_details.xml

and remove this from the 2 lines

android:enabled="false"

so in other words you change this

<CheckBoxPreference android:persistent="false" android:enabled="false" android:title="@string/user_market_requires_pin" android:key="market_requires_pin" />
<ListPreference android:persistent="false" android:enabled="false" android:entries="@array/user_content_ratings_entries" android:title="@string/user_max_content_rating" android:key="content_rating" android:entryValues="@array/user_content_ratings_values" />

to this

<CheckBoxPreference android:persistent="false" android:title="@string/user_market_requires_pin" android:key="market_requires_pin" />
<ListPreference android:persistent="false" android:entries="@array/user_content_ratings_entries" android:title="@string/user_max_content_rating" android:key="content_rating" android:entryValues="@array/user_content_ratings_values" />

Then recompile

apktool b LGSettings3_2

and push to your phone

It would probably be better to set a pattern lock or pin lock.

then add user profile switch to your lock screen
[Android Software/Hacking General [Developers Only]] Bingley:
I've not found any restricted profiles feature, which is really why this thread so interests me. It's the S5000-H (3g) running 4.2.2 (firmware Lenovo S5000_A422_003_105_131126_WW_SMS from http://lenovo-forums.ru/topic/4527-rom-lenovo-s5000-a422-003-105-131126-ww-sms/ - the model is listed as getting 4.3 but I've not seen it anywhere. Also, there is a small firmware update available - not 4.3 - but I've not updated to it as afaik it cannot be rooted.

Ok, decompiled :):):) Thanks for your patience! Now, back on topic...

My settings_headers has this entry and all others are in similar structure:

<header android:id="@id/user_settings" android:title="@string/user_settings_title" android:fragment="com.android.settings.users.UserSettings" />

compared to the OP's code-to-insert of:

<header android:icon="@drawable/ic_settings_multiuser" android:title="@string/multi_user_profiles" android:fragment="com.android.settings.users.UserSettings" />

Which for me means a) a listing exists but is not used for Users, and b) I've a different format of string listings.

How I enable a) I'm not sure. I've tried adapting b) to the OP's format, also inserting OP's code, & adapted, but no dice.

Darn you, Lenovo, for making things different!
[Android Software/Hacking General [Developers Only]] durancharles27:
Can you try adding this code in your Androidmanifest.xml?

<activity android:label="@string/user_settings_title" android:name="Settings$UserSettingsActivity" android:taskAffinity="" android:excludeFromRecents="true" android:uiOptions="splitActionBarWhenNarrow">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.USER_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value="com.android.settings.users.UserSettings" />
<meta-data android:name="com.android.settings.TOP_LEVEL_HEADER_ID" android:resource="@id/user_settings" />
</activity>
[Android Software/Hacking General [Developers Only]] Bingley:
Decompiled & compiled & signed using Quickmod4.0 but same issue- settings doesn't open when clicked.

I'm not going to try any more of the Play Store multi-user apps as the last one required a full rom flash!

I'll just live with it. Looks like it's a great mod though :)
[Android Software/Hacking General [Developers Only]] Ticklefish:
Alrighty, let's see if I can do this.

I've made two flashable zips. Head into your recovery and give them a try.

The first zip uses the Universal Flashing Tool, which basically makes a flashable backup zip. Which is very handy but it doesn't work on every version of every recovery.

If that won't flash, try the second one.

If it doesn't work, can you share a screenshot please?
[Android Software/Hacking General [Developers Only]] Bingley:
Thank you - I'll have a go once I can flash zips - I've just made a cwm recovery for the tablet but there's no sdcard and usb mount doesn't work (no directory - it's a tablet without an sdcard) so I can't access any directory to flash a zip from
[Android Software/Hacking General [Developers Only]] Ticklefish:
In that case, you might have as well have the apk.. :D
[Android Software/Hacking General [Developers Only]] deadlyindian:
Almost Complete

Looking Cool but its not totally a complete procedure...
[Android Software/Hacking General [Developers Only]] Ticklefish:
Because..?
[Android Software/Hacking General [Developers Only]] deadlyindian:
...

Its actually enabled by default in framework-res

Decompile framework-res.apk

apk/res/values/integers.xml

and look for

<integer name="config_multiuserMaximumUsers">[COLOR="Blue"]1[/COLOR]</integer>

changing the number highlighted in blue will result in the total number of users in the phone. By default it is 1 & you wont need to do the editing in settings in the OP after you do this. Max Users should be 2, sometimes your Phone app or some other system apps might crash as this Multiuser is intended for tablets.
[Android Software/Hacking General [Developers Only]] sugarkane87:
great, but how to enable content rectrictions?
[Android Software/Hacking General [Developers Only]] UzUmAKI_NaRuTo1:
Longback i did it from framework-res !! it works.... but i never found user options in power menu !! I have it on lockscreen

I dont think doing it from settings.apk wld be any different !! right ? or will it add user option in power menu if i do it by settings ??

[MENTION=5431992]durancharles27[/MENTION] Any workaround ? Can this profile's have passwrd/pin security ?
[G2 Accessories] Pacman107:
Hello,

I m looking for a battery pack which would feet with my new lg g2. I nearly bought an Anker but their custom service told none of their batteries were compatible with the G2.

I found some clues that the Trent power pack ultra do work with it but I cannot find a way to deliver it to France...

Does someone has a valid battery pack which working well with the gorgeous G2 battery? I am not looking for a case because to be able to use it to charge some other stuff like an iPad.

Thanks.
[G2 Accessories] Incep:
Compatible? It's just a charger, right? It just provides a ready supply of power at a certain voltage, with a max amperage. So I'm sure everything will work. If you want max charging speed, pick a 2A max current model
[G2 Accessories] Pacman107:
I saw few comments of users telling that their phone stop charging 3-4 seconds after plugging in the charger. Anker even remove every reference to LG G2 on their website, some battery page mention of "not compatible with G2" cf: Anker 2nd Gen Astro3 12000mAh

It s what made me suspicious, and I have started looking for real feedback on battery pack with G2.

I m guessing g2 with his gorgeous battery have some kind of protection circuit which does not accept low current charger or stuff like that.
[G2 Accessories] Incep:
Seems odd to me. I've been using my phone with cheap ebay chargers, which admittedly gave me pretty slow charging, but they've always worked. Sorry, I can't be of any help then, maybe someone else knows.
[G2 Accessories] NikJe:
I have a RavPower 10400mAh and it works great with my lg g2. I don't know why Anker doesn't have any chargers that fit with g2 as most of the phones in the market has either a cable like apples' or a unified like most of the other phones.
[G2 Accessories] Pacman107:
Thanks !!

That was exactly the kind of feedback i was looking for. :)

Just for information, how long does it take to charge your LG G2 with it?
[G2 Accessories] Incep:
it really differs, I mean, some were absolutely crap, but most of them are able to give atleast 500mA, concidering its a 3000mA battery, that would be 6 hours. In comparison, the stock charger would manage to do it in well under two hours. But charging rate is something I think the manufacturer should provide in the spec sheet.

If you have a Verizon model, you might run into problems as third party chargers have been reported to be very slow.
[G2 Accessories] ingoljosh:
Look HERE . They have some awesome deals.

30,000MAH is that even possible?
[G2 Accessories] Incep:
I checked it out. It says

"Battery actual capacity:13800mAh"

Which is still fairly much. It isn't exactly uncommon for chinese manufacturers to exaggurate :)
[G2 Accessories] ingoljosh:
they might be accidentally adding an extra zero at the end. HAHAHAHAHA! :laugh:
[G2 Accessories] WheresTrent:
I sprung for a mophie powerstation XL (it helps I work for a large photo/electronics retailer and got a great discount on it) and am very happy with it. It's a little big and weighs about a pound, but fits in my bag and it can charge my G2 and my N7FHD multiple times. I'm going to Vegas for a week and know the 12,000 mAh battery is plenty to cover my devices and my wife's SGSIII.
[G2 Accessories] shiftnd:
I've got an Anker Astro 5600mAh and it charges my G2 perfectly fine. Sure, its at the slower speed, 1A, but a charge is a charge.
[G2 Accessories] tomsi91:
Sometimes it cant charge with external charger because of the charger and phones electronic talk together and find some reason why not to charge. This problem is very usual with laptops and laptop chargers. I had this problem once with phone too and the easiest what helped me was to use another microusb cable, the one with only charging ports, not the data ports.
[G2 Accessories] cicciopanzarotto:
I use the anker 2nd gen 6000mAh and I have always a good charge time

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Accessories] gfhsrt:
Try the RAVPower external battery pack, I have their 14,000mAh and it can charge two devices at the same time. It did help me out of emergencies many times.
[G2 Accessories] Ibanez33:
I would still like to know why its not compatible. I've been using the 1st gen anker astro (10,000 mah model) without issue untill it has decided to die hence now looking to replace it.

I also use the Anker 40w wall (also using power QI) charger with my G2 without a problem...
[G2 Accessories] tomsi91:
have raikko 5200 MAh, have it for about 3 years (bough it for my old optimus 2x originally) and it still works. I think the capacity is little lower now, but still great results after long time. I can charge approx one and quarter times.
[G2 Accessories] maydayind:
i have 3 diferent external battery packs. (im playing ingress)

My advice ... By a anker of amazon. thay are by far the best chargers and the price is realy good.
[G2 Accessories] Lostlam:
I had the same issue when I was going to buy an Anker battery pack as well.

I think I'll probably get a RavPower battery pack. Is it best to use the 2amp slot to charge the LG G2?
[G2 Accessories] Ionut_Hw:
Noontec Polo II

I have a Noontec Polo II 5600mAh battery and it charges my phone (D802) perfectly fine. On 2A out it takes 2h10m from 0 to 100% (phone turned on, very very light usage during the charge process)
[G2 Accessories] Hosre:
It seems great, 2A out value is so amazing for the power banks
[General Questions and Answers] HaiderZeus:
Hi guys I have a Samsung galaxy note 3 SM-N9000 and it performs amazingly the games like real racing 3 MC4 and others are so smooth and lag free but recently i have experienced a message that appears when I close a game and this message says that my game was stopped unexpectedly (force closed) and this issue have repeated a few times and it happened to me in these games clash of clans , angry birds GO and turbo fast (the snails racing game) and the other issue that I have experienced is that once my S pen keeper feature did not work until I rebooted the phone and after the reboot it worked fine after I moved 5 steps ........... and before this I have experienced an error on Google play store when I tried to download an application and I don't remember the error code but when I had asked about it I found out that it was a problem with Google play's cache and I solved it by rebooting into the recovery mode and cleaning cache and since then I didn't experience any problems with Google play .

PS: I have installed all my applications from Google play store except Modern Combat 4 which i have installed from the Chinese market which called muzhiwan and the game is running normally with no lags nor any other issues and I use CM security antivirus and I frequently scan the phone with it and I also have installed clean master to manage my tasks and data and except what I mentioned the device is performing so smooth and fast.

please help, does this mean that there is a malware or a virus on my phone or there is any other problems on it and if not why does these issues happened to me and what is the reason .
[General Questions and Answers] Mr.trololol:
No

android is simply modified version of linux so there is very less chance of virus only 10% and virus of windows simply not run on linux, if anyhow someone make a destructive script it need su permission to acess your system files

but there are many malware present for android you can simply get rid of them using any antimalware app,

if you think an application is virus then there is no way to gain acess to system

because every android app run in sandbox(google it) and make sure to check permissions before installing any app.

if any app force closes then try reinstalling it ,clear data, dalvik cache

i think it might help you
[General Questions and Answers] SadEff:
Yes.. there is no chance of virus... and installing antivirus is waste of ram!

There will be no effect in installing apk by file manager(downloaded apps).

If you face force close more often then try factory reset in settings, if the problem is still there you can reflash the official firmware with kies..

Hit thanks if i helped you!;)
[General Questions and Answers] HaiderZeus:
thank you guys your answers were helpful and they relieved me from worrying about viruses . So thank you all.:good::good::good::good::laugh:
[Galaxy S 4 Active Q&A, Help & Troubleshooting] starcraft2010:
weird problem on my korean glaxy s4 active with snapdragon 800,

secure fail : kernal

i can't boot in to CWM or boot to normal OS

it will just say secure fail : kernal on top left of the screen and turn off... by it self.............not sure what do to now...

please help -.- thanks ....
[One (M7) Q&A, Help & Troubleshooting] darkarvan:
Just a quick question, i flashed Stock Sense with 4.4.2 again (.11)

I remember a tone notification when i plug in AC for charging battery.

But i dont hear anything, no i remember it wrong or did they just remove it?:rolleyes:
[One (M7) Q&A, Help & Troubleshooting] cr1960:
I never remember any tone when plugging in for charge, only plugging into computer and that sound comes from the pc.
[One (M7) Q&A, Help & Troubleshooting] darkarvan:
Thanks for the info, i may confuse this with another phone i had :p:fingers-crossed:
[General Topics] bob_jesus:
Hi guys,

I updated my Outlook and now I get an "Attention required" error every time I sync telling me that this is not the account I set up and please sync with the original profile.

tried half a dozen different settings. I even asked it not to sync with my outlook mail and it still gives me the error.

Any advice?

Thanks :-)
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jaycstlo:
SOLVED:

Finally got Odin to work! Tried it on an actual PC laptop and not my vmware macbook. It failed at 99% the first time so tried another USB port and it went up and passed! this is on 4.4.2. I guess the main reason why the other firmwares would fail was because I originally tried to flash odin 4.4.2 but at this point I had no idea about knox and that you cannot go back in firmwares. So my last attempt was to push 4.4.2 after looking into the phones info saying it was on I337MVLUFNC1 bootloader. I was starting to think I had bricked this phone! sound works and calls working fine! whoop!

some history on the device:

- S4 was on Beanstalk 4.4.2, rooted.

- phone was starting to freeze up on this ROM so

- decided to go back to stalk Rogers rom via ODIN

- tried Odin v 3.09/v3.07/3.04 all failed

- tried different cables and two different computers. failed

- So then I decided to load TWRP back in from ODIN = Pass!, I get into recovery and load up a backup. This works but had NO sound or video playback and calls wont go through/freeze phone in call app.

- more tinkering, thinking it was maybe the Kernel/Modem. I download different Kernel/modm for the phone and sound still didnt work.

- Tried Firnware I337MVLUEMK6_I337MOYAEMK6_RWC, as well as the current I337MVLUAMG1_I337MOYAAMG1_RWC both were downloaded from sammobile.com

- tried kies and it cant connect to phone or does anything.

Phone errors:

-top corner of display shows:

Odin mode

product name: sgh-I337M

Current Binary: Samsung official

System status: Custom

Knox Kernel Lock: 0x0

Knox Warranty Void: 0x1

CBS - Config - LSB: 0x30

Write Protection: Enabled

eMMC Burst mode enabled

Currently:

- I can load TWRP anytime.

- I can also reload backups, install roms but sound, video, phone calls, mic dont work. some roms are super laggy as well.

- so phone is still useless atm.

ill try Odin again and copy the fail script.

it fails immediatly after system write.

iv searched knox trip, and some people have gotten stock firmware back on their device. but i have no way of doing so since odin fails horribly.. To my understanding if Knox has been tripped then you cannot downgrade firmware. but iv been trying to get 4.3 or even 4.4.2 on it and it fails.

actually i shouldnt say i tried to get 4.3 on it, because it seems i did get it on the phone at one point but then it had absolutly no signal. It would have signal for maybe 3 minutes then it drops it completely. tried APN settings and still wouldnt kick it. only thing I didnt try on that attempt was load up a different modem. which i should have.. but now cant even get that rom back on here as my sister deleted it..

any help would be appreciated.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jaycstlo:
Alright so im back on a backup from my other S4, running ok. signal is fine and wifi works. only thing is upon boot up i get:

- Unfortunately, Google Dialer has stopped.

- unfortunately, the process android.process.acore has stopped.

-unfortunately, the process android.process.meida has stopped.

i can hit ok many times but it keeps popping up.

so im still unable to do anything. i can still navigate through the phone but the pop ups come often.

UPDATE:

- Did a factory data reset within the phone and I dont get the pop ups anymore. but the Sound is still not working

one thing that's weird is when I use the app Phone Info the Sales Code (aka Region Code) is: ATT, but my working s4 with the same ROM says VMC under Region code? is this making my sisters phone not function properly? or maybe this is why I cannot flash stock rogers through odin because the phone is thinking its an ATT device and not a Rogers one?