DSU Loader ( Dynamic System Update Image ) - General Questions and Answers

Good day gentlemen, am wondering if I could use risky apps (might contain viruses) with DSU? In other word just like a Virtual Machine?
Thanks

you can use android emulator on android

Related

[GUIDE][NOOBS]All For AndroidšŸ‘€ šŸ“±

Hey , Guys this Thread Is Specially Made for Noobs. With All Info For Android.
So , Let's Directly go to Topic
Firstly What Is Android?
ā€¢ a robot with a human appearance.
ā€¢an open-source operating system used for smartphones and tablet computers which is based on Linux Os.
Source- Google
_____________________________
Version Of Android
Cupcake:
Android 1.5
Donut:
Android 1.6
Eclair:
Android 2.0
Android 2.1
Froyo:*(short for "frozen yogurt") & The Most successor Veraion
Android 2.2
Gingerbread:
Android 2.3
Honeycomb:
Android 3.0
Android 3.1
Android 3.2
Ice Cream Sandwich:
Android 4.0
Jelly Bean:
Android 4.1
Android 4.2
Android 4.3
KitKat:
Android 4.4
Lollipop:
Android 5.0
Android 5.1
Source-android.stackexchange
______________________________
What is Root?
ā˜…In Simple Word Rooting Means gives Read-Write[RW] permission on System Dictionary.ā˜…
Rooting*is the Android*equivalent of jailbreaking, a means of unlocking the operating system so you can install unapproved (by Google) apps, update the OS, replace the firmware, overclock (or underclock) the processor, customize just about anything, and so on.
Source- Google
______________________________
What is Recovery?
A combination of key presses (or instructions from a*command line) will boot your phone to recovery, where you can find tools to help repair (recover) your installation as well as install*official OS updates.
Source-Android A to Z
_____________________________
What is Bootloader?
ā€¢Every Android phone has a bootloader that instructs the operating system kernel to boot normally. But you need to understand one thing here that as Android OS is an open source OS and is available on a variety of different hardware, every manufacturer has their own version of bootloader specific for the hardware present in itā€™s environment.
Source-addictivetips.com
____________________________
ā˜…Advance Sectionā˜…
1. Bootloop - Bootloop means your phone doesn't but up right, it's just starting and starting and nothing happens, or it's starting and shutting down and starting again. It just means your phone makes a loop while booting.
2. Brick - Brick means your phone can't boot up and you can only recover it with for example flash the stock rom. But there are different bricks for example soft bricks (for example bootloops) and hard bricks (for example doing and over the air=ota update when bootloader is unlocked). There are some other bricks and examples as well.
There Are Two Types of Bricks
1.Soft Brick - you can still turn your phone on but it doesnt really start (bootloop i think is a kind of soft brick. )
this kind of brick can be fixed through softwares like flashtool.
2. Hard Brick - you can't turn your phone on and it doesnt really start, you don't get any response from it.
Click to expand...
Click to collapse
3. Fastboot - Fastboot mode is used to flash a kernel if the bootloader is unlocked. With fastboot you flash a boot.img for your device, for example a kernel for a specific rom
Source - from( XDA)
_____________________________
What is Nandroid?
the type of permanent storage memory that your device uses, and Android. A*Nandroid*backup is a de-facto (by the hacking community) standard directory structure for backing up a perfect mirror image of your Android device.
Source - Google
_____________________________
What is Kernel ?
is a ā€œdeeperā€ line of code that rests beneath the surface, so to speak. It tells the software how to interact with the hardware.
____________________________
What is Custom Rom?
A*custom ROM replaces your device's Android operating system ā€” normally stored in read-only memory ā€” with a new version of the Android operating system.
Some Famous Custom Roms Are
Ā°Cyanogen Mod
Ā° Pac-Man
etc...
___________________________
What is Flashing?
Flashing is a process in which system's update Any Kind of files like Apps , System file etc...
___________________________
This Things Might Confused Many People But for Development of Android.
You Have To Totally Know This Types Of Things.
Good info for noobs:thumbup:
suresh.anthati said:
Good info for noobs:thumbup:
Click to expand...
Click to collapse
Thanks Dude

Boot only with android application without OS GUI for use in a production environment

I have this requirement which i need to boot phone only with my android app, full screen. No OS GUI or navigation bar or anything.(Sorry if i'm using wrong terminologies here). I don't need others to be accessible to anything in OS or environment but the app. Is there any way to achieve this.
Note: I'm using android 4.2

Android OS with New Security Updates [Development]

Hello Everyone
So I was wondering (I've searched the site,with no luck finding what I need)
I would like to customize and build the Android OS for my mobile phone.
My Physical Test Device Info:
- Samsung Galaxy J1 Ace, SM-J111F
- Running Android 5.1.1 (I've upgrade the rom from 4.x.x to 5.1.1)
Customizations would include:
- Password Protect The Recovery Menu (Like BitLocker's Password Prompt)
- Password Protect The OTA (Over The Air) Download Menu (Like BitLocker's Password Prompt)
- Password Protect The ABD Flashing (Enter Password Through The ABD Command Prompt, Before A User Could do any updates or data uploads/download to the Device)
Please could you let me know what files might need changing also any info relating to any tutorial which I can follow.
Kinda Starting from scratch (I have no android OS development experience, except for a few apk apps from Unity3D)
I'm a software engineer, I've worked with Embedded Systems Running C and C++. a few webs apps and some backend C# systems.
Thank you so much for the help and support in Advance!

Question Many questions from a total Android newbie

Hi,
Although I passed my 40 I just bought my first smartphone a few week ago. Itā€™s a Doogee S96Pro. As somebody who like to understand how it works, I already learn a few thing on the Android ecosystem.
Iā€™ve been able to activate the developer mode and to use adb to uninstall some apps. I also managed to boot in fastboot mode to unlock the phone.
My first attempt at flashing was a fail, the phone was rebooting in a loop, indicating "Red state". I guess I should have never "fastboot flash boot/recovery foo.img" if "fastboot boot foo.img" didnā€™t work? Whatā€™s your opinion on this?
The Doogee support sent me a link to the files for my phone. In fact someone on this forum has had already posted it. The two archives are named :
S9S88A7.DGE.DOOGEE.EEA.HB.HJ.AYYDVFAZ.1130.V3.02.zip
S9S88A7.DGE.DOOGEE.HB.HJ.AYYDVFAZ.1203.V3.04.zip
To make the phone boot again I flashed the boot partition with the boot.img file I found in the second archive. If I understood what I read, the file with "EEA" in itā€™s name is the "European version" while the other one is the "Global version".
Although I flashed with the boot.img that was in S9S88A7.DGE.DOOGEE.HB.HJ.AYYDVFAZ.1203.V3.04.zip, if I go to the update info (About the phone > Update), I can see the string S9S88A7.DGE.DOOGEE.EEA.HB.HJ.AYYDVFAZ.0128.V3.03_20210128-1612. I donā€™t understand why this difference (v3.03 vs. v3.04).
Then I used the Magisk Manager to patch this boot.img file and flash it again. I now have root access on the phone which is nice.
Now the questions!
When booting the phone says: ā€œOrange state, your phoneā€™s unlockedā€, then it boots normally. Whatā€™s the implication of this? Iā€™m not sure but I think I tried to lock it again (fastboot flashing lock) but the message remains. Does it sound possible to you? I should check again this pointā€¦
In the Magisk Manager I also tried the "SafetyNet" check, which is refused. Is it OK? What does it imply? Why would I need to pass this SafetyNet test for?
Iā€™m not sure I understood how the recovery thing worksā€¦ I understand itā€™s another partition than "boot", and I know I can boot on it using the boot menu (pressing volume up when turning on the phone). What I donā€™t know is if it starts a recovering of the system automatically when booting on this partition (then erasing all data on the phone), or not.
Letā€™s say I flash the boot.img on the recovery partition (fastboot flash recovery boot.img). If I do a normal boot it should boot as usual, but if I boot on recovery it would boot on a virgin system. Am I right? Let says I configure nothing and reboot again, a normal boot this time. I then should get back to my usual, already configured system, as the "boot" partition hasnā€™t been modified. Is this also right?
Before doing anymore tests I would like to be able to backup an image with the phone already configured, with data and root access and applications. One (or maybe two or three?) file I can keep on my computer, and in case I break the boot on the phone, I could just fastboot flash boot my_custom_image.img to recover my phone configured. Oy maybe also flashing a "userdata" partition? Would I need some other partition? Is it more complicated than that?
It seems I have to identify the right partition(s) and carefully use dd to dump the partition to an image fileā€¦ Before trying to do so Iā€™d like to have some advice, hence this post!
Also. I read about a software called TWPR. Should I use it, and why ? I understand itā€™s a system aimed to be flashed on the recovery partition, is it right? Whatā€™s its use?
Finally I read about LineageOS which is the ultimate customization for the phone, itā€™s a ā€œpureā€ Android, which is totally opensource (but it has to uses a lot of proprietary blob for devices AFAIK). I donā€™t think Iā€™ll get there anyway. If Iā€™m not mistaken itā€™s hard to do, especially with new phones nobody has ran LineageOS on, and there is something like no probability all the devices would work anyway.
Have a nice day.
there's no implication when you see "Orange state, your phoneā€™s unlockedā€ unless you didn't the one who did it that means your device is tampered ..
also on SafetyNet is broad topic you can learn what it is here https://www.didgeridoohan.com/magisk/MagiskHideSafetyNet also
"Why would I need to pass this SafetyNet test for?" there are multiple reason such as you can't install banking apps,netflix, ...etc nor download them via playstore
moving on it is not recommend to backup userdata partition since it just contain all contains evidence of user activity. It contains call and SMS records, contacts, user-installed apps, app data, settings, and so-on-and-so-forth. In most newer phones, it also is likely to contain photos and videos and other user-generated files unless an external SD card is present. Also it would be impossible to restore userdata partition since android is encrypting it with unique key every time you set up your device https://source.android.com/security/encryption/full-disk
this prevent rooted application crawling on other application data such as paypal just stealing your login info and money
TWRP is like recovery mode but more feature packed (you can backup partition with it not available on stock recovery)
also experience is the best teacher you must experience failure to improve
ineedroot69 said:
Also it would be impossible to restore userdata partition since android is encrypting it with unique key every time you set up your device https://source.android.com/security/encryption/full-disk
this prevent rooted application crawling on other application data such as paypal just stealing your login info and money
Click to expand...
Click to collapse
With a simple ADB command you can decrypt Android partitions:
Code:
adb shell "recovery --set_encrypted_filesystem=on|off" <- enables / diasables encrypted fs
Hi,
Many thx for your answers.
also experience is the best teacher you must experience failure to improve
Click to expand...
Click to collapse
I can confirm that. I accidentally uninstalled the stock launcher with ADB. Iā€™ve been able to install another launcher (I think Iā€™ll keep on Nova Launcher). I tested a few (Launcher<3 and KISS Launcher), although they work fine none of them support switching between running apps. Itā€™s a little bit annoying but I have another way to stop running apps (with App Manager). I guess the only way to get this functionality back is to flash again the boot partition with the Magisk patched image I already used, and to re-configure all the phone again (this is good to learn and luckily I donā€™t have important data in the phone yet).
Also it would be impossible to restore userdata partition since android is encrypting it with unique key every time you set up your device https://source.android.com/security/encryption/full-disk
Click to expand...
Click to collapse
Couldnā€™t be possible to dump both boot and userdata partitions and then flash them back both ā€œat onceā€. The key for encrypting/decrypting the user data being contains in the boot (system ?) partition?
I realize Android has a bunch of security configuration you rarely find on a Linux server. Also the hardware is full of devices which require close-source firmware to operate. This is definitively not a good platform for hacking, like most PC are or a Rasberry Pi is . And I bet Windows and Apple phones are evermore closedā€¦
About encrypting, I have a file called "googlekey/kb_0000000000.bin", which is the same in two archives the support sent me
$ md5sum S9S88A7.DGE.DOOGEE.*/googlekey/kb*
ead8a1d0f11e5f12bdda0f7a22935c2b S9S88A7.DGE.DOOGEE.EEA.HB.HJ.AYYDVFAZ.1130.V3.02/googlekey/kb_0000000000.bin
ead8a1d0f11e5f12bdda0f7a22935c2b S9S88A7.DGE.DOOGEE.HB.HJ.AYYDVFAZ.1203.V3.04/googlekey/kb_0000000000.bin
Click to expand...
Click to collapse
This file is not ā€œper deviceā€ knowing every S96Pro users get the same archives. Whatā€™s its purpose?
I wonder the same for many files in this archive but I wonā€™t bother you, Iā€™ll make some search.
The one thing Iā€™d like to understand is why the archive is labelled "1203.V3.04" and the system on my phone (after I flashed the boot partition with (a Magisk patched made from) the boot.img in this archive says : "0128.V3.03_20210128". Could it be related to the Magisk patching? (I didnā€™t check what I had with the stock boot.img). Or I have been downgraded by Google during install?
With a simple ADB command you can decrypt Android partitions:
Click to expand...
Click to collapse
Thx for this. What does it imply to do so? Will the Android system run with this unencrypted data partition? Is there a way to encrypt it again? (With ADB or directly in the phone?)
Iā€™ve seen there are dozens of partitions on a running Android. So far this is what I understood (is this correct?) : There are three important partitions : boot, recovery and userdata. "boot" et "recovery" are the only ones the device can boot on (except booting from an image in fastboot mode using "fastboot boot boot.img"?). Are they some other important partitions this is important to be aware of?
Having a bootable "boot" and a bootable "recovery" partitions, it should be possible to install two different Android OS? I guess this is not possible and the "recovery" partition is dedicated to recovering (ie: reinstall the system) but I donā€™t understand how and why exactly. The encrypting thing maybe? The system must have a userdata partition and this one canā€™t be shared between to systemā€¦
I think I should buy an older Android smartphone to make all that kind of test, especially knowing I donā€™t have any other phone I can use for everyday useā€¦ Do you have some advice on brands and models which are more friendly with customization of the system?
Apart of ADB and fastboot, what are the other important tools to know about?
For Android development (I mean development of apps for Android), does everyone use an emulator? Whatā€™s the best option for such an emulator on Linux?
Have a nice day.
Marotte said:
For Android development (I mean development of apps for Android), does everyone use an emulator? Whatā€™s the best option for such an emulator on Linux?
Click to expand...
Click to collapse
My recommendation is GenyMotion for Linux. This emulator requires VirtualBox for Linux gets installed before.
Install GenyMotion
How To Install GenyMotion (Android Emulator) On Linux | 2DayGeek
2daygeek.com Linux Tips, Tricks & News today :- How to Install GenyMotion (Android Emulator) on Ubuntu, Debian, Linux Mint, openSUSE, Arch Linux, Fedora, CentOS, RHEL, Mageia, Manjaro
www.2daygeek.com
DL VirtualBox
Linux_Downloads ā€“ Oracle VM VirtualBox
www.virtualbox.org
Marotte said:
Having a bootable "boot" and a bootable "recovery" partitions, it should be possible to install two different Android OS? I guess this is not possible and the "recovery" partition is dedicated to recovering (ie: reinstall the system) but I donā€™t understand how and why exactly. The encrypting thing maybe?
Click to expand...
Click to collapse
Partitions /boot & /recovery explained:
/boot
This is the partition that enables the phone to boot, as the name suggests. It includes the kernel and the ramdisk. Without this partition, the device will simply not be able to boot.
/recovery
The recovery partition can be considered as an alternative boot partition that lets you boot the device into a recovery console for performing advanced recovery and maintenance operations on it.
That's what you can do from within the recovery console:
Reboot system now
Install ZIP from SD-card
Install ZIP from Sideload
Wipe data / factory reset
Wipe cache partition
Backup and restore
Hi,
Many thx for your answers.
also experience is the best teacher you must experience failure to improve
Click to expand...
Click to collapse
I can confirm that. I accidentally uninstalled the stock launcher with ADB. Iā€™ve been able to install another launcher (I think Iā€™ll keep on Nova Launcher). I tested a few (Launcher<3 and KISS Launcher), although they work fine none of them support switching between running apps. Itā€™s a little bit annoying but I have another way to stop running apps (with App Manager). I guess the only way to get this functionality back is to flash again the boot partition with the Magisk patched image I already used, and to re-configure all the phone again (this is good to learn and luckily I donā€™t have important data in the phone yet).
Also it would be impossible to restore userdata partition since android is encrypting it with unique key every time you set up your device https://source.android.com/security/encryption/full-disk
Click to expand...
Click to collapse
Couldnā€™t be possible to dump both boot and userdata partitions and then flash them back both ā€œat onceā€. The key for encrypting/decrypting the user data being contains in the boot (system ?) partition?
I realize Android has a bunch of security configuration you rarely find on a Linux server. Also the hardware is full of devices which require close-source firmware to operate. This is definitively not a good platform for hacking, like most PC are or a Rasberry Pi is . And I bet Windows and Apple phones are evermore closedā€¦
About encrypting, I have a file called "googlekey/kb_0000000000.bin", which is the same in two archives the support sent me
$ md5sum S9S88A7.DGE.DOOGEE.*/googlekey/kb*
ead8a1d0f11e5f12bdda0f7a22935c2b S9S88A7.DGE.DOOGEE.EEA.HB.HJ.AYYDVFAZ.1130.V3.02/googlekey/kb_0000000000.bin
ead8a1d0f11e5f12bdda0f7a22935c2b S9S88A7.DGE.DOOGEE.HB.HJ.AYYDVFAZ.1203.V3.04/googlekey/kb_0000000000.bin
Click to expand...
Click to collapse
This file is not ā€œper deviceā€ knowing every S96Pro users get the same archives. Whatā€™s its purpose?
I wonder the same for many files in this archive but I wonā€™t bother you, Iā€™ll make some search.
The one thing Iā€™d like to understand is why the archive is labelled "1203.V3.04" and the system on my phone (after I flashed the boot partition with (a Magisk patched made from) the boot.img in this archive says : "0128.V3.03_20210128". Could it be related to the Magisk patching? (I didnā€™t check what I had with the stock boot.img). Or I have been downgraded by Google during install?
With a simple ADB command you can decrypt Android partitions:
Click to expand...
Click to collapse
Thx for this. What does it imply to do so? Will the Android system run with this unencrypted data partition? Is there a way to encrypt it again? (With ADB or directly in the phone?)
Iā€™ve seen there are dozens of partitions on a running Android. So far this is what I understood (is this correct?) : There are three important partitions : boot, recovery and userdata. "boot" et "recovery" are the only ones the device can boot on (except booting from an image in fastboot mode using "fastboot boot boot.img"?). Are they some other important partitions this is important to be aware of?
Having a bootable "boot" and a bootable "recovery" partitions, it should be possible to install two different Android OS? I guess this is not possible and the "recovery" partition is dedicated to recovering (ie: reinstall the system) but I donā€™t understand how and why exactly. The encrypting thing maybe? The system must have a userdata partition and this one canā€™t be shared between to systemā€¦
I think I should buy an older Android smartphone to make all that kind of test, especially knowing I donā€™t have any other phone I can use for everyday useā€¦ Do you have some advice on brands and models which are more friendly with customization of the system?
Apart of ADB and fastboot, what are the other important tools to know about?
For Android development (I mean development of apps for Android), does everyone use an emulator? Whatā€™s the best option for such an emulator on Linux?
Have a nice day.
Have a nice day.
jwoegerbauer said:
My recommendation is GenyMotion for Linux. This emulator requires VirtualBox for Linux gets installed before.
Install GenyMotion
How To Install GenyMotion (Android Emulator) On Linux | 2DayGeek
2daygeek.com Linux Tips, Tricks & News today :- How to Install GenyMotion (Android Emulator) on Ubuntu, Debian, Linux Mint, openSUSE, Arch Linux, Fedora, CentOS, RHEL, Mageia, Manjaro
www.2daygeek.com
DL VirtualBox
Linux_Downloads ā€“ Oracle VM VirtualBox
www.virtualbox.org
Click to expand...
Click to collapse
I went for the official Android Studio from Google. I guess itā€™s the best for a complete newbie like me. Iā€™ve been able to start a virtual phone with it.

Boot into Debian or Arch possible on Smartphone? Universal Image for most Devices?

Hello Community!
I am asking myself it is possibe to direkt boot a debian ARM Port or ARCH Linux ARM Port (maybe from SD Card) on my Smartphone? I saw lots of videos booting a Linux on Top of Android but i would like to "natively" run a OS. Where a Custom ROM typically has drivers for a special type of device i am thinking if a very generel distribution could detect most of the devices hardware...
Any Ideas if this would be possible?
AFAIK it's not possible.
Can you give me a (detailled) hint why you think this would not work?
When reading the informations: https://archlinuxarm.org/about/downloads
The released downloads are designed for the specific systems above; however, our package repositories work with any ARM device compatible with ARMv5, ARMv6, ARMv7-a, or ARMv8-a AArch64 instructions.
In TWRP i can select Storage - maybe starting from TWRP command line a image start from SD Card would be possible?
You initially said your goal is to completely replace Android by Linux ( ARCH Linux - what is for tablets only ) on a smartphone, IIRC.
Now you say you want to run Linux ( ARCH Linux ) on top of Android. Confused ...
hello! i meant that my smartphone can start the TWRP bootloader and from there the boot process could be (maybe) handed over to an image at the SD card....
thats the idea... ;-)
TWRP is a Custom Recovery means a restricted Android OS ( like Windows RE for Windows machines), not a bootloader ( what is comparable to UEFI / BIOS on Windows machines ).
The Android bootloader starts the recovery mode and the kernel, which then starts the operating system of your smartphone.

Categories

Resources